2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for zfs 0.6.5.11.
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.6.5.11'
747 PACKAGE_STRING
='zfs 0.6.5.11'
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
825 NO_UNUSED_BUT_SET_VARIABLE
858 am__fastdepCCAS_FALSE
906 INSTALL_STRIP_PROGRAM
924 MAINTAINER_MODE_FALSE
977 program_transform_name
989 enable_option_checking
990 enable_maintainer_mode
992 enable_dependency_tracking
1001 enable_linux_builtin
1012 with_systemdpresetdir
1013 with_systemdmodulesloaddir
1020 ac_precious_vars
='build_alias
1033 # Initialize some variables set by options.
1035 ac_init_version
=false
1036 ac_unrecognized_opts
=
1037 ac_unrecognized_sep
=
1038 # The variables have the same names as the options, with
1039 # dashes changed to underlines.
1040 cache_file
=/dev
/null
1047 program_transform_name
=s
,x
,x
,
1055 # Installation directory options.
1056 # These are left unexpanded so users can "make install exec_prefix=/foo"
1057 # and all the variables that are supposed to be based on exec_prefix
1058 # by default will actually change.
1059 # Use braces instead of parens because sh, perl, etc. also accept them.
1060 # (The list follows the same order as the GNU Coding Standards.)
1061 bindir
='${exec_prefix}/bin'
1062 sbindir
='${exec_prefix}/sbin'
1063 libexecdir
='${exec_prefix}/libexec'
1064 datarootdir
='${prefix}/share'
1065 datadir
='${datarootdir}'
1066 sysconfdir
='${prefix}/etc'
1067 sharedstatedir
='${prefix}/com'
1068 localstatedir
='${prefix}/var'
1069 includedir
='${prefix}/include'
1070 oldincludedir
='/usr/include'
1071 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
1072 infodir
='${datarootdir}/info'
1077 libdir
='${exec_prefix}/lib'
1078 localedir
='${datarootdir}/locale'
1079 mandir
='${datarootdir}/man'
1085 # If the previous option needs an argument, assign it.
1086 if test -n "$ac_prev"; then
1087 eval $ac_prev=\
$ac_option
1093 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1097 # Accept the important Cygnus configure options, so we can diagnose typos.
1099 case $ac_dashdash$ac_option in
1103 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1105 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1106 bindir
=$ac_optarg ;;
1108 -build |
--build |
--buil |
--bui |
--bu)
1109 ac_prev
=build_alias
;;
1110 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1111 build_alias
=$ac_optarg ;;
1113 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1114 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1115 ac_prev
=cache_file
;;
1116 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1117 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1118 cache_file
=$ac_optarg ;;
1120 --config-cache |
-C)
1121 cache_file
=config.cache
;;
1123 -datadir |
--datadir |
--datadi |
--datad)
1125 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1126 datadir
=$ac_optarg ;;
1128 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1129 |
--dataroo |
--dataro |
--datar)
1130 ac_prev
=datarootdir
;;
1131 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1132 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1133 datarootdir
=$ac_optarg ;;
1135 -disable-* |
--disable-*)
1136 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1139 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1140 { (exit 1); exit 1; }; }
1141 ac_useropt_orig
=$ac_useropt
1142 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143 case $ac_user_opts in
1145 "enable_
$ac_useropt"
1147 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1148 ac_unrecognized_sep
=', ';;
1150 eval enable_
$ac_useropt=no
;;
1152 -docdir |
--docdir |
--docdi |
--doc |
--do)
1154 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1155 docdir
=$ac_optarg ;;
1157 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1159 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1160 dvidir
=$ac_optarg ;;
1162 -enable-* |
--enable-*)
1163 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1164 # Reject names that are not valid shell variable names.
1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1166 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1167 { (exit 1); exit 1; }; }
1168 ac_useropt_orig
=$ac_useropt
1169 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1170 case $ac_user_opts in
1172 "enable_
$ac_useropt"
1174 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1175 ac_unrecognized_sep
=', ';;
1177 eval enable_
$ac_useropt=\
$ac_optarg ;;
1179 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1180 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1181 |
--exec |
--exe |
--ex)
1182 ac_prev
=exec_prefix
;;
1183 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1184 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1185 |
--exec=* |
--exe=* |
--ex=*)
1186 exec_prefix
=$ac_optarg ;;
1188 -gas |
--gas |
--ga |
--g)
1189 # Obsolete; use --with-gas.
1192 -help |
--help |
--hel |
--he |
-h)
1193 ac_init_help
=long
;;
1194 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1195 ac_init_help
=recursive
;;
1196 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1197 ac_init_help
=short
;;
1199 -host |
--host |
--hos |
--ho)
1200 ac_prev
=host_alias
;;
1201 -host=* |
--host=* |
--hos=* |
--ho=*)
1202 host_alias
=$ac_optarg ;;
1204 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1206 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1208 htmldir
=$ac_optarg ;;
1210 -includedir |
--includedir |
--includedi |
--included |
--include \
1211 |
--includ |
--inclu |
--incl |
--inc)
1212 ac_prev
=includedir
;;
1213 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1214 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1215 includedir
=$ac_optarg ;;
1217 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1219 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1220 infodir
=$ac_optarg ;;
1222 -libdir |
--libdir |
--libdi |
--libd)
1224 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1225 libdir
=$ac_optarg ;;
1227 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1228 |
--libexe |
--libex |
--libe)
1229 ac_prev
=libexecdir
;;
1230 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1231 |
--libexe=* |
--libex=* |
--libe=*)
1232 libexecdir
=$ac_optarg ;;
1234 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1235 ac_prev
=localedir
;;
1236 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1237 localedir
=$ac_optarg ;;
1239 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1240 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1241 ac_prev
=localstatedir
;;
1242 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1243 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1244 localstatedir
=$ac_optarg ;;
1246 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1248 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1249 mandir
=$ac_optarg ;;
1251 -nfp |
--nfp |
--nf)
1252 # Obsolete; use --without-fp.
1255 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1256 |
--no-cr |
--no-c |
-n)
1259 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1260 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1263 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1264 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1265 |
--oldin |
--oldi |
--old |
--ol |
--o)
1266 ac_prev
=oldincludedir
;;
1267 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1268 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1269 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1270 oldincludedir
=$ac_optarg ;;
1272 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1274 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1275 prefix
=$ac_optarg ;;
1277 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1278 |
--program-pre |
--program-pr |
--program-p)
1279 ac_prev
=program_prefix
;;
1280 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1281 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1282 program_prefix
=$ac_optarg ;;
1284 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1285 |
--program-suf |
--program-su |
--program-s)
1286 ac_prev
=program_suffix
;;
1287 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1288 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1289 program_suffix
=$ac_optarg ;;
1291 -program-transform-name |
--program-transform-name \
1292 |
--program-transform-nam |
--program-transform-na \
1293 |
--program-transform-n |
--program-transform- \
1294 |
--program-transform |
--program-transfor \
1295 |
--program-transfo |
--program-transf \
1296 |
--program-trans |
--program-tran \
1297 |
--progr-tra |
--program-tr |
--program-t)
1298 ac_prev
=program_transform_name
;;
1299 -program-transform-name=* |
--program-transform-name=* \
1300 |
--program-transform-nam=* |
--program-transform-na=* \
1301 |
--program-transform-n=* |
--program-transform-=* \
1302 |
--program-transform=* |
--program-transfor=* \
1303 |
--program-transfo=* |
--program-transf=* \
1304 |
--program-trans=* |
--program-tran=* \
1305 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1306 program_transform_name
=$ac_optarg ;;
1308 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1310 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1311 pdfdir
=$ac_optarg ;;
1313 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1315 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1318 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1319 |
-silent |
--silent |
--silen |
--sile |
--sil)
1322 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1324 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1326 sbindir
=$ac_optarg ;;
1328 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1329 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1330 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1332 ac_prev
=sharedstatedir
;;
1333 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1334 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1335 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1337 sharedstatedir
=$ac_optarg ;;
1339 -site |
--site |
--sit)
1341 -site=* |
--site=* |
--sit=*)
1344 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1346 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1347 srcdir
=$ac_optarg ;;
1349 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1350 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1351 ac_prev
=sysconfdir
;;
1352 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1353 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1354 sysconfdir
=$ac_optarg ;;
1356 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1357 ac_prev
=target_alias
;;
1358 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1359 target_alias
=$ac_optarg ;;
1361 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1364 -version |
--version |
--versio |
--versi |
--vers |
-V)
1365 ac_init_version
=: ;;
1368 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1369 # Reject names that are not valid shell variable names.
1370 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1371 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1372 { (exit 1); exit 1; }; }
1373 ac_useropt_orig
=$ac_useropt
1374 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1375 case $ac_user_opts in
1379 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1380 ac_unrecognized_sep
=', ';;
1382 eval with_
$ac_useropt=\
$ac_optarg ;;
1384 -without-* |
--without-*)
1385 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1386 # Reject names that are not valid shell variable names.
1387 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1388 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1389 { (exit 1); exit 1; }; }
1390 ac_useropt_orig
=$ac_useropt
1391 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1392 case $ac_user_opts in
1396 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1397 ac_unrecognized_sep
=', ';;
1399 eval with_
$ac_useropt=no
;;
1402 # Obsolete; use --with-x.
1405 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1406 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1407 ac_prev
=x_includes
;;
1408 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1409 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1410 x_includes
=$ac_optarg ;;
1412 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1413 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1414 ac_prev
=x_libraries
;;
1415 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1416 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1417 x_libraries
=$ac_optarg ;;
1419 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1420 Try \`$0 --help' for more information." >&2
1421 { (exit 1); exit 1; }; }
1425 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1426 # Reject names that are not valid shell variable names.
1427 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1428 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1429 { (exit 1); exit 1; }; }
1430 eval $ac_envvar=\
$ac_optarg
1431 export $ac_envvar ;;
1434 # FIXME: should be removed in autoconf 3.0.
1435 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1436 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1437 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1438 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1444 if test -n "$ac_prev"; then
1445 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1446 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1447 { (exit 1); exit 1; }; }
1450 if test -n "$ac_unrecognized_opts"; then
1451 case $enable_option_checking in
1453 fatal
) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1454 { (exit 1); exit 1; }; } ;;
1455 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1459 # Check all directory arguments for consistency.
1460 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1461 datadir sysconfdir sharedstatedir localstatedir includedir \
1462 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1463 libdir localedir mandir
1465 eval ac_val
=\$
$ac_var
1466 # Remove trailing slashes.
1469 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1470 eval $ac_var=\
$ac_val;;
1472 # Be sure to have absolute directory names.
1474 [\\/$
]* | ?
:[\\/]* ) continue;;
1475 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1477 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1478 { (exit 1); exit 1; }; }
1481 # There might be people who depend on the old broken behavior: `$host'
1482 # used to hold the argument of --host etc.
1483 # FIXME: To remove some day.
1486 target
=$target_alias
1488 # FIXME: To remove some day.
1489 if test "x$host_alias" != x
; then
1490 if test "x$build_alias" = x
; then
1491 cross_compiling
=maybe
1492 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1493 If a cross compiler is detected then cross compile mode will be used." >&2
1494 elif test "x$build_alias" != "x$host_alias"; then
1500 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1502 test "$silent" = yes && exec 6>/dev
/null
1505 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1506 ac_ls_di
=`ls -di .` &&
1507 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1508 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1509 { (exit 1); exit 1; }; }
1510 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1511 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1512 { (exit 1); exit 1; }; }
1515 # Find the source files, if location was not specified.
1516 if test -z "$srcdir"; then
1517 ac_srcdir_defaulted
=yes
1518 # Try the directory containing this script, then the parent directory.
1519 ac_confdir
=`$as_dirname -- "$as_myself" ||
1520 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1521 X"$as_myself" : 'X\(//\)[^/]' \| \
1522 X"$as_myself" : 'X\(//\)$' \| \
1523 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1524 $as_echo X"$as_myself" |
1525 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1543 if test ! -r "$srcdir/$ac_unique_file"; then
1547 ac_srcdir_defaulted
=no
1549 if test ! -r "$srcdir/$ac_unique_file"; then
1550 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1551 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1552 { (exit 1); exit 1; }; }
1554 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1556 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1557 { (exit 1); exit 1; }; }
1559 # When building in place, set srcdir=.
1560 if test "$ac_abs_confdir" = "$ac_pwd"; then
1563 # Remove unnecessary trailing slashes from srcdir.
1564 # Double slashes in file names in object file debugging info
1565 # mess up M-x gdb in Emacs.
1567 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1569 for ac_var
in $ac_precious_vars; do
1570 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1571 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1572 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1573 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1577 # Report the --help message.
1579 if test "$ac_init_help" = "long"; then
1580 # Omit some internal or obsolete options to make the list less imposing.
1581 # This message is too long to be a string in the A/UX 3.1 sh.
1583 \`configure' configures zfs 0.6.5.11 to adapt to many kinds of systems.
1585 Usage: $0 [OPTION]... [VAR=VALUE]...
1587 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1588 VAR=VALUE. See below for descriptions of some of the useful variables.
1590 Defaults for the options are specified in brackets.
1593 -h, --help display this help and exit
1594 --help=short display options specific to this package
1595 --help=recursive display the short help of all the included packages
1596 -V, --version display version information and exit
1597 -q, --quiet, --silent do not print \`checking...' messages
1598 --cache-file=FILE cache test results in FILE [disabled]
1599 -C, --config-cache alias for \`--cache-file=config.cache'
1600 -n, --no-create do not create output files
1601 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1603 Installation directories:
1604 --prefix=PREFIX install architecture-independent files in PREFIX
1605 [$ac_default_prefix]
1606 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1609 By default, \`make install' will install all the files in
1610 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1611 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1612 for instance \`--prefix=\$HOME'.
1614 For better control, use the options below.
1616 Fine tuning of the installation directories:
1617 --bindir=DIR user executables [EPREFIX/bin]
1618 --sbindir=DIR system admin executables [EPREFIX/sbin]
1619 --libexecdir=DIR program executables [EPREFIX/libexec]
1620 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1621 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1622 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1623 --libdir=DIR object code libraries [EPREFIX/lib]
1624 --includedir=DIR C header files [PREFIX/include]
1625 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1626 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1627 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1628 --infodir=DIR info documentation [DATAROOTDIR/info]
1629 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1630 --mandir=DIR man documentation [DATAROOTDIR/man]
1631 --docdir=DIR documentation root [DATAROOTDIR/doc/zfs]
1632 --htmldir=DIR html documentation [DOCDIR]
1633 --dvidir=DIR dvi documentation [DOCDIR]
1634 --pdfdir=DIR pdf documentation [DOCDIR]
1635 --psdir=DIR ps documentation [DOCDIR]
1641 --program-prefix=PREFIX prepend PREFIX to installed program names
1642 --program-suffix=SUFFIX append SUFFIX to installed program names
1643 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1646 --build=BUILD configure
for building on BUILD
[guessed
]
1647 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1648 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1652 if test -n "$ac_init_help"; then
1653 case $ac_init_help in
1654 short | recursive
) echo "Configuration of zfs 0.6.5.11:";;
1659 --disable-option-checking ignore unrecognized
--enable/--with options
1660 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1661 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1662 --enable-maintainer-mode enable make rules and dependencies not useful
1663 (and sometimes confusing
) to the casual installer
1664 --enable-silent-rules less verbose build output
(undo
: `make V=1')
1665 --disable-silent-rules verbose build output (undo: `make V
=0')
1666 --disable-dependency-tracking speeds up one-time build
1667 --enable-dependency-tracking do not reject slow dependency extractors
1668 --enable-shared[=PKGS] build shared libraries [default=yes]
1669 --enable-static[=PKGS] build static libraries [default=yes]
1670 --enable-fast-install[=PKGS]
1671 optimize for fast installation [default=yes]
1672 --disable-libtool-lock avoid locking (might break parallel builds)
1673 --enable-linux-builtin Configure for builtin in-tree kernel modules
1675 --enable-systemd install systemd unit/preset files
1677 --enable-sysvinit install SysV init scripts default:, yes
1678 --enable-debug Enable generic debug support [default=no]
1679 --enable-debug-dmu-tx Enable dmu tx validation [default=no]
1682 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1683 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1684 --with-pic try to use only PIC/non-PIC objects [default=use
1686 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1687 --with-spec=SPEC Spec files 'generic|redhat
'
1688 --with-config=CONFIG Config file 'kernel|user|all|srpm
'
1689 --with-linux=PATH Path to kernel source
1690 --with-linux-obj=PATH Path to kernel build objects
1691 --with-spl=PATH Path to spl source
1692 --with-spl-obj=PATH Path to spl build objects
1693 --with-spl-timeout=SECS Wait SECS for SPL header and symver file [default=0]
1694 --with-mounthelperdir=DIR
1695 install mount.zfs in dir [/sbin]
1696 --with-udevdir=DIR install udev helpers [default=check]
1697 --with-udevruledir=DIR install udev rules [UDEVDIR/rules.d]
1698 --with-systemdunitdir=DIR
1699 install systemd unit files in dir
1700 [/usr/lib/systemd/system]
1701 --with-systemdpresetdir=DIR
1702 install systemd preset files in dir
1703 [/usr/lib/systemd/system-preset]
1704 --with-systemdmodulesloaddir=DIR
1705 install systemd module load files into dir
1706 [/usr/lib/modules-load.d]
1707 --with-dracutdir=DIR install dracut helpers [default=check]
1708 --with-blkid support blkid caching [default=check]
1710 Some influential environment variables:
1711 CC C compiler command
1712 CFLAGS C compiler flags
1713 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1714 nonstandard directory <lib dir>
1715 LIBS libraries to pass to the linker, e.g. -l<library>
1716 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1717 you have headers in a nonstandard directory <include dir>
1719 CCAS assembler compiler command (defaults to CC)
1720 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1722 Use these variables to override the choices made by `configure' or to
help
1723 it to
find libraries and programs with nonstandard names
/locations.
1729 if test "$ac_init_help" = "recursive"; then
1730 # If there are subdirs, report their specific --help.
1731 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1732 test -d "$ac_dir" ||
1733 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1738 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1740 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1741 # A ".." for each directory in $ac_dir_suffix.
1742 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1743 case $ac_top_builddir_sub in
1744 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1745 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1748 ac_abs_top_builddir
=$ac_pwd
1749 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1750 # for backward compatibility:
1751 ac_top_builddir
=$ac_top_build_prefix
1754 .
) # We are building in place.
1756 ac_top_srcdir
=$ac_top_builddir_sub
1757 ac_abs_top_srcdir
=$ac_pwd ;;
1758 [\\/]* | ?
:[\\/]* ) # Absolute name.
1759 ac_srcdir
=$srcdir$ac_dir_suffix;
1760 ac_top_srcdir
=$srcdir
1761 ac_abs_top_srcdir
=$srcdir ;;
1763 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1764 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1765 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1767 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1769 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1770 # Check for guested configure.
1771 if test -f "$ac_srcdir/configure.gnu"; then
1773 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1774 elif test -f "$ac_srcdir/configure"; then
1776 $SHELL "$ac_srcdir/configure" --help=recursive
1778 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1780 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1784 test -n "$ac_init_help" && exit $ac_status
1785 if $ac_init_version; then
1787 zfs configure
0.6.5.11
1788 generated by GNU Autoconf
2.63
1790 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1791 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
, Inc.
1792 This configure
script is free software
; the Free Software Foundation
1793 gives unlimited permission to copy
, distribute and modify it.
1797 cat >config.log
<<_ACEOF
1798 This file contains any messages produced by compilers while
1799 running configure, to aid debugging if configure makes a mistake.
1801 It was created by zfs $as_me 0.6.5.11, which was
1802 generated by GNU Autoconf 2.63. Invocation command line was
1814 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1815 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1816 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1817 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1818 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1820 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1821 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1823 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1824 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1825 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1826 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1827 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1828 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1829 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1833 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1837 test -z "$as_dir" && as_dir
=.
1838 $as_echo "PATH: $as_dir"
1854 # Keep a trace of the command line.
1855 # Strip out --no-create and --no-recursion so they do not pile up.
1856 # Strip out --silent because we don't want to record it for future runs.
1857 # Also quote any args containing shell meta-characters.
1858 # Make two passes to allow for proper duplicate-argument suppression.
1862 ac_must_keep_next
=false
1868 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1869 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1870 |
-silent |
--silent |
--silen |
--sile |
--sil)
1873 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1876 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1878 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1879 if test $ac_must_keep_next = true
; then
1880 ac_must_keep_next
=false
# Got value, back to normal.
1883 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1884 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1885 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1886 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1887 case "$ac_configure_args0 " in
1888 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1891 -* ) ac_must_keep_next
=true
;;
1894 ac_configure_args
="$ac_configure_args '$ac_arg'"
1899 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1900 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1902 # When interrupted or exit'd, cleanup temporary files, and complete
1903 # config.log. We remove comments because anyway the quotes in there
1904 # would cause problems or look ugly.
1905 # WARNING: Use '\'' to represent an apostrophe within the trap.
1906 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1907 trap 'exit_status=$?
1908 # Save into config.log some information that might help in debugging.
1913 ## ---------------- ##
1914 ## Cache variables. ##
1915 ## ---------------- ##
1918 # The following way of writing the cache mishandles newlines in values,
1920 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1921 eval ac_val=\$$ac_var
1925 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1926 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1929 _ | IFS | as_nl) ;; #(
1930 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1931 *) $as_unset $ac_var ;;
1936 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1937 *${as_nl}ac_space=\ *)
1939 "s/'\''/'\''\\\\'\'''\''/g;
1940 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1943 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1951 ## ----------------- ##
1952 ## Output variables. ##
1953 ## ----------------- ##
1956 for ac_var in $ac_subst_vars
1958 eval ac_val=\$$ac_var
1960 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1962 $as_echo "$ac_var='\''$ac_val'\''"
1966 if test -n "$ac_subst_files"; then
1968 ## ------------------- ##
1969 ## File substitutions. ##
1970 ## ------------------- ##
1973 for ac_var
in $ac_subst_files
1975 eval ac_val
=\$
$ac_var
1977 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1979 $as_echo "$ac_var='\''$ac_val'\''"
1984 if test -s confdefs.h; then
1994 test "$ac_signal" != 0 &&
1995 $as_echo "$as_me: caught signal $ac_signal"
1996 $as_echo "$as_me: exit $exit_status"
1998 rm -f core *.core core.conftest.* &&
1999 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2002 for ac_signal
in 1 2 13 15; do
2003 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2007 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2008 rm -f -r conftest
* confdefs.h
2010 # Predefined preprocessor variables.
2012 cat >>confdefs.h
<<_ACEOF
2013 #define PACKAGE_NAME "$PACKAGE_NAME"
2017 cat >>confdefs.h
<<_ACEOF
2018 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2022 cat >>confdefs.h
<<_ACEOF
2023 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2027 cat >>confdefs.h
<<_ACEOF
2028 #define PACKAGE_STRING "$PACKAGE_STRING"
2032 cat >>confdefs.h
<<_ACEOF
2033 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2037 # Let the site file select an alternate cache file if it wants to.
2038 # Prefer an explicitly selected file to automatically selected ones.
2041 if test -n "$CONFIG_SITE"; then
2042 ac_site_file1
=$CONFIG_SITE
2043 elif test "x$prefix" != xNONE
; then
2044 ac_site_file1
=$prefix/share
/config.site
2045 ac_site_file2
=$prefix/etc
/config.site
2047 ac_site_file1
=$ac_default_prefix/share
/config.site
2048 ac_site_file2
=$ac_default_prefix/etc
/config.site
2050 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2052 test "x$ac_site_file" = xNONE
&& continue
2053 if test -r "$ac_site_file"; then
2054 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2055 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2056 sed 's/^/| /' "$ac_site_file" >&5
2061 if test -r "$cache_file"; then
2062 # Some versions of bash will fail to source /dev/null (special
2063 # files actually), so we avoid doing that.
2064 if test -f "$cache_file"; then
2065 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2066 $as_echo "$as_me: loading cache $cache_file" >&6;}
2068 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2069 *) .
"./$cache_file";;
2073 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2074 $as_echo "$as_me: creating cache $cache_file" >&6;}
2078 # Check that the precious variables saved in the cache have kept the same
2080 ac_cache_corrupted
=false
2081 for ac_var
in $ac_precious_vars; do
2082 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2083 eval ac_new_set
=\
$ac_env_${ac_var}_set
2084 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2085 eval ac_new_val
=\
$ac_env_${ac_var}_value
2086 case $ac_old_set,$ac_new_set in
2088 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2089 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2090 ac_cache_corrupted
=: ;;
2092 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2093 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2094 ac_cache_corrupted
=: ;;
2097 if test "x$ac_old_val" != "x$ac_new_val"; then
2098 # differences in whitespace do not lead to failure.
2099 ac_old_val_w
=`echo x $ac_old_val`
2100 ac_new_val_w
=`echo x $ac_new_val`
2101 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2102 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2103 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2104 ac_cache_corrupted
=:
2106 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2107 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2108 eval $ac_var=\
$ac_old_val
2110 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2111 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2112 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2113 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2116 # Pass precious variables to config.status.
2117 if test "$ac_new_set" = set; then
2119 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2120 *) ac_arg
=$ac_var=$ac_new_val ;;
2122 case " $ac_configure_args " in
2123 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2124 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
2128 if $ac_cache_corrupted; then
2129 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2130 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2131 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2132 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2133 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2134 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2135 { (exit 1); exit 1; }; }
2163 ac_cpp
='$CPP $CPPFLAGS'
2164 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2165 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2166 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2170 ac_cpp
='$CPP $CPPFLAGS'
2171 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2172 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2173 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2180 for ac_prog
in gawk mawk nawk
awk
2182 # Extract the first word of "$ac_prog", so it can be a program name with args.
2183 set dummy
$ac_prog; ac_word
=$2
2184 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2185 $as_echo_n "checking for $ac_word... " >&6; }
2186 if test "${ac_cv_prog_AWK+set}" = set; then
2187 $as_echo_n "(cached) " >&6
2189 if test -n "$AWK"; then
2190 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2192 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2196 test -z "$as_dir" && as_dir
=.
2197 for ac_exec_ext
in '' $ac_executable_extensions; do
2198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2199 ac_cv_prog_AWK
="$ac_prog"
2200 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2210 if test -n "$AWK"; then
2211 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2212 $as_echo "$AWK" >&6; }
2214 { $as_echo "$as_me:$LINENO: result: no" >&5
2215 $as_echo "no" >&6; }
2219 test -n "$AWK" && break
2222 { $as_echo "$as_me:$LINENO: checking metadata" >&5
2223 $as_echo_n "checking metadata... " >&6; }
2226 _zfs_ac_meta_type
="none"
2227 if test -f "$META"; then
2228 _zfs_ac_meta_type
="META file"
2230 ZFS_META_NAME
=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`;
2231 if test -n "$ZFS_META_NAME"; then
2233 cat >>confdefs.h
<<_ACEOF
2234 #define ZFS_META_NAME "$ZFS_META_NAME"
2240 ZFS_META_VERSION
=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`;
2241 if test -n "$ZFS_META_VERSION"; then
2243 cat >>confdefs.h
<<_ACEOF
2244 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2250 ZFS_META_RELEASE
=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`;
2251 if test ! -f ".nogitrelease" && git rev-parse
--git-dir > /dev
/null
2>&1; then
2252 _match
="${ZFS_META_NAME}-${ZFS_META_VERSION}"
2253 _alias
=$
(git describe
--match=${_match} 2>/dev
/null
)
2254 _release
=$
(echo ${_alias}|cut
-f3- -d'-'|
sed 's/-/_/g')
2255 if test -n "${_release}"; then
2256 ZFS_META_RELEASE
=${_release}
2257 _zfs_ac_meta_type
="git describe"
2261 if test -n "$ZFS_META_RELEASE"; then
2263 cat >>confdefs.h
<<_ACEOF
2264 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2269 RELEASE
="$ZFS_META_RELEASE"
2273 ZFS_META_LICENSE
=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`;
2274 if test -n "$ZFS_META_LICENSE"; then
2276 cat >>confdefs.h
<<_ACEOF
2277 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2283 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2284 ZFS_META_ALIAS
="$ZFS_META_NAME-$ZFS_META_VERSION"
2285 test -n "$ZFS_META_RELEASE" &&
2286 ZFS_META_ALIAS
="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2288 cat >>confdefs.h
<<_ACEOF
2289 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2295 ZFS_META_DATA
=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`;
2296 if test -n "$ZFS_META_DATA"; then
2298 cat >>confdefs.h
<<_ACEOF
2299 #define ZFS_META_DATA "$ZFS_META_DATA"
2305 ZFS_META_AUTHOR
=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`;
2306 if test -n "$ZFS_META_AUTHOR"; then
2308 cat >>confdefs.h
<<_ACEOF
2309 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2316 ZFS_META_LT_CURRENT
=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`;
2317 ZFS_META_LT_REVISION
=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`;
2318 ZFS_META_LT_AGE
=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`;
2319 if test -n "$ZFS_META_LT_CURRENT" \
2320 -o -n "$ZFS_META_LT_REVISION" \
2321 -o -n "$ZFS_META_LT_AGE"; then
2322 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT
="0"
2323 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION
="0"
2324 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE
="0"
2326 cat >>confdefs.h
<<_ACEOF
2327 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2331 cat >>confdefs.h
<<_ACEOF
2332 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2336 cat >>confdefs.h
<<_ACEOF
2337 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2346 { $as_echo "$as_me:$LINENO: result: $_zfs_ac_meta_type" >&5
2347 $as_echo "$_zfs_ac_meta_type" >&6; }
2351 for ac_dir
in config
"$srcdir"/config
; do
2352 if test -f "$ac_dir/install-sh"; then
2354 ac_install_sh
="$ac_aux_dir/install-sh -c"
2356 elif test -f "$ac_dir/install.sh"; then
2358 ac_install_sh
="$ac_aux_dir/install.sh -c"
2360 elif test -f "$ac_dir/shtool"; then
2362 ac_install_sh
="$ac_aux_dir/shtool install -c"
2366 if test -z "$ac_aux_dir"; then
2367 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
2368 $as_echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
2369 { (exit 1); exit 1; }; }
2372 # These three variables are undocumented and unsupported,
2373 # and are intended to be withdrawn in a future Autoconf release.
2374 # They can cause serious problems if a builder's source tree is in a directory
2375 # whose full name contains unusual characters.
2376 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2377 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2378 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2382 # Make sure we can run config.sub.
2383 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2384 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2385 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2386 { (exit 1); exit 1; }; }
2388 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2389 $as_echo_n "checking build system type... " >&6; }
2390 if test "${ac_cv_build+set}" = set; then
2391 $as_echo_n "(cached) " >&6
2393 ac_build_alias
=$build_alias
2394 test "x$ac_build_alias" = x
&&
2395 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2396 test "x$ac_build_alias" = x
&&
2397 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2398 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2399 { (exit 1); exit 1; }; }
2400 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2401 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2402 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2403 { (exit 1); exit 1; }; }
2406 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2407 $as_echo "$ac_cv_build" >&6; }
2408 case $ac_cv_build in
2410 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2411 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2412 { (exit 1); exit 1; }; };;
2415 ac_save_IFS
=$IFS; IFS
='-'
2421 # Remember, the first character of IFS is used to create $*,
2422 # except with old shells:
2425 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2428 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2429 $as_echo_n "checking host system type... " >&6; }
2430 if test "${ac_cv_host+set}" = set; then
2431 $as_echo_n "(cached) " >&6
2433 if test "x$host_alias" = x
; then
2434 ac_cv_host
=$ac_cv_build
2436 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2437 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2438 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2439 { (exit 1); exit 1; }; }
2443 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2444 $as_echo "$ac_cv_host" >&6; }
2447 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2448 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2449 { (exit 1); exit 1; }; };;
2452 ac_save_IFS
=$IFS; IFS
='-'
2458 # Remember, the first character of IFS is used to create $*,
2459 # except with old shells:
2462 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2465 { $as_echo "$as_me:$LINENO: checking target system type" >&5
2466 $as_echo_n "checking target system type... " >&6; }
2467 if test "${ac_cv_target+set}" = set; then
2468 $as_echo_n "(cached) " >&6
2470 if test "x$target_alias" = x
; then
2471 ac_cv_target
=$ac_cv_host
2473 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2474 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2475 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2476 { (exit 1); exit 1; }; }
2480 { $as_echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2481 $as_echo "$ac_cv_target" >&6; }
2482 case $ac_cv_target in
2484 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2485 $as_echo "$as_me: error: invalid value of canonical target" >&2;}
2486 { (exit 1); exit 1; }; };;
2488 target
=$ac_cv_target
2489 ac_save_IFS
=$IFS; IFS
='-'
2495 # Remember, the first character of IFS is used to create $*,
2496 # except with old shells:
2499 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2502 # The aliases save the names the user supplied, while $host etc.
2503 # will get canonicalized.
2504 test -n "$target_alias" &&
2505 test "$program_prefix$program_suffix$program_transform_name" = \
2507 program_prefix
=${target_alias}-
2509 { $as_echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2510 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2511 # Check whether --enable-maintainer-mode was given.
2512 if test "${enable_maintainer_mode+set}" = set; then
2513 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2515 USE_MAINTAINER_MODE
=no
2518 { $as_echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2519 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2520 if test $USE_MAINTAINER_MODE = yes; then
2521 MAINTAINER_MODE_TRUE
=
2522 MAINTAINER_MODE_FALSE
='#'
2524 MAINTAINER_MODE_TRUE
='#'
2525 MAINTAINER_MODE_FALSE
=
2528 MAINT
=$MAINTAINER_MODE_TRUE
2531 # Check whether --enable-silent-rules was given.
2532 if test "${enable_silent_rules+set}" = set; then
2533 enableval
=$enable_silent_rules;
2536 case $enable_silent_rules in
2537 yes) AM_DEFAULT_VERBOSITY
=0;;
2538 no
) AM_DEFAULT_VERBOSITY
=1;;
2539 *) AM_DEFAULT_VERBOSITY
=0;;
2543 am__api_version='1.11'
2545 # Find a good install program. We prefer a C program (faster),
2546 # so one script is as good as another. But avoid the broken or
2547 # incompatible versions:
2548 # SysV /etc/install, /usr/sbin/install
2549 # SunOS /usr/etc/install
2550 # IRIX /sbin/install
2552 # AmigaOS /C/install, which installs bootblocks on floppy discs
2553 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
2554 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2555 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2556 # OS/2's system install, which has a completely different semantic
2557 # ./install, which can be erroneously created by make from ./install.sh.
2558 # Reject install programs that cannot install multiple files.
2559 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2560 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2561 if test -z "$INSTALL"; then
2562 if test "${ac_cv_path_install+set}" = set; then
2563 $as_echo_n "(cached) " >&6
2565 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2569 test -z "$as_dir" && as_dir
=.
2570 # Account for people who put trailing slashes in PATH elements.
2572 .
/ | .
// |
/cC
/* | \
2573 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2574 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2577 # OSF1 and SCO ODT 3.0 have their own names for install.
2578 # Don't use installbsd from OSF since it installs stuff as root
2580 for ac_prog
in ginstall scoinst
install; do
2581 for ac_exec_ext
in '' $ac_executable_extensions; do
2582 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2583 if test $ac_prog = install &&
2584 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2585 # AIX install. It has an incompatible calling convention.
2587 elif test $ac_prog = install &&
2588 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2589 # program-specific install script used by HP pwplus--don't use.
2592 rm -rf conftest.one conftest.two conftest.dir
2593 echo one
> conftest.one
2594 echo two
> conftest.two
2596 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2597 test -s conftest.one
&& test -s conftest.two
&&
2598 test -s conftest.dir
/conftest.one
&&
2599 test -s conftest.dir
/conftest.two
2601 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2614 rm -rf conftest.one conftest.two conftest.dir
2617 if test "${ac_cv_path_install+set}" = set; then
2618 INSTALL
=$ac_cv_path_install
2620 # As a last resort, use the slow shell script. Don't cache a
2621 # value for INSTALL within a source directory, because that will
2622 # break other packages using the cache if that directory is
2623 # removed, or if the value is a relative name.
2624 INSTALL
=$ac_install_sh
2627 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2628 $as_echo "$INSTALL" >&6; }
2630 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2631 # It thinks the first close brace ends the variable substitution.
2632 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2634 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2636 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2638 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2639 $as_echo_n "checking whether build environment is sane... " >&6; }
2642 echo timestamp
> conftest.
file
2643 # Reject unsafe characters in $srcdir or the absolute working directory
2644 # name. Accept space and tab only in the latter.
2648 *[\\\"\
#\$\&\'\`$am_lf]*)
2649 { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2650 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2651 { (exit 1); exit 1; }; };;
2654 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2655 { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2656 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2657 { (exit 1); exit 1; }; };;
2660 # Do `set' in a subshell so we don't clobber the current shell's
2661 # arguments. Must try -L first in case configure is actually a
2662 # symlink; some systems play weird games with the mod time of symlinks
2663 # (eg FreeBSD returns the mod time of the symlink's containing
2666 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2667 if test "$*" = "X"; then
2669 set X
`ls -t "$srcdir/configure" conftest.file`
2672 if test "$*" != "X $srcdir/configure conftest.file" \
2673 && test "$*" != "X conftest.file $srcdir/configure"; then
2675 # If neither matched, then we have a broken ls. This can happen
2676 # if, for instance, CONFIG_SHELL is bash and it inherits a
2677 # broken ls alias from the environment. This has actually
2678 # happened. Such a system could not be considered "sane".
2679 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2680 alias in your environment" >&5
2681 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2682 alias in your environment" >&2;}
2683 { (exit 1); exit 1; }; }
2686 test "$2" = conftest.
file
2692 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2693 Check your system clock" >&5
2694 $as_echo "$as_me: error: newly created file is older than distributed files!
2695 Check your system clock" >&2;}
2696 { (exit 1); exit 1; }; }
2698 { $as_echo "$as_me:$LINENO: result: yes" >&5
2699 $as_echo "yes" >&6; }
2700 test "$program_prefix" != NONE
&&
2701 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2702 # Use a double $ so make ignores it.
2703 test "$program_suffix" != NONE
&&
2704 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2705 # Double any \ or $.
2706 # By default was `s,x,x', remove it if useless.
2707 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2708 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2710 # expand $ac_aux_dir to an absolute path
2711 am_aux_dir
=`cd $ac_aux_dir && pwd`
2713 if test x
"${MISSING+set}" != xset
; then
2716 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2718 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2721 # Use eval to expand $SHELL
2722 if eval "$MISSING --run true"; then
2723 am_missing_run
="$MISSING --run "
2726 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2727 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2730 if test x
"${install_sh}" != xset
; then
2733 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2735 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2739 # Installed binaries are usually stripped using `strip' when the user
2740 # run `make install-strip'. However `strip' might not be the right
2741 # tool to use in cross-compilation environments, therefore Automake
2742 # will honor the `STRIP' environment variable to overrule this program.
2743 if test "$cross_compiling" != no
; then
2744 if test -n "$ac_tool_prefix"; then
2745 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2746 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2747 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2748 $as_echo_n "checking for $ac_word... " >&6; }
2749 if test "${ac_cv_prog_STRIP+set}" = set; then
2750 $as_echo_n "(cached) " >&6
2752 if test -n "$STRIP"; then
2753 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2755 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2759 test -z "$as_dir" && as_dir
=.
2760 for ac_exec_ext
in '' $ac_executable_extensions; do
2761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2762 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2763 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2772 STRIP
=$ac_cv_prog_STRIP
2773 if test -n "$STRIP"; then
2774 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2775 $as_echo "$STRIP" >&6; }
2777 { $as_echo "$as_me:$LINENO: result: no" >&5
2778 $as_echo "no" >&6; }
2783 if test -z "$ac_cv_prog_STRIP"; then
2785 # Extract the first word of "strip", so it can be a program name with args.
2786 set dummy strip
; ac_word
=$2
2787 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2788 $as_echo_n "checking for $ac_word... " >&6; }
2789 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2790 $as_echo_n "(cached) " >&6
2792 if test -n "$ac_ct_STRIP"; then
2793 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2795 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2799 test -z "$as_dir" && as_dir
=.
2800 for ac_exec_ext
in '' $ac_executable_extensions; do
2801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2802 ac_cv_prog_ac_ct_STRIP
="strip"
2803 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2812 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2813 if test -n "$ac_ct_STRIP"; then
2814 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2815 $as_echo "$ac_ct_STRIP" >&6; }
2817 { $as_echo "$as_me:$LINENO: result: no" >&5
2818 $as_echo "no" >&6; }
2821 if test "x$ac_ct_STRIP" = x
; then
2824 case $cross_compiling:$ac_tool_warned in
2826 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2828 ac_tool_warned
=yes ;;
2833 STRIP
="$ac_cv_prog_STRIP"
2837 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2839 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2840 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2841 if test -z "$MKDIR_P"; then
2842 if test "${ac_cv_path_mkdir+set}" = set; then
2843 $as_echo_n "(cached) " >&6
2845 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2846 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2849 test -z "$as_dir" && as_dir
=.
2850 for ac_prog
in mkdir gmkdir
; do
2851 for ac_exec_ext
in '' $ac_executable_extensions; do
2852 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
2853 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2854 'mkdir (GNU coreutils) '* | \
2855 'mkdir (coreutils) '* | \
2856 'mkdir (fileutils) '4.1*)
2857 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2867 if test "${ac_cv_path_mkdir+set}" = set; then
2868 MKDIR_P
="$ac_cv_path_mkdir -p"
2870 # As a last resort, use the slow shell script. Don't cache a
2871 # value for MKDIR_P within a source directory, because that will
2872 # break other packages using the cache if that directory is
2873 # removed, or if the value is a relative name.
2874 test -d .
/--version && rmdir .
/--version
2875 MKDIR_P
="$ac_install_sh -d"
2878 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2879 $as_echo "$MKDIR_P" >&6; }
2883 [\\/$
]* | ?
:[\\/]*) ;;
2884 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2887 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2888 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2890 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2891 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2892 $as_echo_n "(cached) " >&6
2894 cat >conftest.
make <<\_ACEOF
2897 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2899 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2900 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2902 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2904 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2908 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2909 { $as_echo "$as_me:$LINENO: result: yes" >&5
2910 $as_echo "yes" >&6; }
2913 { $as_echo "$as_me:$LINENO: result: no" >&5
2914 $as_echo "no" >&6; }
2915 SET_MAKE
="MAKE=${MAKE-make}"
2918 rm -rf .tst
2>/dev
/null
2919 mkdir .tst
2>/dev
/null
2920 if test -d .tst
; then
2925 rmdir .tst
2>/dev
/null
2927 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2928 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2929 # is not polluted with repeated "-I."
2930 am__isrc
=' -I$(srcdir)'
2931 # test to see if srcdir already configured
2932 if test -f $srcdir/config.status
; then
2933 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2934 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2935 { (exit 1); exit 1; }; }
2939 # test whether we have cygpath
2940 if test -z "$CYGPATH_W"; then
2941 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2942 CYGPATH_W
='cygpath -w'
2949 # Define the identity of the package.
2954 cat >>confdefs.h
<<_ACEOF
2955 #define PACKAGE "$PACKAGE"
2959 cat >>confdefs.h
<<_ACEOF
2960 #define VERSION "$VERSION"
2963 # Some tools Automake needs.
2965 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2968 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2971 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2974 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2977 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2979 # We need awk for the "check" target. The system "awk" is bad on
2981 # Always define AMTAR for backward compatibility.
2983 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2985 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2991 ac_config_headers
="$ac_config_headers zfs_config.h"
2994 # Find a good install program. We prefer a C program (faster),
2995 # so one script is as good as another. But avoid the broken or
2996 # incompatible versions:
2997 # SysV /etc/install, /usr/sbin/install
2998 # SunOS /usr/etc/install
2999 # IRIX /sbin/install
3001 # AmigaOS /C/install, which installs bootblocks on floppy discs
3002 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3003 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3004 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3005 # OS/2's system install, which has a completely different semantic
3006 # ./install, which can be erroneously created by make from ./install.sh.
3007 # Reject install programs that cannot install multiple files.
3008 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3009 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3010 if test -z "$INSTALL"; then
3011 if test "${ac_cv_path_install+set}" = set; then
3012 $as_echo_n "(cached) " >&6
3014 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3018 test -z "$as_dir" && as_dir
=.
3019 # Account for people who put trailing slashes in PATH elements.
3021 .
/ | .
// |
/cC
/* | \
3022 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3023 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3026 # OSF1 and SCO ODT 3.0 have their own names for install.
3027 # Don't use installbsd from OSF since it installs stuff as root
3029 for ac_prog
in ginstall scoinst
install; do
3030 for ac_exec_ext
in '' $ac_executable_extensions; do
3031 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3032 if test $ac_prog = install &&
3033 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3034 # AIX install. It has an incompatible calling convention.
3036 elif test $ac_prog = install &&
3037 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3038 # program-specific install script used by HP pwplus--don't use.
3041 rm -rf conftest.one conftest.two conftest.dir
3042 echo one
> conftest.one
3043 echo two
> conftest.two
3045 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
3046 test -s conftest.one
&& test -s conftest.two
&&
3047 test -s conftest.dir
/conftest.one
&&
3048 test -s conftest.dir
/conftest.two
3050 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3063 rm -rf conftest.one conftest.two conftest.dir
3066 if test "${ac_cv_path_install+set}" = set; then
3067 INSTALL
=$ac_cv_path_install
3069 # As a last resort, use the slow shell script. Don't cache a
3070 # value for INSTALL within a source directory, because that will
3071 # break other packages using the cache if that directory is
3072 # removed, or if the value is a relative name.
3073 INSTALL
=$ac_install_sh
3076 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
3077 $as_echo "$INSTALL" >&6; }
3079 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3080 # It thinks the first close brace ends the variable substitution.
3081 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3083 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3085 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3088 ac_cpp
='$CPP $CPPFLAGS'
3089 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3090 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3091 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3092 if test -n "$ac_tool_prefix"; then
3093 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3094 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3095 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3096 $as_echo_n "checking for $ac_word... " >&6; }
3097 if test "${ac_cv_prog_CC+set}" = set; then
3098 $as_echo_n "(cached) " >&6
3100 if test -n "$CC"; then
3101 ac_cv_prog_CC
="$CC" # Let the user override the test.
3103 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3107 test -z "$as_dir" && as_dir
=.
3108 for ac_exec_ext
in '' $ac_executable_extensions; do
3109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3110 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3111 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 if test -n "$CC"; then
3122 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3123 $as_echo "$CC" >&6; }
3125 { $as_echo "$as_me:$LINENO: result: no" >&5
3126 $as_echo "no" >&6; }
3131 if test -z "$ac_cv_prog_CC"; then
3133 # Extract the first word of "gcc", so it can be a program name with args.
3134 set dummy gcc
; ac_word
=$2
3135 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3136 $as_echo_n "checking for $ac_word... " >&6; }
3137 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3138 $as_echo_n "(cached) " >&6
3140 if test -n "$ac_ct_CC"; then
3141 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3143 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3147 test -z "$as_dir" && as_dir
=.
3148 for ac_exec_ext
in '' $ac_executable_extensions; do
3149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3150 ac_cv_prog_ac_ct_CC
="gcc"
3151 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3160 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3161 if test -n "$ac_ct_CC"; then
3162 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3163 $as_echo "$ac_ct_CC" >&6; }
3165 { $as_echo "$as_me:$LINENO: result: no" >&5
3166 $as_echo "no" >&6; }
3169 if test "x$ac_ct_CC" = x
; then
3172 case $cross_compiling:$ac_tool_warned in
3174 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3176 ac_tool_warned
=yes ;;
3184 if test -z "$CC"; then
3185 if test -n "$ac_tool_prefix"; then
3186 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3187 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3188 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3189 $as_echo_n "checking for $ac_word... " >&6; }
3190 if test "${ac_cv_prog_CC+set}" = set; then
3191 $as_echo_n "(cached) " >&6
3193 if test -n "$CC"; then
3194 ac_cv_prog_CC
="$CC" # Let the user override the test.
3196 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3200 test -z "$as_dir" && as_dir
=.
3201 for ac_exec_ext
in '' $ac_executable_extensions; do
3202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3203 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3204 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3214 if test -n "$CC"; then
3215 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3216 $as_echo "$CC" >&6; }
3218 { $as_echo "$as_me:$LINENO: result: no" >&5
3219 $as_echo "no" >&6; }
3225 if test -z "$CC"; then
3226 # Extract the first word of "cc", so it can be a program name with args.
3227 set dummy cc
; ac_word
=$2
3228 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3229 $as_echo_n "checking for $ac_word... " >&6; }
3230 if test "${ac_cv_prog_CC+set}" = set; then
3231 $as_echo_n "(cached) " >&6
3233 if test -n "$CC"; then
3234 ac_cv_prog_CC
="$CC" # Let the user override the test.
3237 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3241 test -z "$as_dir" && as_dir
=.
3242 for ac_exec_ext
in '' $ac_executable_extensions; do
3243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3244 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3245 ac_prog_rejected
=yes
3249 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3256 if test $ac_prog_rejected = yes; then
3257 # We found a bogon in the path, so make sure we never use it.
3258 set dummy
$ac_cv_prog_CC
3260 if test $# != 0; then
3261 # We chose a different compiler from the bogus one.
3262 # However, it has the same basename, so the bogon will be chosen
3263 # first if we set CC to just the basename; use the full file name.
3265 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3271 if test -n "$CC"; then
3272 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3273 $as_echo "$CC" >&6; }
3275 { $as_echo "$as_me:$LINENO: result: no" >&5
3276 $as_echo "no" >&6; }
3281 if test -z "$CC"; then
3282 if test -n "$ac_tool_prefix"; then
3283 for ac_prog
in cl.exe
3285 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3286 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3287 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3288 $as_echo_n "checking for $ac_word... " >&6; }
3289 if test "${ac_cv_prog_CC+set}" = set; then
3290 $as_echo_n "(cached) " >&6
3292 if test -n "$CC"; then
3293 ac_cv_prog_CC
="$CC" # Let the user override the test.
3295 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3299 test -z "$as_dir" && as_dir
=.
3300 for ac_exec_ext
in '' $ac_executable_extensions; do
3301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3302 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3303 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3313 if test -n "$CC"; then
3314 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3315 $as_echo "$CC" >&6; }
3317 { $as_echo "$as_me:$LINENO: result: no" >&5
3318 $as_echo "no" >&6; }
3322 test -n "$CC" && break
3325 if test -z "$CC"; then
3327 for ac_prog
in cl.exe
3329 # Extract the first word of "$ac_prog", so it can be a program name with args.
3330 set dummy
$ac_prog; ac_word
=$2
3331 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3332 $as_echo_n "checking for $ac_word... " >&6; }
3333 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3334 $as_echo_n "(cached) " >&6
3336 if test -n "$ac_ct_CC"; then
3337 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3339 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3343 test -z "$as_dir" && as_dir
=.
3344 for ac_exec_ext
in '' $ac_executable_extensions; do
3345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3346 ac_cv_prog_ac_ct_CC
="$ac_prog"
3347 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3356 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3357 if test -n "$ac_ct_CC"; then
3358 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3359 $as_echo "$ac_ct_CC" >&6; }
3361 { $as_echo "$as_me:$LINENO: result: no" >&5
3362 $as_echo "no" >&6; }
3366 test -n "$ac_ct_CC" && break
3369 if test "x$ac_ct_CC" = x
; then
3372 case $cross_compiling:$ac_tool_warned in
3374 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3376 ac_tool_warned
=yes ;;
3385 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3387 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3388 See \`config.log' for more details." >&5
3389 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3390 See \`config.log' for more details." >&2;}
3391 { (exit 1); exit 1; }; }; }
3393 # Provide some information about the compiler.
3394 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3397 { (ac_try
="$ac_compiler --version >&5"
3399 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3400 *) ac_try_echo=$ac_try;;
3402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3403 $as_echo "$ac_try_echo") >&5
3404 (eval "$ac_compiler --version >&5") 2>&5
3406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); }
3408 { (ac_try="$ac_compiler -v >&5"
3410 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3411 *) ac_try_echo
=$ac_try;;
3413 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3414 $as_echo "$ac_try_echo") >&5
3415 (eval "$ac_compiler -v >&5") 2>&5
3417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418 (exit $ac_status); }
3419 { (ac_try
="$ac_compiler -V >&5"
3421 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3422 *) ac_try_echo=$ac_try;;
3424 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3425 $as_echo "$ac_try_echo") >&5
3426 (eval "$ac_compiler -V >&5") 2>&5
3428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3429 (exit $ac_status); }
3431 cat >conftest.$ac_ext <<_ACEOF
3434 cat confdefs.h >>conftest.$ac_ext
3435 cat >>conftest.$ac_ext <<_ACEOF
3436 /* end confdefs.h. */
3446 ac_clean_files_save=$ac_clean_files
3447 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3448 # Try to create an executable without -o first, disregard a.out.
3449 # It will help us diagnose broken compilers, and finding out an intuition
3451 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3452 $as_echo_n "checking for C compiler default output file name... " >&6; }
3453 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3455 # The possible output files:
3456 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3459 for ac_file in $ac_files
3462 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3463 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3468 if { (ac_try="$ac_link_default"
3470 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3471 *) ac_try_echo
=$ac_try;;
3473 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3474 $as_echo "$ac_try_echo") >&5
3475 (eval "$ac_link_default") 2>&5
3477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }; then
3479 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3480 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3481 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3482 # so that the user can short-circuit this test for compilers unknown to
3484 for ac_file
in $ac_files ''
3486 test -f "$ac_file" ||
continue
3488 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3491 # We found the default executable, but exeext='' is most
3495 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3497 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3499 # We set ac_cv_exeext here because the later test for it is not
3500 # safe: cross compilers may not add the suffix if given an `-o'
3501 # argument, so we may need to know it at that point already.
3502 # Even if this section looks crufty: it has the advantage of
3509 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3515 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3516 $as_echo "$ac_file" >&6; }
3517 if test -z "$ac_file"; then
3518 $as_echo "$as_me: failed program was:" >&5
3519 sed 's/^/| /' conftest.
$ac_ext >&5
3521 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3523 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3524 See \`config.log' for more details." >&5
3525 $as_echo "$as_me: error: C compiler cannot create executables
3526 See \`config.log' for more details." >&2;}
3527 { (exit 77); exit 77; }; }; }
3530 ac_exeext
=$ac_cv_exeext
3532 # Check that the compiler produces executables we can run. If not, either
3533 # the compiler is broken, or we cross compile.
3534 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3535 $as_echo_n "checking whether the C compiler works... " >&6; }
3536 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3537 # If not cross compiling, check that we can run a simple program.
3538 if test "$cross_compiling" != yes; then
3539 if { ac_try
='./$ac_file'
3540 { (case "(($ac_try" in
3541 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3542 *) ac_try_echo=$ac_try;;
3544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3545 $as_echo "$ac_try_echo") >&5
3546 (eval "$ac_try") 2>&5
3548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3549 (exit $ac_status); }; }; then
3552 if test "$cross_compiling" = maybe; then
3555 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3557 { { $as_echo "$as_me:$LINENO: error
: cannot run C compiled programs.
3558 If you meant to cross compile
, use \
`--host'.
3559 See \`config.log
' for more details." >&5
3560 $as_echo "$as_me: error: cannot run C compiled programs.
3561 If you meant to cross compile, use \`--host'.
3562 See \
`config.log' for more details." >&2;}
3563 { (exit 1); exit 1; }; }; }
3567 { $as_echo "$as_me:$LINENO: result: yes" >&5
3568 $as_echo "yes" >&6; }
3570 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3571 ac_clean_files=$ac_clean_files_save
3572 # Check that the compiler produces executables we can run. If not, either
3573 # the compiler is broken, or we cross compile.
3574 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3575 $as_echo_n "checking whether we are cross compiling... " >&6; }
3576 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3577 $as_echo "$cross_compiling" >&6; }
3579 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3580 $as_echo_n "checking for suffix of executables... " >&6; }
3581 if { (ac_try="$ac_link"
3583 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3584 *) ac_try_echo
=$ac_try;;
3586 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
3587 $as_echo "$ac_try_echo") >&5
3588 (eval "$ac_link") 2>&5
3590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); }; then
3592 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3593 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3594 # work properly (i.e., refer to `conftest.exe'), while it won't with
3596 for ac_file
in conftest.exe conftest conftest.
*; do
3597 test -f "$ac_file" ||
continue
3599 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3600 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3606 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3608 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3609 See \`config.log' for more details." >&5
3610 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3611 See \`config.log' for more details." >&2;}
3612 { (exit 1); exit 1; }; }; }
3615 rm -f conftest
$ac_cv_exeext
3616 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3617 $as_echo "$ac_cv_exeext" >&6; }
3619 rm -f conftest.
$ac_ext
3620 EXEEXT
=$ac_cv_exeext
3622 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3623 $as_echo_n "checking for suffix of object files... " >&6; }
3624 if test "${ac_cv_objext+set}" = set; then
3625 $as_echo_n "(cached) " >&6
3627 cat >conftest.
$ac_ext <<_ACEOF
3630 cat confdefs.h
>>conftest.
$ac_ext
3631 cat >>conftest.
$ac_ext <<_ACEOF
3632 /* end confdefs.h. */
3642 rm -f conftest.o conftest.obj
3643 if { (ac_try
="$ac_compile"
3645 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3646 *) ac_try_echo=$ac_try;;
3648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3649 $as_echo "$ac_try_echo") >&5
3650 (eval "$ac_compile") 2>&5
3652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); }; then
3654 for ac_file in conftest.o conftest.obj conftest.*; do
3655 test -f "$ac_file" || continue;
3657 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3658 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3663 $as_echo "$as_me: failed program was:" >&5
3664 sed 's/^/| /' conftest.$ac_ext >&5
3666 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3668 { { $as_echo "$as_me:$LINENO: error
: cannot compute suffix of object files
: cannot compile
3669 See \
`config.log' for more details." >&5
3670 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3671 See \`config.log
' for more details." >&2;}
3672 { (exit 1); exit 1; }; }; }
3675 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3677 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3678 $as_echo "$ac_cv_objext" >&6; }
3679 OBJEXT=$ac_cv_objext
3681 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3682 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3683 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3684 $as_echo_n "(cached) " >&6
3686 cat >conftest.$ac_ext <<_ACEOF
3689 cat confdefs.h >>conftest.$ac_ext
3690 cat >>conftest.$ac_ext <<_ACEOF
3691 /* end confdefs.h. */
3704 rm -f conftest.$ac_objext
3705 if { (ac_try="$ac_compile"
3707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3708 *) ac_try_echo=$ac_try;;
3710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3711 $as_echo "$ac_try_echo") >&5
3712 (eval "$ac_compile") 2>conftest.er1
3714 grep -v '^
*+' conftest.er1 >conftest.err
3716 cat conftest.err >&5
3717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3718 (exit $ac_status); } && {
3719 test -z "$ac_c_werror_flag" ||
3720 test ! -s conftest.err
3721 } && test -s conftest.$ac_objext; then
3724 $as_echo "$as_me: failed program was:" >&5
3725 sed 's
/^
/|
/' conftest.$ac_ext >&5
3730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3731 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3734 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3735 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3736 if test $ac_compiler_gnu = yes; then
3741 ac_test_CFLAGS=${CFLAGS+set}
3742 ac_save_CFLAGS=$CFLAGS
3743 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3744 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3745 if test "${ac_cv_prog_cc_g+set}" = set; then
3746 $as_echo_n "(cached) " >&6
3748 ac_save_c_werror_flag=$ac_c_werror_flag
3749 ac_c_werror_flag=yes
3752 cat >conftest.$ac_ext <<_ACEOF
3755 cat confdefs.h >>conftest.$ac_ext
3756 cat >>conftest.$ac_ext <<_ACEOF
3757 /* end confdefs.h. */
3767 rm -f conftest.$ac_objext
3768 if { (ac_try="$ac_compile"
3770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771 *) ac_try_echo=$ac_try;;
3773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3774 $as_echo "$ac_try_echo") >&5
3775 (eval "$ac_compile") 2>conftest.er1
3777 grep -v '^
*+' conftest.er1 >conftest.err
3779 cat conftest.err >&5
3780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3781 (exit $ac_status); } && {
3782 test -z "$ac_c_werror_flag" ||
3783 test ! -s conftest.err
3784 } && test -s conftest.$ac_objext; then
3787 $as_echo "$as_me: failed program was:" >&5
3788 sed 's
/^
/|
/' conftest.$ac_ext >&5
3791 cat >conftest.$ac_ext <<_ACEOF
3794 cat confdefs.h >>conftest.$ac_ext
3795 cat >>conftest.$ac_ext <<_ACEOF
3796 /* end confdefs.h. */
3806 rm -f conftest.$ac_objext
3807 if { (ac_try="$ac_compile"
3809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810 *) ac_try_echo=$ac_try;;
3812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3813 $as_echo "$ac_try_echo") >&5
3814 (eval "$ac_compile") 2>conftest.er1
3816 grep -v '^
*+' conftest.er1 >conftest.err
3818 cat conftest.err >&5
3819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); } && {
3821 test -z "$ac_c_werror_flag" ||
3822 test ! -s conftest.err
3823 } && test -s conftest.$ac_objext; then
3826 $as_echo "$as_me: failed program was:" >&5
3827 sed 's
/^
/|
/' conftest.$ac_ext >&5
3829 ac_c_werror_flag=$ac_save_c_werror_flag
3831 cat >conftest.$ac_ext <<_ACEOF
3834 cat confdefs.h >>conftest.$ac_ext
3835 cat >>conftest.$ac_ext <<_ACEOF
3836 /* end confdefs.h. */
3846 rm -f conftest.$ac_objext
3847 if { (ac_try="$ac_compile"
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3853 $as_echo "$ac_try_echo") >&5
3854 (eval "$ac_compile") 2>conftest.er1
3856 grep -v '^
*+' conftest.er1 >conftest.err
3858 cat conftest.err >&5
3859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); } && {
3861 test -z "$ac_c_werror_flag" ||
3862 test ! -s conftest.err
3863 } && test -s conftest.$ac_objext; then
3866 $as_echo "$as_me: failed program was:" >&5
3867 sed 's
/^
/|
/' conftest.$ac_ext >&5
3872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3879 ac_c_werror_flag=$ac_save_c_werror_flag
3881 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3882 $as_echo "$ac_cv_prog_cc_g" >&6; }
3883 if test "$ac_test_CFLAGS" = set; then
3884 CFLAGS=$ac_save_CFLAGS
3885 elif test $ac_cv_prog_cc_g = yes; then
3886 if test "$GCC" = yes; then
3892 if test "$GCC" = yes; then
3898 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3899 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3900 if test "${ac_cv_prog_cc_c89+set}" = set; then
3901 $as_echo_n "(cached) " >&6
3903 ac_cv_prog_cc_c89=no
3905 cat >conftest.$ac_ext <<_ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h. */
3913 #include <sys/types.h>
3914 #include <sys/stat.h>
3915 /* Most of the following tests are stolen from RCS 5.7's src
/conf.sh.
*/
3916 struct buf
{ int x
; };
3917 FILE
* (*rcsopen
) (struct buf
*, struct stat
*, int
);
3918 static char
*e
(p
, i
)
3924 static char
*f
(char
* (*g
) (char
**, int
), char
**p
, ...
)
3929 s
= g
(p
, va_arg
(v
,int
));
3934 /* OSF
4.0 Compaq cc is some
sort of almost-ANSI by default. It has
3935 function prototypes and stuff
, but not
'\xHH' hex character constants.
3936 These don
't provoke an error unfortunately, instead are silently treated
3937 as 'x
'. The following induces an error, until -std is added to get
3938 proper ANSI mode. Curiously '\x00'!='x
' always comes out true, for an
3939 array size at least. It's necessary to
write '\x00'==0 to get something
3940 that
's true only with -std. */
3941 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3943 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3944 inside strings and character constants. */
3946 int xlc6_cc_array[FOO(a) == 'x
' ? 1 : -1];
3948 int test (int i, double x);
3949 struct s1 {int (*f) (int a);};
3950 struct s2 {int (*f) (double a);};
3951 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3957 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3962 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3963 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3965 CC="$ac_save_CC $ac_arg"
3966 rm -f conftest.$ac_objext
3967 if { (ac_try="$ac_compile"
3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3973 $as_echo "$ac_try_echo") >&5
3974 (eval "$ac_compile") 2>conftest.er1
3976 grep -v '^
*+' conftest.er1 >conftest.err
3978 cat conftest.err >&5
3979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); } && {
3981 test -z "$ac_c_werror_flag" ||
3982 test ! -s conftest.err
3983 } && test -s conftest.$ac_objext; then
3984 ac_cv_prog_cc_c89=$ac_arg
3986 $as_echo "$as_me: failed program was:" >&5
3987 sed 's
/^
/|
/' conftest.$ac_ext >&5
3992 rm -f core conftest.err conftest.$ac_objext
3993 test "x$ac_cv_prog_cc_c89" != "xno" && break
3995 rm -f conftest.$ac_ext
4000 case "x$ac_cv_prog_cc_c89" in
4002 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4003 $as_echo "none needed" >&6; } ;;
4005 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4006 $as_echo "unsupported" >&6; } ;;
4008 CC="$CC $ac_cv_prog_cc_c89"
4009 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4010 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4015 ac_cpp='$CPP $CPPFLAGS'
4016 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4017 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4018 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4019 DEPDIR="${am__leading_dot}deps"
4021 ac_config_commands="$ac_config_commands depfiles"
4024 am_make=${MAKE-make}
4025 cat > confinc << 'END
'
4027 @echo this is the am__doit target
4030 # If we don't
find an include directive
, just comment out the code.
4031 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4032 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4036 # First try GNU make style include.
4037 echo "include confinc" > confmf
4038 # Ignore all kinds of additional output from `make'.
4039 case `$am_make -s -f confmf 2> /dev/null` in #(
4040 *the\ am__doit\ target
*)
4046 # Now try BSD make style include.
4047 if test "$am__include" = "#"; then
4048 echo '.include "confinc"' > confmf
4049 case `$am_make -s -f confmf 2> /dev/null` in #(
4050 *the\ am__doit\ target
*)
4051 am__include
=.include
4059 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4060 $as_echo "$_am_result" >&6; }
4061 rm -f confinc confmf
4063 # Check whether --enable-dependency-tracking was given.
4064 if test "${enable_dependency_tracking+set}" = set; then
4065 enableval
=$enable_dependency_tracking;
4068 if test "x$enable_dependency_tracking" != xno
; then
4069 am_depcomp
="$ac_aux_dir/depcomp"
4072 if test "x$enable_dependency_tracking" != xno; then
4082 depcc
="$CC" am_compiler_list
=
4084 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4085 $as_echo_n "checking dependency style of $depcc... " >&6; }
4086 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4087 $as_echo_n "(cached) " >&6
4089 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4090 # We make a subdir and do the tests there. Otherwise we can end up
4091 # making bogus files that we don't know about and never remove. For
4092 # instance it was reported that on HP-UX the gcc test will end up
4093 # making a dummy file named `D' -- because `-MD' means `put the output
4096 # Copy depcomp to subdir because otherwise we won't find it if we're
4097 # using a relative directory.
4098 cp "$am_depcomp" conftest.dir
4100 # We will build objects and dependencies in a subdirectory because
4101 # it helps to detect inapplicable dependency modes. For instance
4102 # both Tru64's cc and ICC support -MD to output dependencies as a
4103 # side effect of compilation, but ICC will put the dependencies in
4104 # the current directory while Tru64 will put them in the object
4108 am_cv_CC_dependencies_compiler_type
=none
4109 if test "$am_compiler_list" = ""; then
4110 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4113 case " $depcc " in #(
4114 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4117 for depmode
in $am_compiler_list; do
4118 # Setup a source with many dependencies, because some compilers
4119 # like to wrap large dependency lists on column 80 (with \), and
4120 # we should not choose a depcomp mode which is confused by this.
4122 # We need to recreate these files for each test, as the compiler may
4123 # overwrite some of them when testing with obscure command lines.
4124 # This happens at least with the AIX C compiler.
4126 for i
in 1 2 3 4 5 6; do
4127 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4128 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4129 # Solaris 8's {/usr,}/bin/sh.
4130 touch sub
/conftst
$i.h
4132 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4134 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4135 # mode. It turns out that the SunPro C++ compiler does not properly
4136 # handle `-M -o', and we need to detect this. Also, some Intel
4137 # versions had trouble with output in subdirs
4138 am__obj
=sub
/conftest.
${OBJEXT-o}
4139 am__minus_obj
="-o $am__obj"
4142 # This depmode causes a compiler race in universal mode.
4143 test "$am__universal" = false ||
continue
4146 # after this tag, mechanisms are not by side-effect, so they'll
4147 # only be used when explicitly requested
4148 if test "x$enable_dependency_tracking" = xyes
; then
4154 msvisualcpp | msvcmsys
)
4155 # This compiler won't grok `-c -o', but also, the minuso test has
4156 # not run yet. These depmodes are late enough in the game, and
4157 # so weak that their functioning should not be impacted.
4158 am__obj
=conftest.
${OBJEXT-o}
4163 if depmode
=$depmode \
4164 source=sub
/conftest.c object
=$am__obj \
4165 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4166 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4167 >/dev
/null
2>conftest.err
&&
4168 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4169 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4170 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4171 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4172 # icc doesn't choke on unknown options, it will just issue warnings
4173 # or remarks (even with -Werror). So we grep stderr for any message
4174 # that says an option was ignored or not supported.
4175 # When given -MP, icc 7.0 and 7.1 complain thusly:
4176 # icc: Command line warning: ignoring option '-M'; no argument required
4177 # The diagnosis changed in icc 8.0:
4178 # icc: Command line remark: option '-MP' not supported
4179 if (grep 'ignoring option' conftest.err ||
4180 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4181 am_cv_CC_dependencies_compiler_type
=$depmode
4190 am_cv_CC_dependencies_compiler_type
=none
4194 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4195 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4196 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4199 test "x$enable_dependency_tracking" != xno \
4200 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4202 am__fastdepCC_FALSE
='#'
4204 am__fastdepCC_TRUE
='#'
4205 am__fastdepCC_FALSE
=
4211 { $as_echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4212 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4217 macro_version
='2.2.6b'
4218 macro_revision
='1.3017'
4232 ltmain
="$ac_aux_dir/ltmain.sh"
4234 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4235 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4236 if test "${ac_cv_path_SED+set}" = set; then
4237 $as_echo_n "(cached) " >&6
4239 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
4240 for ac_i
in 1 2 3 4 5 6 7; do
4241 ac_script
="$ac_script$as_nl$ac_script"
4243 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
4244 $as_unset ac_script || ac_script
=
4245 if test -z "$SED"; then
4246 ac_path_SED_found
=false
4247 # Loop through the user's path and test for each of PROGNAME-LIST
4248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4252 test -z "$as_dir" && as_dir
=.
4253 for ac_prog
in sed gsed
; do
4254 for ac_exec_ext
in '' $ac_executable_extensions; do
4255 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4256 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
4257 # Check for GNU ac_path_SED and select it if it is found.
4258 # Check for GNU $ac_path_SED
4259 case `"$ac_path_SED" --version 2>&1` in
4261 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4264 $as_echo_n 0123456789 >"conftest.in"
4267 cat "conftest.in" "conftest.in" >"conftest.tmp"
4268 mv "conftest.tmp" "conftest.in"
4269 cp "conftest.in" "conftest.nl"
4270 $as_echo '' >> "conftest.nl"
4271 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4272 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4273 ac_count
=`expr $ac_count + 1`
4274 if test $ac_count -gt ${ac_path_SED_max-0}; then
4275 # Best one so far, save it but keep looking for a better one
4276 ac_cv_path_SED
="$ac_path_SED"
4277 ac_path_SED_max
=$ac_count
4279 # 10*(2^10) chars as input seems more than enough
4280 test $ac_count -gt 10 && break
4282 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4285 $ac_path_SED_found && break 3
4290 if test -z "$ac_cv_path_SED"; then
4291 { { $as_echo "$as_me:$LINENO: error: no acceptable sed could be found in \$PATH" >&5
4292 $as_echo "$as_me: error: no acceptable sed could be found in \$PATH" >&2;}
4293 { (exit 1); exit 1; }; }
4300 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4301 $as_echo "$ac_cv_path_SED" >&6; }
4302 SED
="$ac_cv_path_SED"
4305 test -z "$SED" && SED
=sed
4306 Xsed
="$SED -e 1s/^X//"
4318 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4319 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4320 if test "${ac_cv_path_GREP+set}" = set; then
4321 $as_echo_n "(cached) " >&6
4323 if test -z "$GREP"; then
4324 ac_path_GREP_found
=false
4325 # Loop through the user's path and test for each of PROGNAME-LIST
4326 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4327 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4330 test -z "$as_dir" && as_dir
=.
4331 for ac_prog
in grep ggrep
; do
4332 for ac_exec_ext
in '' $ac_executable_extensions; do
4333 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4334 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4335 # Check for GNU ac_path_GREP and select it if it is found.
4336 # Check for GNU $ac_path_GREP
4337 case `"$ac_path_GREP" --version 2>&1` in
4339 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4342 $as_echo_n 0123456789 >"conftest.in"
4345 cat "conftest.in" "conftest.in" >"conftest.tmp"
4346 mv "conftest.tmp" "conftest.in"
4347 cp "conftest.in" "conftest.nl"
4348 $as_echo 'GREP' >> "conftest.nl"
4349 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4350 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4351 ac_count
=`expr $ac_count + 1`
4352 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4353 # Best one so far, save it but keep looking for a better one
4354 ac_cv_path_GREP
="$ac_path_GREP"
4355 ac_path_GREP_max
=$ac_count
4357 # 10*(2^10) chars as input seems more than enough
4358 test $ac_count -gt 10 && break
4360 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4363 $ac_path_GREP_found && break 3
4368 if test -z "$ac_cv_path_GREP"; then
4369 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4370 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4371 { (exit 1); exit 1; }; }
4374 ac_cv_path_GREP
=$GREP
4378 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4379 $as_echo "$ac_cv_path_GREP" >&6; }
4380 GREP
="$ac_cv_path_GREP"
4383 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4384 $as_echo_n "checking for egrep... " >&6; }
4385 if test "${ac_cv_path_EGREP+set}" = set; then
4386 $as_echo_n "(cached) " >&6
4388 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4389 then ac_cv_path_EGREP
="$GREP -E"
4391 if test -z "$EGREP"; then
4392 ac_path_EGREP_found
=false
4393 # Loop through the user's path and test for each of PROGNAME-LIST
4394 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4395 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4398 test -z "$as_dir" && as_dir
=.
4399 for ac_prog
in egrep; do
4400 for ac_exec_ext
in '' $ac_executable_extensions; do
4401 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4402 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4403 # Check for GNU ac_path_EGREP and select it if it is found.
4404 # Check for GNU $ac_path_EGREP
4405 case `"$ac_path_EGREP" --version 2>&1` in
4407 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4410 $as_echo_n 0123456789 >"conftest.in"
4413 cat "conftest.in" "conftest.in" >"conftest.tmp"
4414 mv "conftest.tmp" "conftest.in"
4415 cp "conftest.in" "conftest.nl"
4416 $as_echo 'EGREP' >> "conftest.nl"
4417 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4418 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4419 ac_count
=`expr $ac_count + 1`
4420 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4421 # Best one so far, save it but keep looking for a better one
4422 ac_cv_path_EGREP
="$ac_path_EGREP"
4423 ac_path_EGREP_max
=$ac_count
4425 # 10*(2^10) chars as input seems more than enough
4426 test $ac_count -gt 10 && break
4428 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4431 $ac_path_EGREP_found && break 3
4436 if test -z "$ac_cv_path_EGREP"; then
4437 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4438 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4439 { (exit 1); exit 1; }; }
4442 ac_cv_path_EGREP
=$EGREP
4447 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4448 $as_echo "$ac_cv_path_EGREP" >&6; }
4449 EGREP
="$ac_cv_path_EGREP"
4452 { $as_echo "$as_me:$LINENO: checking for fgrep" >&5
4453 $as_echo_n "checking for fgrep... " >&6; }
4454 if test "${ac_cv_path_FGREP+set}" = set; then
4455 $as_echo_n "(cached) " >&6
4457 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
4458 then ac_cv_path_FGREP
="$GREP -F"
4460 if test -z "$FGREP"; then
4461 ac_path_FGREP_found
=false
4462 # Loop through the user's path and test for each of PROGNAME-LIST
4463 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4464 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4467 test -z "$as_dir" && as_dir
=.
4468 for ac_prog
in fgrep
; do
4469 for ac_exec_ext
in '' $ac_executable_extensions; do
4470 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
4471 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
4472 # Check for GNU ac_path_FGREP and select it if it is found.
4473 # Check for GNU $ac_path_FGREP
4474 case `"$ac_path_FGREP" --version 2>&1` in
4476 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
4479 $as_echo_n 0123456789 >"conftest.in"
4482 cat "conftest.in" "conftest.in" >"conftest.tmp"
4483 mv "conftest.tmp" "conftest.in"
4484 cp "conftest.in" "conftest.nl"
4485 $as_echo 'FGREP' >> "conftest.nl"
4486 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4487 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4488 ac_count
=`expr $ac_count + 1`
4489 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4490 # Best one so far, save it but keep looking for a better one
4491 ac_cv_path_FGREP
="$ac_path_FGREP"
4492 ac_path_FGREP_max
=$ac_count
4494 # 10*(2^10) chars as input seems more than enough
4495 test $ac_count -gt 10 && break
4497 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4500 $ac_path_FGREP_found && break 3
4505 if test -z "$ac_cv_path_FGREP"; then
4506 { { $as_echo "$as_me:$LINENO: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4507 $as_echo "$as_me: error: no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4508 { (exit 1); exit 1; }; }
4511 ac_cv_path_FGREP
=$FGREP
4516 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4517 $as_echo "$ac_cv_path_FGREP" >&6; }
4518 FGREP
="$ac_cv_path_FGREP"
4521 test -z "$GREP" && GREP
=grep
4541 # Check whether --with-gnu-ld was given.
4542 if test "${with_gnu_ld+set}" = set; then
4543 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
4549 if test "$GCC" = yes; then
4550 # Check if gcc -print-prog-name=ld gives a path.
4551 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4552 $as_echo_n "checking for ld used by $CC... " >&6; }
4555 # gcc leaves a trailing carriage return which upsets mingw
4556 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4558 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4561 # Accept absolute paths.
4563 re_direlt
='/[^/][^/]*/\.\./'
4564 # Canonicalize the pathname of ld
4565 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4566 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
4567 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4569 test -z "$LD" && LD
="$ac_prog"
4572 # If it fails, then pretend we aren't using GCC.
4576 # If it is relative, then search for the first ld in PATH.
4580 elif test "$with_gnu_ld" = yes; then
4581 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4582 $as_echo_n "checking for GNU ld... " >&6; }
4584 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4585 $as_echo_n "checking for non-GNU ld... " >&6; }
4587 if test "${lt_cv_path_LD+set}" = set; then
4588 $as_echo_n "(cached) " >&6
4590 if test -z "$LD"; then
4591 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4592 for ac_dir
in $PATH; do
4594 test -z "$ac_dir" && ac_dir
=.
4595 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4596 lt_cv_path_LD
="$ac_dir/$ac_prog"
4597 # Check to see if the program is GNU ld. I'd rather use --version,
4598 # but apparently some variants of GNU ld only accept -v.
4599 # Break only if it was the GNU/non-GNU ld that we prefer.
4600 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4601 *GNU
* |
*'with BFD'*)
4602 test "$with_gnu_ld" != no
&& break
4605 test "$with_gnu_ld" != yes && break
4612 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
4617 if test -n "$LD"; then
4618 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4619 $as_echo "$LD" >&6; }
4621 { $as_echo "$as_me:$LINENO: result: no" >&5
4622 $as_echo "no" >&6; }
4624 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4625 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4626 { (exit 1); exit 1; }; }
4627 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4628 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4629 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4630 $as_echo_n "(cached) " >&6
4632 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4633 case `$LD -v 2>&1 </dev/null` in
4634 *GNU
* |
*'with BFD'*)
4635 lt_cv_prog_gnu_ld
=yes
4638 lt_cv_prog_gnu_ld
=no
4642 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4643 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4644 with_gnu_ld
=$lt_cv_prog_gnu_ld
4654 { $as_echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4655 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4656 if test "${lt_cv_path_NM+set}" = set; then
4657 $as_echo_n "(cached) " >&6
4659 if test -n "$NM"; then
4660 # Let the user override the test.
4663 lt_nm_to_check
="${ac_tool_prefix}nm"
4664 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4665 lt_nm_to_check
="$lt_nm_to_check nm"
4667 for lt_tmp_nm
in $lt_nm_to_check; do
4668 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4669 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
4671 test -z "$ac_dir" && ac_dir
=.
4672 tmp_nm
="$ac_dir/$lt_tmp_nm"
4673 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
4674 # Check to see if the nm accepts a BSD-compat flag.
4675 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4676 # nm: unknown option "B" ignored
4677 # Tru64's nm complains that /dev/null is an invalid object file
4678 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4679 */dev
/null
* |
*'Invalid file or object type'*)
4680 lt_cv_path_NM
="$tmp_nm -B"
4684 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4686 lt_cv_path_NM
="$tmp_nm -p"
4690 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4691 continue # so that we can try to find one that supports BSD flags
4700 : ${lt_cv_path_NM=no}
4703 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4704 $as_echo "$lt_cv_path_NM" >&6; }
4705 if test "$lt_cv_path_NM" != "no"; then
4708 # Didn't find any BSD compatible name lister, look for dumpbin.
4709 if test -n "$ac_tool_prefix"; then
4710 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
4712 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4713 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4714 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4715 $as_echo_n "checking for $ac_word... " >&6; }
4716 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4717 $as_echo_n "(cached) " >&6
4719 if test -n "$DUMPBIN"; then
4720 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
4722 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4726 test -z "$as_dir" && as_dir
=.
4727 for ac_exec_ext
in '' $ac_executable_extensions; do
4728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4729 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
4730 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4739 DUMPBIN
=$ac_cv_prog_DUMPBIN
4740 if test -n "$DUMPBIN"; then
4741 { $as_echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4742 $as_echo "$DUMPBIN" >&6; }
4744 { $as_echo "$as_me:$LINENO: result: no" >&5
4745 $as_echo "no" >&6; }
4749 test -n "$DUMPBIN" && break
4752 if test -z "$DUMPBIN"; then
4753 ac_ct_DUMPBIN
=$DUMPBIN
4754 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
4756 # Extract the first word of "$ac_prog", so it can be a program name with args.
4757 set dummy
$ac_prog; ac_word
=$2
4758 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4759 $as_echo_n "checking for $ac_word... " >&6; }
4760 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4761 $as_echo_n "(cached) " >&6
4763 if test -n "$ac_ct_DUMPBIN"; then
4764 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
4766 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4770 test -z "$as_dir" && as_dir
=.
4771 for ac_exec_ext
in '' $ac_executable_extensions; do
4772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4773 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
4774 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4783 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
4784 if test -n "$ac_ct_DUMPBIN"; then
4785 { $as_echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4786 $as_echo "$ac_ct_DUMPBIN" >&6; }
4788 { $as_echo "$as_me:$LINENO: result: no" >&5
4789 $as_echo "no" >&6; }
4793 test -n "$ac_ct_DUMPBIN" && break
4796 if test "x$ac_ct_DUMPBIN" = x
; then
4799 case $cross_compiling:$ac_tool_warned in
4801 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4803 ac_tool_warned
=yes ;;
4805 DUMPBIN
=$ac_ct_DUMPBIN
4810 if test "$DUMPBIN" != ":"; then
4814 test -z "$NM" && NM
=nm
4821 { $as_echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4822 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4823 if test "${lt_cv_nm_interface+set}" = set; then
4824 $as_echo_n "(cached) " >&6
4826 lt_cv_nm_interface
="BSD nm"
4827 echo "int some_variable = 0;" > conftest.
$ac_ext
4828 (eval echo "\"\$as_me:4828: $ac_compile\"" >&5)
4829 (eval "$ac_compile" 2>conftest.err
)
4830 cat conftest.err
>&5
4831 (eval echo "\"\$as_me:4831: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4832 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
4833 cat conftest.err
>&5
4834 (eval echo "\"\$as_me:4834: output\"" >&5)
4835 cat conftest.out
>&5
4836 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
4837 lt_cv_nm_interface
="MS dumpbin"
4841 { $as_echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4842 $as_echo "$lt_cv_nm_interface" >&6; }
4844 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4845 $as_echo_n "checking whether ln -s works... " >&6; }
4847 if test "$LN_S" = "ln -s"; then
4848 { $as_echo "$as_me:$LINENO: result: yes" >&5
4849 $as_echo "yes" >&6; }
4851 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4852 $as_echo "no, using $LN_S" >&6; }
4855 # find the maximum length of command line arguments
4856 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4857 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4858 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4859 $as_echo_n "(cached) " >&6
4866 # On DJGPP, this test can blow up pretty badly due to problems in libc
4867 # (any single argument exceeding 2000 bytes causes a buffer overrun
4868 # during glob expansion). Even if it were fixed, the result of this
4869 # check would be larger than it should be.
4870 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
4874 # Under GNU Hurd, this test is not required because there is
4875 # no limit to the length of command line arguments.
4876 # Libtool will interpret -1 as no limit whatsoever
4877 lt_cv_sys_max_cmd_len
=-1;
4880 cygwin
* | mingw
* | cegcc
*)
4881 # On Win9x/ME, this test blows up -- it succeeds, but takes
4882 # about 5 minutes as the teststring grows exponentially.
4883 # Worse, since 9x/ME are not pre-emptively multitasking,
4884 # you end up with a "frozen" computer, even though with patience
4885 # the test eventually succeeds (with a max line length of 256k).
4886 # Instead, let's just punt: use the minimum linelength reported by
4887 # all of the supported platforms: 8192 (on NT/2K/XP).
4888 lt_cv_sys_max_cmd_len
=8192;
4892 # On AmigaOS with pdksh, this test takes hours, literally.
4893 # So we just punt and use a minimum line length of 8192.
4894 lt_cv_sys_max_cmd_len
=8192;
4897 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
4898 # This has been around since 386BSD, at least. Likely further.
4899 if test -x /sbin
/sysctl
; then
4900 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
4901 elif test -x /usr
/sbin
/sysctl
; then
4902 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
4904 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
4906 # And add a safety zone
4907 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4908 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4912 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4913 lt_cv_sys_max_cmd_len
=196608
4917 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4918 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4919 # nice to cause kernel panics so lets avoid the loop below.
4920 # First set a reasonable default.
4921 lt_cv_sys_max_cmd_len
=16384
4923 if test -x /sbin
/sysconfig
; then
4924 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4925 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
4930 lt_cv_sys_max_cmd_len
=102400
4932 sysv5
* | sco5v6
* | sysv4.2uw2
*)
4933 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4934 if test -n "$kargmax"; then
4935 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
4937 lt_cv_sys_max_cmd_len
=32768
4941 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
4942 if test -n "$lt_cv_sys_max_cmd_len"; then
4943 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4944 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4946 # Make teststring a little bigger before we do anything with it.
4947 # a 1K string should be a reasonable start.
4948 for i
in 1 2 3 4 5 6 7 8 ; do
4949 teststring
=$teststring$teststring
4951 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
4952 # If test is not a shell built-in, we'll probably end up computing a
4953 # maximum length that is only half of the actual maximum length, but
4955 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4956 = "XX$teststring$teststring"; } >/dev
/null
2>&1 &&
4957 test $i != 17 # 1/2 MB should be enough
4960 teststring
=$teststring$teststring
4962 # Only check the string length outside the loop.
4963 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
4965 # Add a significant safety factor because C++ compilers can tack on
4966 # massive amounts of additional arguments before passing them to the
4967 # linker. It appears as though 1/2 is a usable value.
4968 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
4975 if test -n $lt_cv_sys_max_cmd_len ; then
4976 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4977 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4979 { $as_echo "$as_me:$LINENO: result: none" >&5
4980 $as_echo "none" >&6; }
4982 max_cmd_len
=$lt_cv_sys_max_cmd_len
4993 { $as_echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
4994 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4995 # Try some XSI features
4998 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5000 && eval 'test $(( 1 + 1 )) -eq 2 \
5001 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5003 { $as_echo "$as_me:$LINENO: result
: $xsi_shell" >&5
5004 $as_echo "$xsi_shell" >&6; }
5007 { $as_echo "$as_me:$LINENO: checking whether the shell understands
\"+=\"" >&5
5008 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
5010 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
5012 && lt_shell_append=yes
5013 { $as_echo "$as_me:$LINENO: result
: $lt_shell_append" >&5
5014 $as_echo "$lt_shell_append" >&6; }
5017 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5027 # test EBCDIC or ASCII
5028 case `echo X|tr X '\101'` in
5029 A) # ASCII based system
5030 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5031 lt_SP2NL='tr \040 \012'
5032 lt_NL2SP='tr \015\012 \040\040'
5034 *) # EBCDIC based system
5035 lt_SP2NL='tr \100 \n'
5036 lt_NL2SP='tr \r\n \100\100'
5048 { $as_echo "$as_me:$LINENO: checking
for $LD option to reload object files
" >&5
5049 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5050 if test "${lt_cv_ld_reload_flag+set}" = set; then
5051 $as_echo_n "(cached
) " >&6
5053 lt_cv_ld_reload_flag='-r'
5055 { $as_echo "$as_me:$LINENO: result
: $lt_cv_ld_reload_flag" >&5
5056 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5057 reload_flag=$lt_cv_ld_reload_flag
5058 case $reload_flag in
5060 *) reload_flag=" $reload_flag" ;;
5062 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5065 if test "$GCC" = yes; then
5066 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5068 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5081 if test -n "$ac_tool_prefix"; then
5082 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5083 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5084 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5085 $as_echo_n "checking
for $ac_word...
" >&6; }
5086 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
5087 $as_echo_n "(cached
) " >&6
5089 if test -n "$OBJDUMP"; then
5090 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5096 test -z "$as_dir" && as_dir=.
5097 for ac_exec_ext in '' $ac_executable_extensions; do
5098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5099 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5100 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5109 OBJDUMP=$ac_cv_prog_OBJDUMP
5110 if test -n "$OBJDUMP"; then
5111 { $as_echo "$as_me:$LINENO: result
: $OBJDUMP" >&5
5112 $as_echo "$OBJDUMP" >&6; }
5114 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5115 $as_echo "no
" >&6; }
5120 if test -z "$ac_cv_prog_OBJDUMP"; then
5121 ac_ct_OBJDUMP=$OBJDUMP
5122 # Extract the first word of "objdump
", so it can be a program name with args.
5123 set dummy objdump; ac_word=$2
5124 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5125 $as_echo_n "checking
for $ac_word...
" >&6; }
5126 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
5127 $as_echo_n "(cached
) " >&6
5129 if test -n "$ac_ct_OBJDUMP"; then
5130 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 test -z "$as_dir" && as_dir=.
5137 for ac_exec_ext in '' $ac_executable_extensions; do
5138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5139 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5140 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5149 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5150 if test -n "$ac_ct_OBJDUMP"; then
5151 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OBJDUMP" >&5
5152 $as_echo "$ac_ct_OBJDUMP" >&6; }
5154 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5155 $as_echo "no
" >&6; }
5158 if test "x
$ac_ct_OBJDUMP" = x; then
5161 case $cross_compiling:$ac_tool_warned in
5163 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5164 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5165 ac_tool_warned=yes ;;
5167 OBJDUMP=$ac_ct_OBJDUMP
5170 OBJDUMP="$ac_cv_prog_OBJDUMP"
5173 test -z "$OBJDUMP" && OBJDUMP=objdump
5183 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries
" >&5
5184 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5185 if test "${lt_cv_deplibs_check_method+set}" = set; then
5186 $as_echo_n "(cached
) " >&6
5188 lt_cv_file_magic_cmd='$MAGIC_CMD'
5189 lt_cv_file_magic_test_file=
5190 lt_cv_deplibs_check_method='unknown'
5191 # Need to set the preceding variable on all platforms that support
5192 # interlibrary dependencies.
5193 # 'none' -- dependencies not supported.
5194 # `unknown' -- same as none, but documents that we really don't know.
5195 # 'pass_all' -- all dependencies passed with no checks.
5196 # 'test_compile' -- check by making test program.
5197 # 'file_magic [[regex]]' -- check by looking for files in library path
5198 # which responds to the $file_magic_cmd with a given extended regex.
5199 # If you have `file' or equivalent on your system and you're not sure
5200 # whether `pass_all' will *always* work, you probably want this one.
5204 lt_cv_deplibs_check_method=pass_all
5208 lt_cv_deplibs_check_method=pass_all
5212 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5213 lt_cv_file_magic_cmd='/usr/bin/file -L'
5214 lt_cv_file_magic_test_file=/shlib/libc.so
5218 # func_win32_libid is a shell function defined in ltmain.sh
5219 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5220 lt_cv_file_magic_cmd='func_win32_libid'
5224 # Base MSYS/MinGW do not provide the 'file' command needed by
5225 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5226 # unless we find 'file', for example because we are cross-compiling.
5227 if ( file / ) >/dev/null 2>&1; then
5228 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5229 lt_cv_file_magic_cmd='func_win32_libid'
5231 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5232 lt_cv_file_magic_cmd='$OBJDUMP -f'
5237 # use the weaker test based on 'objdump'. See mingw*.
5238 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5239 lt_cv_file_magic_cmd='$OBJDUMP -f'
5242 darwin* | rhapsody*)
5243 lt_cv_deplibs_check_method=pass_all
5246 freebsd* | dragonfly*)
5247 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5250 # Not sure whether the presence of OpenBSD here was a mistake.
5251 # Let's accept both of them until this is cleared up.
5252 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5253 lt_cv_file_magic_cmd=/usr/bin/file
5254 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5258 lt_cv_deplibs_check_method=pass_all
5263 lt_cv_deplibs_check_method=pass_all
5266 hpux10.20* | hpux11*)
5267 lt_cv_file_magic_cmd=/usr/bin/file
5270 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5271 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5274 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]'
5275 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5278 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5279 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5285 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5286 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5289 irix5* | irix6* | nonstopux*)
5291 *-32|*"-32 ") libmagic=32-bit;;
5292 *-n32|*"-n32 ") libmagic=N32;;
5293 *-64|*"-64 ") libmagic=64-bit;;
5294 *) libmagic=never-match;;
5296 lt_cv_deplibs_check_method=pass_all
5299 # This must be Linux ELF.
5300 linux* | k*bsd*-gnu)
5301 lt_cv_deplibs_check_method=pass_all
5305 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5306 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5308 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5313 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5314 lt_cv_file_magic_cmd=/usr/bin/file
5315 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5319 lt_cv_deplibs_check_method=pass_all
5323 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
5324 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5326 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5330 osf3* | osf4* | osf5*)
5331 lt_cv_deplibs_check_method=pass_all
5335 lt_cv_deplibs_check_method=pass_all
5339 lt_cv_deplibs_check_method=pass_all
5342 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5343 lt_cv_deplibs_check_method=pass_all
5347 case $host_vendor in
5349 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]'
5350 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5353 lt_cv_deplibs_check_method=pass_all
5356 lt_cv_file_magic_cmd='/bin/file'
5357 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5360 lt_cv_file_magic_cmd='/bin/file'
5361 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5362 lt_cv_file_magic_test_file=/lib/libc.so
5365 lt_cv_deplibs_check_method=pass_all
5368 lt_cv_deplibs_check_method=pass_all
5374 lt_cv_deplibs_check_method=pass_all
5379 { $as_echo "$as_me:$LINENO: result
: $lt_cv_deplibs_check_method" >&5
5380 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5381 file_magic_cmd=$lt_cv_file_magic_cmd
5382 deplibs_check_method=$lt_cv_deplibs_check_method
5383 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5396 if test -n "$ac_tool_prefix"; then
5397 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5398 set dummy ${ac_tool_prefix}ar; ac_word=$2
5399 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5400 $as_echo_n "checking
for $ac_word...
" >&6; }
5401 if test "${ac_cv_prog_AR+set}" = set; then
5402 $as_echo_n "(cached
) " >&6
5404 if test -n "$AR"; then
5405 ac_cv_prog_AR="$AR" # Let the user override the test.
5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411 test -z "$as_dir" && as_dir=.
5412 for ac_exec_ext in '' $ac_executable_extensions; do
5413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5414 ac_cv_prog_AR="${ac_tool_prefix}ar"
5415 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5425 if test -n "$AR"; then
5426 { $as_echo "$as_me:$LINENO: result
: $AR" >&5
5427 $as_echo "$AR" >&6; }
5429 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5430 $as_echo "no
" >&6; }
5435 if test -z "$ac_cv_prog_AR"; then
5437 # Extract the first word of "ar", so it can be a program name with args.
5438 set dummy ar; ac_word=$2
5439 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5440 $as_echo_n "checking
for $ac_word...
" >&6; }
5441 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5442 $as_echo_n "(cached
) " >&6
5444 if test -n "$ac_ct_AR"; then
5445 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451 test -z "$as_dir" && as_dir=.
5452 for ac_exec_ext in '' $ac_executable_extensions; do
5453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5454 ac_cv_prog_ac_ct_AR="ar"
5455 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5464 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5465 if test -n "$ac_ct_AR"; then
5466 { $as_echo "$as_me:$LINENO: result
: $ac_ct_AR" >&5
5467 $as_echo "$ac_ct_AR" >&6; }
5469 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5470 $as_echo "no
" >&6; }
5473 if test "x
$ac_ct_AR" = x; then
5476 case $cross_compiling:$ac_tool_warned in
5478 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5479 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5480 ac_tool_warned=yes ;;
5488 test -z "$AR" && AR=ar
5489 test -z "$AR_FLAGS" && AR_FLAGS=cru
5501 if test -n "$ac_tool_prefix"; then
5502 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
5503 set dummy ${ac_tool_prefix}strip; ac_word=$2
5504 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5505 $as_echo_n "checking
for $ac_word...
" >&6; }
5506 if test "${ac_cv_prog_STRIP+set}" = set; then
5507 $as_echo_n "(cached
) " >&6
5509 if test -n "$STRIP"; then
5510 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516 test -z "$as_dir" && as_dir=.
5517 for ac_exec_ext in '' $ac_executable_extensions; do
5518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5519 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
5520 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5529 STRIP=$ac_cv_prog_STRIP
5530 if test -n "$STRIP"; then
5531 { $as_echo "$as_me:$LINENO: result
: $STRIP" >&5
5532 $as_echo "$STRIP" >&6; }
5534 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5535 $as_echo "no
" >&6; }
5540 if test -z "$ac_cv_prog_STRIP"; then
5542 # Extract the first word of "strip
", so it can be a program name with args.
5543 set dummy strip; ac_word=$2
5544 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5545 $as_echo_n "checking
for $ac_word...
" >&6; }
5546 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5547 $as_echo_n "(cached
) " >&6
5549 if test -n "$ac_ct_STRIP"; then
5550 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5556 test -z "$as_dir" && as_dir=.
5557 for ac_exec_ext in '' $ac_executable_extensions; do
5558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5559 ac_cv_prog_ac_ct_STRIP="strip
"
5560 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5569 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5570 if test -n "$ac_ct_STRIP"; then
5571 { $as_echo "$as_me:$LINENO: result
: $ac_ct_STRIP" >&5
5572 $as_echo "$ac_ct_STRIP" >&6; }
5574 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5575 $as_echo "no
" >&6; }
5578 if test "x
$ac_ct_STRIP" = x; then
5581 case $cross_compiling:$ac_tool_warned in
5583 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5584 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5585 ac_tool_warned=yes ;;
5590 STRIP="$ac_cv_prog_STRIP"
5593 test -z "$STRIP" && STRIP=:
5600 if test -n "$ac_tool_prefix"; then
5601 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
5602 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5603 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5604 $as_echo_n "checking
for $ac_word...
" >&6; }
5605 if test "${ac_cv_prog_RANLIB+set}" = set; then
5606 $as_echo_n "(cached
) " >&6
5608 if test -n "$RANLIB"; then
5609 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615 test -z "$as_dir" && as_dir=.
5616 for ac_exec_ext in '' $ac_executable_extensions; do
5617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5618 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
5619 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5628 RANLIB=$ac_cv_prog_RANLIB
5629 if test -n "$RANLIB"; then
5630 { $as_echo "$as_me:$LINENO: result
: $RANLIB" >&5
5631 $as_echo "$RANLIB" >&6; }
5633 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5634 $as_echo "no
" >&6; }
5639 if test -z "$ac_cv_prog_RANLIB"; then
5640 ac_ct_RANLIB=$RANLIB
5641 # Extract the first word of "ranlib
", so it can be a program name with args.
5642 set dummy ranlib; ac_word=$2
5643 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
5644 $as_echo_n "checking
for $ac_word...
" >&6; }
5645 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5646 $as_echo_n "(cached
) " >&6
5648 if test -n "$ac_ct_RANLIB"; then
5649 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5655 test -z "$as_dir" && as_dir=.
5656 for ac_exec_ext in '' $ac_executable_extensions; do
5657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5658 ac_cv_prog_ac_ct_RANLIB="ranlib
"
5659 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
5668 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5669 if test -n "$ac_ct_RANLIB"; then
5670 { $as_echo "$as_me:$LINENO: result
: $ac_ct_RANLIB" >&5
5671 $as_echo "$ac_ct_RANLIB" >&6; }
5673 { $as_echo "$as_me:$LINENO: result
: no
" >&5
5674 $as_echo "no
" >&6; }
5677 if test "x
$ac_ct_RANLIB" = x; then
5680 case $cross_compiling:$ac_tool_warned in
5682 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5683 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5684 ac_tool_warned=yes ;;
5686 RANLIB=$ac_ct_RANLIB
5689 RANLIB="$ac_cv_prog_RANLIB"
5692 test -z "$RANLIB" && RANLIB=:
5699 # Determine commands to create old-style static archives.
5700 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5701 old_postinstall_cmds='chmod 644 $oldlib'
5702 old_postuninstall_cmds=
5704 if test -n "$RANLIB"; then
5707 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
5710 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
5713 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
5749 # If no C compiler was specified, use CC.
5752 # If no C compiler flags were specified, use CFLAGS.
5753 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5755 # Allow CC to be a program name with arguments.
5759 # Check for command to grab the raw symbol name followed by C symbol from nm.
5760 { $as_echo "$as_me:$LINENO: checking
command to parse
$NM output from
$compiler object
" >&5
5761 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
5762 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5763 $as_echo_n "(cached
) " >&6
5766 # These are sane defaults that work on at least a few old systems.
5767 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5769 # Character class describing NM global symbol codes.
5770 symcode='[BCDEGRST]'
5772 # Regexp to match symbols that can be accessed directly from C.
5773 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5775 # Define system-specific variables.
5780 cygwin* | mingw* | pw32* | cegcc*)
5781 symcode='[ABCDGISTW]'
5784 if test "$host_cpu" = ia64; then
5785 symcode='[ABCDEGRST]'
5789 symcode='[BCDEGRST]'
5792 symcode='[BCDEGQRST]'
5803 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5811 # If we're using GNU nm, then use its standard symbol codes.
5812 case `$NM -V 2>&1` in
5813 *GNU* | *'with BFD'*)
5814 symcode='[ABCDGIRSTW]' ;;
5817 # Transform an extracted symbol line into a proper C declaration.
5818 # Some systems (esp. on ia64) link data and code symbols differently,
5819 # so use this general approach.
5820 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5822 # Transform an extracted symbol line into symbol name and symbol address
5823 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5824 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'"
5826 # Handle CRLF in mingw tool chain
5830 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5834 # Try without a prefix underscore, then with it.
5835 for ac_symprfx in "" "_
"; do
5837 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5838 symxfrm="\\1 $ac_symprfx\\2 \\2"
5840 # Write the raw and C identifiers.
5841 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
5842 # Fake it for dumpbin and say T for any non-static function
5843 # and D for any global variable.
5844 # Also find C++ and __fastcall symbols from MSVC++,
5845 # which start with @ or ?.
5846 lt_cv_sys_global_symbol_pipe="$AWK '"\
5847 " {last_section=section; section=\$ 3};"\
5848 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5849 " \$ 0!~/External *\|/{next};"\
5850 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5851 " {if(hide[section]) next};"\
5852 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5853 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5854 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5855 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5856 " ' prfx
=^
$ac_symprfx"
5858 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5861 # Check to see that the pipe works correctly.
5865 cat > conftest.$ac_ext <<_LT_EOF
5870 void nm_test_func(void);
5871 void nm_test_func(void){}
5875 int main(){nm_test_var='a';nm_test_func();return(0);}
5878 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5879 (eval $ac_compile) 2>&5
5881 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5882 (exit $ac_status); }; then
5883 # Now try to grab the symbols.
5885 if { (eval echo "$as_me:$LINENO: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\"") >&5
5886 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5888 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5889 (exit $ac_status); } && test -s "$nlist"; then
5890 # Try sorting and uniquifying the output.
5891 if sort "$nlist" | uniq > "$nlist"T; then
5892 mv -f "$nlist"T "$nlist"
5897 # Make sure that we snagged all the symbols we need.
5898 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5899 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5900 cat <<_LT_EOF > conftest.$ac_ext
5906 # Now generate the symbol file.
5907 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5909 cat <<_LT_EOF >> conftest.$ac_ext
5911 /* The mapping between symbol names and symbols. */
5916 lt__PROGRAM__LTX_preloaded_symbols[] =
5918 { "@PROGRAM@
", (void *) 0 },
5920 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5921 cat <<\_LT_EOF >> conftest.$ac_ext
5925 /* This works around a problem in FreeBSD linker */
5926 #ifdef FREEBSD_WORKAROUND
5927 static const void *lt_preloaded_setup() {
5928 return lt__PROGRAM__LTX_preloaded_symbols;
5936 # Now try linking the two files.
5937 mv conftest.$ac_objext conftstm.$ac_objext
5938 lt_save_LIBS="$LIBS"
5939 lt_save_CFLAGS="$CFLAGS"
5940 LIBS="conftstm.
$ac_objext"
5941 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5942 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5943 (eval $ac_link) 2>&5
5945 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
5946 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5949 LIBS="$lt_save_LIBS"
5950 CFLAGS="$lt_save_CFLAGS"
5952 echo "cannot
find nm_test_func
in $nlist" >&5
5955 echo "cannot
find nm_test_var
in $nlist" >&5
5958 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
5961 echo "$progname: failed program was
:" >&5
5962 cat conftest.$ac_ext >&5
5964 rm -rf conftest* conftst*
5966 # Do not use the global_symbol_pipe unless it works.
5967 if test "$pipe_works" = yes; then
5970 lt_cv_sys_global_symbol_pipe=
5976 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5977 lt_cv_sys_global_symbol_to_cdecl=
5979 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5980 { $as_echo "$as_me:$LINENO: result
: failed
" >&5
5981 $as_echo "failed
" >&6; }
5983 { $as_echo "$as_me:$LINENO: result
: ok
" >&5
5984 $as_echo "ok
" >&6; }
6009 # Check whether --enable-libtool-lock was given.
6010 if test "${enable_libtool_lock+set}" = set; then
6011 enableval=$enable_libtool_lock;
6014 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
6016 # Some flags need to be propagated to the compiler or linker for good
6020 # Find out which ABI we are using.
6021 echo 'int i;' > conftest.$ac_ext
6022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6023 (eval $ac_compile) 2>&5
6025 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6026 (exit $ac_status); }; then
6027 case `/usr/bin/file conftest.$ac_objext` in
6039 # Find out which ABI we are using.
6040 echo '#line 6040 "configure
"' > conftest.$ac_ext
6041 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6042 (eval $ac_compile) 2>&5
6044 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6045 (exit $ac_status); }; then
6046 if test "$lt_cv_prog_gnu_ld" = yes; then
6047 case `/usr/bin/file conftest.$ac_objext` in
6049 LD="${LD-ld} -melf32bsmip"
6052 LD="${LD-ld} -melf32bmipn32"
6055 LD="${LD-ld} -melf64bmip"
6059 case `/usr/bin/file conftest.$ac_objext` in
6075 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6076 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6077 # Find out which ABI we are using.
6078 echo 'int i;' > conftest.$ac_ext
6079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6080 (eval $ac_compile) 2>&5
6082 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6083 (exit $ac_status); }; then
6084 case `/usr/bin/file conftest.o` in
6087 x86_64-*kfreebsd*-gnu)
6088 LD="${LD-ld} -m elf_i386_fbsd
"
6091 LD="${LD-ld} -m elf_i386
"
6093 ppc64-*linux*|powerpc64-*linux*)
6094 LD="${LD-ld} -m elf32ppclinux
"
6097 LD="${LD-ld} -m elf_s390
"
6100 LD="${LD-ld} -m elf32_sparc
"
6106 x86_64-*kfreebsd*-gnu)
6107 LD="${LD-ld} -m elf_x86_64_fbsd
"
6110 LD="${LD-ld} -m elf_x86_64
"
6112 ppc*-*linux*|powerpc*-*linux*)
6113 LD="${LD-ld} -m elf64ppc
"
6115 s390*-*linux*|s390*-*tpf*)
6116 LD="${LD-ld} -m elf64_s390
"
6119 LD="${LD-ld} -m elf64_sparc
"
6129 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6130 SAVE_CFLAGS="$CFLAGS"
6131 CFLAGS="$CFLAGS -belf"
6132 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs
-belf" >&5
6133 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6134 if test "${lt_cv_cc_needs_belf+set}" = set; then
6135 $as_echo_n "(cached
) " >&6
6138 ac_cpp='$CPP $CPPFLAGS'
6139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6143 cat >conftest.$ac_ext <<_ACEOF
6146 cat confdefs.h >>conftest.$ac_ext
6147 cat >>conftest.$ac_ext <<_ACEOF
6148 /* end confdefs.h. */
6158 rm -f conftest.$ac_objext conftest$ac_exeext
6159 if { (ac_try="$ac_link"
6161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6162 *) ac_try_echo=$ac_try;;
6164 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6165 $as_echo "$ac_try_echo") >&5
6166 (eval "$ac_link") 2>conftest.er1
6168 grep -v '^ *+' conftest.er1 >conftest.err
6170 cat conftest.err >&5
6171 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6172 (exit $ac_status); } && {
6173 test -z "$ac_c_werror_flag" ||
6174 test ! -s conftest.err
6175 } && test -s conftest$ac_exeext && {
6176 test "$cross_compiling" = yes ||
6177 $as_test_x conftest$ac_exeext
6179 lt_cv_cc_needs_belf=yes
6181 $as_echo "$as_me: failed program was
:" >&5
6182 sed 's/^/| /' conftest.$ac_ext >&5
6184 lt_cv_cc_needs_belf=no
6187 rm -rf conftest.dSYM
6188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6189 conftest$ac_exeext conftest.$ac_ext
6191 ac_cpp='$CPP $CPPFLAGS'
6192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6197 { $as_echo "$as_me:$LINENO: result
: $lt_cv_cc_needs_belf" >&5
6198 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6199 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6200 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6201 CFLAGS="$SAVE_CFLAGS"
6205 # Find out which ABI we are using.
6206 echo 'int i;' > conftest.$ac_ext
6207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6208 (eval $ac_compile) 2>&5
6210 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6211 (exit $ac_status); }; then
6212 case `/usr/bin/file conftest.o` in
6214 case $lt_cv_prog_gnu_ld in
6215 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
6217 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6229 need_locks="$enable_libtool_lock"
6233 rhapsody* | darwin*)
6234 if test -n "$ac_tool_prefix"; then
6235 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
6236 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6237 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6238 $as_echo_n "checking
for $ac_word...
" >&6; }
6239 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6240 $as_echo_n "(cached
) " >&6
6242 if test -n "$DSYMUTIL"; then
6243 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6249 test -z "$as_dir" && as_dir=.
6250 for ac_exec_ext in '' $ac_executable_extensions; do
6251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6252 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
6253 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6262 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6263 if test -n "$DSYMUTIL"; then
6264 { $as_echo "$as_me:$LINENO: result
: $DSYMUTIL" >&5
6265 $as_echo "$DSYMUTIL" >&6; }
6267 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6268 $as_echo "no
" >&6; }
6273 if test -z "$ac_cv_prog_DSYMUTIL"; then
6274 ac_ct_DSYMUTIL=$DSYMUTIL
6275 # Extract the first word of "dsymutil
", so it can be a program name with args.
6276 set dummy dsymutil; ac_word=$2
6277 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6278 $as_echo_n "checking
for $ac_word...
" >&6; }
6279 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6280 $as_echo_n "(cached
) " >&6
6282 if test -n "$ac_ct_DSYMUTIL"; then
6283 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289 test -z "$as_dir" && as_dir=.
6290 for ac_exec_ext in '' $ac_executable_extensions; do
6291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6292 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
6293 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6302 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6303 if test -n "$ac_ct_DSYMUTIL"; then
6304 { $as_echo "$as_me:$LINENO: result
: $ac_ct_DSYMUTIL" >&5
6305 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6307 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6308 $as_echo "no
" >&6; }
6311 if test "x
$ac_ct_DSYMUTIL" = x; then
6314 case $cross_compiling:$ac_tool_warned in
6316 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6317 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6318 ac_tool_warned=yes ;;
6320 DSYMUTIL=$ac_ct_DSYMUTIL
6323 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6326 if test -n "$ac_tool_prefix"; then
6327 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
6328 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6329 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6330 $as_echo_n "checking
for $ac_word...
" >&6; }
6331 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6332 $as_echo_n "(cached
) " >&6
6334 if test -n "$NMEDIT"; then
6335 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6341 test -z "$as_dir" && as_dir=.
6342 for ac_exec_ext in '' $ac_executable_extensions; do
6343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6344 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
6345 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6354 NMEDIT=$ac_cv_prog_NMEDIT
6355 if test -n "$NMEDIT"; then
6356 { $as_echo "$as_me:$LINENO: result
: $NMEDIT" >&5
6357 $as_echo "$NMEDIT" >&6; }
6359 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6360 $as_echo "no
" >&6; }
6365 if test -z "$ac_cv_prog_NMEDIT"; then
6366 ac_ct_NMEDIT=$NMEDIT
6367 # Extract the first word of "nmedit
", so it can be a program name with args.
6368 set dummy nmedit; ac_word=$2
6369 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6370 $as_echo_n "checking
for $ac_word...
" >&6; }
6371 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6372 $as_echo_n "(cached
) " >&6
6374 if test -n "$ac_ct_NMEDIT"; then
6375 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6381 test -z "$as_dir" && as_dir=.
6382 for ac_exec_ext in '' $ac_executable_extensions; do
6383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6384 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
6385 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6394 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6395 if test -n "$ac_ct_NMEDIT"; then
6396 { $as_echo "$as_me:$LINENO: result
: $ac_ct_NMEDIT" >&5
6397 $as_echo "$ac_ct_NMEDIT" >&6; }
6399 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6400 $as_echo "no
" >&6; }
6403 if test "x
$ac_ct_NMEDIT" = x; then
6406 case $cross_compiling:$ac_tool_warned in
6408 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6409 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6410 ac_tool_warned=yes ;;
6412 NMEDIT=$ac_ct_NMEDIT
6415 NMEDIT="$ac_cv_prog_NMEDIT"
6418 if test -n "$ac_tool_prefix"; then
6419 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
6420 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6421 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6422 $as_echo_n "checking
for $ac_word...
" >&6; }
6423 if test "${ac_cv_prog_LIPO+set}" = set; then
6424 $as_echo_n "(cached
) " >&6
6426 if test -n "$LIPO"; then
6427 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6433 test -z "$as_dir" && as_dir=.
6434 for ac_exec_ext in '' $ac_executable_extensions; do
6435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6436 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
6437 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6446 LIPO=$ac_cv_prog_LIPO
6447 if test -n "$LIPO"; then
6448 { $as_echo "$as_me:$LINENO: result
: $LIPO" >&5
6449 $as_echo "$LIPO" >&6; }
6451 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6452 $as_echo "no
" >&6; }
6457 if test -z "$ac_cv_prog_LIPO"; then
6459 # Extract the first word of "lipo
", so it can be a program name with args.
6460 set dummy lipo; ac_word=$2
6461 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6462 $as_echo_n "checking
for $ac_word...
" >&6; }
6463 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6464 $as_echo_n "(cached
) " >&6
6466 if test -n "$ac_ct_LIPO"; then
6467 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6473 test -z "$as_dir" && as_dir=.
6474 for ac_exec_ext in '' $ac_executable_extensions; do
6475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6476 ac_cv_prog_ac_ct_LIPO="lipo
"
6477 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6486 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6487 if test -n "$ac_ct_LIPO"; then
6488 { $as_echo "$as_me:$LINENO: result
: $ac_ct_LIPO" >&5
6489 $as_echo "$ac_ct_LIPO" >&6; }
6491 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6492 $as_echo "no
" >&6; }
6495 if test "x
$ac_ct_LIPO" = x; then
6498 case $cross_compiling:$ac_tool_warned in
6500 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6501 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6502 ac_tool_warned=yes ;;
6507 LIPO="$ac_cv_prog_LIPO"
6510 if test -n "$ac_tool_prefix"; then
6511 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
6512 set dummy ${ac_tool_prefix}otool; ac_word=$2
6513 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6514 $as_echo_n "checking
for $ac_word...
" >&6; }
6515 if test "${ac_cv_prog_OTOOL+set}" = set; then
6516 $as_echo_n "(cached
) " >&6
6518 if test -n "$OTOOL"; then
6519 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6525 test -z "$as_dir" && as_dir=.
6526 for ac_exec_ext in '' $ac_executable_extensions; do
6527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6528 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
6529 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6538 OTOOL=$ac_cv_prog_OTOOL
6539 if test -n "$OTOOL"; then
6540 { $as_echo "$as_me:$LINENO: result
: $OTOOL" >&5
6541 $as_echo "$OTOOL" >&6; }
6543 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6544 $as_echo "no
" >&6; }
6549 if test -z "$ac_cv_prog_OTOOL"; then
6551 # Extract the first word of "otool
", so it can be a program name with args.
6552 set dummy otool; ac_word=$2
6553 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6554 $as_echo_n "checking
for $ac_word...
" >&6; }
6555 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6556 $as_echo_n "(cached
) " >&6
6558 if test -n "$ac_ct_OTOOL"; then
6559 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6565 test -z "$as_dir" && as_dir=.
6566 for ac_exec_ext in '' $ac_executable_extensions; do
6567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6568 ac_cv_prog_ac_ct_OTOOL="otool
"
6569 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6578 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6579 if test -n "$ac_ct_OTOOL"; then
6580 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OTOOL" >&5
6581 $as_echo "$ac_ct_OTOOL" >&6; }
6583 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6584 $as_echo "no
" >&6; }
6587 if test "x
$ac_ct_OTOOL" = x; then
6590 case $cross_compiling:$ac_tool_warned in
6592 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6593 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6594 ac_tool_warned=yes ;;
6599 OTOOL="$ac_cv_prog_OTOOL"
6602 if test -n "$ac_tool_prefix"; then
6603 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
6604 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6605 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6606 $as_echo_n "checking
for $ac_word...
" >&6; }
6607 if test "${ac_cv_prog_OTOOL64+set}" = set; then
6608 $as_echo_n "(cached
) " >&6
6610 if test -n "$OTOOL64"; then
6611 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6617 test -z "$as_dir" && as_dir=.
6618 for ac_exec_ext in '' $ac_executable_extensions; do
6619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6620 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
6621 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6630 OTOOL64=$ac_cv_prog_OTOOL64
6631 if test -n "$OTOOL64"; then
6632 { $as_echo "$as_me:$LINENO: result
: $OTOOL64" >&5
6633 $as_echo "$OTOOL64" >&6; }
6635 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6636 $as_echo "no
" >&6; }
6641 if test -z "$ac_cv_prog_OTOOL64"; then
6642 ac_ct_OTOOL64=$OTOOL64
6643 # Extract the first word of "otool64
", so it can be a program name with args.
6644 set dummy otool64; ac_word=$2
6645 { $as_echo "$as_me:$LINENO: checking
for $ac_word" >&5
6646 $as_echo_n "checking
for $ac_word...
" >&6; }
6647 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6648 $as_echo_n "(cached
) " >&6
6650 if test -n "$ac_ct_OTOOL64"; then
6651 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6657 test -z "$as_dir" && as_dir=.
6658 for ac_exec_ext in '' $ac_executable_extensions; do
6659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6660 ac_cv_prog_ac_ct_OTOOL64="otool64
"
6661 $as_echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
6670 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6671 if test -n "$ac_ct_OTOOL64"; then
6672 { $as_echo "$as_me:$LINENO: result
: $ac_ct_OTOOL64" >&5
6673 $as_echo "$ac_ct_OTOOL64" >&6; }
6675 { $as_echo "$as_me:$LINENO: result
: no
" >&5
6676 $as_echo "no
" >&6; }
6679 if test "x
$ac_ct_OTOOL64" = x; then
6682 case $cross_compiling:$ac_tool_warned in
6684 { $as_echo "$as_me:$LINENO: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6685 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6686 ac_tool_warned=yes ;;
6688 OTOOL64=$ac_ct_OTOOL64
6691 OTOOL64="$ac_cv_prog_OTOOL64"
6720 { $as_echo "$as_me:$LINENO: checking
for -single_module linker flag
" >&5
6721 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
6722 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6723 $as_echo_n "(cached
) " >&6
6725 lt_cv_apple_cc_single_mod=no
6726 if test -z "${LT_MULTI_MODULE}"; then
6727 # By default we will add the -single_module flag. You can override
6728 # by either setting the environment variable LT_MULTI_MODULE
6729 # non-empty at configure time, or by adding -multi_module to the
6731 rm -rf libconftest.dylib*
6732 echo "int foo
(void
){return 1;}" > conftest.c
6733 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6734 -dynamiclib -Wl,-single_module conftest.c
" >&5
6735 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6736 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6738 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6739 lt_cv_apple_cc_single_mod=yes
6741 cat conftest.err >&5
6743 rm -rf libconftest.dylib*
6747 { $as_echo "$as_me:$LINENO: result
: $lt_cv_apple_cc_single_mod" >&5
6748 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6749 { $as_echo "$as_me:$LINENO: checking
for -exported_symbols_list linker flag
" >&5
6750 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
6751 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6752 $as_echo_n "(cached
) " >&6
6754 lt_cv_ld_exported_symbols_list=no
6755 save_LDFLAGS=$LDFLAGS
6756 echo "_main
" > conftest.sym
6757 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
6758 cat >conftest.$ac_ext <<_ACEOF
6761 cat confdefs.h >>conftest.$ac_ext
6762 cat >>conftest.$ac_ext <<_ACEOF
6763 /* end confdefs.h. */
6773 rm -f conftest.$ac_objext conftest$ac_exeext
6774 if { (ac_try="$ac_link"
6776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6777 *) ac_try_echo=$ac_try;;
6779 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6780 $as_echo "$ac_try_echo") >&5
6781 (eval "$ac_link") 2>conftest.er1
6783 grep -v '^ *+' conftest.er1 >conftest.err
6785 cat conftest.err >&5
6786 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6787 (exit $ac_status); } && {
6788 test -z "$ac_c_werror_flag" ||
6789 test ! -s conftest.err
6790 } && test -s conftest$ac_exeext && {
6791 test "$cross_compiling" = yes ||
6792 $as_test_x conftest$ac_exeext
6794 lt_cv_ld_exported_symbols_list=yes
6796 $as_echo "$as_me: failed program was
:" >&5
6797 sed 's/^/| /' conftest.$ac_ext >&5
6799 lt_cv_ld_exported_symbols_list=no
6802 rm -rf conftest.dSYM
6803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6804 conftest$ac_exeext conftest.$ac_ext
6805 LDFLAGS="$save_LDFLAGS"
6808 { $as_echo "$as_me:$LINENO: result
: $lt_cv_ld_exported_symbols_list" >&5
6809 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6811 rhapsody* | darwin1.[012])
6812 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6814 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6815 darwin*) # darwin 5.x on
6816 # if running on 10.5 or later, the deployment target defaults
6817 # to the OS version, if on x86, and 10.4, the deployment
6818 # target defaults to 10.4. Don't you love it?
6819 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6820 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6821 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6823 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6825 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6829 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6830 _lt_dar_single_mod='$single_module'
6832 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6833 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6835 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6837 if test "$DSYMUTIL" != ":"; then
6838 _lt_dsymutil='~$DSYMUTIL $lib || :'
6846 ac_cpp='$CPP $CPPFLAGS'
6847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6850 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
6851 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
6852 # On Suns, sometimes $CPP names a directory.
6853 if test -n "$CPP" && test -d "$CPP"; then
6856 if test -z "$CPP"; then
6857 if test "${ac_cv_prog_CPP+set}" = set; then
6858 $as_echo_n "(cached
) " >&6
6860 # Double quotes because CPP needs to be expanded
6861 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
6864 for ac_c_preproc_warn_flag in '' yes
6866 # Use a header file that comes with gcc, so configuring glibc
6867 # with a fresh cross-compiler works.
6868 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6869 # <limits.h> exists even on freestanding compilers.
6870 # On the NeXT, cc -E runs the code through the compiler's parser,
6871 # not just through cpp. "Syntax error
" is here to catch this case.
6872 cat >conftest.$ac_ext <<_ACEOF
6875 cat confdefs.h >>conftest.$ac_ext
6876 cat >>conftest.$ac_ext <<_ACEOF
6877 /* end confdefs.h. */
6879 # include <limits.h>
6881 # include <assert.h>
6885 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6888 *) ac_try_echo=$ac_try;;
6890 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6891 $as_echo "$ac_try_echo") >&5
6892 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6894 grep -v '^ *+' conftest.er1 >conftest.err
6896 cat conftest.err >&5
6897 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6898 (exit $ac_status); } >/dev/null && {
6899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6900 test ! -s conftest.err
6904 $as_echo "$as_me: failed program was
:" >&5
6905 sed 's/^/| /' conftest.$ac_ext >&5
6907 # Broken: fails on valid input.
6911 rm -f conftest.err conftest.$ac_ext
6913 # OK, works on sane cases. Now check whether nonexistent headers
6914 # can be detected and how.
6915 cat >conftest.$ac_ext <<_ACEOF
6918 cat confdefs.h >>conftest.$ac_ext
6919 cat >>conftest.$ac_ext <<_ACEOF
6920 /* end confdefs.h. */
6921 #include <ac_nonexistent.h>
6923 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6926 *) ac_try_echo=$ac_try;;
6928 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6929 $as_echo "$ac_try_echo") >&5
6930 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
6932 grep -v '^ *+' conftest.er1 >conftest.err
6934 cat conftest.err >&5
6935 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
6936 (exit $ac_status); } >/dev/null && {
6937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6938 test ! -s conftest.err
6940 # Broken: success on invalid input.
6943 $as_echo "$as_me: failed program was
:" >&5
6944 sed 's/^/| /' conftest.$ac_ext >&5
6946 # Passes both tests.
6951 rm -f conftest.err conftest.$ac_ext
6954 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6955 rm -f conftest.err conftest.$ac_ext
6956 if $ac_preproc_ok; then
6968 { $as_echo "$as_me:$LINENO: result
: $CPP" >&5
6969 $as_echo "$CPP" >&6; }
6971 for ac_c_preproc_warn_flag in '' yes
6973 # Use a header file that comes with gcc, so configuring glibc
6974 # with a fresh cross-compiler works.
6975 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6976 # <limits.h> exists even on freestanding compilers.
6977 # On the NeXT, cc -E runs the code through the compiler's parser,
6978 # not just through cpp. "Syntax error
" is here to catch this case.
6979 cat >conftest.$ac_ext <<_ACEOF
6982 cat confdefs.h >>conftest.$ac_ext
6983 cat >>conftest.$ac_ext <<_ACEOF
6984 /* end confdefs.h. */
6986 # include <limits.h>
6988 # include <assert.h>
6992 if { (ac_try="$ac_cpp conftest.
$ac_ext"
6994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6995 *) ac_try_echo=$ac_try;;
6997 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
6998 $as_echo "$ac_try_echo") >&5
6999 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
7001 grep -v '^ *+' conftest.er1 >conftest.err
7003 cat conftest.err >&5
7004 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7005 (exit $ac_status); } >/dev/null && {
7006 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7007 test ! -s conftest.err
7011 $as_echo "$as_me: failed program was
:" >&5
7012 sed 's/^/| /' conftest.$ac_ext >&5
7014 # Broken: fails on valid input.
7018 rm -f conftest.err conftest.$ac_ext
7020 # OK, works on sane cases. Now check whether nonexistent headers
7021 # can be detected and how.
7022 cat >conftest.$ac_ext <<_ACEOF
7025 cat confdefs.h >>conftest.$ac_ext
7026 cat >>conftest.$ac_ext <<_ACEOF
7027 /* end confdefs.h. */
7028 #include <ac_nonexistent.h>
7030 if { (ac_try="$ac_cpp conftest.
$ac_ext"
7032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7033 *) ac_try_echo=$ac_try;;
7035 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
7036 $as_echo "$ac_try_echo") >&5
7037 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
7039 grep -v '^ *+' conftest.er1 >conftest.err
7041 cat conftest.err >&5
7042 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
7043 (exit $ac_status); } >/dev/null && {
7044 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7045 test ! -s conftest.err
7047 # Broken: success on invalid input.
7050 $as_echo "$as_me: failed program was
:" >&5
7051 sed 's/^/| /' conftest.$ac_ext >&5
7053 # Passes both tests.
7058 rm -f conftest.err conftest.$ac_ext
7061 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7062 rm -f conftest.err conftest.$ac_ext
7063 if $ac_preproc_ok; then
7066 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
7067 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7068 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7069 See \`config.log' for more details.
" >&5
7070 $as_echo "$as_me: error
: C preprocessor
\"$CPP\" fails sanity check
7071 See \
`config.log' for more details." >&2;}
7072 { (exit 1); exit 1; }; }; }
7076 ac_cpp='$CPP $CPPFLAGS'
7077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7082 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7083 $as_echo_n "checking for ANSI C header files... " >&6; }
7084 if test "${ac_cv_header_stdc+set}" = set; then
7085 $as_echo_n "(cached) " >&6
7087 cat >conftest.$ac_ext <<_ACEOF
7090 cat confdefs.h >>conftest.$ac_ext
7091 cat >>conftest.$ac_ext <<_ACEOF
7092 /* end confdefs.h. */
7106 rm -f conftest.$ac_objext
7107 if { (ac_try="$ac_compile"
7109 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7110 *) ac_try_echo
=$ac_try;;
7112 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7113 $as_echo "$ac_try_echo") >&5
7114 (eval "$ac_compile") 2>conftest.er1
7116 grep -v '^ *+' conftest.er1
>conftest.err
7118 cat conftest.err
>&5
7119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7120 (exit $ac_status); } && {
7121 test -z "$ac_c_werror_flag" ||
7122 test ! -s conftest.err
7123 } && test -s conftest.
$ac_objext; then
7124 ac_cv_header_stdc
=yes
7126 $as_echo "$as_me: failed program was:" >&5
7127 sed 's/^/| /' conftest.
$ac_ext >&5
7129 ac_cv_header_stdc
=no
7132 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7134 if test $ac_cv_header_stdc = yes; then
7135 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7136 cat >conftest.
$ac_ext <<_ACEOF
7139 cat confdefs.h
>>conftest.
$ac_ext
7140 cat >>conftest.
$ac_ext <<_ACEOF
7141 /* end confdefs.h. */
7145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7146 $EGREP "memchr" >/dev
/null
2>&1; then
7149 ac_cv_header_stdc
=no
7155 if test $ac_cv_header_stdc = yes; then
7156 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7157 cat >conftest.
$ac_ext <<_ACEOF
7160 cat confdefs.h
>>conftest.
$ac_ext
7161 cat >>conftest.
$ac_ext <<_ACEOF
7162 /* end confdefs.h. */
7166 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7167 $EGREP "free" >/dev
/null
2>&1; then
7170 ac_cv_header_stdc
=no
7176 if test $ac_cv_header_stdc = yes; then
7177 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7178 if test "$cross_compiling" = yes; then
7181 cat >conftest.
$ac_ext <<_ACEOF
7184 cat confdefs.h
>>conftest.
$ac_ext
7185 cat >>conftest.
$ac_ext <<_ACEOF
7186 /* end confdefs.h. */
7189 #if ((' ' & 0x0FF) == 0x020)
7190 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7191 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7193 # define ISLOWER(c) \
7194 (('a' <= (c) && (c) <= 'i') \
7195 || ('j' <= (c) && (c) <= 'r') \
7196 || ('s' <= (c) && (c) <= 'z'))
7197 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7200 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7205 for (i = 0; i < 256; i++)
7206 if (XOR (islower (i), ISLOWER (i))
7207 || toupper (i) != TOUPPER (i))
7212 rm -f conftest
$ac_exeext
7213 if { (ac_try
="$ac_link"
7215 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7216 *) ac_try_echo=$ac_try;;
7218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7219 $as_echo "$ac_try_echo") >&5
7220 (eval "$ac_link") 2>&5
7222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7223 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7224 { (case "(($ac_try" in
7225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7226 *) ac_try_echo
=$ac_try;;
7228 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7229 $as_echo "$ac_try_echo") >&5
7230 (eval "$ac_try") 2>&5
7232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7233 (exit $ac_status); }; }; then
7236 $as_echo "$as_me: program exited with status $ac_status" >&5
7237 $as_echo "$as_me: failed program was:" >&5
7238 sed 's/^/| /' conftest.
$ac_ext >&5
7241 ac_cv_header_stdc
=no
7243 rm -rf conftest.dSYM
7244 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
7250 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7251 $as_echo "$ac_cv_header_stdc" >&6; }
7252 if test $ac_cv_header_stdc = yes; then
7254 cat >>confdefs.h
<<\_ACEOF
7255 #define STDC_HEADERS 1
7260 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7270 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7271 inttypes.h stdint.h unistd.h
7273 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7274 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7275 $as_echo_n "checking for $ac_header... " >&6; }
7276 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7277 $as_echo_n "(cached) " >&6
7279 cat >conftest.
$ac_ext <<_ACEOF
7282 cat confdefs.h
>>conftest.
$ac_ext
7283 cat >>conftest.
$ac_ext <<_ACEOF
7284 /* end confdefs.h. */
7285 $ac_includes_default
7287 #include <$ac_header>
7289 rm -f conftest.
$ac_objext
7290 if { (ac_try
="$ac_compile"
7292 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7293 *) ac_try_echo=$ac_try;;
7295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7296 $as_echo "$ac_try_echo") >&5
7297 (eval "$ac_compile") 2>conftest.er1
7299 grep -v '^ *+' conftest.er1 >conftest.err
7301 cat conftest.err >&5
7302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); } && {
7304 test -z "$ac_c_werror_flag" ||
7305 test ! -s conftest.err
7306 } && test -s conftest.$ac_objext; then
7307 eval "$as_ac_Header=yes"
7309 $as_echo "$as_me: failed program was:" >&5
7310 sed 's/^/| /' conftest.$ac_ext >&5
7312 eval "$as_ac_Header=no"
7315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7317 ac_res=`eval 'as_val=${'$as_ac_Header'}
7318 $as_echo "$as_val"'`
7319 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7320 $as_echo "$ac_res" >&6; }
7321 as_val=`eval 'as_val=${'$as_ac_Header'}
7322 $as_echo "$as_val"'`
7323 if test "x$as_val" = x""yes; then
7324 cat >>confdefs.h <<_ACEOF
7325 #define `$as_echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7334 for ac_header in dlfcn.h
7336 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" |
$as_tr_sh`
7337 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7338 $as_echo_n "checking for $ac_header... " >&6; }
7339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7340 $as_echo_n "(cached) " >&6
7342 cat >conftest.$ac_ext <<_ACEOF
7345 cat confdefs.h >>conftest.$ac_ext
7346 cat >>conftest.$ac_ext <<_ACEOF
7347 /* end confdefs.h. */
7348 $ac_includes_default
7350 #include <$ac_header>
7352 rm -f conftest.$ac_objext
7353 if { (ac_try="$ac_compile"
7355 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7356 *) ac_try_echo
=$ac_try;;
7358 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
7359 $as_echo "$ac_try_echo") >&5
7360 (eval "$ac_compile") 2>conftest.er1
7362 grep -v '^ *+' conftest.er1
>conftest.err
7364 cat conftest.err
>&5
7365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366 (exit $ac_status); } && {
7367 test -z "$ac_c_werror_flag" ||
7368 test ! -s conftest.err
7369 } && test -s conftest.
$ac_objext; then
7370 eval "$as_ac_Header=yes"
7372 $as_echo "$as_me: failed program was:" >&5
7373 sed 's/^/| /' conftest.
$ac_ext >&5
7375 eval "$as_ac_Header=no"
7378 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7380 ac_res
=`eval 'as_val=${'$as_ac_Header'}
7381 $as_echo "$as_val"'`
7382 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7383 $as_echo "$ac_res" >&6; }
7384 as_val
=`eval 'as_val=${'$as_ac_Header'}
7385 $as_echo "$as_val"'`
7386 if test "x$as_val" = x
""yes; then
7387 cat >>confdefs.h
<<_ACEOF
7388 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7407 # Check whether --enable-shared was given.
7408 if test "${enable_shared+set}" = set; then
7409 enableval
=$enable_shared; p
=${PACKAGE-default}
7411 yes) enable_shared
=yes ;;
7412 no
) enable_shared
=no
;;
7415 # Look at the argument we got. We use all the common list separators.
7416 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7417 for pkg
in $enableval; do
7419 if test "X$pkg" = "X$p"; then
7438 # Check whether --enable-static was given.
7439 if test "${enable_static+set}" = set; then
7440 enableval
=$enable_static; p
=${PACKAGE-default}
7442 yes) enable_static
=yes ;;
7443 no
) enable_static
=no
;;
7446 # Look at the argument we got. We use all the common list separators.
7447 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7448 for pkg
in $enableval; do
7450 if test "X$pkg" = "X$p"; then
7470 # Check whether --with-pic was given.
7471 if test "${with_pic+set}" = set; then
7472 withval
=$with_pic; pic_mode
="$withval"
7478 test -z "$pic_mode" && pic_mode
=default
7486 # Check whether --enable-fast-install was given.
7487 if test "${enable_fast_install+set}" = set; then
7488 enableval
=$enable_fast_install; p
=${PACKAGE-default}
7490 yes) enable_fast_install
=yes ;;
7491 no
) enable_fast_install
=no
;;
7493 enable_fast_install
=no
7494 # Look at the argument we got. We use all the common list separators.
7495 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7496 for pkg
in $enableval; do
7498 if test "X$pkg" = "X$p"; then
7499 enable_fast_install
=yes
7506 enable_fast_install
=yes
7519 # This can be used to rebuild libtool when needed
7520 LIBTOOL_DEPS
="$ltmain"
7522 # Always use our own libtool.
7523 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
7549 test -z "$LN_S" && LN_S
="ln -s"
7564 if test -n "${ZSH_VERSION+set}" ; then
7565 setopt NO_GLOB_SUBST
7568 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
7569 $as_echo_n "checking for objdir... " >&6; }
7570 if test "${lt_cv_objdir+set}" = set; then
7571 $as_echo_n "(cached) " >&6
7573 rm -f .libs
2>/dev
/null
7574 mkdir .libs
2>/dev
/null
7575 if test -d .libs
; then
7578 # MS-DOS does not allow filenames that begin with a dot.
7581 rmdir .libs
2>/dev
/null
7583 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7584 $as_echo "$lt_cv_objdir" >&6; }
7585 objdir
=$lt_cv_objdir
7591 cat >>confdefs.h
<<_ACEOF
7592 #define LT_OBJDIR "$lt_cv_objdir/"
7613 # AIX sometimes has problems with the GCC collect2 program. For some
7614 # reason, if we set the COLLECT_NAMES environment variable, the problems
7615 # vanish in a puff of smoke.
7616 if test "X${COLLECT_NAMES+set}" != Xset
; then
7618 export COLLECT_NAMES
7623 # Sed substitution that helps us do robust quoting. It backslashifies
7624 # metacharacters that are still active within double-quoted strings.
7625 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
7627 # Same as above, but do not quote variable references.
7628 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
7630 # Sed substitution to delay expansion of an escaped shell variable in a
7631 # double_quote_subst'ed string.
7632 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
7634 # Sed substitution to delay expansion of an escaped single quote.
7635 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
7637 # Sed substitution to avoid accidental globbing in evaled expressions
7638 no_glob_subst
='s/\*/\\\*/g'
7642 can_build_shared
=yes
7644 # All known linkers require a `.a' archive for static linking (except MSVC,
7645 # which needs '.lib').
7648 with_gnu_ld
="$lt_cv_prog_gnu_ld"
7651 old_CFLAGS
="$CFLAGS"
7653 # Set sane defaults for various variables
7654 test -z "$CC" && CC
=cc
7655 test -z "$LTCC" && LTCC
=$CC
7656 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
7657 test -z "$LD" && LD
=ld
7658 test -z "$ac_objext" && ac_objext
=o
7660 for cc_temp
in $compiler""; do
7662 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7663 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7668 cc_basename
=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7671 # Only perform the check for file, if the check method requires it
7672 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
7673 case $deplibs_check_method in
7675 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7676 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7677 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7678 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7679 $as_echo_n "(cached) " >&6
7683 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7686 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7687 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7688 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7689 for ac_dir
in $ac_dummy; do
7691 test -z "$ac_dir" && ac_dir
=.
7692 if test -f $ac_dir/${ac_tool_prefix}file; then
7693 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
7694 if test -n "$file_magic_test_file"; then
7695 case $deplibs_check_method in
7697 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7698 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7699 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7700 $EGREP "$file_magic_regex" > /dev
/null
; then
7705 *** Warning: the command libtool uses to detect shared libraries,
7706 *** $file_magic_cmd, produces output that libtool cannot recognize.
7707 *** The result is that libtool may fail to recognize shared libraries
7708 *** as such. This will affect the creation of libtool libraries that
7709 *** depend on shared libraries, but programs linked with such libtool
7710 *** libraries will work regardless of this problem. Nevertheless, you
7711 *** may want to report the problem to your system manager and/or to
7712 *** bug-libtool@gnu.org
7722 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7727 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7728 if test -n "$MAGIC_CMD"; then
7729 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7730 $as_echo "$MAGIC_CMD" >&6; }
7732 { $as_echo "$as_me:$LINENO: result: no" >&5
7733 $as_echo "no" >&6; }
7740 if test -z "$lt_cv_path_MAGIC_CMD"; then
7741 if test -n "$ac_tool_prefix"; then
7742 { $as_echo "$as_me:$LINENO: checking for file" >&5
7743 $as_echo_n "checking for file... " >&6; }
7744 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7745 $as_echo_n "(cached) " >&6
7749 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7752 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7753 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7754 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7755 for ac_dir
in $ac_dummy; do
7757 test -z "$ac_dir" && ac_dir
=.
7758 if test -f $ac_dir/file; then
7759 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
7760 if test -n "$file_magic_test_file"; then
7761 case $deplibs_check_method in
7763 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7764 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7765 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7766 $EGREP "$file_magic_regex" > /dev
/null
; then
7771 *** Warning: the command libtool uses to detect shared libraries,
7772 *** $file_magic_cmd, produces output that libtool cannot recognize.
7773 *** The result is that libtool may fail to recognize shared libraries
7774 *** as such. This will affect the creation of libtool libraries that
7775 *** depend on shared libraries, but programs linked with such libtool
7776 *** libraries will work regardless of this problem. Nevertheless, you
7777 *** may want to report the problem to your system manager and/or to
7778 *** bug-libtool@gnu.org
7788 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7793 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7794 if test -n "$MAGIC_CMD"; then
7795 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7796 $as_echo "$MAGIC_CMD" >&6; }
7798 { $as_echo "$as_me:$LINENO: result: no" >&5
7799 $as_echo "no" >&6; }
7812 # Use C for the default configuration in the libtool script
7816 ac_cpp
='$CPP $CPPFLAGS'
7817 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7818 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7819 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7822 # Source file extension for C test sources.
7825 # Object file extension for compiled C test sources.
7829 # Code to be used in simple compile tests
7830 lt_simple_compile_test_code
="int some_variable = 0;"
7832 # Code to be used in simple link tests
7833 lt_simple_link_test_code
='int main(){return(0);}'
7841 # If no C compiler was specified, use CC.
7844 # If no C compiler flags were specified, use CFLAGS.
7845 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
7847 # Allow CC to be a program name with arguments.
7850 # Save the default compiler, since it gets overwritten when the other
7851 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7852 compiler_DEFAULT
=$CC
7854 # save warnings/boilerplate of simple test code
7855 ac_outfile
=conftest.
$ac_objext
7856 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
7857 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7858 _lt_compiler_boilerplate
=`cat conftest.err`
7861 ac_outfile
=conftest.
$ac_objext
7862 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
7863 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7864 _lt_linker_boilerplate
=`cat conftest.err`
7869 ## There is no encapsulation within the following macros, do not change
7870 ## the running order or otherwise move them around unless you know exactly
7871 ## what you are doing...
7872 if test -n "$compiler"; then
7874 lt_prog_compiler_no_builtin_flag
=
7876 if test "$GCC" = yes; then
7877 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
7879 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7880 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7881 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7882 $as_echo_n "(cached) " >&6
7884 lt_cv_prog_compiler_rtti_exceptions
=no
7885 ac_outfile
=conftest.
$ac_objext
7886 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7887 lt_compiler_flag
="-fno-rtti -fno-exceptions"
7888 # Insert the option either (1) after the last *FLAGS variable, or
7889 # (2) before a word containing "conftest.", or (3) at the end.
7890 # Note that $ac_compile itself does not contain backslashes and begins
7891 # with a dollar sign (not a hyphen), so the echo should work correctly.
7892 # The option is referenced via a variable to avoid confusing sed.
7893 lt_compile
=`echo "$ac_compile" | $SED \
7894 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7895 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7896 -e 's:$: $lt_compiler_flag:'`
7897 (eval echo "\"\$as_me:7897: $lt_compile\"" >&5)
7898 (eval "$lt_compile" 2>conftest.err
)
7900 cat conftest.err
>&5
7901 echo "$as_me:7901: \$? = $ac_status" >&5
7902 if (exit $ac_status) && test -s "$ac_outfile"; then
7903 # The compiler can only warn and ignore the option if not recognized
7904 # So say no if there are warnings other than the usual output.
7905 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7906 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7907 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7908 lt_cv_prog_compiler_rtti_exceptions
=yes
7914 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7915 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7917 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
7918 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7930 lt_prog_compiler_wl
=
7931 lt_prog_compiler_pic
=
7932 lt_prog_compiler_static
=
7934 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7935 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7937 if test "$GCC" = yes; then
7938 lt_prog_compiler_wl
='-Wl,'
7939 lt_prog_compiler_static
='-static'
7943 # All AIX code is PIC.
7944 if test "$host_cpu" = ia64
; then
7945 # AIX 5 now supports IA64 processor
7946 lt_prog_compiler_static
='-Bstatic'
7953 # see comment about AmigaOS4 .so support
7954 lt_prog_compiler_pic
='-fPIC'
7957 # FIXME: we need at least 68020 code to build shared libraries, but
7958 # adding the `-m68020' flag to GCC prevents building anything better,
7960 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
7965 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
7966 # PIC is the default for these OSes.
7969 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
7970 # This hack is so that the source file can tell whether it is being
7971 # built for inclusion in a dll (and should export symbols for example).
7972 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7973 # (--disable-auto-import) libraries
7974 lt_prog_compiler_pic
='-DDLL_EXPORT'
7977 darwin
* | rhapsody
*)
7978 # PIC is the default on this platform
7979 # Common symbols not allowed in MH_DYLIB files
7980 lt_prog_compiler_pic
='-fno-common'
7984 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7985 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7986 # sets the default TLS model and affects inlining.
7992 lt_prog_compiler_pic
='-fPIC'
7998 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7999 # Instead, we relocate shared libraries at runtime.
8003 # Just because we use GCC doesn't mean we suddenly get shared libraries
8004 # on systems that don't support them.
8005 lt_prog_compiler_can_build_shared
=no
8010 # QNX uses GNU C++, but need to define -shared option too, otherwise
8012 lt_prog_compiler_pic
='-fPIC -shared'
8016 if test -d /usr
/nec
; then
8017 lt_prog_compiler_pic
=-Kconform_pic
8022 lt_prog_compiler_pic
='-fPIC'
8026 # PORTME Check for flag to pass linker flags through the system compiler.
8029 lt_prog_compiler_wl
='-Wl,'
8030 if test "$host_cpu" = ia64
; then
8031 # AIX 5 now supports IA64 processor
8032 lt_prog_compiler_static
='-Bstatic'
8034 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8038 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8039 # This hack is so that the source file can tell whether it is being
8040 # built for inclusion in a dll (and should export symbols for example).
8041 lt_prog_compiler_pic
='-DDLL_EXPORT'
8044 hpux9
* | hpux10
* | hpux11
*)
8045 lt_prog_compiler_wl
='-Wl,'
8046 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8053 lt_prog_compiler_pic
='+Z'
8056 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8057 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8060 irix5
* | irix6
* | nonstopux
*)
8061 lt_prog_compiler_wl
='-Wl,'
8062 # PIC (with -KPIC) is the default.
8063 lt_prog_compiler_static
='-non_shared'
8066 linux
* | k
*bsd
*-gnu)
8067 case $cc_basename in
8068 # old Intel for x86_64 which still supported -KPIC.
8070 lt_prog_compiler_wl
='-Wl,'
8071 lt_prog_compiler_pic
='-KPIC'
8072 lt_prog_compiler_static
='-static'
8074 # icc used to be incompatible with GCC.
8075 # ICC 10 doesn't accept -KPIC any more.
8077 lt_prog_compiler_wl
='-Wl,'
8078 lt_prog_compiler_pic
='-fPIC'
8079 lt_prog_compiler_static
='-static'
8081 # Lahey Fortran 8.1.
8083 lt_prog_compiler_wl
='-Wl,'
8084 lt_prog_compiler_pic
='--shared'
8085 lt_prog_compiler_static
='--static'
8087 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
8088 # Portland Group compilers (*not* the Pentium gcc compiler,
8089 # which looks to be a dead project)
8090 lt_prog_compiler_wl
='-Wl,'
8091 lt_prog_compiler_pic
='-fpic'
8092 lt_prog_compiler_static
='-Bstatic'
8095 lt_prog_compiler_wl
='-Wl,'
8096 # All Alpha code is PIC.
8097 lt_prog_compiler_static
='-non_shared'
8100 # IBM XL C 8.0/Fortran 10.1 on PPC
8101 lt_prog_compiler_wl
='-Wl,'
8102 lt_prog_compiler_pic
='-qpic'
8103 lt_prog_compiler_static
='-qstaticlink'
8106 case `$CC -V 2>&1 | sed 5q` in
8109 lt_prog_compiler_pic
='-KPIC'
8110 lt_prog_compiler_static
='-Bstatic'
8111 lt_prog_compiler_wl
='-Wl,'
8114 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8115 lt_prog_compiler_pic
='-KPIC'
8116 lt_prog_compiler_static
='-Bstatic'
8117 lt_prog_compiler_wl
=''
8125 lt_prog_compiler_pic
='-KPIC'
8126 lt_prog_compiler_static
='-Bstatic'
8130 # QNX uses GNU C++, but need to define -shared option too, otherwise
8132 lt_prog_compiler_pic
='-fPIC -shared'
8135 osf3
* | osf4
* | osf5
*)
8136 lt_prog_compiler_wl
='-Wl,'
8137 # All OSF/1 code is PIC.
8138 lt_prog_compiler_static
='-non_shared'
8142 lt_prog_compiler_static
='-non_shared'
8146 lt_prog_compiler_pic
='-KPIC'
8147 lt_prog_compiler_static
='-Bstatic'
8148 case $cc_basename in
8150 lt_prog_compiler_wl
='-Qoption ld ';;
8152 lt_prog_compiler_wl
='-Wl,';;
8157 lt_prog_compiler_wl
='-Qoption ld '
8158 lt_prog_compiler_pic
='-PIC'
8159 lt_prog_compiler_static
='-Bstatic'
8162 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8163 lt_prog_compiler_wl
='-Wl,'
8164 lt_prog_compiler_pic
='-KPIC'
8165 lt_prog_compiler_static
='-Bstatic'
8169 if test -d /usr
/nec
;then
8170 lt_prog_compiler_pic
='-Kconform_pic'
8171 lt_prog_compiler_static
='-Bstatic'
8175 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8176 lt_prog_compiler_wl
='-Wl,'
8177 lt_prog_compiler_pic
='-KPIC'
8178 lt_prog_compiler_static
='-Bstatic'
8182 lt_prog_compiler_wl
='-Wl,'
8183 lt_prog_compiler_can_build_shared
=no
8187 lt_prog_compiler_pic
='-pic'
8188 lt_prog_compiler_static
='-Bstatic'
8192 lt_prog_compiler_can_build_shared
=no
8198 # For platforms which do not support PIC, -DPIC is meaningless:
8200 lt_prog_compiler_pic
=
8203 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8206 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8207 $as_echo "$lt_prog_compiler_pic" >&6; }
8215 # Check to make sure the PIC flag actually works.
8217 if test -n "$lt_prog_compiler_pic"; then
8218 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8219 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8220 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8221 $as_echo_n "(cached) " >&6
8223 lt_cv_prog_compiler_pic_works
=no
8224 ac_outfile
=conftest.
$ac_objext
8225 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8226 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8227 # Insert the option either (1) after the last *FLAGS variable, or
8228 # (2) before a word containing "conftest.", or (3) at the end.
8229 # Note that $ac_compile itself does not contain backslashes and begins
8230 # with a dollar sign (not a hyphen), so the echo should work correctly.
8231 # The option is referenced via a variable to avoid confusing sed.
8232 lt_compile
=`echo "$ac_compile" | $SED \
8233 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8234 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8235 -e 's:$: $lt_compiler_flag:'`
8236 (eval echo "\"\$as_me:8236: $lt_compile\"" >&5)
8237 (eval "$lt_compile" 2>conftest.err
)
8239 cat conftest.err
>&5
8240 echo "$as_me:8240: \$? = $ac_status" >&5
8241 if (exit $ac_status) && test -s "$ac_outfile"; then
8242 # The compiler can only warn and ignore the option if not recognized
8243 # So say no if there are warnings other than the usual output.
8244 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
8245 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8246 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8247 lt_cv_prog_compiler_pic_works
=yes
8253 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8254 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8256 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8257 case $lt_prog_compiler_pic in
8259 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8262 lt_prog_compiler_pic
=
8263 lt_prog_compiler_can_build_shared
=no
8274 # Check to make sure the static flag actually works.
8276 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8277 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8278 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8279 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8280 $as_echo_n "(cached) " >&6
8282 lt_cv_prog_compiler_static_works
=no
8283 save_LDFLAGS
="$LDFLAGS"
8284 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8285 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8286 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8287 # The linker can only warn and ignore the option if not recognized
8288 # So say no if there are warnings
8289 if test -s conftest.err
; then
8290 # Append any errors to the config.log.
8291 cat conftest.err
1>&5
8292 $ECHO "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
8293 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8294 if diff conftest.exp conftest.er2
>/dev
/null
; then
8295 lt_cv_prog_compiler_static_works
=yes
8298 lt_cv_prog_compiler_static_works
=yes
8302 LDFLAGS
="$save_LDFLAGS"
8305 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8306 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8308 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8311 lt_prog_compiler_static
=
8320 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8321 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8322 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8323 $as_echo_n "(cached) " >&6
8325 lt_cv_prog_compiler_c_o
=no
8326 $RM -r conftest
2>/dev
/null
8330 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8332 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8333 # Insert the option either (1) after the last *FLAGS variable, or
8334 # (2) before a word containing "conftest.", or (3) at the end.
8335 # Note that $ac_compile itself does not contain backslashes and begins
8336 # with a dollar sign (not a hyphen), so the echo should work correctly.
8337 lt_compile
=`echo "$ac_compile" | $SED \
8338 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8339 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8340 -e 's:$: $lt_compiler_flag:'`
8341 (eval echo "\"\$as_me:8341: $lt_compile\"" >&5)
8342 (eval "$lt_compile" 2>out
/conftest.err
)
8344 cat out
/conftest.err
>&5
8345 echo "$as_me:8345: \$? = $ac_status" >&5
8346 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8348 # The compiler can only warn and ignore the option if not recognized
8349 # So say no if there are warnings
8350 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
8351 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8352 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8353 lt_cv_prog_compiler_c_o
=yes
8358 # SGI C++ compiler will create directory out/ii_files/ for
8359 # template instantiation
8360 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8361 $RM out
/* && rmdir out
8367 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8368 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8375 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8376 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8377 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8378 $as_echo_n "(cached) " >&6
8380 lt_cv_prog_compiler_c_o
=no
8381 $RM -r conftest
2>/dev
/null
8385 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8387 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8388 # Insert the option either (1) after the last *FLAGS variable, or
8389 # (2) before a word containing "conftest.", or (3) at the end.
8390 # Note that $ac_compile itself does not contain backslashes and begins
8391 # with a dollar sign (not a hyphen), so the echo should work correctly.
8392 lt_compile
=`echo "$ac_compile" | $SED \
8393 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8394 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8395 -e 's:$: $lt_compiler_flag:'`
8396 (eval echo "\"\$as_me:8396: $lt_compile\"" >&5)
8397 (eval "$lt_compile" 2>out
/conftest.err
)
8399 cat out
/conftest.err
>&5
8400 echo "$as_me:8400: \$? = $ac_status" >&5
8401 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8403 # The compiler can only warn and ignore the option if not recognized
8404 # So say no if there are warnings
8405 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
8406 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8407 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8408 lt_cv_prog_compiler_c_o
=yes
8413 # SGI C++ compiler will create directory out/ii_files/ for
8414 # template instantiation
8415 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8416 $RM out
/* && rmdir out
8422 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8423 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8428 hard_links
="nottested"
8429 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8430 # do not overwrite the value of need_locks provided by the user
8431 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8432 $as_echo_n "checking if we can lock with hard links... " >&6; }
8435 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8437 ln conftest.a conftest.b
2>&5 || hard_links
=no
8438 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8439 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8440 $as_echo "$hard_links" >&6; }
8441 if test "$hard_links" = no
; then
8442 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8443 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8455 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8456 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8459 allow_undefined_flag
=
8460 always_export_symbols
=no
8462 archive_expsym_cmds
=
8463 compiler_needs_object
=no
8464 enable_shared_with_static_runtimes
=no
8465 export_dynamic_flag_spec
=
8466 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8467 hardcode_automatic
=no
8469 hardcode_direct_absolute
=no
8470 hardcode_libdir_flag_spec
=
8471 hardcode_libdir_flag_spec_ld
=
8472 hardcode_libdir_separator
=
8474 hardcode_shlibpath_var
=unsupported
8476 link_all_deplibs
=unknown
8479 old_archive_from_new_cmds
=
8480 old_archive_from_expsyms_cmds
=
8481 thread_safe_flag_spec
=
8482 whole_archive_flag_spec
=
8483 # include_expsyms should be a list of space-separated symbols to be *always*
8484 # included in the symbol list
8486 # exclude_expsyms can be an extended regexp of symbols to exclude
8487 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8488 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8489 # as well as any symbol that contains `d'.
8490 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8491 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8492 # platforms (ab)use it in PIC code, but their linkers get confused if
8493 # the symbol is explicitly referenced. Since portable code cannot
8494 # rely on this symbol name, it's probably fine to never include it in
8495 # preloaded symbol tables.
8496 # Exclude shared library initialization/finalization symbols.
8497 extract_expsyms_cmds
=
8500 cygwin
* | mingw
* | pw32
* | cegcc
*)
8501 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8502 # When not using gcc, we currently assume that we are using
8503 # Microsoft Visual C++.
8504 if test "$GCC" != yes; then
8509 # we just hope/assume this is gcc and not c89 (= MSVC++)
8518 if test "$with_gnu_ld" = yes; then
8519 # If archive_cmds runs LD, not CC, wlarc should be empty
8522 # Set some defaults for GNU ld with shared library support. These
8523 # are reset later if shared libraries are not supported. Putting them
8524 # here allows them to be overridden if necessary.
8525 runpath_var
=LD_RUN_PATH
8526 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8527 export_dynamic_flag_spec
='${wl}--export-dynamic'
8528 # ancient GNU ld didn't support --whole-archive et. al.
8529 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
8530 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8532 whole_archive_flag_spec
=
8534 supports_anon_versioning
=no
8535 case `$LD -v 2>&1` in
8536 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
8537 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
8538 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
8539 *\
2.11.
*) ;; # other 2.11 versions
8540 *) supports_anon_versioning
=yes ;;
8543 # See if GNU ld supports shared libraries.
8546 # On AIX/PPC, the GNU linker is very broken
8547 if test "$host_cpu" != ia64
; then
8551 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8552 *** to be unable to reliably create shared libraries on AIX.
8553 *** Therefore, libtool is disabling shared libraries support. If you
8554 *** really care for shared libraries, you may want to modify your PATH
8555 *** so that a non-GNU linker is found, and then restart.
8564 # see comment about AmigaOS4 .so support
8565 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8566 archive_expsym_cmds
=''
8569 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)'
8570 hardcode_libdir_flag_spec
='-L$libdir'
8571 hardcode_minus_L
=yes
8577 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8578 allow_undefined_flag
=unsupported
8579 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8580 # support --undefined. This deserves some investigation. FIXME
8581 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8587 cygwin
* | mingw
* | pw32
* | cegcc
*)
8588 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8589 # as there is no search path for DLLs.
8590 hardcode_libdir_flag_spec
='-L$libdir'
8591 allow_undefined_flag
=unsupported
8592 always_export_symbols
=no
8593 enable_shared_with_static_runtimes
=yes
8594 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8596 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
8597 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8598 # If the export-symbols file already is a .def file (1st line
8599 # is EXPORTS), use it as is; otherwise, prepend...
8600 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8601 cp $export_symbols $output_objdir/$soname.def;
8603 echo EXPORTS > $output_objdir/$soname.def;
8604 cat $export_symbols >> $output_objdir/$soname.def;
8606 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8614 hardcode_shlibpath_var
=no
8615 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8616 export_dynamic_flag_spec
='${wl}-E'
8617 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8618 # Instead, shared libraries are loaded at an image base (0x10000000 by
8619 # default) and relocated if they conflict, which is a slow very memory
8620 # consuming and fragmenting process. To avoid this, we pick a random,
8621 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8622 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8623 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8624 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'
8627 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu)
8629 if test "$host_os" = linux-dietlibc
; then
8630 case $cc_basename in
8631 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
8634 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
8635 && test "$tmp_diet" = no
8638 tmp_sharedflag
='-shared'
8639 case $cc_basename,$host_cpu in
8640 pgcc
*) # Portland Group C compiler
8641 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'
8642 tmp_addflag
=' $pic_flag'
8644 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
8645 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'
8646 tmp_addflag
=' $pic_flag -Mnomain' ;;
8647 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8648 tmp_addflag
=' -i_dynamic' ;;
8649 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8650 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8651 ifc
* | ifort
*) # Intel Fortran compiler
8652 tmp_addflag
=' -nofor_main' ;;
8653 lf95
*) # Lahey Fortran 8.1
8654 whole_archive_flag_spec
=
8655 tmp_sharedflag
='--shared' ;;
8656 xl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8657 tmp_sharedflag
='-qmkshrobj'
8660 case `$CC -V 2>&1 | sed 5q` in
8661 *Sun\ C
*) # Sun C 5.9
8662 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'
8663 compiler_needs_object
=yes
8664 tmp_sharedflag
='-G' ;;
8665 *Sun\ F
*) # Sun Fortran 8.3
8666 tmp_sharedflag
='-G' ;;
8668 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8670 if test "x$supports_anon_versioning" = xyes
; then
8671 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8672 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8673 echo "local: *; };" >> $output_objdir/$libname.ver~
8674 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8677 case $cc_basename in
8679 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8680 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
8681 hardcode_libdir_flag_spec
=
8682 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8683 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8684 if test "x$supports_anon_versioning" = xyes
; then
8685 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8686 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8687 echo "local: *; };" >> $output_objdir/$libname.ver~
8688 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8698 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
8699 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8702 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8703 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8708 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
8712 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8713 *** create shared libraries on Solaris systems. Therefore, libtool
8714 *** is disabling shared libraries support. We urge you to upgrade GNU
8715 *** binutils to release 2.9.1 or newer. Another option is to modify
8716 *** your PATH or compiler configuration so that the native linker is
8717 *** used, and then restart.
8720 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8721 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8722 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8728 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8729 case `$LD -v 2>&1` in
8730 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
8734 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8735 *** reliably create shared libraries on SCO systems. Therefore, libtool
8736 *** is disabling shared libraries support. We urge you to upgrade GNU
8737 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8738 *** your PATH or compiler configuration so that the native linker is
8739 *** used, and then restart.
8744 # For security reasons, it is highly recommended that you always
8745 # use absolute paths for naming shared libraries, and exclude the
8746 # DT_RUNPATH tag from executables and libraries. But doing so
8747 # requires that you compile everything twice, which is a pain.
8748 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8749 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8750 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8751 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8760 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8763 hardcode_shlibpath_var
=no
8767 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8768 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8769 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8776 if test "$ld_shlibs" = no
; then
8778 hardcode_libdir_flag_spec
=
8779 export_dynamic_flag_spec
=
8780 whole_archive_flag_spec
=
8783 # PORTME fill in a description of your system's linker (not GNU ld)
8786 allow_undefined_flag
=unsupported
8787 always_export_symbols
=yes
8788 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'
8789 # Note: this linker hardcodes the directories in LIBPATH if there
8790 # are no directories specified by -L.
8791 hardcode_minus_L
=yes
8792 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8793 # Neither direct hardcoding nor static linking is supported with a
8795 hardcode_direct
=unsupported
8800 if test "$host_cpu" = ia64
; then
8801 # On IA64, the linker does run time linking by default, so we don't
8802 # have to do anything special.
8803 aix_use_runtimelinking
=no
8804 exp_sym_flag
='-Bexport'
8807 # If we're using GNU nm, then we don't want the "-C" option.
8808 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8809 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
8810 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'
8812 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'
8814 aix_use_runtimelinking
=no
8816 # Test if we are trying to use run time linking or normal
8817 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8818 # need to do runtime linking.
8819 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
8820 for ld_flag
in $LDFLAGS; do
8821 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
8822 aix_use_runtimelinking
=yes
8829 exp_sym_flag
='-bexport'
8830 no_entry_flag
='-bnoentry'
8833 # When large executables or shared objects are built, AIX ld can
8834 # have problems creating the table of contents. If linking a library
8835 # or program results in "error TOC overflow" add -mminimal-toc to
8836 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8837 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8841 hardcode_direct_absolute
=yes
8842 hardcode_libdir_separator
=':'
8843 link_all_deplibs
=yes
8844 file_list_spec
='${wl}-f,'
8846 if test "$GCC" = yes; then
8847 case $host_os in aix4.
[012]|aix4.
[012].
*)
8848 # We only want to do this on AIX 4.2 and lower, the check
8849 # below for broken collect2 doesn't work under 4.3+
8850 collect2name
=`${CC} -print-prog-name=collect2`
8851 if test -f "$collect2name" &&
8852 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
8854 # We have reworked collect2
8857 # We have old collect2
8858 hardcode_direct
=unsupported
8859 # It fails to find uninstalled libraries when the uninstalled
8860 # path is not listed in the libpath. Setting hardcode_minus_L
8861 # to unsupported forces relinking
8862 hardcode_minus_L
=yes
8863 hardcode_libdir_flag_spec
='-L$libdir'
8864 hardcode_libdir_separator
=
8868 shared_flag
='-shared'
8869 if test "$aix_use_runtimelinking" = yes; then
8870 shared_flag
="$shared_flag "'${wl}-G'
8874 if test "$host_cpu" = ia64
; then
8875 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8876 # chokes on -Wl,-G. The following line is correct:
8879 if test "$aix_use_runtimelinking" = yes; then
8880 shared_flag
='${wl}-G'
8882 shared_flag
='${wl}-bM:SRE'
8887 export_dynamic_flag_spec
='${wl}-bexpall'
8888 # It seems that -bexpall does not export symbols beginning with
8889 # underscore (_), so it is better to generate a list of symbols to export.
8890 always_export_symbols
=yes
8891 if test "$aix_use_runtimelinking" = yes; then
8892 # Warning - without using the other runtime loading flags (-brtl),
8893 # -berok will link without error, but may produce a broken library.
8894 allow_undefined_flag
='-berok'
8895 # Determine the default libpath from the value encoded in an
8897 cat >conftest.
$ac_ext <<_ACEOF
8900 cat confdefs.h
>>conftest.
$ac_ext
8901 cat >>conftest.
$ac_ext <<_ACEOF
8902 /* end confdefs.h. */
8912 rm -f conftest.
$ac_objext conftest
$ac_exeext
8913 if { (ac_try
="$ac_link"
8915 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8916 *) ac_try_echo=$ac_try;;
8918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8919 $as_echo "$ac_try_echo") >&5
8920 (eval "$ac_link") 2>conftest.er1
8922 grep -v '^ *+' conftest.er1 >conftest.err
8924 cat conftest.err >&5
8925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); } && {
8927 test -z "$ac_c_werror_flag" ||
8928 test ! -s conftest.err
8929 } && test -s conftest$ac_exeext && {
8930 test "$cross_compiling" = yes ||
8931 $as_test_x conftest$ac_exeext
8934 lt_aix_libpath_sed='
8935 /Import File Strings/,/^$/ {
8941 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8942 # Check for a 64-bit object if we didn't find anything.
8943 if test -z "$aix_libpath"; then
8944 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8947 $as_echo "$as_me: failed program was:" >&5
8948 sed 's/^/| /' conftest.$ac_ext >&5
8953 rm -rf conftest.dSYM
8954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8955 conftest$ac_exeext conftest.$ac_ext
8956 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8958 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8959 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"
8961 if test "$host_cpu" = ia64; then
8962 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8963 allow_undefined_flag="-z nodefs"
8964 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"
8966 # Determine the default libpath from the value encoded in an
8968 cat >conftest.$ac_ext <<_ACEOF
8971 cat confdefs.h >>conftest.$ac_ext
8972 cat >>conftest.$ac_ext <<_ACEOF
8973 /* end confdefs.h. */
8983 rm -f conftest.$ac_objext conftest$ac_exeext
8984 if { (ac_try="$ac_link"
8986 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8987 *) ac_try_echo
=$ac_try;;
8989 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
8990 $as_echo "$ac_try_echo") >&5
8991 (eval "$ac_link") 2>conftest.er1
8993 grep -v '^ *+' conftest.er1
>conftest.err
8995 cat conftest.err
>&5
8996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); } && {
8998 test -z "$ac_c_werror_flag" ||
8999 test ! -s conftest.err
9000 } && test -s conftest
$ac_exeext && {
9001 test "$cross_compiling" = yes ||
9002 $as_test_x conftest
$ac_exeext
9005 lt_aix_libpath_sed
='
9006 /Import File Strings/,/^$/ {
9012 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9013 # Check for a 64-bit object if we didn't find anything.
9014 if test -z "$aix_libpath"; then
9015 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9018 $as_echo "$as_me: failed program was:" >&5
9019 sed 's/^/| /' conftest.
$ac_ext >&5
9024 rm -rf conftest.dSYM
9025 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9026 conftest
$ac_exeext conftest.
$ac_ext
9027 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
9029 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9030 # Warning - without using the other run time loading flags,
9031 # -berok will link without error, but may produce a broken library.
9032 no_undefined_flag
=' ${wl}-bernotok'
9033 allow_undefined_flag
=' ${wl}-berok'
9034 # Exported symbols can be pulled into shared objects from archives
9035 whole_archive_flag_spec
='$convenience'
9036 archive_cmds_need_lc
=yes
9037 # This is similar to how AIX traditionally builds its shared libraries.
9038 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'
9046 # see comment about AmigaOS4 .so support
9047 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9048 archive_expsym_cmds
=''
9051 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)'
9052 hardcode_libdir_flag_spec
='-L$libdir'
9053 hardcode_minus_L
=yes
9059 export_dynamic_flag_spec
=-rdynamic
9062 cygwin
* | mingw
* | pw32
* | cegcc
*)
9063 # When not using gcc, we currently assume that we are using
9064 # Microsoft Visual C++.
9065 # hardcode_libdir_flag_spec is actually meaningless, as there is
9066 # no search path for DLLs.
9067 hardcode_libdir_flag_spec
=' '
9068 allow_undefined_flag
=unsupported
9069 # Tell ltmain to make .lib files, not .a files.
9071 # Tell ltmain to make .dll files, not .so files.
9073 # FIXME: Setting linknames here is a bad hack.
9074 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9075 # The linker will automatically build a .lib file if we build a DLL.
9076 old_archive_from_new_cmds
='true'
9077 # FIXME: Should let the user specify the lib program.
9078 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9079 fix_srcfile_path
='`cygpath -w "$srcfile"`'
9080 enable_shared_with_static_runtimes
=yes
9083 darwin
* | rhapsody
*)
9086 archive_cmds_need_lc
=no
9088 hardcode_automatic
=yes
9089 hardcode_shlibpath_var
=unsupported
9090 whole_archive_flag_spec
=''
9091 link_all_deplibs
=yes
9092 allow_undefined_flag
="$_lt_dar_allow_undefined"
9093 case $cc_basename in
9094 ifort
*) _lt_dar_can_shared
=yes ;;
9095 *) _lt_dar_can_shared
=$GCC ;;
9097 if test "$_lt_dar_can_shared" = "yes"; then
9098 output_verbose_link_cmd
=echo
9099 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9100 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9101 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}"
9102 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}"
9111 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9112 hardcode_libdir_flag_spec
='-L$libdir'
9113 hardcode_shlibpath_var
=no
9120 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9121 # support. Future versions do this automatically, but an explicit c++rt0.o
9122 # does not break anything, and helps significantly (at the cost of a little
9125 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9126 hardcode_libdir_flag_spec
='-R$libdir'
9128 hardcode_shlibpath_var
=no
9131 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9133 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9135 hardcode_minus_L
=yes
9136 hardcode_shlibpath_var
=no
9139 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9140 freebsd
* | dragonfly
*)
9141 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9142 hardcode_libdir_flag_spec
='-R$libdir'
9144 hardcode_shlibpath_var
=no
9148 if test "$GCC" = yes; then
9149 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'
9151 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'
9153 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9154 hardcode_libdir_separator
=:
9157 # hardcode_minus_L: Not really in the search PATH,
9158 # but as the default location of the library.
9159 hardcode_minus_L
=yes
9160 export_dynamic_flag_spec
='${wl}-E'
9164 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
9165 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9167 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9169 if test "$with_gnu_ld" = no
; then
9170 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9171 hardcode_libdir_flag_spec_ld
='+b $libdir'
9172 hardcode_libdir_separator
=:
9174 hardcode_direct_absolute
=yes
9175 export_dynamic_flag_spec
='${wl}-E'
9176 # hardcode_minus_L: Not really in the search PATH,
9177 # but as the default location of the library.
9178 hardcode_minus_L
=yes
9183 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
9186 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9189 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9192 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9198 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9201 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9204 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9208 if test "$with_gnu_ld" = no
; then
9209 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9210 hardcode_libdir_separator
=:
9215 hardcode_shlibpath_var
=no
9219 hardcode_direct_absolute
=yes
9220 export_dynamic_flag_spec
='${wl}-E'
9222 # hardcode_minus_L: Not really in the search PATH,
9223 # but as the default location of the library.
9224 hardcode_minus_L
=yes
9230 irix5
* | irix6
* | nonstopux
*)
9231 if test "$GCC" = yes; then
9232 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'
9233 # Try to use the -exported_symbol ld option, if it does not
9234 # work, assume that -exports_file does not work either and
9235 # implicitly export all symbols.
9236 save_LDFLAGS
="$LDFLAGS"
9237 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9238 cat >conftest.
$ac_ext <<_ACEOF
9241 rm -f conftest.
$ac_objext conftest
$ac_exeext
9242 if { (ac_try
="$ac_link"
9244 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9245 *) ac_try_echo=$ac_try;;
9247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9248 $as_echo "$ac_try_echo") >&5
9249 (eval "$ac_link") 2>conftest.er1
9251 grep -v '^ *+' conftest.er1 >conftest.err
9253 cat conftest.err >&5
9254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9255 (exit $ac_status); } && {
9256 test -z "$ac_c_werror_flag" ||
9257 test ! -s conftest.err
9258 } && test -s conftest$ac_exeext && {
9259 test "$cross_compiling" = yes ||
9260 $as_test_x conftest$ac_exeext
9262 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'
9265 $as_echo "$as_me: failed program was:" >&5
9266 sed 's/^/| /' conftest.$ac_ext >&5
9271 rm -rf conftest.dSYM
9272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9273 conftest$ac_exeext conftest.$ac_ext
9274 LDFLAGS="$save_LDFLAGS"
9276 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'
9277 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'
9279 archive_cmds_need_lc='no'
9280 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9281 hardcode_libdir_separator=:
9283 link_all_deplibs=yes
9287 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9288 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9290 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9292 hardcode_libdir_flag_spec='-R$libdir'
9294 hardcode_shlibpath_var=no
9298 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9300 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9301 hardcode_libdir_separator=:
9302 hardcode_shlibpath_var=no
9309 if test -f /usr/libexec/ld.so; then
9311 hardcode_shlibpath_var=no
9312 hardcode_direct_absolute=yes
9313 if test -z "`echo __ELF__ |
$CC -E - |
$GREP __ELF__
`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9314 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9315 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9316 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9317 export_dynamic_flag_spec='${wl}-E'
9320 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9321 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9322 hardcode_libdir_flag_spec='-R$libdir'
9325 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9326 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9336 hardcode_libdir_flag_spec='-L$libdir'
9337 hardcode_minus_L=yes
9338 allow_undefined_flag=unsupported
9339 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'
9340 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9344 if test "$GCC" = yes; then
9345 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9346 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'
9348 allow_undefined_flag=' -expect_unresolved \*'
9349 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'
9351 archive_cmds_need_lc='no'
9352 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9353 hardcode_libdir_separator=:
9356 osf4* | osf5*) # as osf3* with the addition of -msym flag
9357 if test "$GCC" = yes; then
9358 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9359 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'
9360 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9362 allow_undefined_flag=' -expect_unresolved \*'
9363 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'
9364 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~
9365 $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'
9367 # Both c and cxx compiler support -rpath directly
9368 hardcode_libdir_flag_spec='-rpath $libdir'
9370 archive_cmds_need_lc='no'
9371 hardcode_libdir_separator=:
9375 no_undefined_flag=' -z defs'
9376 if test "$GCC" = yes; then
9378 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9379 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9380 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9382 case `$CC -V 2>&1` in
9385 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9386 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9387 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9391 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9392 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9393 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9397 hardcode_libdir_flag_spec='-R$libdir'
9398 hardcode_shlibpath_var=no
9400 solaris2.[0-5] | solaris2.[0-5].*) ;;
9402 # The compiler driver will combine and reorder linker options,
9403 # but understands `-z linker_flag
'. GCC discards it without `$wl',
9404 # but is careful enough not to reorder.
9405 # Supported since Solaris 2.6 (maybe 2.5.1?)
9406 if test "$GCC" = yes; then
9407 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9409 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9413 link_all_deplibs
=yes
9417 if test "x$host_vendor" = xsequent
; then
9418 # Use $CC to link under sequent, because it throws in some extra .o
9419 # files that make .init and .fini sections work.
9420 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9422 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9424 hardcode_libdir_flag_spec
='-L$libdir'
9426 hardcode_minus_L
=yes
9427 hardcode_shlibpath_var
=no
9431 case $host_vendor in
9433 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9434 hardcode_direct
=yes # is this really true???
9437 ## LD is ld it makes a PLAMLIB
9438 ## CC just makes a GrossModule.
9439 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9440 reload_cmds
='$CC -r -o $output$reload_objs'
9444 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9445 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9448 runpath_var
='LD_RUN_PATH'
9449 hardcode_shlibpath_var
=no
9453 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9454 hardcode_shlibpath_var
=no
9455 export_dynamic_flag_spec
='-Bexport'
9459 if test -d /usr
/nec
; then
9460 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9461 hardcode_shlibpath_var
=no
9462 runpath_var
=LD_RUN_PATH
9463 hardcode_runpath_var
=yes
9468 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9469 no_undefined_flag
='${wl}-z,text'
9470 archive_cmds_need_lc
=no
9471 hardcode_shlibpath_var
=no
9472 runpath_var
='LD_RUN_PATH'
9474 if test "$GCC" = yes; then
9475 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9476 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9478 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9479 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9483 sysv5
* | sco3.2v5
* | sco5v6
*)
9484 # Note: We can NOT use -z defs as we might desire, because we do not
9485 # link with -lc, and that would cause any symbols used from libc to
9486 # always be unresolved, which means just about no library would
9487 # ever link correctly. If we're not using GNU ld we use -z text
9488 # though, which does catch some bad symbols but isn't as heavy-handed
9490 no_undefined_flag
='${wl}-z,text'
9491 allow_undefined_flag
='${wl}-z,nodefs'
9492 archive_cmds_need_lc
=no
9493 hardcode_shlibpath_var
=no
9494 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
9495 hardcode_libdir_separator
=':'
9496 link_all_deplibs
=yes
9497 export_dynamic_flag_spec
='${wl}-Bexport'
9498 runpath_var
='LD_RUN_PATH'
9500 if test "$GCC" = yes; then
9501 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9502 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9504 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9505 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9510 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9511 hardcode_libdir_flag_spec
='-L$libdir'
9512 hardcode_shlibpath_var
=no
9520 if test x
$host_vendor = xsni
; then
9522 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
9523 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9529 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9530 $as_echo "$ld_shlibs" >&6; }
9531 test "$ld_shlibs" = no
&& can_build_shared
=no
9533 with_gnu_ld
=$with_gnu_ld
9550 # Do we need to explicitly link libc?
9552 case "x$archive_cmds_need_lc" in
9554 # Assume -lc should be added
9555 archive_cmds_need_lc
=yes
9557 if test "$enable_shared" = yes && test "$GCC" = yes; then
9558 case $archive_cmds in
9560 # FIXME: we may have to deal with multi-command sequences.
9563 # Test whether the compiler implicitly links with -lc since on some
9564 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9565 # to ld, don't add -lc before -lgcc.
9566 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9567 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9569 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9572 (eval $ac_compile) 2>&5
9574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); } 2>conftest.err
; then
9578 libobjs
=conftest.
$ac_objext
9580 wl
=$lt_prog_compiler_wl
9581 pic_flag
=$lt_prog_compiler_pic
9587 lt_save_allow_undefined_flag
=$allow_undefined_flag
9588 allow_undefined_flag
=
9589 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9590 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593 (exit $ac_status); }
9595 archive_cmds_need_lc
=no
9597 archive_cmds_need_lc
=yes
9599 allow_undefined_flag
=$lt_save_allow_undefined_flag
9601 cat conftest.err
1>&5
9604 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9605 $as_echo "$archive_cmds_need_lc" >&6; }
9768 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9769 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9771 if test "$GCC" = yes; then
9773 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
9774 *) lt_awk_arg
="/^libraries:/" ;;
9776 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9777 if $ECHO "$lt_search_path_spec" |
$GREP ';' >/dev
/null
; then
9778 # if the path contains ";" then we assume it to be the separator
9779 # otherwise default to the standard path separator (i.e. ":") - it is
9780 # assumed that no part of a normal pathname contains ";" but that should
9781 # okay in the real world where ";" in dirpaths is itself problematic.
9782 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9784 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9786 # Ok, now we have the path, separated by spaces, we can step through it
9787 # and add multilib dir if necessary.
9788 lt_tmp_lt_search_path_spec
=
9789 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9790 for lt_sys_path
in $lt_search_path_spec; do
9791 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9792 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9794 test -d "$lt_sys_path" && \
9795 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
9798 lt_search_path_spec
=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9799 BEGIN {RS=" "; FS="/|\n";} {
9802 for (lt_i = NF; lt_i > 0; lt_i--) {
9803 if ($lt_i != "" && $lt_i != ".") {
9804 if ($lt_i == "..") {
9807 if (lt_count == 0) {
9808 lt_foo="/" $lt_i lt_foo;
9815 if (lt_foo != "") { lt_freq[lt_foo]++; }
9816 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9818 sys_lib_search_path_spec
=`$ECHO $lt_search_path_spec`
9820 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
9823 libname_spec
='lib$name'
9831 shlibpath_overrides_runpath
=unknown
9833 dynamic_linker
="$host_os ld.so"
9834 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
9835 need_lib_prefix
=unknown
9836 hardcode_into_libs
=no
9838 # when you set need_version to no, make sure it does not cause -set_version
9839 # flags to be left without arguments
9840 need_version
=unknown
9845 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
9846 shlibpath_var
=LIBPATH
9848 # AIX 3 has no versioning support, so we append a major version to the name.
9849 soname_spec
='${libname}${release}${shared_ext}$major'
9856 hardcode_into_libs
=yes
9857 if test "$host_cpu" = ia64
; then
9858 # AIX 5 supports IA64
9859 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9860 shlibpath_var
=LD_LIBRARY_PATH
9862 # With GCC up to 2.95.x, collect2 would create an import file
9863 # for dependence libraries. The import file would start with
9864 # the line `#! .'. This would cause the generated library to
9865 # depend on `.', always an invalid library. This was fixed in
9866 # development snapshots of GCC prior to 3.0.
9868 aix4 | aix4.
[01] | aix4.
[01].
*)
9869 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9871 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
9878 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9879 # soname into executable. Probably we can add versioning support to
9880 # collect2, so additional links can be useful in future.
9881 if test "$aix_use_runtimelinking" = yes; then
9882 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9883 # instead of lib<name>.a to let people know that these are not
9884 # typical AIX shared libraries.
9885 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9887 # We preserve .a as extension for shared libraries through AIX4.2
9888 # and later when we are not doing run time linking.
9889 library_names_spec
='${libname}${release}.a $libname.a'
9890 soname_spec
='${libname}${release}${shared_ext}$major'
9892 shlibpath_var
=LIBPATH
9899 # Since July 2007 AmigaOS4 officially supports .so libraries.
9900 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9901 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9904 library_names_spec
='$libname.ixlibrary $libname.a'
9905 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9906 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'
9912 library_names_spec
='${libname}${shared_ext}'
9913 dynamic_linker
="$host_os ld.so"
9914 shlibpath_var
=LIBRARY_PATH
9920 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9921 soname_spec
='${libname}${release}${shared_ext}$major'
9922 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
9923 shlibpath_var
=LD_LIBRARY_PATH
9924 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9925 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
9926 # the default ld.so.conf also contains /usr/contrib/lib and
9927 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9928 # libtool to hard-code these into programs
9931 cygwin
* | mingw
* | pw32
* | cegcc
*)
9932 version_type
=windows
9937 case $GCC,$host_os in
9938 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
9939 library_names_spec
='$libname.dll.a'
9940 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9941 postinstall_cmds
='base_file=`basename \${file}`~
9942 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9943 dldir=$destdir/`dirname \$dlpath`~
9944 test -d \$dldir || mkdir -p \$dldir~
9945 $install_prog $dir/$dlname \$dldir/$dlname~
9946 chmod a+x \$dldir/$dlname~
9947 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9948 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9950 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9951 dlpath=$dir/\$dldll~
9953 shlibpath_overrides_runpath
=yes
9957 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9958 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9959 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
9962 # MinGW DLLs use traditional 'lib' prefix
9963 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9964 sys_lib_search_path_spec
=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9965 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
9966 # It is most probably a Windows format PATH printed by
9967 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9968 # path with ; separators, and with drive letters. We can handle the
9969 # drive letters (cygwin fileutils understands them), so leave them,
9970 # especially as we might pass files found there to a mingw objdump,
9971 # which wouldn't understand a cygwinified path. Ahh.
9972 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9974 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9978 # pw32 DLLs use 'pw' prefix rather than 'lib'
9979 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9985 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9988 dynamic_linker
='Win32 ld.exe'
9989 # FIXME: first we should search . and the directory the executable is in
9993 darwin
* | rhapsody
*)
9994 dynamic_linker
="$host_os dyld"
9998 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9999 soname_spec
='${libname}${release}${major}$shared_ext'
10000 shlibpath_overrides_runpath
=yes
10001 shlibpath_var
=DYLD_LIBRARY_PATH
10002 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10004 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10005 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10012 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10013 soname_spec
='${libname}${release}${shared_ext}$major'
10014 shlibpath_var
=LD_LIBRARY_PATH
10021 freebsd
* | dragonfly
*)
10022 # DragonFly does not have aout. When/if they implement a new
10023 # versioning mechanism, adjust this.
10024 if test -x /usr
/bin
/objformat
; then
10025 objformat
=`/usr/bin/objformat`
10028 freebsd
[123]*) objformat
=aout
;;
10029 *) objformat
=elf
;;
10032 version_type
=freebsd-
$objformat
10033 case $version_type in
10035 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10040 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10044 shlibpath_var
=LD_LIBRARY_PATH
10047 shlibpath_overrides_runpath
=yes
10049 freebsd3.
[01]* | freebsdelf3.
[01]*)
10050 shlibpath_overrides_runpath
=yes
10051 hardcode_into_libs
=yes
10053 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10054 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10055 shlibpath_overrides_runpath
=no
10056 hardcode_into_libs
=yes
10058 *) # from 4.6 on, and DragonFly
10059 shlibpath_overrides_runpath
=yes
10060 hardcode_into_libs
=yes
10069 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10070 soname_spec
='${libname}${release}${shared_ext}$major'
10071 shlibpath_var
=LD_LIBRARY_PATH
10072 hardcode_into_libs
=yes
10075 hpux9
* | hpux10
* | hpux11
*)
10076 # Give a soname corresponding to the major version so that dld.sl refuses to
10077 # link against other versions.
10084 hardcode_into_libs
=yes
10085 dynamic_linker
="$host_os dld.so"
10086 shlibpath_var
=LD_LIBRARY_PATH
10087 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10088 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10089 soname_spec
='${libname}${release}${shared_ext}$major'
10090 if test "X$HPUX_IA64_MODE" = X32
; then
10091 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10093 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10095 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10099 hardcode_into_libs
=yes
10100 dynamic_linker
="$host_os dld.sl"
10101 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10102 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10103 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10104 soname_spec
='${libname}${release}${shared_ext}$major'
10105 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10106 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10110 dynamic_linker
="$host_os dld.sl"
10111 shlibpath_var
=SHLIB_PATH
10112 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10113 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10114 soname_spec
='${libname}${release}${shared_ext}$major'
10117 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10118 postinstall_cmds
='chmod 555 $lib'
10125 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10126 soname_spec
='${libname}${release}${shared_ext}$major'
10127 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10128 shlibpath_var
=LD_LIBRARY_PATH
10129 shlibpath_overrides_runpath
=no
10130 hardcode_into_libs
=yes
10133 irix5
* | irix6
* | nonstopux
*)
10135 nonstopux
*) version_type
=nonstopux
;;
10137 if test "$lt_cv_prog_gnu_ld" = yes; then
10145 soname_spec
='${libname}${release}${shared_ext}$major'
10146 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10148 irix5
* | nonstopux
*)
10149 libsuff
= shlibsuff
=
10152 case $LD in # libtool.m4 will add one of these switches to LD
10153 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10154 libsuff
= shlibsuff
= libmagic
=32-bit;;
10155 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10156 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10157 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10158 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10159 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10163 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10164 shlibpath_overrides_runpath
=no
10165 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10166 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10167 hardcode_into_libs
=yes
10170 # No shared lib support for Linux oldld, aout, or coff.
10171 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10175 # This must be Linux ELF.
10176 linux
* | k
*bsd
*-gnu)
10180 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10181 soname_spec
='${libname}${release}${shared_ext}$major'
10182 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10183 shlibpath_var
=LD_LIBRARY_PATH
10184 shlibpath_overrides_runpath
=no
10185 # Some binutils ld are patched to set DT_RUNPATH
10186 save_LDFLAGS
=$LDFLAGS
10187 save_libdir
=$libdir
10188 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10189 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10190 cat >conftest.
$ac_ext <<_ACEOF
10193 cat confdefs.h
>>conftest.
$ac_ext
10194 cat >>conftest.
$ac_ext <<_ACEOF
10195 /* end confdefs.h. */
10205 rm -f conftest.
$ac_objext conftest
$ac_exeext
10206 if { (ac_try
="$ac_link"
10207 case "(($ac_try" in
10208 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10209 *) ac_try_echo=$ac_try;;
10211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10212 $as_echo "$ac_try_echo") >&5
10213 (eval "$ac_link") 2>conftest.er1
10215 grep -v '^ *+' conftest.er1 >conftest.err
10217 cat conftest.err >&5
10218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); } && {
10220 test -z "$ac_c_werror_flag" ||
10221 test ! -s conftest.err
10222 } && test -s conftest$ac_exeext && {
10223 test "$cross_compiling" = yes ||
10224 $as_test_x conftest$ac_exeext
10226 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10227 shlibpath_overrides_runpath=yes
10231 $as_echo "$as_me: failed program was:" >&5
10232 sed 's/^/| /' conftest.$ac_ext >&5
10237 rm -rf conftest.dSYM
10238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10239 conftest$ac_exeext conftest.$ac_ext
10240 LDFLAGS=$save_LDFLAGS
10241 libdir=$save_libdir
10243 # This implies no fast_install, which is unacceptable.
10244 # Some rework will be needed to allow for fast_install
10245 # before this can be enabled.
10246 hardcode_into_libs=yes
10248 # Add ABI-specific directories to the system library path.
10249 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10251 # Append ld.so.conf contents to the search path
10252 if test -f /etc/ld.so.conf; then
10253 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' ' '`
10254 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10257 # We used to test for /lib/ld.so.1 and disable shared libraries on
10258 # powerpc, because MkLinux only supported shared libraries with the
10259 # GNU dynamic linker. Since this was broken with cross compilers,
10260 # most powerpc-linux boxes support dynamic linking these days and
10261 # people can always --disable-shared, the test was removed, and we
10262 # assume the GNU/Linux dynamic linker is in use.
10263 dynamic_linker='GNU/Linux ld.so'
10270 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10272 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10273 dynamic_linker='NetBSD (a.out) ld.so'
10275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10276 soname_spec='${libname}${release}${shared_ext}$major'
10277 dynamic_linker='NetBSD ld.elf_so'
10279 shlibpath_var=LD_LIBRARY_PATH
10280 shlibpath_overrides_runpath=yes
10281 hardcode_into_libs=yes
10286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10287 shlibpath_var=LD_LIBRARY_PATH
10288 shlibpath_overrides_runpath=yes
10295 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10296 soname_spec='${libname}${release}${shared_ext}$major'
10297 shlibpath_var=LD_LIBRARY_PATH
10298 shlibpath_overrides_runpath=no
10299 hardcode_into_libs=yes
10300 dynamic_linker='ldqnx.so'
10305 sys_lib_dlsearch_path_spec="/usr/lib"
10307 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10309 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10310 *) need_version=no ;;
10312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10313 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10314 shlibpath_var=LD_LIBRARY_PATH
10315 if test -z "`echo __ELF__ |
$CC -E - |
$GREP __ELF__
`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10317 openbsd2.[89] | openbsd2.[89].*)
10318 shlibpath_overrides_runpath=no
10321 shlibpath_overrides_runpath=yes
10325 shlibpath_overrides_runpath=yes
10330 libname_spec='$name'
10333 library_names_spec='$libname${shared_ext} $libname.a'
10334 dynamic_linker='OS/2 ld.exe'
10335 shlibpath_var=LIBPATH
10338 osf3* | osf4* | osf5*)
10342 soname_spec='${libname}${release}${shared_ext}$major'
10343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10344 shlibpath_var=LD_LIBRARY_PATH
10345 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10346 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10358 soname_spec='${libname}${release}${shared_ext}$major'
10359 shlibpath_var=LD_LIBRARY_PATH
10360 shlibpath_overrides_runpath=yes
10361 hardcode_into_libs=yes
10362 # ldd complains unless libraries are executable
10363 postinstall_cmds='chmod +x $lib'
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10369 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10370 shlibpath_var=LD_LIBRARY_PATH
10371 shlibpath_overrides_runpath=yes
10372 if test "$with_gnu_ld" = yes; then
10380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10381 soname_spec='${libname}${release}${shared_ext}$major'
10382 shlibpath_var=LD_LIBRARY_PATH
10383 case $host_vendor in
10385 shlibpath_overrides_runpath=no
10387 runpath_var=LD_RUN_PATH
10395 shlibpath_overrides_runpath=no
10396 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10402 if test -d /usr/nec ;then
10404 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10405 soname_spec='$libname${shared_ext}.$major'
10406 shlibpath_var=LD_LIBRARY_PATH
10410 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10411 version_type=freebsd-elf
10414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10415 soname_spec='${libname}${release}${shared_ext}$major'
10416 shlibpath_var=LD_LIBRARY_PATH
10417 shlibpath_overrides_runpath=yes
10418 hardcode_into_libs=yes
10419 if test "$with_gnu_ld" = yes; then
10420 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10422 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10425 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10429 sys_lib_dlsearch_path_spec='/usr/lib'
10433 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10438 shlibpath_var=LD_LIBRARY_PATH
10439 shlibpath_overrides_runpath=no
10440 hardcode_into_libs=yes
10445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10446 soname_spec='${libname}${release}${shared_ext}$major'
10447 shlibpath_var=LD_LIBRARY_PATH
10454 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10455 $as_echo "$dynamic_linker" >&6; }
10456 test "$dynamic_linker" = no && can_build_shared=no
10458 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10459 if test "$GCC" = yes; then
10460 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10463 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10464 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10466 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10467 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10556 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10557 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10559 if test -n "$hardcode_libdir_flag_spec" ||
10560 test -n "$runpath_var" ||
10561 test "X$hardcode_automatic" = "Xyes" ; then
10563 # We can hardcode non-existent directories.
10564 if test "$hardcode_direct" != no &&
10565 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10566 # have to relink, otherwise we might link with an installed library
10567 # when we should be linking with a yet-to-be-installed one
10568 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10569 test "$hardcode_minus_L" != no; then
10570 # Linking always hardcodes the temporary library directory.
10571 hardcode_action=relink
10573 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10574 hardcode_action=immediate
10577 # We cannot hardcode anything, or else we can only hardcode existing
10579 hardcode_action=unsupported
10581 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
10582 $as_echo "$hardcode_action" >&6; }
10584 if test "$hardcode_action" = relink ||
10585 test "$inherit_rpath" = yes; then
10586 # Fast installation is not supported
10587 enable_fast_install=no
10588 elif test "$shlibpath_overrides_runpath" = yes ||
10589 test "$enable_shared" = no; then
10590 # Fast installation is not necessary
10591 enable_fast_install=needless
10599 if test "x$enable_dlopen" != xyes; then
10600 enable_dlopen=unknown
10601 enable_dlopen_self=unknown
10602 enable_dlopen_self_static=unknown
10609 lt_cv_dlopen="load_add_on"
10611 lt_cv_dlopen_self=yes
10614 mingw* | pw32* | cegcc*)
10615 lt_cv_dlopen="LoadLibrary"
10620 lt_cv_dlopen="dlopen"
10625 # if libdl is installed we need to link against it
10626 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10627 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10628 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10629 $as_echo_n "(cached) " >&6
10631 ac_check_lib_save_LIBS=$LIBS
10633 cat >conftest.$ac_ext <<_ACEOF
10636 cat confdefs.h >>conftest.$ac_ext
10637 cat >>conftest.$ac_ext <<_ACEOF
10638 /* end confdefs.h. */
10640 /* Override any GCC internal prototype to avoid an error.
10641 Use char because int might match the return type of a GCC
10642 builtin and then its argument prototype would still apply. */
10655 rm -f conftest.$ac_objext conftest$ac_exeext
10656 if { (ac_try="$ac_link"
10657 case "(($ac_try" in
10658 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10659 *) ac_try_echo
=$ac_try;;
10661 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10662 $as_echo "$ac_try_echo") >&5
10663 (eval "$ac_link") 2>conftest.er1
10665 grep -v '^ *+' conftest.er1
>conftest.err
10667 cat conftest.err
>&5
10668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); } && {
10670 test -z "$ac_c_werror_flag" ||
10671 test ! -s conftest.err
10672 } && test -s conftest
$ac_exeext && {
10673 test "$cross_compiling" = yes ||
10674 $as_test_x conftest
$ac_exeext
10676 ac_cv_lib_dl_dlopen
=yes
10678 $as_echo "$as_me: failed program was:" >&5
10679 sed 's/^/| /' conftest.
$ac_ext >&5
10681 ac_cv_lib_dl_dlopen
=no
10684 rm -rf conftest.dSYM
10685 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10686 conftest
$ac_exeext conftest.
$ac_ext
10687 LIBS
=$ac_check_lib_save_LIBS
10689 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10690 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10691 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then
10692 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10695 lt_cv_dlopen
="dyld"
10697 lt_cv_dlopen_self
=yes
10704 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
10705 $as_echo_n "checking for shl_load... " >&6; }
10706 if test "${ac_cv_func_shl_load+set}" = set; then
10707 $as_echo_n "(cached) " >&6
10709 cat >conftest.
$ac_ext <<_ACEOF
10712 cat confdefs.h
>>conftest.
$ac_ext
10713 cat >>conftest.
$ac_ext <<_ACEOF
10714 /* end confdefs.h. */
10715 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10716 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10717 #define shl_load innocuous_shl_load
10719 /* System header to define __stub macros and hopefully few prototypes,
10720 which can conflict with char shl_load (); below.
10721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10722 <limits.h> exists even on freestanding compilers. */
10725 # include <limits.h>
10727 # include <assert.h>
10732 /* Override any GCC internal prototype to avoid an error.
10733 Use char because int might match the return type of a GCC
10734 builtin and then its argument prototype would still apply. */
10739 /* The GNU C library defines this for functions which it implements
10740 to always fail with ENOSYS. Some functions are actually named
10741 something starting with __ and the normal name is an alias. */
10742 #if defined __stub_shl_load || defined __stub___shl_load
10749 return shl_load ();
10754 rm -f conftest.
$ac_objext conftest
$ac_exeext
10755 if { (ac_try
="$ac_link"
10756 case "(($ac_try" in
10757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10758 *) ac_try_echo=$ac_try;;
10760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10761 $as_echo "$ac_try_echo") >&5
10762 (eval "$ac_link") 2>conftest.er1
10764 grep -v '^ *+' conftest.er1 >conftest.err
10766 cat conftest.err >&5
10767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); } && {
10769 test -z "$ac_c_werror_flag" ||
10770 test ! -s conftest.err
10771 } && test -s conftest$ac_exeext && {
10772 test "$cross_compiling" = yes ||
10773 $as_test_x conftest$ac_exeext
10775 ac_cv_func_shl_load=yes
10777 $as_echo "$as_me: failed program was:" >&5
10778 sed 's/^/| /' conftest.$ac_ext >&5
10780 ac_cv_func_shl_load=no
10783 rm -rf conftest.dSYM
10784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10785 conftest$ac_exeext conftest.$ac_ext
10787 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10788 $as_echo "$ac_cv_func_shl_load" >&6; }
10789 if test "x$ac_cv_func_shl_load" = x""yes; then
10790 lt_cv_dlopen="shl_load"
10792 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10793 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10794 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10795 $as_echo_n "(cached) " >&6
10797 ac_check_lib_save_LIBS=$LIBS
10799 cat >conftest.$ac_ext <<_ACEOF
10802 cat confdefs.h >>conftest.$ac_ext
10803 cat >>conftest.$ac_ext <<_ACEOF
10804 /* end confdefs.h. */
10806 /* Override any GCC internal prototype to avoid an error.
10807 Use char because int might match the return type of a GCC
10808 builtin and then its argument prototype would still apply. */
10816 return shl_load ();
10821 rm -f conftest.$ac_objext conftest$ac_exeext
10822 if { (ac_try="$ac_link"
10823 case "(($ac_try" in
10824 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10825 *) ac_try_echo
=$ac_try;;
10827 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10828 $as_echo "$ac_try_echo") >&5
10829 (eval "$ac_link") 2>conftest.er1
10831 grep -v '^ *+' conftest.er1
>conftest.err
10833 cat conftest.err
>&5
10834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10835 (exit $ac_status); } && {
10836 test -z "$ac_c_werror_flag" ||
10837 test ! -s conftest.err
10838 } && test -s conftest
$ac_exeext && {
10839 test "$cross_compiling" = yes ||
10840 $as_test_x conftest
$ac_exeext
10842 ac_cv_lib_dld_shl_load
=yes
10844 $as_echo "$as_me: failed program was:" >&5
10845 sed 's/^/| /' conftest.
$ac_ext >&5
10847 ac_cv_lib_dld_shl_load
=no
10850 rm -rf conftest.dSYM
10851 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10852 conftest
$ac_exeext conftest.
$ac_ext
10853 LIBS
=$ac_check_lib_save_LIBS
10855 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10856 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10857 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then
10858 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
10860 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10861 $as_echo_n "checking for dlopen... " >&6; }
10862 if test "${ac_cv_func_dlopen+set}" = set; then
10863 $as_echo_n "(cached) " >&6
10865 cat >conftest.
$ac_ext <<_ACEOF
10868 cat confdefs.h
>>conftest.
$ac_ext
10869 cat >>conftest.
$ac_ext <<_ACEOF
10870 /* end confdefs.h. */
10871 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10873 #define dlopen innocuous_dlopen
10875 /* System header to define __stub macros and hopefully few prototypes,
10876 which can conflict with char dlopen (); below.
10877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10878 <limits.h> exists even on freestanding compilers. */
10881 # include <limits.h>
10883 # include <assert.h>
10888 /* Override any GCC internal prototype to avoid an error.
10889 Use char because int might match the return type of a GCC
10890 builtin and then its argument prototype would still apply. */
10895 /* The GNU C library defines this for functions which it implements
10896 to always fail with ENOSYS. Some functions are actually named
10897 something starting with __ and the normal name is an alias. */
10898 #if defined __stub_dlopen || defined __stub___dlopen
10910 rm -f conftest.
$ac_objext conftest
$ac_exeext
10911 if { (ac_try
="$ac_link"
10912 case "(($ac_try" in
10913 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10914 *) ac_try_echo=$ac_try;;
10916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10917 $as_echo "$ac_try_echo") >&5
10918 (eval "$ac_link") 2>conftest.er1
10920 grep -v '^ *+' conftest.er1 >conftest.err
10922 cat conftest.err >&5
10923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); } && {
10925 test -z "$ac_c_werror_flag" ||
10926 test ! -s conftest.err
10927 } && test -s conftest$ac_exeext && {
10928 test "$cross_compiling" = yes ||
10929 $as_test_x conftest$ac_exeext
10931 ac_cv_func_dlopen=yes
10933 $as_echo "$as_me: failed program was:" >&5
10934 sed 's/^/| /' conftest.$ac_ext >&5
10936 ac_cv_func_dlopen=no
10939 rm -rf conftest.dSYM
10940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10941 conftest$ac_exeext conftest.$ac_ext
10943 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10944 $as_echo "$ac_cv_func_dlopen" >&6; }
10945 if test "x$ac_cv_func_dlopen" = x""yes; then
10946 lt_cv_dlopen="dlopen"
10948 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10949 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10950 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10951 $as_echo_n "(cached) " >&6
10953 ac_check_lib_save_LIBS=$LIBS
10955 cat >conftest.$ac_ext <<_ACEOF
10958 cat confdefs.h >>conftest.$ac_ext
10959 cat >>conftest.$ac_ext <<_ACEOF
10960 /* end confdefs.h. */
10962 /* Override any GCC internal prototype to avoid an error.
10963 Use char because int might match the return type of a GCC
10964 builtin and then its argument prototype would still apply. */
10977 rm -f conftest.$ac_objext conftest$ac_exeext
10978 if { (ac_try="$ac_link"
10979 case "(($ac_try" in
10980 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10981 *) ac_try_echo
=$ac_try;;
10983 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
10984 $as_echo "$ac_try_echo") >&5
10985 (eval "$ac_link") 2>conftest.er1
10987 grep -v '^ *+' conftest.er1
>conftest.err
10989 cat conftest.err
>&5
10990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10991 (exit $ac_status); } && {
10992 test -z "$ac_c_werror_flag" ||
10993 test ! -s conftest.err
10994 } && test -s conftest
$ac_exeext && {
10995 test "$cross_compiling" = yes ||
10996 $as_test_x conftest
$ac_exeext
10998 ac_cv_lib_dl_dlopen
=yes
11000 $as_echo "$as_me: failed program was:" >&5
11001 sed 's/^/| /' conftest.
$ac_ext >&5
11003 ac_cv_lib_dl_dlopen
=no
11006 rm -rf conftest.dSYM
11007 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11008 conftest
$ac_exeext conftest.
$ac_ext
11009 LIBS
=$ac_check_lib_save_LIBS
11011 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11012 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11013 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then
11014 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11016 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11017 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11018 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11019 $as_echo_n "(cached) " >&6
11021 ac_check_lib_save_LIBS
=$LIBS
11022 LIBS
="-lsvld $LIBS"
11023 cat >conftest.
$ac_ext <<_ACEOF
11026 cat confdefs.h
>>conftest.
$ac_ext
11027 cat >>conftest.
$ac_ext <<_ACEOF
11028 /* end confdefs.h. */
11030 /* Override any GCC internal prototype to avoid an error.
11031 Use char because int might match the return type of a GCC
11032 builtin and then its argument prototype would still apply. */
11045 rm -f conftest.
$ac_objext conftest
$ac_exeext
11046 if { (ac_try
="$ac_link"
11047 case "(($ac_try" in
11048 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11049 *) ac_try_echo=$ac_try;;
11051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11052 $as_echo "$ac_try_echo") >&5
11053 (eval "$ac_link") 2>conftest.er1
11055 grep -v '^ *+' conftest.er1 >conftest.err
11057 cat conftest.err >&5
11058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); } && {
11060 test -z "$ac_c_werror_flag" ||
11061 test ! -s conftest.err
11062 } && test -s conftest$ac_exeext && {
11063 test "$cross_compiling" = yes ||
11064 $as_test_x conftest$ac_exeext
11066 ac_cv_lib_svld_dlopen=yes
11068 $as_echo "$as_me: failed program was:" >&5
11069 sed 's/^/| /' conftest.$ac_ext >&5
11071 ac_cv_lib_svld_dlopen=no
11074 rm -rf conftest.dSYM
11075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11076 conftest$ac_exeext conftest.$ac_ext
11077 LIBS=$ac_check_lib_save_LIBS
11079 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11080 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11081 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
11082 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11084 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11085 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11086 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11087 $as_echo_n "(cached) " >&6
11089 ac_check_lib_save_LIBS=$LIBS
11091 cat >conftest.$ac_ext <<_ACEOF
11094 cat confdefs.h >>conftest.$ac_ext
11095 cat >>conftest.$ac_ext <<_ACEOF
11096 /* end confdefs.h. */
11098 /* Override any GCC internal prototype to avoid an error.
11099 Use char because int might match the return type of a GCC
11100 builtin and then its argument prototype would still apply. */
11108 return dld_link ();
11113 rm -f conftest.$ac_objext conftest$ac_exeext
11114 if { (ac_try="$ac_link"
11115 case "(($ac_try" in
11116 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11117 *) ac_try_echo
=$ac_try;;
11119 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
11120 $as_echo "$ac_try_echo") >&5
11121 (eval "$ac_link") 2>conftest.er1
11123 grep -v '^ *+' conftest.er1
>conftest.err
11125 cat conftest.err
>&5
11126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11127 (exit $ac_status); } && {
11128 test -z "$ac_c_werror_flag" ||
11129 test ! -s conftest.err
11130 } && test -s conftest
$ac_exeext && {
11131 test "$cross_compiling" = yes ||
11132 $as_test_x conftest
$ac_exeext
11134 ac_cv_lib_dld_dld_link
=yes
11136 $as_echo "$as_me: failed program was:" >&5
11137 sed 's/^/| /' conftest.
$ac_ext >&5
11139 ac_cv_lib_dld_dld_link
=no
11142 rm -rf conftest.dSYM
11143 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11144 conftest
$ac_exeext conftest.
$ac_ext
11145 LIBS
=$ac_check_lib_save_LIBS
11147 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11148 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11149 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then
11150 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11171 if test "x$lt_cv_dlopen" != xno
; then
11177 case $lt_cv_dlopen in
11179 save_CPPFLAGS
="$CPPFLAGS"
11180 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11182 save_LDFLAGS
="$LDFLAGS"
11183 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11186 LIBS
="$lt_cv_dlopen_libs $LIBS"
11188 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11189 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11190 if test "${lt_cv_dlopen_self+set}" = set; then
11191 $as_echo_n "(cached) " >&6
11193 if test "$cross_compiling" = yes; then :
11194 lt_cv_dlopen_self
=cross
11196 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11197 lt_status
=$lt_dlunknown
11198 cat > conftest.
$ac_ext <<_LT_EOF
11199 #line 11199 "configure"
11200 #include "confdefs.h"
11209 # define LT_DLGLOBAL RTLD_GLOBAL
11212 # define LT_DLGLOBAL DL_GLOBAL
11214 # define LT_DLGLOBAL 0
11218 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11219 find out it does not work in some platform. */
11220 #ifndef LT_DLLAZY_OR_NOW
11222 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11225 # define LT_DLLAZY_OR_NOW DL_LAZY
11228 # define LT_DLLAZY_OR_NOW RTLD_NOW
11231 # define LT_DLLAZY_OR_NOW DL_NOW
11233 # define LT_DLLAZY_OR_NOW 0
11240 void fnord() { int i=42;}
11243 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11244 int status = $lt_dlunknown;
11248 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11249 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11250 /* dlclose (self); */
11258 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11259 (eval $ac_link) 2>&5
11261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11263 (.
/conftest
; exit; ) >&5 2>/dev
/null
11265 case x
$lt_status in
11266 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11267 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11268 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11271 # compilation failed
11272 lt_cv_dlopen_self
=no
11279 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11280 $as_echo "$lt_cv_dlopen_self" >&6; }
11282 if test "x$lt_cv_dlopen_self" = xyes
; then
11283 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11284 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11285 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11286 if test "${lt_cv_dlopen_self_static+set}" = set; then
11287 $as_echo_n "(cached) " >&6
11289 if test "$cross_compiling" = yes; then :
11290 lt_cv_dlopen_self_static
=cross
11292 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11293 lt_status
=$lt_dlunknown
11294 cat > conftest.
$ac_ext <<_LT_EOF
11295 #line 11295 "configure"
11296 #include "confdefs.h"
11305 # define LT_DLGLOBAL RTLD_GLOBAL
11308 # define LT_DLGLOBAL DL_GLOBAL
11310 # define LT_DLGLOBAL 0
11314 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11315 find out it does not work in some platform. */
11316 #ifndef LT_DLLAZY_OR_NOW
11318 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11321 # define LT_DLLAZY_OR_NOW DL_LAZY
11324 # define LT_DLLAZY_OR_NOW RTLD_NOW
11327 # define LT_DLLAZY_OR_NOW DL_NOW
11329 # define LT_DLLAZY_OR_NOW 0
11336 void fnord() { int i=42;}
11339 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11340 int status = $lt_dlunknown;
11344 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11345 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11346 /* dlclose (self); */
11354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11355 (eval $ac_link) 2>&5
11357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11358 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11359 (.
/conftest
; exit; ) >&5 2>/dev
/null
11361 case x
$lt_status in
11362 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11363 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11364 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11367 # compilation failed
11368 lt_cv_dlopen_self_static
=no
11375 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11376 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11379 CPPFLAGS
="$save_CPPFLAGS"
11380 LDFLAGS
="$save_LDFLAGS"
11385 case $lt_cv_dlopen_self in
11386 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11387 *) enable_dlopen_self
=unknown
;;
11390 case $lt_cv_dlopen_self_static in
11391 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11392 *) enable_dlopen_self_static
=unknown
;;
11414 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11415 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11416 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11417 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11418 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11419 { $as_echo "$as_me:$LINENO: result: yes" >&5
11420 $as_echo "yes" >&6; }
11422 # FIXME - insert some real tests, host_os isn't really good enough
11425 if test -n "$STRIP" ; then
11426 striplib
="$STRIP -x"
11427 old_striplib
="$STRIP -S"
11428 { $as_echo "$as_me:$LINENO: result: yes" >&5
11429 $as_echo "yes" >&6; }
11431 { $as_echo "$as_me:$LINENO: result: no" >&5
11432 $as_echo "no" >&6; }
11436 { $as_echo "$as_me:$LINENO: result: no" >&5
11437 $as_echo "no" >&6; }
11453 # Report which library types will actually be built
11454 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11455 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11456 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
11457 $as_echo "$can_build_shared" >&6; }
11459 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11460 $as_echo_n "checking whether to build shared libraries... " >&6; }
11461 test "$can_build_shared" = "no" && enable_shared
=no
11463 # On AIX, shared libraries and static libraries use the same namespace, and
11464 # are all built from PIC.
11467 test "$enable_shared" = yes && enable_static
=no
11468 if test -n "$RANLIB"; then
11469 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11470 postinstall_cmds
='$RANLIB $lib'
11475 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11476 test "$enable_shared" = yes && enable_static
=no
11480 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
11481 $as_echo "$enable_shared" >&6; }
11483 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11484 $as_echo_n "checking whether to build static libraries... " >&6; }
11485 # Make sure either enable_shared or enable_static is yes.
11486 test "$enable_shared" = yes || enable_static
=yes
11487 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
11488 $as_echo "$enable_static" >&6; }
11495 ac_cpp
='$CPP $CPPFLAGS'
11496 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11497 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11498 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11514 ac_config_commands
="$ac_config_commands libtool"
11519 # Only expand once:
11522 # By default we simply use the C compiler to build assembly code.
11524 test "${CCAS+set}" = set || CCAS
=$CC
11525 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
11529 depcc
="$CCAS" am_compiler_list
=
11531 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
11532 $as_echo_n "checking dependency style of $depcc... " >&6; }
11533 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then
11534 $as_echo_n "(cached) " >&6
11536 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11537 # We make a subdir and do the tests there. Otherwise we can end up
11538 # making bogus files that we don't know about and never remove. For
11539 # instance it was reported that on HP-UX the gcc test will end up
11540 # making a dummy file named `D' -- because `-MD' means `put the output
11543 # Copy depcomp to subdir because otherwise we won't find it if we're
11544 # using a relative directory.
11545 cp "$am_depcomp" conftest.dir
11547 # We will build objects and dependencies in a subdirectory because
11548 # it helps to detect inapplicable dependency modes. For instance
11549 # both Tru64's cc and ICC support -MD to output dependencies as a
11550 # side effect of compilation, but ICC will put the dependencies in
11551 # the current directory while Tru64 will put them in the object
11555 am_cv_CCAS_dependencies_compiler_type
=none
11556 if test "$am_compiler_list" = ""; then
11557 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11559 am__universal
=false
11562 for depmode
in $am_compiler_list; do
11563 # Setup a source with many dependencies, because some compilers
11564 # like to wrap large dependency lists on column 80 (with \), and
11565 # we should not choose a depcomp mode which is confused by this.
11567 # We need to recreate these files for each test, as the compiler may
11568 # overwrite some of them when testing with obscure command lines.
11569 # This happens at least with the AIX C compiler.
11571 for i
in 1 2 3 4 5 6; do
11572 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
11573 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11574 # Solaris 8's {/usr,}/bin/sh.
11575 touch sub
/conftst
$i.h
11577 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11579 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11580 # mode. It turns out that the SunPro C++ compiler does not properly
11581 # handle `-M -o', and we need to detect this. Also, some Intel
11582 # versions had trouble with output in subdirs
11583 am__obj
=sub
/conftest.
${OBJEXT-o}
11584 am__minus_obj
="-o $am__obj"
11587 # This depmode causes a compiler race in universal mode.
11588 test "$am__universal" = false ||
continue
11591 # after this tag, mechanisms are not by side-effect, so they'll
11592 # only be used when explicitly requested
11593 if test "x$enable_dependency_tracking" = xyes
; then
11599 msvisualcpp | msvcmsys
)
11600 # This compiler won't grok `-c -o', but also, the minuso test has
11601 # not run yet. These depmodes are late enough in the game, and
11602 # so weak that their functioning should not be impacted.
11603 am__obj
=conftest.
${OBJEXT-o}
11608 if depmode
=$depmode \
11609 source=sub
/conftest.c object
=$am__obj \
11610 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
11611 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
11612 >/dev
/null
2>conftest.err
&&
11613 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
11614 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
11615 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
11616 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
11617 # icc doesn't choke on unknown options, it will just issue warnings
11618 # or remarks (even with -Werror). So we grep stderr for any message
11619 # that says an option was ignored or not supported.
11620 # When given -MP, icc 7.0 and 7.1 complain thusly:
11621 # icc: Command line warning: ignoring option '-M'; no argument required
11622 # The diagnosis changed in icc 8.0:
11623 # icc: Command line remark: option '-MP' not supported
11624 if (grep 'ignoring option' conftest.err ||
11625 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
11626 am_cv_CCAS_dependencies_compiler_type
=$depmode
11633 rm -rf conftest.dir
11635 am_cv_CCAS_dependencies_compiler_type
=none
11639 { $as_echo "$as_me:$LINENO: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11640 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11641 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
11644 test "x$enable_dependency_tracking" != xno \
11645 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
11646 am__fastdepCCAS_TRUE
=
11647 am__fastdepCCAS_FALSE
='#'
11649 am__fastdepCCAS_TRUE
='#'
11650 am__fastdepCCAS_FALSE
=
11656 { $as_echo "$as_me:$LINENO: checking zfs author" >&5
11657 $as_echo_n "checking zfs author... " >&6; }
11658 { $as_echo "$as_me:$LINENO: result: $ZFS_META_AUTHOR" >&5
11659 $as_echo "$ZFS_META_AUTHOR" >&6; }
11661 { $as_echo "$as_me:$LINENO: checking zfs license" >&5
11662 $as_echo_n "checking zfs license... " >&6; }
11663 { $as_echo "$as_me:$LINENO: result: $ZFS_META_LICENSE" >&5
11664 $as_echo "$ZFS_META_LICENSE" >&6; }
11668 { $as_echo "$as_me:$LINENO: checking linux distribution" >&5
11669 $as_echo_n "checking linux distribution... " >&6; }
11670 if test -f /etc
/toss-release
; then
11672 elif test -f /etc
/fedora-release
; then
11674 elif test -f /etc
/redhat-release
; then
11676 elif test -f /etc
/gentoo-release
; then
11678 elif test -f /etc
/arch-release
; then
11680 elif test -f /etc
/SuSE-release
; then
11682 elif test -f /etc
/slackware-version
; then
11684 elif test -f /etc
/lunar.release
; then
11686 elif test -f /etc
/lsb-release
; then
11688 elif test -f /etc
/debian_version
; then
11693 { $as_echo "$as_me:$LINENO: result: $VENDOR" >&5
11694 $as_echo "$VENDOR" >&6; }
11697 { $as_echo "$as_me:$LINENO: checking default package type" >&5
11698 $as_echo_n "checking default package type... " >&6; }
11700 toss
) DEFAULT_PACKAGE
=rpm
;;
11701 redhat
) DEFAULT_PACKAGE
=rpm
;;
11702 fedora
) DEFAULT_PACKAGE
=rpm
;;
11703 gentoo
) DEFAULT_PACKAGE
=tgz
;;
11704 arch
) DEFAULT_PACKAGE
=tgz
;;
11705 sles
) DEFAULT_PACKAGE
=rpm
;;
11706 slackware
) DEFAULT_PACKAGE
=tgz
;;
11707 lunar
) DEFAULT_PACKAGE
=tgz
;;
11708 ubuntu
) DEFAULT_PACKAGE
=deb
;;
11709 debian
) DEFAULT_PACKAGE
=deb
;;
11710 *) DEFAULT_PACKAGE
=rpm
;;
11712 { $as_echo "$as_me:$LINENO: result: $DEFAULT_PACKAGE" >&5
11713 $as_echo "$DEFAULT_PACKAGE" >&6; }
11716 DEFAULT_INIT_DIR
=$sysconfdir/init.d
11717 { $as_echo "$as_me:$LINENO: checking default init directory" >&5
11718 $as_echo_n "checking default init directory... " >&6; }
11719 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_DIR" >&5
11720 $as_echo "$DEFAULT_INIT_DIR" >&6; }
11723 { $as_echo "$as_me:$LINENO: checking default init script type" >&5
11724 $as_echo_n "checking default init script type... " >&6; }
11726 toss
) DEFAULT_INIT_SCRIPT
=redhat
;;
11727 redhat
) DEFAULT_INIT_SCRIPT
=redhat
;;
11728 fedora
) DEFAULT_INIT_SCRIPT
=fedora
;;
11729 gentoo
) DEFAULT_INIT_SCRIPT
=gentoo
;;
11730 arch
) DEFAULT_INIT_SCRIPT
=lsb
;;
11731 sles
) DEFAULT_INIT_SCRIPT
=lsb
;;
11732 slackware
) DEFAULT_INIT_SCRIPT
=lsb
;;
11733 lunar
) DEFAULT_INIT_SCRIPT
=lunar
;;
11734 ubuntu
) DEFAULT_INIT_SCRIPT
=lsb
;;
11735 debian
) DEFAULT_INIT_SCRIPT
=lsb
;;
11736 *) DEFAULT_INIT_SCRIPT
=lsb
;;
11738 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INIT_SCRIPT" >&5
11739 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
11742 { $as_echo "$as_me:$LINENO: checking default init config direectory" >&5
11743 $as_echo_n "checking default init config direectory... " >&6; }
11745 gentoo
) DEFAULT_INITCONF_DIR
=/etc
/conf.d
;;
11746 toss
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
11747 redhat
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
11748 fedora
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
11749 sles
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
11750 ubuntu
) DEFAULT_INITCONF_DIR
=/etc
/default
;;
11751 debian
) DEFAULT_INITCONF_DIR
=/etc
/default
;;
11752 *) DEFAULT_INITCONF_DIR
=/etc
/default
;;
11754 { $as_echo "$as_me:$LINENO: result: $DEFAULT_INITCONF_DIR" >&5
11755 $as_echo "$DEFAULT_INITCONF_DIR" >&6; }
11758 { $as_echo "$as_me:$LINENO: checking whether initramfs-tools is available" >&5
11759 $as_echo_n "checking whether initramfs-tools is available... " >&6; }
11760 if test -d /usr
/share
/initramfs-tools
; then
11761 DEFINE_INITRAMFS
='--define "_initramfs 1"'
11762 { $as_echo "$as_me:$LINENO: result: yes" >&5
11763 $as_echo "yes" >&6; }
11765 DEFINE_INITRAMFS
=''
11766 { $as_echo "$as_me:$LINENO: result: no" >&5
11767 $as_echo "no" >&6; }
11775 { $as_echo "$as_me:$LINENO: checking whether $RPM is available" >&5
11776 $as_echo_n "checking whether $RPM is available... " >&6; }
11777 if tmp
=$
($RPM --version 2>/dev
/null
); then
11779 RPM_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
11781 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM ($RPM_VERSION)" >&5
11782 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11787 { $as_echo "$as_me:$LINENO: result: $HAVE_RPM" >&5
11788 $as_echo "$HAVE_RPM" >&6; }
11793 { $as_echo "$as_me:$LINENO: checking whether $RPMBUILD is available" >&5
11794 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11795 if tmp
=$
($RPMBUILD --version 2>/dev
/null
); then
11797 RPMBUILD_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
11799 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11800 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11805 { $as_echo "$as_me:$LINENO: result: $HAVE_RPMBUILD" >&5
11806 $as_echo "$HAVE_RPMBUILD" >&6; }
11811 RPM_DEFINE_COMMON
='--define "$(DEBUG_ZFS) 1" --define "$(DEBUG_DMU_TX) 1"'
11812 RPM_DEFINE_UTIL
='--define "_dracutdir $(dracutdir)" --define "_udevdir $(udevdir)" --define "_udevruledir $(udevruledir)" --define "_initconfdir $(DEFAULT_INITCONF_DIR)" $(DEFINE_INITRAMFS)'
11813 RPM_DEFINE_KMOD
='--define "kernels $(LINUX_VERSION)" --define "require_spldir $(SPL)" --define "require_splobj $(SPL_OBJ)" --define "ksrc $(LINUX)" --define "kobj $(LINUX_OBJ)"'
11816 SRPM_DEFINE_COMMON
='--define "build_src_rpm 1"'
11821 RPM_SPEC_DIR
="rpm/generic"
11823 # Check whether --with-spec was given.
11824 if test "${with_spec+set}" = set; then
11825 withval
=$with_spec; RPM_SPEC_DIR
="rpm/$withval"
11829 { $as_echo "$as_me:$LINENO: checking whether spec files are available" >&5
11830 $as_echo_n "checking whether spec files are available... " >&6; }
11831 { $as_echo "$as_me:$LINENO: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
11832 $as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
11854 DPKGBUILD
=dpkg-buildpackage
11856 { $as_echo "$as_me:$LINENO: checking whether $DPKG is available" >&5
11857 $as_echo_n "checking whether $DPKG is available... " >&6; }
11858 if tmp
=$
($DPKG --version 2>/dev
/null
); then
11860 DPKG_VERSION
=$
(echo $tmp |
$AWK '/Debian/ { print $7 }')
11862 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11863 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11868 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKG" >&5
11869 $as_echo "$HAVE_DPKG" >&6; }
11874 { $as_echo "$as_me:$LINENO: checking whether $DPKGBUILD is available" >&5
11875 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11876 if tmp
=$
($DPKGBUILD --version 2>/dev
/null
); then
11878 DPKGBUILD_VERSION
=$
(echo $tmp | \
11879 $AWK '/Debian/ { print $4 }' | cut
-f-4 -d'.')
11881 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11882 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11887 { $as_echo "$as_me:$LINENO: result: $HAVE_DPKGBUILD" >&5
11888 $as_echo "$HAVE_DPKGBUILD" >&6; }
11904 { $as_echo "$as_me:$LINENO: checking whether $ALIEN is available" >&5
11905 $as_echo_n "checking whether $ALIEN is available... " >&6; }
11906 if tmp
=$
($ALIEN --version 2>/dev
/null
); then
11908 ALIEN_VERSION
=$
(echo $tmp |
$AWK '{ print $3 }')
11910 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11911 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11916 { $as_echo "$as_me:$LINENO: result: $HAVE_ALIEN" >&5
11917 $as_echo "$HAVE_ALIEN" >&6; }
11928 TARGET_ASM_DIR
=asm-generic
11933 # Check whether --with-config was given.
11934 if test "${with_config+set}" = set; then
11935 withval
=$with_config; ZFS_CONFIG
="$withval"
11938 # Check whether --enable-linux-builtin was given.
11939 if test "${enable_linux_builtin+set}" = set; then
11940 enableval
=$enable_linux_builtin;
11942 enable_linux_builtin
=no
11946 { $as_echo "$as_me:$LINENO: checking zfs config" >&5
11947 $as_echo_n "checking zfs config... " >&6; }
11948 { $as_echo "$as_me:$LINENO: result: $ZFS_CONFIG" >&5
11949 $as_echo "$ZFS_CONFIG" >&6; };
11954 { $as_echo "$as_me:$LINENO: checking for -Wno-unused-but-set-variable support" >&5
11955 $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
11957 saved_flags
="$CFLAGS"
11958 CFLAGS
="$CFLAGS -Wunused-but-set-variable"
11960 cat >conftest.
$ac_ext <<_ACEOF
11963 cat confdefs.h
>>conftest.
$ac_ext
11964 cat >>conftest.
$ac_ext <<_ACEOF
11965 /* end confdefs.h. */
11975 rm -f conftest.
$ac_objext
11976 if { (ac_try
="$ac_compile"
11977 case "(($ac_try" in
11978 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11979 *) ac_try_echo=$ac_try;;
11981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11982 $as_echo "$ac_try_echo") >&5
11983 (eval "$ac_compile") 2>conftest.er1
11985 grep -v '^ *+' conftest.er1 >conftest.err
11987 cat conftest.err >&5
11988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); } && {
11990 test -z "$ac_c_werror_flag" ||
11991 test ! -s conftest.err
11992 } && test -s conftest.$ac_objext; then
11994 NO_UNUSED_BUT_SET_VARIABLE=-Wno-unused-but-set-variable
11995 { $as_echo "$as_me:$LINENO: result: yes" >&5
11996 $as_echo "yes" >&6; }
11999 $as_echo "$as_me: failed program was:" >&5
12000 sed 's/^/| /' conftest.$ac_ext >&5
12003 NO_UNUSED_BUT_SET_VARIABLE=
12004 { $as_echo "$as_me:$LINENO: result: no" >&5
12005 $as_echo "no" >&6; }
12009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12011 CFLAGS="$saved_flags"
12015 { $as_echo "$as_me:$LINENO: checking for -Wno-bool-compare support" >&5
12016 $as_echo_n "checking for -Wno-bool-compare support... " >&6; }
12018 saved_flags="$CFLAGS"
12019 CFLAGS="$CFLAGS -Wbool-compare"
12021 cat >conftest.$ac_ext <<_ACEOF
12024 cat confdefs.h >>conftest.$ac_ext
12025 cat >>conftest.$ac_ext <<_ACEOF
12026 /* end confdefs.h. */
12036 rm -f conftest.$ac_objext
12037 if { (ac_try="$ac_compile"
12038 case "(($ac_try" in
12039 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12040 *) ac_try_echo
=$ac_try;;
12042 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12043 $as_echo "$ac_try_echo") >&5
12044 (eval "$ac_compile") 2>conftest.er1
12046 grep -v '^ *+' conftest.er1
>conftest.err
12048 cat conftest.err
>&5
12049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12050 (exit $ac_status); } && {
12051 test -z "$ac_c_werror_flag" ||
12052 test ! -s conftest.err
12053 } && test -s conftest.
$ac_objext; then
12055 NO_BOOL_COMPARE
=-Wno-bool-compare
12056 { $as_echo "$as_me:$LINENO: result: yes" >&5
12057 $as_echo "yes" >&6; }
12060 $as_echo "$as_me: failed program was:" >&5
12061 sed 's/^/| /' conftest.
$ac_ext >&5
12065 { $as_echo "$as_me:$LINENO: result: no" >&5
12066 $as_echo "no" >&6; }
12070 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12072 CFLAGS
="$saved_flags"
12077 case "$ZFS_CONFIG" in
12081 # Check whether --with-linux was given.
12082 if test "${with_linux+set}" = set; then
12083 withval
=$with_linux; kernelsrc
="$withval"
12088 # Check whether --with-linux-obj was given.
12089 if test "${with_linux_obj+set}" = set; then
12090 withval
=$with_linux_obj; kernelbuild
="$withval"
12094 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
12095 $as_echo_n "checking kernel source directory... " >&6; }
12096 if test -z "$kernelsrc"; then
12098 if test -e "/lib/modules/$(uname -r)/source"; then
12100 headersdir
="/lib/modules/$(uname -r)/source"
12101 sourcelink
=$
(readlink
-f "$headersdir")
12103 elif test -e "/lib/modules/$(uname -r)/build"; then
12105 headersdir
="/lib/modules/$(uname -r)/build"
12106 sourcelink
=$
(readlink
-f "$headersdir")
12110 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
12112 2>/dev
/null |
grep -v obj |
tail -1)
12117 if test -n "$sourcelink" && test -e ${sourcelink}; then
12119 kernelsrc
=`readlink -f ${sourcelink}`
12123 kernelsrc
="Not found"
12130 if test "$kernelsrc" = "NONE"; then
12140 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
12141 $as_echo "$kernelsrc" >&6; }
12142 if test ! -d "$kernelsrc"; then
12144 { { $as_echo "$as_me:$LINENO: error:
12145 *** Please make sure the kernel devel package for your distribution
12146 *** is installed and then try again. If that fails, you can specify the
12147 *** location of the kernel source with the '--with-linux=PATH' option." >&5
12148 $as_echo "$as_me: error:
12149 *** Please make sure the kernel devel package for your distribution
12150 *** is installed and then try again. If that fails, you can specify the
12151 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
12152 { (exit 1); exit 1; }; }
12157 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
12158 $as_echo_n "checking kernel build directory... " >&6; }
12159 if test -z "$kernelbuild"; then
12161 if test -e "/lib/modules/$(uname -r)/build"; then
12163 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
12165 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
12167 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
12169 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then
12171 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
12173 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then
12175 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
12179 kernelbuild
=${kernelsrc}
12186 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
12187 $as_echo "$kernelbuild" >&6; }
12189 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
12190 $as_echo_n "checking kernel source version... " >&6; }
12191 utsrelease1
=$kernelbuild/include
/linux
/version.h
12192 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
12193 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
12194 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then
12196 utsrelease
=linux
/version.h
12198 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then
12200 utsrelease
=linux
/utsrelease.h
12202 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then
12204 utsrelease
=generated
/utsrelease.h
12209 if test "$utsrelease"; then
12211 kernsrcver
=`(echo "#include <$utsrelease>";
12212 echo "kernsrcver=UTS_RELEASE") |
12213 cpp -I $kernelbuild/include |
12214 grep "^kernsrcver=" | cut -d \" -f 2`
12216 if test -z "$kernsrcver"; then
12218 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12219 $as_echo "Not found" >&6; }
12220 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
12221 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
12222 { (exit 1); exit 1; }; }
12229 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12230 $as_echo "Not found" >&6; }
12231 if test "x$enable_linux_builtin" != xyes
; then
12232 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
12233 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
12234 { (exit 1); exit 1; }; }
12236 { { $as_echo "$as_me:$LINENO: error:
12237 *** Cannot find UTS_RELEASE definition.
12238 *** Please run 'make prepare' inside the kernel source tree." >&5
12239 $as_echo "$as_me: error:
12240 *** Cannot find UTS_RELEASE definition.
12241 *** Please run 'make prepare' inside the kernel source tree." >&2;}
12242 { (exit 1); exit 1; }; }
12248 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
12249 $as_echo "$kernsrcver" >&6; }
12252 LINUX_OBJ
=${kernelbuild}
12253 LINUX_VERSION
=${kernsrcver}
12260 modpost
=$LINUX/scripts
/Makefile.modpost
12261 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
12262 $as_echo_n "checking kernel file name for module symbols... " >&6; }
12263 if test "x$enable_linux_builtin" != xyes
-a -f "$modpost"; then
12265 if grep -q Modules.symvers
$modpost; then
12267 LINUX_SYMBOLS
=Modules.symvers
12271 LINUX_SYMBOLS
=Module.symvers
12276 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
12278 { { $as_echo "$as_me:$LINENO: error:
12279 *** Please make sure the kernel devel package for your distribution
12280 *** is installed. If you are building with a custom kernel, make sure the
12281 *** kernel is configured, built, and the '--with-linux=PATH' configure
12282 *** option refers to the location of the kernel source." >&5
12283 $as_echo "$as_me: error:
12284 *** Please make sure the kernel devel package for your distribution
12285 *** is installed. If you are building with a custom kernel, make sure the
12286 *** kernel is configured, built, and the '--with-linux=PATH' configure
12287 *** option refers to the location of the kernel source." >&2;}
12288 { (exit 1); exit 1; }; }
12299 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
12300 $as_echo "$LINUX_SYMBOLS" >&6; }
12306 # Check whether --with-spl was given.
12307 if test "${with_spl+set}" = set; then
12308 withval
=$with_spl; splsrc
="$withval"
12313 # Check whether --with-spl-obj was given.
12314 if test "${with_spl_obj+set}" = set; then
12315 withval
=$with_spl_obj; splbuild
="$withval"
12320 # Check whether --with-spl-timeout was given.
12321 if test "${with_spl_timeout+set}" = set; then
12322 withval
=$with_spl_timeout; timeout
="$withval"
12328 splsrc0
="/var/lib/dkms/spl/${VERSION}/build"
12329 splsrc1
="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
12330 splsrc2
="/usr/local/src/spl-${VERSION}"
12331 splsrc3
="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
12332 splsrc4
="/usr/src/spl-${VERSION}"
12336 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
12337 $as_echo_n "checking spl source directory... " >&6; }
12338 if test -z "${splsrc}"; then
12340 if test -e "${splsrc0}/spl.release.in"; then
12344 elif test -e "${splsrc1}/spl.release.in"; then
12348 elif test -e "${splsrc2}/spl.release.in"; then
12352 elif test -e "${splsrc3}/spl.release.in"; then
12354 splsrc
=$
(readlink
-f "${splsrc3}")
12356 elif test -e "${splsrc4}/spl.release.in" ; then
12360 elif test -e "${splsrc5}/spl.release.in"; then
12362 splsrc
=$
(readlink
-f "${splsrc5}")
12364 elif test -e "${splsrc6}/spl.release.in" ; then
12377 if test "$splsrc" = "NONE"; then
12388 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
12389 $as_echo "$splsrc" >&6; }
12390 if test ! -e "$splsrc/spl.release.in"; then
12392 { { $as_echo "$as_me:$LINENO: error:
12393 *** Please make sure the kmod spl devel package for your distribution
12394 *** is installed then try again. If that fails you can specify the
12395 *** location of the spl source with the '--with-spl=PATH' option." >&5
12396 $as_echo "$as_me: error:
12397 *** Please make sure the kmod spl devel package for your distribution
12398 *** is installed then try again. If that fails you can specify the
12399 *** location of the spl source with the '--with-spl=PATH' option." >&2;}
12400 { (exit 1); exit 1; }; }
12405 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
12406 $as_echo_n "checking spl build directory... " >&6; }
12408 if test -z "$splbuild"; then
12410 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then
12412 splbuild
="${splsrc}/${LINUX_VERSION}"
12414 elif test -e "${splsrc}/spl_config.h" ; then
12416 splbuild
="${splsrc}"
12418 elif find -L "${splsrc}" -name spl_config.h
2> /dev
/null |
grep -wq spl_config.h
; then
12420 splbuild
=$
(find -L "${splsrc}" -name spl_config.h |
sed 's,/spl_config.h,,')
12424 splbuild
="Not found"
12431 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then
12438 timeout
=$
((timeout-1
))
12444 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
12445 $as_echo "$splbuild" >&6; }
12446 if ! test -e "$splbuild/spl_config.h"; then
12448 { { $as_echo "$as_me:$LINENO: error:
12449 *** Please make sure the kmod spl devel <kernel> package for your
12450 *** distribution is installed then try again. If that fails you
12451 *** can specify the location of the spl objects with the
12452 *** '--with-spl-obj=PATH' option." >&5
12453 $as_echo "$as_me: error:
12454 *** Please make sure the kmod spl devel <kernel> package for your
12455 *** distribution is installed then try again. If that fails you
12456 *** can specify the location of the spl objects with the
12457 *** '--with-spl-obj=PATH' option." >&2;}
12458 { (exit 1); exit 1; }; }
12463 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
12464 $as_echo_n "checking spl source version... " >&6; }
12465 if test -r $splbuild/spl_config.h
&&
12466 fgrep
-q SPL_META_VERSION
$splbuild/spl_config.h
; then
12469 splsrcver
=`(echo "#include <spl_config.h>";
12470 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
12472 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
12477 if test -z "$splsrcver"; then
12479 { $as_echo "$as_me:$LINENO: result: Not found" >&5
12480 $as_echo "Not found" >&6; }
12481 { { $as_echo "$as_me:$LINENO: error:
12482 *** Cannot determine the version of the spl source.
12483 *** Please prepare the spl source before running this script" >&5
12484 $as_echo "$as_me: error:
12485 *** Cannot determine the version of the spl source.
12486 *** Please prepare the spl source before running this script" >&2;}
12487 { (exit 1); exit 1; }; }
12492 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
12493 $as_echo "$splsrcver" >&6; }
12496 SPL_OBJ
=${splbuild}
12497 SPL_VERSION
=${splsrcver}
12503 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
12504 $as_echo_n "checking spl file name for module symbols... " >&6; }
12508 if test -r $SPL_OBJ/Module.symvers
; then
12510 SPL_SYMBOLS
=Module.symvers
12512 elif test -r $SPL_OBJ/Modules.symvers
; then
12514 SPL_SYMBOLS
=Modules.symvers
12516 elif test -r $SPL_OBJ/module
/Module.symvers
; then
12518 SPL_SYMBOLS
=Module.symvers
12520 elif test -r $SPL_OBJ/module
/Modules.symvers
; then
12522 SPL_SYMBOLS
=Modules.symvers
12527 if test $SPL_SYMBOLS != NONE
-o $timeout -le 0; then
12534 timeout
=$
((timeout-1
))
12540 if test "$SPL_SYMBOLS" = NONE
; then
12542 SPL_SYMBOLS
=$LINUX_SYMBOLS
12547 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
12548 $as_echo "$SPL_SYMBOLS" >&6; }
12552 { $as_echo "$as_me:$LINENO: checking whether modules can be built" >&5
12553 $as_echo_n "checking whether modules can be built... " >&6; }
12556 cat confdefs.h
- <<_ACEOF >conftest.c
12559 cat confdefs.h
>>conftest.
$ac_ext
12560 cat >>conftest.
$ac_ext <<_ACEOF
12561 /* end confdefs.h. */
12576 cat - <<_ACEOF >conftest.h
12581 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12582 echo "obj-m := conftest.o" >build
/Makefile
12584 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12585 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12587 (eval $ac_try) 2>&5
12589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12590 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12592 (eval $ac_try) 2>&5
12594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12595 (exit $ac_status); }; }; then
12597 { $as_echo "$as_me:$LINENO: result: yes" >&5
12598 $as_echo "yes" >&6; }
12601 $as_echo "$as_me: failed program was:" >&5
12602 sed 's/^/| /' conftest.
$ac_ext >&5
12604 { $as_echo "$as_me:$LINENO: result: no" >&5
12605 $as_echo "no" >&6; }
12606 if test "x$enable_linux_builtin" != xyes
; then
12607 { { $as_echo "$as_me:$LINENO: error: *** Unable to build an empty module." >&5
12608 $as_echo "$as_me: error: *** Unable to build an empty module." >&2;}
12609 { (exit 1); exit 1; }; }
12611 { { $as_echo "$as_me:$LINENO: error:
12612 *** Unable to build an empty module.
12613 *** Please run 'make scripts' inside the kernel source tree." >&5
12614 $as_echo "$as_me: error:
12615 *** Unable to build an empty module.
12616 *** Please run 'make scripts' inside the kernel source tree." >&2;}
12617 { (exit 1); exit 1; }; }
12629 if test "x$cross_compiling" != xyes
; then
12631 if test "$cross_compiling" = yes; then
12632 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
12633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12634 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
12635 See \`config.log' for more details." >&5
12636 $as_echo "$as_me: error: cannot run test program while cross compiling
12637 See \`config.log' for more details." >&2;}
12638 { (exit 1); exit 1; }; }; }
12640 cat >conftest.
$ac_ext <<_ACEOF
12644 cat confdefs.h
>>conftest.
$ac_ext
12645 cat >>conftest.
$ac_ext <<_ACEOF
12646 /* end confdefs.h. */
12648 #include "$LINUX/include/linux/license.h"
12654 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
12661 rm -f conftest
$ac_exeext
12662 if { (ac_try
="$ac_link"
12663 case "(($ac_try" in
12664 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12665 *) ac_try_echo=$ac_try;;
12667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12668 $as_echo "$ac_try_echo") >&5
12669 (eval "$ac_link") 2>&5
12671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12673 { (case "(($ac_try" in
12674 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12675 *) ac_try_echo
=$ac_try;;
12677 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
12678 $as_echo "$ac_try_echo") >&5
12679 (eval "$ac_try") 2>&5
12681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); }; }; then
12685 cat >>confdefs.h
<<\_ACEOF
12686 #define ZFS_IS_GPL_COMPATIBLE 1
12691 $as_echo "$as_me: program exited with status $ac_status" >&5
12692 $as_echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.
$ac_ext >&5
12695 ( exit $ac_status )
12699 rm -rf conftest.dSYM
12700 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
12709 { $as_echo "$as_me:$LINENO: checking whether kernel was built with 16K or larger stacks" >&5
12710 $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
12713 cat confdefs.h
- <<_ACEOF >conftest.c
12716 cat confdefs.h
>>conftest.
$ac_ext
12717 cat >>conftest.
$ac_ext <<_ACEOF
12718 /* end confdefs.h. */
12721 #include <linux/module.h>
12727 #if (THREAD_SIZE < 16384)
12728 #error "THREAD_SIZE is less than 16K"
12739 cat - <<_ACEOF >conftest.h
12744 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12745 echo "obj-m := conftest.o" >build
/Makefile
12747 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12748 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12750 (eval $ac_try) 2>&5
12752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12753 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12755 (eval $ac_try) 2>&5
12757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12758 (exit $ac_status); }; }; then
12760 { $as_echo "$as_me:$LINENO: result: yes" >&5
12761 $as_echo "yes" >&6; }
12763 cat >>confdefs.h
<<\_ACEOF
12764 #define HAVE_LARGE_STACKS 1
12769 $as_echo "$as_me: failed program was:" >&5
12770 sed 's/^/| /' conftest.
$ac_ext >&5
12772 { $as_echo "$as_me:$LINENO: result: no" >&5
12773 $as_echo "no" >&6; }
12785 { $as_echo "$as_me:$LINENO: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
12786 $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
12789 cat confdefs.h
- <<_ACEOF >conftest.c
12792 cat confdefs.h
>>conftest.
$ac_ext
12793 cat >>conftest.
$ac_ext <<_ACEOF
12794 /* end confdefs.h. */
12797 #include <linux/module.h>
12803 #ifndef CONFIG_DEBUG_LOCK_ALLOC
12804 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
12815 cat - <<_ACEOF >conftest.h
12820 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12821 echo "obj-m := conftest.o" >build
/Makefile
12823 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12824 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12826 (eval $ac_try) 2>&5
12828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12831 (eval $ac_try) 2>&5
12833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); }; }; then
12836 { $as_echo "$as_me:$LINENO: result: yes" >&5
12837 $as_echo "yes" >&6; }
12839 { $as_echo "$as_me:$LINENO: checking whether mutex_lock() is GPL-only" >&5
12840 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
12841 tmp_flags
="$EXTRA_KCFLAGS"
12844 cat confdefs.h
- <<_ACEOF >conftest.c
12847 cat confdefs.h
>>conftest.
$ac_ext
12848 cat >>conftest.
$ac_ext <<_ACEOF
12849 /* end confdefs.h. */
12852 #include <linux/module.h>
12853 #include <linux/mutex.h>
12855 MODULE_LICENSE("$ZFS_META_LICENSE");
12865 mutex_unlock(&lock);
12875 cat - <<_ACEOF >conftest.h
12880 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12881 echo "obj-m := conftest.o" >build
/Makefile
12883 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12884 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12886 (eval $ac_try) 2>&5
12888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12891 (eval $ac_try) 2>&5
12893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); }; }; then
12896 { $as_echo "$as_me:$LINENO: result: no" >&5
12897 $as_echo "no" >&6; }
12900 $as_echo "$as_me: failed program was:" >&5
12901 sed 's/^/| /' conftest.
$ac_ext >&5
12903 { $as_echo "$as_me:$LINENO: result: yes" >&5
12904 $as_echo "yes" >&6; }
12905 { { $as_echo "$as_me:$LINENO: error:
12906 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
12907 *** with the CDDL license and will prevent the module linking stage
12908 *** from succeeding. You must rebuild your kernel without this
12909 *** option enabled." >&5
12910 $as_echo "$as_me: error:
12911 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
12912 *** with the CDDL license and will prevent the module linking stage
12913 *** from succeeding. You must rebuild your kernel without this
12914 *** option enabled." >&2;}
12915 { (exit 1); exit 1; }; }
12924 EXTRA_KCFLAGS
="$tmp_flags"
12928 $as_echo "$as_me: failed program was:" >&5
12929 sed 's/^/| /' conftest.
$ac_ext >&5
12931 { $as_echo "$as_me:$LINENO: result: no" >&5
12932 $as_echo "no" >&6; }
12946 tmp_flags
="$EXTRA_KCFLAGS"
12947 EXTRA_KCFLAGS
="-I\$(src)"
12949 { $as_echo "$as_me:$LINENO: checking whether DECLARE_EVENT_CLASS() is available" >&5
12950 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
12953 cat confdefs.h
- <<_ACEOF >conftest.c
12956 cat confdefs.h
>>conftest.
$ac_ext
12957 cat >>conftest.
$ac_ext <<_ACEOF
12958 /* end confdefs.h. */
12961 #include <linux/module.h>
12962 MODULE_LICENSE(ZFS_META_LICENSE);
12964 #define CREATE_TRACE_POINTS
12965 #include "conftest.h"
12971 trace_zfs_autoconf_event_one(1UL);
12972 trace_zfs_autoconf_event_two(2UL);
12982 cat - <<_ACEOF >conftest.h
12984 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
12985 #define _CONFTEST_H
12987 #undef TRACE_SYSTEM
12988 #define TRACE_SYSTEM zfs
12989 #include <linux/tracepoint.h>
12991 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
12992 TP_PROTO(unsigned long i),
12995 __field(unsigned long, i)
13000 TP_printk("i = %lu", __entry->i)
13003 #define DEFINE_AUTOCONF_EVENT(name) \
13004 DEFINE_EVENT(zfs_autoconf_event_class, name, \
13005 TP_PROTO(unsigned long i), \
13007 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
13008 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
13010 #endif /* _CONFTEST_H */
13012 #undef TRACE_INCLUDE_PATH
13013 #define TRACE_INCLUDE_PATH .
13014 #define TRACE_INCLUDE_FILE conftest
13015 #include <trace/define_trace.h>
13020 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13021 echo "obj-m := conftest.o" >build
/Makefile
13023 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13024 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13026 (eval $ac_try) 2>&5
13028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13031 (eval $ac_try) 2>&5
13033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); }; }; then
13036 { $as_echo "$as_me:$LINENO: result: yes" >&5
13037 $as_echo "yes" >&6; }
13039 cat >>confdefs.h
<<\_ACEOF
13040 #define HAVE_DECLARE_EVENT_CLASS 1
13045 $as_echo "$as_me: failed program was:" >&5
13046 sed 's/^/| /' conftest.
$ac_ext >&5
13048 { $as_echo "$as_me:$LINENO: result: no" >&5
13049 $as_echo "no" >&6; }
13058 EXTRA_KCFLAGS
="$tmp_flags"
13061 { $as_echo "$as_me:$LINENO: checking whether current->bio_tail exists" >&5
13062 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
13065 cat confdefs.h
- <<_ACEOF >conftest.c
13068 cat confdefs.h
>>conftest.
$ac_ext
13069 cat >>conftest.
$ac_ext <<_ACEOF
13070 /* end confdefs.h. */
13073 #include <linux/sched.h>
13079 current->bio_tail = (struct bio **) NULL;
13089 cat - <<_ACEOF >conftest.h
13094 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13095 echo "obj-m := conftest.o" >build
/Makefile
13097 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13098 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13100 (eval $ac_try) 2>&5
13102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13103 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13105 (eval $ac_try) 2>&5
13107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13108 (exit $ac_status); }; }; then
13110 { $as_echo "$as_me:$LINENO: result: yes" >&5
13111 $as_echo "yes" >&6; }
13113 cat >>confdefs.h
<<\_ACEOF
13114 #define HAVE_CURRENT_BIO_TAIL 1
13119 $as_echo "$as_me: failed program was:" >&5
13120 sed 's/^/| /' conftest.
$ac_ext >&5
13122 { $as_echo "$as_me:$LINENO: result: no" >&5
13123 $as_echo "no" >&6; }
13124 { $as_echo "$as_me:$LINENO: checking whether current->bio_list exists" >&5
13125 $as_echo_n "checking whether current->bio_list exists... " >&6; }
13128 cat confdefs.h
- <<_ACEOF >conftest.c
13131 cat confdefs.h
>>conftest.
$ac_ext
13132 cat >>conftest.
$ac_ext <<_ACEOF
13133 /* end confdefs.h. */
13136 #include <linux/sched.h>
13142 current->bio_list = (struct bio_list *) NULL;
13152 cat - <<_ACEOF >conftest.h
13157 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13158 echo "obj-m := conftest.o" >build
/Makefile
13160 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13161 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13163 (eval $ac_try) 2>&5
13165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13168 (eval $ac_try) 2>&5
13170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); }; }; then
13173 { $as_echo "$as_me:$LINENO: result: yes" >&5
13174 $as_echo "yes" >&6; }
13176 cat >>confdefs.h
<<\_ACEOF
13177 #define HAVE_CURRENT_BIO_LIST 1
13182 $as_echo "$as_me: failed program was:" >&5
13183 sed 's/^/| /' conftest.
$ac_ext >&5
13185 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
13186 https://github.com/zfsonlinux/zfs/issues/new" >&5
13187 $as_echo "$as_me: error: no - Please file a bug report at
13188 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
13189 { (exit 1); exit 1; }; }
13208 { $as_echo "$as_me:$LINENO: checking whether submit_bio() wants 1 arg" >&5
13209 $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
13212 cat confdefs.h
- <<_ACEOF >conftest.c
13215 cat confdefs.h
>>conftest.
$ac_ext
13216 cat >>conftest.
$ac_ext <<_ACEOF
13217 /* end confdefs.h. */
13220 #include <linux/bio.h>
13227 struct bio *bio = NULL;
13228 blk_qc = submit_bio(bio);
13238 cat - <<_ACEOF >conftest.h
13243 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13244 echo "obj-m := conftest.o" >build
/Makefile
13246 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13247 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13249 (eval $ac_try) 2>&5
13251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13252 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13254 (eval $ac_try) 2>&5
13256 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); }; }; then
13259 { $as_echo "$as_me:$LINENO: result: yes" >&5
13260 $as_echo "yes" >&6; }
13262 cat >>confdefs.h
<<\_ACEOF
13263 #define HAVE_1ARG_SUBMIT_BIO 1
13268 $as_echo "$as_me: failed program was:" >&5
13269 sed 's/^/| /' conftest.
$ac_ext >&5
13271 { $as_echo "$as_me:$LINENO: result: no" >&5
13272 $as_echo "no" >&6; }
13283 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
13284 $as_echo_n "checking block device operation prototypes... " >&6; }
13285 tmp_flags
="$EXTRA_KCFLAGS"
13286 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
13289 cat confdefs.h
- <<_ACEOF >conftest.c
13292 cat confdefs.h
>>conftest.
$ac_ext
13293 cat >>conftest.
$ac_ext <<_ACEOF
13294 /* end confdefs.h. */
13297 #include <linux/blkdev.h>
13299 int blk_open(struct block_device *bdev, fmode_t mode)
13301 int blk_ioctl(struct block_device *bdev, fmode_t mode,
13302 unsigned x, unsigned long y) { return 0; }
13303 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
13304 unsigned x, unsigned long y) { return 0; }
13306 static const struct block_device_operations
13307 bops __attribute__ ((unused)) = {
13310 .ioctl = blk_ioctl,
13311 .compat_ioctl = blk_compat_ioctl,
13327 cat - <<_ACEOF >conftest.h
13332 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13333 echo "obj-m := conftest.o" >build
/Makefile
13335 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13336 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13338 (eval $ac_try) 2>&5
13340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13343 (eval $ac_try) 2>&5
13345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); }; }; then
13348 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
13349 $as_echo "struct block_device" >&6; }
13351 cat >>confdefs.h
<<\_ACEOF
13352 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
13357 $as_echo "$as_me: failed program was:" >&5
13358 sed 's/^/| /' conftest.
$ac_ext >&5
13360 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
13361 $as_echo "struct inode" >&6; }
13370 EXTRA_KCFLAGS
="$tmp_flags"
13373 { $as_echo "$as_me:$LINENO: checking whether block_device_operations.release is void" >&5
13374 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
13375 tmp_flags
="$EXTRA_KCFLAGS"
13376 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
13379 cat confdefs.h
- <<_ACEOF >conftest.c
13382 cat confdefs.h
>>conftest.
$ac_ext
13383 cat >>conftest.
$ac_ext <<_ACEOF
13384 /* end confdefs.h. */
13387 #include <linux/blkdev.h>
13389 void blk_release(struct gendisk *g, fmode_t mode) { return; }
13391 static const struct block_device_operations
13392 bops __attribute__ ((unused)) = {
13394 .release = blk_release,
13396 .compat_ioctl = NULL,
13412 cat - <<_ACEOF >conftest.h
13417 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13418 echo "obj-m := conftest.o" >build
/Makefile
13420 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13421 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13423 (eval $ac_try) 2>&5
13425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13428 (eval $ac_try) 2>&5
13430 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); }; }; then
13433 { $as_echo "$as_me:$LINENO: result: void" >&5
13434 $as_echo "void" >&6; }
13436 cat >>confdefs.h
<<\_ACEOF
13437 #define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1
13442 $as_echo "$as_me: failed program was:" >&5
13443 sed 's/^/| /' conftest.
$ac_ext >&5
13445 { $as_echo "$as_me:$LINENO: result: int" >&5
13446 $as_echo "int" >&6; }
13455 EXTRA_KCFLAGS
="$tmp_flags"
13457 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
13458 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
13461 cat confdefs.h
- <<_ACEOF >conftest.c
13464 cat confdefs.h
>>conftest.
$ac_ext
13465 cat >>conftest.
$ac_ext <<_ACEOF
13466 /* end confdefs.h. */
13469 #include <linux/types.h>
13475 fmode_t *ptr __attribute__ ((unused));
13485 cat - <<_ACEOF >conftest.h
13490 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13491 echo "obj-m := conftest.o" >build
/Makefile
13493 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13494 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13496 (eval $ac_try) 2>&5
13498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13501 (eval $ac_try) 2>&5
13503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13504 (exit $ac_status); }; }; then
13506 { $as_echo "$as_me:$LINENO: result: yes" >&5
13507 $as_echo "yes" >&6; }
13509 cat >>confdefs.h
<<\_ACEOF
13510 #define HAVE_FMODE_T 1
13515 $as_echo "$as_me: failed program was:" >&5
13516 sed 's/^/| /' conftest.
$ac_ext >&5
13518 { $as_echo "$as_me:$LINENO: result: no" >&5
13519 $as_echo "no" >&6; }
13530 { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
13531 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
13534 cat confdefs.h
- <<_ACEOF >conftest.c
13537 cat confdefs.h
>>conftest.
$ac_ext
13538 cat >>conftest.
$ac_ext <<_ACEOF
13539 /* end confdefs.h. */
13542 #include <linux/kobject.h>
13548 int val __attribute__ ((unused));
13549 val = KOBJ_NAME_LEN;
13559 cat - <<_ACEOF >conftest.h
13564 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13565 echo "obj-m := conftest.o" >build
/Makefile
13567 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13568 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13570 (eval $ac_try) 2>&5
13572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13575 (eval $ac_try) 2>&5
13577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); }; }; then
13580 { $as_echo "$as_me:$LINENO: result: yes" >&5
13581 $as_echo "yes" >&6; }
13583 cat >>confdefs.h
<<\_ACEOF
13584 #define HAVE_KOBJ_NAME_LEN 1
13589 $as_echo "$as_me: failed program was:" >&5
13590 sed 's/^/| /' conftest.
$ac_ext >&5
13592 { $as_echo "$as_me:$LINENO: result: no" >&5
13593 $as_echo "no" >&6; }
13604 { $as_echo "$as_me:$LINENO: checking whether blkdev_get() wants 3 args" >&5
13605 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
13608 cat confdefs.h
- <<_ACEOF >conftest.c
13611 cat confdefs.h
>>conftest.
$ac_ext
13612 cat >>conftest.
$ac_ext <<_ACEOF
13613 /* end confdefs.h. */
13616 #include <linux/fs.h>
13622 struct block_device *bdev = NULL;
13623 (void) blkdev_get(bdev, 0, NULL);
13633 cat - <<_ACEOF >conftest.h
13638 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13639 echo "obj-m := conftest.o" >build
/Makefile
13641 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13642 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13644 (eval $ac_try) 2>&5
13646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13649 (eval $ac_try) 2>&5
13651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13652 (exit $ac_status); }; }; then
13654 { $as_echo "$as_me:$LINENO: result: yes" >&5
13655 $as_echo "yes" >&6; }
13657 cat >>confdefs.h
<<\_ACEOF
13658 #define HAVE_3ARG_BLKDEV_GET 1
13663 $as_echo "$as_me: failed program was:" >&5
13664 sed 's/^/| /' conftest.
$ac_ext >&5
13666 { $as_echo "$as_me:$LINENO: result: no" >&5
13667 $as_echo "no" >&6; }
13677 { $as_echo "$as_me:$LINENO: checking whether blkdev_get_by_path() is available" >&5
13678 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
13682 cat confdefs.h
- <<_ACEOF >conftest.c
13685 cat confdefs.h
>>conftest.
$ac_ext
13686 cat >>conftest.
$ac_ext <<_ACEOF
13687 /* end confdefs.h. */
13690 #include <linux/fs.h>
13696 blkdev_get_by_path(NULL, 0, NULL);
13706 cat - <<_ACEOF >conftest.h
13711 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13712 echo "obj-m := conftest.o" >build
/Makefile
13714 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13715 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13717 (eval $ac_try) 2>&5
13719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13722 (eval $ac_try) 2>&5
13724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); }; }; then
13728 $as_echo "$as_me: failed program was:" >&5
13729 sed 's/^/| /' conftest.
$ac_ext >&5
13738 if test $rc -ne 0; then :
13740 { $as_echo "$as_me:$LINENO: result: no" >&5
13741 $as_echo "no" >&6; }
13744 if test "x$enable_linux_builtin" != xyes
; then
13746 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
13747 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
13749 if test $rc -ne 0; then
13751 for file in fs
/block_dev.c
; do
13752 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
13753 "$LINUX/$file" 2>/dev
/null
13755 if test $rc -eq 0; then
13760 if test $export -eq 0; then :
13770 if test $rc -ne 0; then :
13772 { $as_echo "$as_me:$LINENO: result: no" >&5
13773 $as_echo "no" >&6; }
13777 { $as_echo "$as_me:$LINENO: result: yes" >&5
13778 $as_echo "yes" >&6; }
13780 cat >>confdefs.h
<<\_ACEOF
13781 #define HAVE_BLKDEV_GET_BY_PATH 1
13789 { $as_echo "$as_me:$LINENO: checking whether open_bdev_exclusive() is available" >&5
13790 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
13794 cat confdefs.h
- <<_ACEOF >conftest.c
13797 cat confdefs.h
>>conftest.
$ac_ext
13798 cat >>conftest.
$ac_ext <<_ACEOF
13799 /* end confdefs.h. */
13802 #include <linux/fs.h>
13808 open_bdev_exclusive(NULL, 0, NULL);
13818 cat - <<_ACEOF >conftest.h
13823 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13824 echo "obj-m := conftest.o" >build
/Makefile
13826 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13827 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13829 (eval $ac_try) 2>&5
13831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13834 (eval $ac_try) 2>&5
13836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); }; }; then
13840 $as_echo "$as_me: failed program was:" >&5
13841 sed 's/^/| /' conftest.
$ac_ext >&5
13850 if test $rc -ne 0; then :
13852 { $as_echo "$as_me:$LINENO: result: no" >&5
13853 $as_echo "no" >&6; }
13856 if test "x$enable_linux_builtin" != xyes
; then
13858 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
13859 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
13861 if test $rc -ne 0; then
13863 for file in fs
/block_dev.c
; do
13864 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
13865 "$LINUX/$file" 2>/dev
/null
13867 if test $rc -eq 0; then
13872 if test $export -eq 0; then :
13882 if test $rc -ne 0; then :
13884 { $as_echo "$as_me:$LINENO: result: no" >&5
13885 $as_echo "no" >&6; }
13889 { $as_echo "$as_me:$LINENO: result: yes" >&5
13890 $as_echo "yes" >&6; }
13892 cat >>confdefs.h
<<\_ACEOF
13893 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
13901 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 1 arg" >&5
13902 $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
13906 cat confdefs.h
- <<_ACEOF >conftest.c
13909 cat confdefs.h
>>conftest.
$ac_ext
13910 cat >>conftest.
$ac_ext <<_ACEOF
13911 /* end confdefs.h. */
13914 #include <linux/fs.h>
13930 cat - <<_ACEOF >conftest.h
13935 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13936 echo "obj-m := conftest.o" >build
/Makefile
13938 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13939 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13941 (eval $ac_try) 2>&5
13943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13946 (eval $ac_try) 2>&5
13948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); }; }; then
13952 $as_echo "$as_me: failed program was:" >&5
13953 sed 's/^/| /' conftest.
$ac_ext >&5
13962 if test $rc -ne 0; then :
13964 { $as_echo "$as_me:$LINENO: result: no" >&5
13965 $as_echo "no" >&6; }
13966 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 2 args" >&5
13967 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
13971 cat confdefs.h
- <<_ACEOF >conftest.c
13974 cat confdefs.h
>>conftest.
$ac_ext
13975 cat >>conftest.
$ac_ext <<_ACEOF
13976 /* end confdefs.h. */
13979 #include <linux/fs.h>
13985 lookup_bdev(NULL, FMODE_READ);
13995 cat - <<_ACEOF >conftest.h
14000 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14001 echo "obj-m := conftest.o" >build
/Makefile
14003 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14004 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14006 (eval $ac_try) 2>&5
14008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14011 (eval $ac_try) 2>&5
14013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); }; }; then
14017 $as_echo "$as_me: failed program was:" >&5
14018 sed 's/^/| /' conftest.
$ac_ext >&5
14027 if test $rc -ne 0; then :
14029 { $as_echo "$as_me:$LINENO: result: no" >&5
14030 $as_echo "no" >&6; }
14033 if test "x$enable_linux_builtin" != xyes
; then
14035 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
14036 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
14038 if test $rc -ne 0; then
14040 for file in fs
/block_dev.c
; do
14041 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
14042 "$LINUX/$file" 2>/dev
/null
14044 if test $rc -eq 0; then
14049 if test $export -eq 0; then :
14059 if test $rc -ne 0; then :
14061 { $as_echo "$as_me:$LINENO: result: no" >&5
14062 $as_echo "no" >&6; }
14066 { $as_echo "$as_me:$LINENO: result: yes" >&5
14067 $as_echo "yes" >&6; }
14069 cat >>confdefs.h
<<\_ACEOF
14070 #define HAVE_2ARGS_LOOKUP_BDEV 1
14079 if test "x$enable_linux_builtin" != xyes
; then
14081 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
14082 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
14084 if test $rc -ne 0; then
14086 for file in fs
/block_dev.c
; do
14087 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
14088 "$LINUX/$file" 2>/dev
/null
14090 if test $rc -eq 0; then
14095 if test $export -eq 0; then :
14105 if test $rc -ne 0; then :
14107 { $as_echo "$as_me:$LINENO: result: no" >&5
14108 $as_echo "no" >&6; }
14109 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 2 args" >&5
14110 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
14114 cat confdefs.h
- <<_ACEOF >conftest.c
14117 cat confdefs.h
>>conftest.
$ac_ext
14118 cat >>conftest.
$ac_ext <<_ACEOF
14119 /* end confdefs.h. */
14122 #include <linux/fs.h>
14128 lookup_bdev(NULL, FMODE_READ);
14138 cat - <<_ACEOF >conftest.h
14143 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14144 echo "obj-m := conftest.o" >build
/Makefile
14146 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14147 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14149 (eval $ac_try) 2>&5
14151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14152 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14154 (eval $ac_try) 2>&5
14156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14157 (exit $ac_status); }; }; then
14160 $as_echo "$as_me: failed program was:" >&5
14161 sed 's/^/| /' conftest.
$ac_ext >&5
14170 if test $rc -ne 0; then :
14172 { $as_echo "$as_me:$LINENO: result: no" >&5
14173 $as_echo "no" >&6; }
14176 if test "x$enable_linux_builtin" != xyes
; then
14178 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
14179 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
14181 if test $rc -ne 0; then
14183 for file in fs
/block_dev.c
; do
14184 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
14185 "$LINUX/$file" 2>/dev
/null
14187 if test $rc -eq 0; then
14192 if test $export -eq 0; then :
14202 if test $rc -ne 0; then :
14204 { $as_echo "$as_me:$LINENO: result: no" >&5
14205 $as_echo "no" >&6; }
14209 { $as_echo "$as_me:$LINENO: result: yes" >&5
14210 $as_echo "yes" >&6; }
14212 cat >>confdefs.h
<<\_ACEOF
14213 #define HAVE_2ARGS_LOOKUP_BDEV 1
14223 { $as_echo "$as_me:$LINENO: result: yes" >&5
14224 $as_echo "yes" >&6; }
14226 cat >>confdefs.h
<<\_ACEOF
14227 #define HAVE_1ARG_LOOKUP_BDEV 1
14236 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
14237 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
14240 cat confdefs.h
- <<_ACEOF >conftest.c
14243 cat confdefs.h
>>conftest.
$ac_ext
14244 cat >>conftest.
$ac_ext <<_ACEOF
14245 /* end confdefs.h. */
14248 #include <linux/buffer_head.h>
14254 struct block_device *bdev = NULL;
14255 invalidate_bdev(bdev);
14265 cat - <<_ACEOF >conftest.h
14270 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14271 echo "obj-m := conftest.o" >build
/Makefile
14273 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14274 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14276 (eval $ac_try) 2>&5
14278 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14281 (eval $ac_try) 2>&5
14283 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14284 (exit $ac_status); }; }; then
14286 { $as_echo "$as_me:$LINENO: result: yes" >&5
14287 $as_echo "yes" >&6; }
14289 cat >>confdefs.h
<<\_ACEOF
14290 #define HAVE_1ARG_INVALIDATE_BDEV 1
14295 $as_echo "$as_me: failed program was:" >&5
14296 sed 's/^/| /' conftest.
$ac_ext >&5
14298 { $as_echo "$as_me:$LINENO: result: no" >&5
14299 $as_echo "no" >&6; }
14310 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
14311 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
14312 tmp_flags
="$EXTRA_KCFLAGS"
14313 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14316 cat confdefs.h
- <<_ACEOF >conftest.c
14319 cat confdefs.h
>>conftest.
$ac_ext
14320 cat >>conftest.
$ac_ext <<_ACEOF
14321 /* end confdefs.h. */
14324 #include <linux/blkdev.h>
14330 struct block_device *bdev = NULL;
14331 bdev_logical_block_size(bdev);
14341 cat - <<_ACEOF >conftest.h
14346 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14347 echo "obj-m := conftest.o" >build
/Makefile
14349 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14350 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14352 (eval $ac_try) 2>&5
14354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14357 (eval $ac_try) 2>&5
14359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; }; then
14362 { $as_echo "$as_me:$LINENO: result: yes" >&5
14363 $as_echo "yes" >&6; }
14365 cat >>confdefs.h
<<\_ACEOF
14366 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
14371 $as_echo "$as_me: failed program was:" >&5
14372 sed 's/^/| /' conftest.
$ac_ext >&5
14374 { $as_echo "$as_me:$LINENO: result: no" >&5
14375 $as_echo "no" >&6; }
14384 EXTRA_KCFLAGS
="$tmp_flags"
14387 { $as_echo "$as_me:$LINENO: checking whether bdev_physical_block_size() is available" >&5
14388 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
14389 tmp_flags
="$EXTRA_KCFLAGS"
14390 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14393 cat confdefs.h
- <<_ACEOF >conftest.c
14396 cat confdefs.h
>>conftest.
$ac_ext
14397 cat >>conftest.
$ac_ext <<_ACEOF
14398 /* end confdefs.h. */
14401 #include <linux/blkdev.h>
14407 struct block_device *bdev = NULL;
14408 bdev_physical_block_size(bdev);
14418 cat - <<_ACEOF >conftest.h
14423 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14424 echo "obj-m := conftest.o" >build
/Makefile
14426 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14427 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14429 (eval $ac_try) 2>&5
14431 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14432 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14434 (eval $ac_try) 2>&5
14436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14437 (exit $ac_status); }; }; then
14439 { $as_echo "$as_me:$LINENO: result: yes" >&5
14440 $as_echo "yes" >&6; }
14442 cat >>confdefs.h
<<\_ACEOF
14443 #define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1
14448 $as_echo "$as_me: failed program was:" >&5
14449 sed 's/^/| /' conftest.
$ac_ext >&5
14451 { $as_echo "$as_me:$LINENO: result: no" >&5
14452 $as_echo "no" >&6; }
14461 EXTRA_KCFLAGS
="$tmp_flags"
14464 { $as_echo "$as_me:$LINENO: checking whether bio has bi_iter" >&5
14465 $as_echo_n "checking whether bio has bi_iter... " >&6; }
14468 cat confdefs.h
- <<_ACEOF >conftest.c
14471 cat confdefs.h
>>conftest.
$ac_ext
14472 cat >>conftest.
$ac_ext <<_ACEOF
14473 /* end confdefs.h. */
14476 #include <linux/bio.h>
14483 bio.bi_iter.bi_sector = 0;
14493 cat - <<_ACEOF >conftest.h
14498 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14499 echo "obj-m := conftest.o" >build
/Makefile
14501 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14502 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14504 (eval $ac_try) 2>&5
14506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14507 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14509 (eval $ac_try) 2>&5
14511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); }; }; then
14514 { $as_echo "$as_me:$LINENO: result: yes" >&5
14515 $as_echo "yes" >&6; }
14517 cat >>confdefs.h
<<\_ACEOF
14518 #define HAVE_BIO_BVEC_ITER 1
14523 $as_echo "$as_me: failed program was:" >&5
14524 sed 's/^/| /' conftest.
$ac_ext >&5
14526 { $as_echo "$as_me:$LINENO: result: no" >&5
14527 $as_echo "no" >&6; }
14538 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
14539 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
14542 cat confdefs.h
- <<_ACEOF >conftest.c
14545 cat confdefs.h
>>conftest.
$ac_ext
14546 cat >>conftest.
$ac_ext <<_ACEOF
14547 /* end confdefs.h. */
14550 #include <linux/bio.h>
14556 int flags __attribute__ ((unused));
14557 flags = ((1 << BIO_RW_FAILFAST_DEV) |
14558 (1 << BIO_RW_FAILFAST_TRANSPORT) |
14559 (1 << BIO_RW_FAILFAST_DRIVER));
14569 cat - <<_ACEOF >conftest.h
14574 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14575 echo "obj-m := conftest.o" >build
/Makefile
14577 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14578 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14580 (eval $ac_try) 2>&5
14582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14585 (eval $ac_try) 2>&5
14587 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14588 (exit $ac_status); }; }; then
14590 { $as_echo "$as_me:$LINENO: result: yes" >&5
14591 $as_echo "yes" >&6; }
14593 cat >>confdefs.h
<<\_ACEOF
14594 #define HAVE_BIO_RW_FAILFAST_DTD 1
14599 $as_echo "$as_me: failed program was:" >&5
14600 sed 's/^/| /' conftest.
$ac_ext >&5
14602 { $as_echo "$as_me:$LINENO: result: no" >&5
14603 $as_echo "no" >&6; }
14614 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
14615 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
14618 cat confdefs.h
- <<_ACEOF >conftest.c
14621 cat confdefs.h
>>conftest.
$ac_ext
14622 cat >>conftest.
$ac_ext <<_ACEOF
14623 /* end confdefs.h. */
14626 #include <linux/bio.h>
14632 int flags __attribute__ ((unused));
14633 flags = REQ_FAILFAST_MASK;
14643 cat - <<_ACEOF >conftest.h
14648 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14649 echo "obj-m := conftest.o" >build
/Makefile
14651 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14652 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14654 (eval $ac_try) 2>&5
14656 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14659 (eval $ac_try) 2>&5
14661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14662 (exit $ac_status); }; }; then
14664 { $as_echo "$as_me:$LINENO: result: yes" >&5
14665 $as_echo "yes" >&6; }
14667 cat >>confdefs.h
<<\_ACEOF
14668 #define HAVE_REQ_FAILFAST_MASK 1
14673 $as_echo "$as_me: failed program was:" >&5
14674 sed 's/^/| /' conftest.
$ac_ext >&5
14676 { $as_echo "$as_me:$LINENO: result: no" >&5
14677 $as_echo "no" >&6; }
14688 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_DISCARD is defined" >&5
14689 $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
14692 cat confdefs.h
- <<_ACEOF >conftest.c
14695 cat confdefs.h
>>conftest.
$ac_ext
14696 cat >>conftest.
$ac_ext <<_ACEOF
14697 /* end confdefs.h. */
14700 #include <linux/blk_types.h>
14706 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
14716 cat - <<_ACEOF >conftest.h
14721 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14722 echo "obj-m := conftest.o" >build
/Makefile
14724 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14725 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14726 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14727 (eval $ac_try) 2>&5
14729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14730 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14732 (eval $ac_try) 2>&5
14734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14735 (exit $ac_status); }; }; then
14737 { $as_echo "$as_me:$LINENO: result: yes" >&5
14738 $as_echo "yes" >&6; }
14740 cat >>confdefs.h
<<\_ACEOF
14741 #define HAVE_REQ_OP_DISCARD 1
14746 $as_echo "$as_me: failed program was:" >&5
14747 sed 's/^/| /' conftest.
$ac_ext >&5
14749 { $as_echo "$as_me:$LINENO: result: no" >&5
14750 $as_echo "no" >&6; }
14761 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_SECURE_ERASE is defined" >&5
14762 $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
14765 cat confdefs.h
- <<_ACEOF >conftest.c
14768 cat confdefs.h
>>conftest.
$ac_ext
14769 cat >>conftest.
$ac_ext <<_ACEOF
14770 /* end confdefs.h. */
14773 #include <linux/blk_types.h>
14779 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
14789 cat - <<_ACEOF >conftest.h
14794 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14795 echo "obj-m := conftest.o" >build
/Makefile
14797 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14798 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14800 (eval $ac_try) 2>&5
14802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14803 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14805 (eval $ac_try) 2>&5
14807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14808 (exit $ac_status); }; }; then
14810 { $as_echo "$as_me:$LINENO: result: yes" >&5
14811 $as_echo "yes" >&6; }
14813 cat >>confdefs.h
<<\_ACEOF
14814 #define HAVE_REQ_OP_SECURE_ERASE 1
14819 $as_echo "$as_me: failed program was:" >&5
14820 sed 's/^/| /' conftest.
$ac_ext >&5
14822 { $as_echo "$as_me:$LINENO: result: no" >&5
14823 $as_echo "no" >&6; }
14834 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_FLUSH is defined" >&5
14835 $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
14838 cat confdefs.h
- <<_ACEOF >conftest.c
14841 cat confdefs.h
>>conftest.
$ac_ext
14842 cat >>conftest.
$ac_ext <<_ACEOF
14843 /* end confdefs.h. */
14846 #include <linux/blk_types.h>
14852 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
14862 cat - <<_ACEOF >conftest.h
14867 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14868 echo "obj-m := conftest.o" >build
/Makefile
14870 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14871 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14873 (eval $ac_try) 2>&5
14875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14878 (eval $ac_try) 2>&5
14880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14881 (exit $ac_status); }; }; then
14883 { $as_echo "$as_me:$LINENO: result: yes" >&5
14884 $as_echo "yes" >&6; }
14886 cat >>confdefs.h
<<\_ACEOF
14887 #define HAVE_REQ_OP_FLUSH 1
14892 $as_echo "$as_me: failed program was:" >&5
14893 sed 's/^/| /' conftest.
$ac_ext >&5
14895 { $as_echo "$as_me:$LINENO: result: no" >&5
14896 $as_echo "no" >&6; }
14907 { $as_echo "$as_me:$LINENO: checking whether bio->bi_opf is defined" >&5
14908 $as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
14911 cat confdefs.h
- <<_ACEOF >conftest.c
14914 cat confdefs.h
>>conftest.
$ac_ext
14915 cat >>conftest.
$ac_ext <<_ACEOF
14916 /* end confdefs.h. */
14919 #include <linux/bio.h>
14925 struct bio bio __attribute__ ((unused));
14936 cat - <<_ACEOF >conftest.h
14941 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14942 echo "obj-m := conftest.o" >build
/Makefile
14944 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14945 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14947 (eval $ac_try) 2>&5
14949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14950 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952 (eval $ac_try) 2>&5
14954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); }; }; then
14957 { $as_echo "$as_me:$LINENO: result: yes" >&5
14958 $as_echo "yes" >&6; }
14960 cat >>confdefs.h
<<\_ACEOF
14961 #define HAVE_BIO_BI_OPF 1
14966 $as_echo "$as_me: failed program was:" >&5
14967 sed 's/^/| /' conftest.
$ac_ext >&5
14969 { $as_echo "$as_me:$LINENO: result: no" >&5
14970 $as_echo "no" >&6; }
14981 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 1 arg" >&5
14982 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
14985 cat confdefs.h
- <<_ACEOF >conftest.c
14988 cat confdefs.h
>>conftest.
$ac_ext
14989 cat >>conftest.
$ac_ext <<_ACEOF
14990 /* end confdefs.h. */
14993 #include <linux/bio.h>
14995 void wanted_end_io(struct bio *bio) { return; }
14997 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
15012 cat - <<_ACEOF >conftest.h
15017 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15018 echo "obj-m := conftest.o" >build
/Makefile
15020 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15021 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15023 (eval $ac_try) 2>&5
15025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15028 (eval $ac_try) 2>&5
15030 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15031 (exit $ac_status); }; }; then
15033 { $as_echo "$as_me:$LINENO: result: yes" >&5
15034 $as_echo "yes" >&6; }
15036 cat >>confdefs.h
<<\_ACEOF
15037 #define HAVE_1ARG_BIO_END_IO_T 1
15042 $as_echo "$as_me: failed program was:" >&5
15043 sed 's/^/| /' conftest.
$ac_ext >&5
15045 { $as_echo "$as_me:$LINENO: result: no" >&5
15046 $as_echo "no" >&6; }
15057 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_BARRIER is defined" >&5
15058 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
15061 cat confdefs.h
- <<_ACEOF >conftest.c
15064 cat confdefs.h
>>conftest.
$ac_ext
15065 cat >>conftest.
$ac_ext <<_ACEOF
15066 /* end confdefs.h. */
15069 #include <linux/bio.h>
15075 int flags __attribute__ ((unused));
15076 flags = BIO_RW_BARRIER;
15086 cat - <<_ACEOF >conftest.h
15091 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15092 echo "obj-m := conftest.o" >build
/Makefile
15094 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15095 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15097 (eval $ac_try) 2>&5
15099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15102 (eval $ac_try) 2>&5
15104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); }; }; then
15107 { $as_echo "$as_me:$LINENO: result: yes" >&5
15108 $as_echo "yes" >&6; }
15110 cat >>confdefs.h
<<\_ACEOF
15111 #define HAVE_BIO_RW_BARRIER 1
15116 $as_echo "$as_me: failed program was:" >&5
15117 sed 's/^/| /' conftest.
$ac_ext >&5
15119 { $as_echo "$as_me:$LINENO: result: no" >&5
15120 $as_echo "no" >&6; }
15131 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_DISCARD is defined" >&5
15132 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
15135 cat confdefs.h
- <<_ACEOF >conftest.c
15138 cat confdefs.h
>>conftest.
$ac_ext
15139 cat >>conftest.
$ac_ext <<_ACEOF
15140 /* end confdefs.h. */
15143 #include <linux/bio.h>
15149 int flags __attribute__ ((unused));
15150 flags = BIO_RW_DISCARD;
15160 cat - <<_ACEOF >conftest.h
15165 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15166 echo "obj-m := conftest.o" >build
/Makefile
15168 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15169 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15171 (eval $ac_try) 2>&5
15173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15174 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15176 (eval $ac_try) 2>&5
15178 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15179 (exit $ac_status); }; }; then
15181 { $as_echo "$as_me:$LINENO: result: yes" >&5
15182 $as_echo "yes" >&6; }
15184 cat >>confdefs.h
<<\_ACEOF
15185 #define HAVE_BIO_RW_DISCARD 1
15190 $as_echo "$as_me: failed program was:" >&5
15191 sed 's/^/| /' conftest.
$ac_ext >&5
15193 { $as_echo "$as_me:$LINENO: result: no" >&5
15194 $as_echo "no" >&6; }
15205 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is available" >&5
15206 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
15207 tmp_flags
="$EXTRA_KCFLAGS"
15208 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15211 cat confdefs.h
- <<_ACEOF >conftest.c
15214 cat confdefs.h
>>conftest.
$ac_ext
15215 cat >>conftest.
$ac_ext <<_ACEOF
15216 /* end confdefs.h. */
15219 #include <linux/blkdev.h>
15225 struct request_queue *q = NULL;
15226 (void) blk_queue_flush(q, REQ_FLUSH);
15236 cat - <<_ACEOF >conftest.h
15241 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15242 echo "obj-m := conftest.o" >build
/Makefile
15244 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15245 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15247 (eval $ac_try) 2>&5
15249 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15250 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15252 (eval $ac_try) 2>&5
15254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); }; }; then
15257 { $as_echo "$as_me:$LINENO: result: yes" >&5
15258 $as_echo "yes" >&6; }
15260 cat >>confdefs.h
<<\_ACEOF
15261 #define HAVE_BLK_QUEUE_FLUSH 1
15265 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is GPL-only" >&5
15266 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
15269 cat confdefs.h
- <<_ACEOF >conftest.c
15272 cat confdefs.h
>>conftest.
$ac_ext
15273 cat >>conftest.
$ac_ext <<_ACEOF
15274 /* end confdefs.h. */
15277 #include <linux/module.h>
15278 #include <linux/blkdev.h>
15280 MODULE_LICENSE("$ZFS_META_LICENSE");
15286 struct request_queue *q = NULL;
15287 (void) blk_queue_flush(q, REQ_FLUSH);
15297 cat - <<_ACEOF >conftest.h
15302 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15303 echo "obj-m := conftest.o" >build
/Makefile
15305 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15306 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15308 (eval $ac_try) 2>&5
15310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15313 (eval $ac_try) 2>&5
15315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15316 (exit $ac_status); }; }; then
15318 { $as_echo "$as_me:$LINENO: result: no" >&5
15319 $as_echo "no" >&6; }
15322 $as_echo "$as_me: failed program was:" >&5
15323 sed 's/^/| /' conftest.
$ac_ext >&5
15325 { $as_echo "$as_me:$LINENO: result: yes" >&5
15326 $as_echo "yes" >&6; }
15328 cat >>confdefs.h
<<\_ACEOF
15329 #define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
15342 $as_echo "$as_me: failed program was:" >&5
15343 sed 's/^/| /' conftest.
$ac_ext >&5
15345 { $as_echo "$as_me:$LINENO: result: no" >&5
15346 $as_echo "no" >&6; }
15356 { $as_echo "$as_me:$LINENO: checking whether blk_queue_write_cache() exists" >&5
15357 $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
15360 cat confdefs.h
- <<_ACEOF >conftest.c
15363 cat confdefs.h
>>conftest.
$ac_ext
15364 cat >>conftest.
$ac_ext <<_ACEOF
15365 /* end confdefs.h. */
15368 #include <linux/kernel.h>
15369 #include <linux/blkdev.h>
15376 struct request_queue *q = NULL;
15377 blk_queue_write_cache(q, true, true);
15387 cat - <<_ACEOF >conftest.h
15392 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15393 echo "obj-m := conftest.o" >build
/Makefile
15395 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15396 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15398 (eval $ac_try) 2>&5
15400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15401 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15403 (eval $ac_try) 2>&5
15405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); }; }; then
15408 { $as_echo "$as_me:$LINENO: result: yes" >&5
15409 $as_echo "yes" >&6; }
15411 cat >>confdefs.h
<<\_ACEOF
15412 #define HAVE_BLK_QUEUE_WRITE_CACHE 1
15416 { $as_echo "$as_me:$LINENO: checking whether blk_queue_write_cache() is GPL-only" >&5
15417 $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
15420 cat confdefs.h
- <<_ACEOF >conftest.c
15423 cat confdefs.h
>>conftest.
$ac_ext
15424 cat >>conftest.
$ac_ext <<_ACEOF
15425 /* end confdefs.h. */
15428 #include <linux/kernel.h>
15429 #include <linux/module.h>
15430 #include <linux/blkdev.h>
15432 MODULE_LICENSE("$ZFS_META_LICENSE");
15438 struct request_queue *q = NULL;
15439 blk_queue_write_cache(q, true, true);
15449 cat - <<_ACEOF >conftest.h
15454 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15455 echo "obj-m := conftest.o" >build
/Makefile
15457 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15458 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15460 (eval $ac_try) 2>&5
15462 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15463 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15465 (eval $ac_try) 2>&5
15467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15468 (exit $ac_status); }; }; then
15470 { $as_echo "$as_me:$LINENO: result: no" >&5
15471 $as_echo "no" >&6; }
15474 $as_echo "$as_me: failed program was:" >&5
15475 sed 's/^/| /' conftest.
$ac_ext >&5
15477 { $as_echo "$as_me:$LINENO: result: yes" >&5
15478 $as_echo "yes" >&6; }
15480 cat >>confdefs.h
<<\_ACEOF
15481 #define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1
15494 $as_echo "$as_me: failed program was:" >&5
15495 sed 's/^/| /' conftest.
$ac_ext >&5
15497 { $as_echo "$as_me:$LINENO: result: no" >&5
15498 $as_echo "no" >&6; }
15508 EXTRA_KCFLAGS
="$tmp_flags"
15511 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_hw_sectors() is available" >&5
15512 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
15513 tmp_flags
="$EXTRA_KCFLAGS"
15514 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15517 cat confdefs.h
- <<_ACEOF >conftest.c
15520 cat confdefs.h
>>conftest.
$ac_ext
15521 cat >>conftest.
$ac_ext <<_ACEOF
15522 /* end confdefs.h. */
15525 #include <linux/blkdev.h>
15531 struct request_queue *q = NULL;
15532 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
15542 cat - <<_ACEOF >conftest.h
15547 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15548 echo "obj-m := conftest.o" >build
/Makefile
15550 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15551 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15553 (eval $ac_try) 2>&5
15555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15556 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15558 (eval $ac_try) 2>&5
15560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); }; }; then
15563 { $as_echo "$as_me:$LINENO: result: yes" >&5
15564 $as_echo "yes" >&6; }
15566 cat >>confdefs.h
<<\_ACEOF
15567 #define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
15572 $as_echo "$as_me: failed program was:" >&5
15573 sed 's/^/| /' conftest.
$ac_ext >&5
15575 { $as_echo "$as_me:$LINENO: result: no" >&5
15576 $as_echo "no" >&6; }
15585 EXTRA_KCFLAGS
="$tmp_flags"
15588 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_segments() is available" >&5
15589 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
15590 tmp_flags
="$EXTRA_KCFLAGS"
15591 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15594 cat confdefs.h
- <<_ACEOF >conftest.c
15597 cat confdefs.h
>>conftest.
$ac_ext
15598 cat >>conftest.
$ac_ext <<_ACEOF
15599 /* end confdefs.h. */
15602 #include <linux/blkdev.h>
15608 struct request_queue *q = NULL;
15609 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
15619 cat - <<_ACEOF >conftest.h
15624 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15625 echo "obj-m := conftest.o" >build
/Makefile
15627 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15628 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15630 (eval $ac_try) 2>&5
15632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15635 (eval $ac_try) 2>&5
15637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); }; }; then
15640 { $as_echo "$as_me:$LINENO: result: yes" >&5
15641 $as_echo "yes" >&6; }
15643 cat >>confdefs.h
<<\_ACEOF
15644 #define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
15649 $as_echo "$as_me: failed program was:" >&5
15650 sed 's/^/| /' conftest.
$ac_ext >&5
15652 { $as_echo "$as_me:$LINENO: result: no" >&5
15653 $as_echo "no" >&6; }
15662 EXTRA_KCFLAGS
="$tmp_flags"
15665 { $as_echo "$as_me:$LINENO: checking whether the BIO_RW_UNPLUG enum is available" >&5
15666 $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
15667 tmp_flags
="$EXTRA_KCFLAGS"
15668 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15671 cat confdefs.h
- <<_ACEOF >conftest.c
15674 cat confdefs.h
>>conftest.
$ac_ext
15675 cat >>conftest.
$ac_ext <<_ACEOF
15676 /* end confdefs.h. */
15679 #include <linux/blkdev.h>
15685 extern enum bio_rw_flags rw;
15687 rw = BIO_RW_UNPLUG;
15697 cat - <<_ACEOF >conftest.h
15702 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15703 echo "obj-m := conftest.o" >build
/Makefile
15705 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15706 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15708 (eval $ac_try) 2>&5
15710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15713 (eval $ac_try) 2>&5
15715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); }; }; then
15718 { $as_echo "$as_me:$LINENO: result: yes" >&5
15719 $as_echo "yes" >&6; }
15721 cat >>confdefs.h
<<\_ACEOF
15722 #define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1
15727 $as_echo "$as_me: failed program was:" >&5
15728 sed 's/^/| /' conftest.
$ac_ext >&5
15730 { $as_echo "$as_me:$LINENO: result: no" >&5
15731 $as_echo "no" >&6; }
15740 EXTRA_KCFLAGS
="$tmp_flags"
15743 { $as_echo "$as_me:$LINENO: checking whether struct blk_plug is available" >&5
15744 $as_echo_n "checking whether struct blk_plug is available... " >&6; }
15745 tmp_flags
="$EXTRA_KCFLAGS"
15746 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15749 cat confdefs.h
- <<_ACEOF >conftest.c
15752 cat confdefs.h
>>conftest.
$ac_ext
15753 cat >>conftest.
$ac_ext <<_ACEOF
15754 /* end confdefs.h. */
15757 #include <linux/blkdev.h>
15763 struct blk_plug plug;
15765 blk_start_plug(&plug);
15766 blk_finish_plug(&plug);
15776 cat - <<_ACEOF >conftest.h
15781 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15782 echo "obj-m := conftest.o" >build
/Makefile
15784 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15785 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15787 (eval $ac_try) 2>&5
15789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15790 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15792 (eval $ac_try) 2>&5
15794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795 (exit $ac_status); }; }; then
15797 { $as_echo "$as_me:$LINENO: result: yes" >&5
15798 $as_echo "yes" >&6; }
15800 cat >>confdefs.h
<<\_ACEOF
15801 #define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1
15806 $as_echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.
$ac_ext >&5
15809 { $as_echo "$as_me:$LINENO: result: no" >&5
15810 $as_echo "no" >&6; }
15819 EXTRA_KCFLAGS
="$tmp_flags"
15822 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
15823 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
15824 tmp_flags
="$EXTRA_KCFLAGS"
15825 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15828 cat confdefs.h
- <<_ACEOF >conftest.c
15831 cat confdefs.h
>>conftest.
$ac_ext
15832 cat >>conftest.
$ac_ext <<_ACEOF
15833 /* end confdefs.h. */
15836 #include <linux/blkdev.h>
15842 struct gendisk *disk = NULL;
15843 (void) get_disk_ro(disk);
15853 cat - <<_ACEOF >conftest.h
15858 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15859 echo "obj-m := conftest.o" >build
/Makefile
15861 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15862 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15864 (eval $ac_try) 2>&5
15866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15869 (eval $ac_try) 2>&5
15871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); }; }; then
15874 { $as_echo "$as_me:$LINENO: result: yes" >&5
15875 $as_echo "yes" >&6; }
15877 cat >>confdefs.h
<<\_ACEOF
15878 #define HAVE_GET_DISK_RO 1
15883 $as_echo "$as_me: failed program was:" >&5
15884 sed 's/^/| /' conftest.
$ac_ext >&5
15886 { $as_echo "$as_me:$LINENO: result: no" >&5
15887 $as_echo "no" >&6; }
15896 EXTRA_KCFLAGS
="$tmp_flags"
15898 { $as_echo "$as_me:$LINENO: checking whether get_gendisk() is available" >&5
15899 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
15903 cat confdefs.h
- <<_ACEOF >conftest.c
15906 cat confdefs.h
>>conftest.
$ac_ext
15907 cat >>conftest.
$ac_ext <<_ACEOF
15908 /* end confdefs.h. */
15911 #include <linux/genhd.h>
15917 get_gendisk(0, NULL);
15927 cat - <<_ACEOF >conftest.h
15932 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15933 echo "obj-m := conftest.o" >build
/Makefile
15935 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15936 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15938 (eval $ac_try) 2>&5
15940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15941 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15943 (eval $ac_try) 2>&5
15945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15946 (exit $ac_status); }; }; then
15949 $as_echo "$as_me: failed program was:" >&5
15950 sed 's/^/| /' conftest.
$ac_ext >&5
15959 if test $rc -ne 0; then :
15961 { $as_echo "$as_me:$LINENO: result: no" >&5
15962 $as_echo "no" >&6; }
15965 if test "x$enable_linux_builtin" != xyes
; then
15967 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
15968 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15970 if test $rc -ne 0; then
15972 for file in block
/genhd.c
; do
15973 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
15974 "$LINUX/$file" 2>/dev
/null
15976 if test $rc -eq 0; then
15981 if test $export -eq 0; then :
15991 if test $rc -ne 0; then :
15993 { $as_echo "$as_me:$LINENO: result: no" >&5
15994 $as_echo "no" >&6; }
15998 { $as_echo "$as_me:$LINENO: result: yes" >&5
15999 $as_echo "yes" >&6; }
16001 cat >>confdefs.h
<<\_ACEOF
16002 #define HAVE_GET_GENDISK 1
16011 { $as_echo "$as_me:$LINENO: checking whether bio_set_op_attrs is available" >&5
16012 $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
16015 cat confdefs.h
- <<_ACEOF >conftest.c
16018 cat confdefs.h
>>conftest.
$ac_ext
16019 cat >>conftest.
$ac_ext <<_ACEOF
16020 /* end confdefs.h. */
16023 #include <linux/bio.h>
16029 struct bio *bio __attribute__ ((unused)) = NULL;
16031 bio_set_op_attrs(bio, 0, 0);
16041 cat - <<_ACEOF >conftest.h
16046 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16047 echo "obj-m := conftest.o" >build
/Makefile
16049 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16050 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16052 (eval $ac_try) 2>&5
16054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16057 (eval $ac_try) 2>&5
16059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); }; }; then
16062 { $as_echo "$as_me:$LINENO: result: yes" >&5
16063 $as_echo "yes" >&6; }
16065 cat >>confdefs.h
<<\_ACEOF
16066 #define HAVE_BIO_SET_OP_ATTRS 1
16071 $as_echo "$as_me: failed program was:" >&5
16072 sed 's/^/| /' conftest.
$ac_ext >&5
16074 { $as_echo "$as_me:$LINENO: result: no" >&5
16075 $as_echo "no" >&6; }
16086 { $as_echo "$as_me:$LINENO: checking whether generic_readlink is global" >&5
16087 $as_echo_n "checking whether generic_readlink is global... " >&6; }
16090 cat confdefs.h
- <<_ACEOF >conftest.c
16093 cat confdefs.h
>>conftest.
$ac_ext
16094 cat >>conftest.
$ac_ext <<_ACEOF
16095 /* end confdefs.h. */
16098 #include <linux/fs.h>
16104 int i __attribute__ ((unused));
16106 i = generic_readlink(NULL, NULL, 0);
16116 cat - <<_ACEOF >conftest.h
16121 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16122 echo "obj-m := conftest.o" >build
/Makefile
16124 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16125 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16127 (eval $ac_try) 2>&5
16129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16132 (eval $ac_try) 2>&5
16134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); }; }; then
16137 { $as_echo "$as_me:$LINENO: result: yes" >&5
16138 $as_echo "yes" >&6; }
16140 cat >>confdefs.h
<<\_ACEOF
16141 #define HAVE_GENERIC_READLINK 1
16146 $as_echo "$as_me: failed program was:" >&5
16147 sed 's/^/| /' conftest.
$ac_ext >&5
16149 { $as_echo "$as_me:$LINENO: result: no" >&5
16150 $as_echo "no" >&6; }
16161 { $as_echo "$as_me:$LINENO: checking whether ql->discard_granularity is available" >&5
16162 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
16165 cat confdefs.h
- <<_ACEOF >conftest.c
16168 cat confdefs.h
>>conftest.
$ac_ext
16169 cat >>conftest.
$ac_ext <<_ACEOF
16170 /* end confdefs.h. */
16173 #include <linux/blkdev.h>
16179 struct queue_limits ql __attribute__ ((unused));
16181 ql.discard_granularity = 0;
16191 cat - <<_ACEOF >conftest.h
16196 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16197 echo "obj-m := conftest.o" >build
/Makefile
16199 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16200 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16202 (eval $ac_try) 2>&5
16204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16207 (eval $ac_try) 2>&5
16209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210 (exit $ac_status); }; }; then
16212 { $as_echo "$as_me:$LINENO: result: yes" >&5
16213 $as_echo "yes" >&6; }
16215 cat >>confdefs.h
<<\_ACEOF
16216 #define HAVE_DISCARD_GRANULARITY 1
16221 $as_echo "$as_me: failed program was:" >&5
16222 sed 's/^/| /' conftest.
$ac_ext >&5
16224 { $as_echo "$as_me:$LINENO: result: no" >&5
16225 $as_echo "no" >&6; }
16236 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_handler" >&5
16237 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
16240 cat confdefs.h
- <<_ACEOF >conftest.c
16243 cat confdefs.h
>>conftest.
$ac_ext
16244 cat >>conftest.
$ac_ext <<_ACEOF
16245 /* end confdefs.h. */
16248 #include <linux/fs.h>
16249 #include <linux/xattr.h>
16251 const struct xattr_handler xattr_test_handler = {
16257 const struct xattr_handler *xattr_handlers[] = {
16258 &xattr_test_handler,
16261 const struct super_block sb __attribute__ ((unused)) = {
16262 .s_xattr = xattr_handlers,
16278 cat - <<_ACEOF >conftest.h
16283 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16284 echo "obj-m := conftest.o" >build
/Makefile
16286 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16287 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16289 (eval $ac_try) 2>&5
16291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16294 (eval $ac_try) 2>&5
16296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16297 (exit $ac_status); }; }; then
16299 { $as_echo "$as_me:$LINENO: result: yes" >&5
16300 $as_echo "yes" >&6; }
16302 cat >>confdefs.h
<<\_ACEOF
16303 #define HAVE_CONST_XATTR_HANDLER 1
16308 $as_echo "$as_me: failed program was:" >&5
16309 sed 's/^/| /' conftest.
$ac_ext >&5
16311 { $as_echo "$as_me:$LINENO: result: no" >&5
16312 $as_echo "no" >&6; }
16323 { $as_echo "$as_me:$LINENO: checking whether xattr_handler has name" >&5
16324 $as_echo_n "checking whether xattr_handler has name... " >&6; }
16327 cat confdefs.h
- <<_ACEOF >conftest.c
16330 cat confdefs.h
>>conftest.
$ac_ext
16331 cat >>conftest.
$ac_ext <<_ACEOF
16332 /* end confdefs.h. */
16335 #include <linux/xattr.h>
16337 static const struct xattr_handler
16338 xops __attribute__ ((unused)) = {
16339 .name = XATTR_NAME_POSIX_ACL_ACCESS,
16355 cat - <<_ACEOF >conftest.h
16360 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16361 echo "obj-m := conftest.o" >build
/Makefile
16363 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16364 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16366 (eval $ac_try) 2>&5
16368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16371 (eval $ac_try) 2>&5
16373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374 (exit $ac_status); }; }; then
16376 { $as_echo "$as_me:$LINENO: result: yes" >&5
16377 $as_echo "yes" >&6; }
16379 cat >>confdefs.h
<<\_ACEOF
16380 #define HAVE_XATTR_HANDLER_NAME 1
16385 $as_echo "$as_me: failed program was:" >&5
16386 sed 's/^/| /' conftest.
$ac_ext >&5
16388 { $as_echo "$as_me:$LINENO: result: no" >&5
16389 $as_echo "no" >&6; }
16400 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants both dentry and inode" >&5
16401 $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
16404 cat confdefs.h
- <<_ACEOF >conftest.c
16407 cat confdefs.h
>>conftest.
$ac_ext
16408 cat >>conftest.
$ac_ext <<_ACEOF
16409 /* end confdefs.h. */
16412 #include <linux/xattr.h>
16414 int get(const struct xattr_handler *handler,
16415 struct dentry *dentry, struct inode *inode,
16416 const char *name, void *buffer, size_t size) { return 0; }
16417 static const struct xattr_handler
16418 xops __attribute__ ((unused)) = {
16435 cat - <<_ACEOF >conftest.h
16440 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16441 echo "obj-m := conftest.o" >build
/Makefile
16443 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16444 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16446 (eval $ac_try) 2>&5
16448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16451 (eval $ac_try) 2>&5
16453 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 (exit $ac_status); }; }; then
16456 { $as_echo "$as_me:$LINENO: result: yes" >&5
16457 $as_echo "yes" >&6; }
16459 cat >>confdefs.h
<<\_ACEOF
16460 #define HAVE_XATTR_GET_DENTRY_INODE 1
16465 $as_echo "$as_me: failed program was:" >&5
16466 sed 's/^/| /' conftest.
$ac_ext >&5
16468 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants xattr_handler" >&5
16469 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
16472 cat confdefs.h
- <<_ACEOF >conftest.c
16475 cat confdefs.h
>>conftest.
$ac_ext
16476 cat >>conftest.
$ac_ext <<_ACEOF
16477 /* end confdefs.h. */
16480 #include <linux/xattr.h>
16482 int get(const struct xattr_handler *handler,
16483 struct dentry *dentry, const char *name,
16484 void *buffer, size_t size) { return 0; }
16485 static const struct xattr_handler
16486 xops __attribute__ ((unused)) = {
16503 cat - <<_ACEOF >conftest.h
16508 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16509 echo "obj-m := conftest.o" >build
/Makefile
16511 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16512 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16514 (eval $ac_try) 2>&5
16516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16519 (eval $ac_try) 2>&5
16521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16522 (exit $ac_status); }; }; then
16524 { $as_echo "$as_me:$LINENO: result: yes" >&5
16525 $as_echo "yes" >&6; }
16527 cat >>confdefs.h
<<\_ACEOF
16528 #define HAVE_XATTR_GET_HANDLER 1
16533 $as_echo "$as_me: failed program was:" >&5
16534 sed 's/^/| /' conftest.
$ac_ext >&5
16536 { $as_echo "$as_me:$LINENO: result: no" >&5
16537 $as_echo "no" >&6; }
16538 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
16539 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
16542 cat confdefs.h
- <<_ACEOF >conftest.c
16545 cat confdefs.h
>>conftest.
$ac_ext
16546 cat >>conftest.
$ac_ext <<_ACEOF
16547 /* end confdefs.h. */
16550 #include <linux/xattr.h>
16552 int get(struct dentry *dentry, const char *name,
16553 void *buffer, size_t size, int handler_flags)
16555 static const struct xattr_handler
16556 xops __attribute__ ((unused)) = {
16573 cat - <<_ACEOF >conftest.h
16578 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16579 echo "obj-m := conftest.o" >build
/Makefile
16581 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16582 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16584 (eval $ac_try) 2>&5
16586 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16587 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16589 (eval $ac_try) 2>&5
16591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16592 (exit $ac_status); }; }; then
16594 { $as_echo "$as_me:$LINENO: result: yes" >&5
16595 $as_echo "yes" >&6; }
16597 cat >>confdefs.h
<<\_ACEOF
16598 #define HAVE_XATTR_GET_DENTRY 1
16603 $as_echo "$as_me: failed program was:" >&5
16604 sed 's/^/| /' conftest.
$ac_ext >&5
16606 { $as_echo "$as_me:$LINENO: result: no" >&5
16607 $as_echo "no" >&6; }
16608 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants inode" >&5
16609 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
16612 cat confdefs.h
- <<_ACEOF >conftest.c
16615 cat confdefs.h
>>conftest.
$ac_ext
16616 cat >>conftest.
$ac_ext <<_ACEOF
16617 /* end confdefs.h. */
16620 #include <linux/xattr.h>
16622 int get(struct inode *ip, const char *name,
16623 void *buffer, size_t size) { return 0; }
16624 static const struct xattr_handler
16625 xops __attribute__ ((unused)) = {
16642 cat - <<_ACEOF >conftest.h
16647 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16648 echo "obj-m := conftest.o" >build
/Makefile
16650 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16651 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16653 (eval $ac_try) 2>&5
16655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16656 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16658 (eval $ac_try) 2>&5
16660 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16661 (exit $ac_status); }; }; then
16663 { $as_echo "$as_me:$LINENO: result: yes" >&5
16664 $as_echo "yes" >&6; }
16666 cat >>confdefs.h
<<\_ACEOF
16667 #define HAVE_XATTR_GET_INODE 1
16672 $as_echo "$as_me: failed program was:" >&5
16673 sed 's/^/| /' conftest.
$ac_ext >&5
16675 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
16676 $as_echo "$as_me: error: no; please file a bug report" >&2;}
16677 { (exit 1); exit 1; }; }
16712 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants both dentry and inode" >&5
16713 $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
16716 cat confdefs.h
- <<_ACEOF >conftest.c
16719 cat confdefs.h
>>conftest.
$ac_ext
16720 cat >>conftest.
$ac_ext <<_ACEOF
16721 /* end confdefs.h. */
16724 #include <linux/xattr.h>
16726 int set(const struct xattr_handler *handler,
16727 struct dentry *dentry, struct inode *inode,
16728 const char *name, const void *buffer,
16729 size_t size, int flags)
16731 static const struct xattr_handler
16732 xops __attribute__ ((unused)) = {
16749 cat - <<_ACEOF >conftest.h
16754 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16755 echo "obj-m := conftest.o" >build
/Makefile
16757 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16758 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16760 (eval $ac_try) 2>&5
16762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16765 (eval $ac_try) 2>&5
16767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16768 (exit $ac_status); }; }; then
16770 { $as_echo "$as_me:$LINENO: result: yes" >&5
16771 $as_echo "yes" >&6; }
16773 cat >>confdefs.h
<<\_ACEOF
16774 #define HAVE_XATTR_SET_DENTRY_INODE 1
16779 $as_echo "$as_me: failed program was:" >&5
16780 sed 's/^/| /' conftest.
$ac_ext >&5
16782 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants xattr_handler" >&5
16783 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
16786 cat confdefs.h
- <<_ACEOF >conftest.c
16789 cat confdefs.h
>>conftest.
$ac_ext
16790 cat >>conftest.
$ac_ext <<_ACEOF
16791 /* end confdefs.h. */
16794 #include <linux/xattr.h>
16796 int set(const struct xattr_handler *handler,
16797 struct dentry *dentry, const char *name,
16798 const void *buffer, size_t size, int flags)
16800 static const struct xattr_handler
16801 xops __attribute__ ((unused)) = {
16818 cat - <<_ACEOF >conftest.h
16823 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16824 echo "obj-m := conftest.o" >build
/Makefile
16826 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16827 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16829 (eval $ac_try) 2>&5
16831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16834 (eval $ac_try) 2>&5
16836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16837 (exit $ac_status); }; }; then
16839 { $as_echo "$as_me:$LINENO: result: yes" >&5
16840 $as_echo "yes" >&6; }
16842 cat >>confdefs.h
<<\_ACEOF
16843 #define HAVE_XATTR_SET_HANDLER 1
16848 $as_echo "$as_me: failed program was:" >&5
16849 sed 's/^/| /' conftest.
$ac_ext >&5
16851 { $as_echo "$as_me:$LINENO: result: no" >&5
16852 $as_echo "no" >&6; }
16853 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
16854 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
16857 cat confdefs.h
- <<_ACEOF >conftest.c
16860 cat confdefs.h
>>conftest.
$ac_ext
16861 cat >>conftest.
$ac_ext <<_ACEOF
16862 /* end confdefs.h. */
16865 #include <linux/xattr.h>
16867 int set(struct dentry *dentry, const char *name,
16868 const void *buffer, size_t size, int flags,
16869 int handler_flags) { return 0; }
16870 static const struct xattr_handler
16871 xops __attribute__ ((unused)) = {
16888 cat - <<_ACEOF >conftest.h
16893 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16894 echo "obj-m := conftest.o" >build
/Makefile
16896 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16897 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16899 (eval $ac_try) 2>&5
16901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16904 (eval $ac_try) 2>&5
16906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); }; }; then
16909 { $as_echo "$as_me:$LINENO: result: yes" >&5
16910 $as_echo "yes" >&6; }
16912 cat >>confdefs.h
<<\_ACEOF
16913 #define HAVE_XATTR_SET_DENTRY 1
16918 $as_echo "$as_me: failed program was:" >&5
16919 sed 's/^/| /' conftest.
$ac_ext >&5
16921 { $as_echo "$as_me:$LINENO: result: no" >&5
16922 $as_echo "no" >&6; }
16923 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants inode" >&5
16924 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
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/xattr.h>
16937 int set(struct inode *ip, const char *name,
16938 const void *buffer, size_t size, int flags)
16940 static const struct xattr_handler
16941 xops __attribute__ ((unused)) = {
16958 cat - <<_ACEOF >conftest.h
16963 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16964 echo "obj-m := conftest.o" >build
/Makefile
16966 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16967 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16969 (eval $ac_try) 2>&5
16971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16974 (eval $ac_try) 2>&5
16976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16977 (exit $ac_status); }; }; then
16979 { $as_echo "$as_me:$LINENO: result: yes" >&5
16980 $as_echo "yes" >&6; }
16982 cat >>confdefs.h
<<\_ACEOF
16983 #define HAVE_XATTR_SET_INODE 1
16988 $as_echo "$as_me: failed program was:" >&5
16989 sed 's/^/| /' conftest.
$ac_ext >&5
16991 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
16992 $as_echo "$as_me: error: no; please file a bug report" >&2;}
16993 { (exit 1); exit 1; }; }
17028 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants simple" >&5
17029 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
17032 cat confdefs.h
- <<_ACEOF >conftest.c
17035 cat confdefs.h
>>conftest.
$ac_ext
17036 cat >>conftest.
$ac_ext <<_ACEOF
17037 /* end confdefs.h. */
17040 #include <linux/xattr.h>
17042 bool list(struct dentry *dentry) { return 0; }
17043 static const struct xattr_handler
17044 xops __attribute__ ((unused)) = {
17061 cat - <<_ACEOF >conftest.h
17066 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17067 echo "obj-m := conftest.o" >build
/Makefile
17069 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17070 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17072 (eval $ac_try) 2>&5
17074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17077 (eval $ac_try) 2>&5
17079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17080 (exit $ac_status); }; }; then
17082 { $as_echo "$as_me:$LINENO: result: yes" >&5
17083 $as_echo "yes" >&6; }
17085 cat >>confdefs.h
<<\_ACEOF
17086 #define HAVE_XATTR_LIST_SIMPLE 1
17091 $as_echo "$as_me: failed program was:" >&5
17092 sed 's/^/| /' conftest.
$ac_ext >&5
17094 { $as_echo "$as_me:$LINENO: result: no" >&5
17095 $as_echo "no" >&6; }
17096 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants xattr_handler" >&5
17097 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
17100 cat confdefs.h
- <<_ACEOF >conftest.c
17103 cat confdefs.h
>>conftest.
$ac_ext
17104 cat >>conftest.
$ac_ext <<_ACEOF
17105 /* end confdefs.h. */
17108 #include <linux/xattr.h>
17110 size_t list(const struct xattr_handler *handler,
17111 struct dentry *dentry, char *list, size_t list_size,
17112 const char *name, size_t name_len) { return 0; }
17113 static const struct xattr_handler
17114 xops __attribute__ ((unused)) = {
17131 cat - <<_ACEOF >conftest.h
17136 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17137 echo "obj-m := conftest.o" >build
/Makefile
17139 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17140 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17142 (eval $ac_try) 2>&5
17144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17147 (eval $ac_try) 2>&5
17149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); }; }; then
17152 { $as_echo "$as_me:$LINENO: result: yes" >&5
17153 $as_echo "yes" >&6; }
17155 cat >>confdefs.h
<<\_ACEOF
17156 #define HAVE_XATTR_LIST_HANDLER 1
17161 $as_echo "$as_me: failed program was:" >&5
17162 sed 's/^/| /' conftest.
$ac_ext >&5
17164 { $as_echo "$as_me:$LINENO: result: no" >&5
17165 $as_echo "no" >&6; }
17166 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants dentry" >&5
17167 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
17170 cat confdefs.h
- <<_ACEOF >conftest.c
17173 cat confdefs.h
>>conftest.
$ac_ext
17174 cat >>conftest.
$ac_ext <<_ACEOF
17175 /* end confdefs.h. */
17178 #include <linux/xattr.h>
17180 size_t list(struct dentry *dentry,
17181 char *list, size_t list_size,
17182 const char *name, size_t name_len,
17183 int handler_flags) { return 0; }
17184 static const struct xattr_handler
17185 xops __attribute__ ((unused)) = {
17202 cat - <<_ACEOF >conftest.h
17207 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17208 echo "obj-m := conftest.o" >build
/Makefile
17210 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17211 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17213 (eval $ac_try) 2>&5
17215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17218 (eval $ac_try) 2>&5
17220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); }; }; then
17223 { $as_echo "$as_me:$LINENO: result: yes" >&5
17224 $as_echo "yes" >&6; }
17226 cat >>confdefs.h
<<\_ACEOF
17227 #define HAVE_XATTR_LIST_DENTRY 1
17232 $as_echo "$as_me: failed program was:" >&5
17233 sed 's/^/| /' conftest.
$ac_ext >&5
17235 { $as_echo "$as_me:$LINENO: result: no" >&5
17236 $as_echo "no" >&6; }
17237 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants inode" >&5
17238 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
17241 cat confdefs.h
- <<_ACEOF >conftest.c
17244 cat confdefs.h
>>conftest.
$ac_ext
17245 cat >>conftest.
$ac_ext <<_ACEOF
17246 /* end confdefs.h. */
17249 #include <linux/xattr.h>
17251 size_t list(struct inode *ip, char *lst,
17252 size_t list_size, const char *name,
17253 size_t name_len) { return 0; }
17254 static const struct xattr_handler
17255 xops __attribute__ ((unused)) = {
17272 cat - <<_ACEOF >conftest.h
17277 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17278 echo "obj-m := conftest.o" >build
/Makefile
17280 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17281 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17283 (eval $ac_try) 2>&5
17285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17288 (eval $ac_try) 2>&5
17290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); }; }; then
17293 { $as_echo "$as_me:$LINENO: result: yes" >&5
17294 $as_echo "yes" >&6; }
17296 cat >>confdefs.h
<<\_ACEOF
17297 #define HAVE_XATTR_LIST_INODE 1
17302 $as_echo "$as_me: failed program was:" >&5
17303 sed 's/^/| /' conftest.
$ac_ext >&5
17305 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
17306 $as_echo "$as_me: error: no; please file a bug report" >&2;}
17307 { (exit 1); exit 1; }; }
17342 { $as_echo "$as_me:$LINENO: checking whether inode_owner_or_capable() exists" >&5
17343 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
17346 cat confdefs.h
- <<_ACEOF >conftest.c
17349 cat confdefs.h
>>conftest.
$ac_ext
17350 cat >>conftest.
$ac_ext <<_ACEOF
17351 /* end confdefs.h. */
17354 #include <linux/fs.h>
17360 struct inode *ip = NULL;
17361 (void) inode_owner_or_capable(ip);
17371 cat - <<_ACEOF >conftest.h
17376 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17377 echo "obj-m := conftest.o" >build
/Makefile
17379 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17380 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17382 (eval $ac_try) 2>&5
17384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17387 (eval $ac_try) 2>&5
17389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); }; }; then
17392 { $as_echo "$as_me:$LINENO: result: yes" >&5
17393 $as_echo "yes" >&6; }
17395 cat >>confdefs.h
<<\_ACEOF
17396 #define HAVE_INODE_OWNER_OR_CAPABLE 1
17401 $as_echo "$as_me: failed program was:" >&5
17402 sed 's/^/| /' conftest.
$ac_ext >&5
17404 { $as_echo "$as_me:$LINENO: result: no" >&5
17405 $as_echo "no" >&6; }
17406 { $as_echo "$as_me:$LINENO: checking whether is_owner_or_cap() exists" >&5
17407 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
17410 cat confdefs.h
- <<_ACEOF >conftest.c
17413 cat confdefs.h
>>conftest.
$ac_ext
17414 cat >>conftest.
$ac_ext <<_ACEOF
17415 /* end confdefs.h. */
17418 #include <linux/fs.h>
17419 #include <linux/sched.h>
17425 struct inode *ip = NULL;
17426 (void) is_owner_or_cap(ip);
17436 cat - <<_ACEOF >conftest.h
17441 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17442 echo "obj-m := conftest.o" >build
/Makefile
17444 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17445 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17447 (eval $ac_try) 2>&5
17449 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17450 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17452 (eval $ac_try) 2>&5
17454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455 (exit $ac_status); }; }; then
17457 { $as_echo "$as_me:$LINENO: result: yes" >&5
17458 $as_echo "yes" >&6; }
17460 cat >>confdefs.h
<<\_ACEOF
17461 #define HAVE_IS_OWNER_OR_CAP 1
17466 $as_echo "$as_me: failed program was:" >&5
17467 sed 's/^/| /' conftest.
$ac_ext >&5
17469 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
17470 https://github.com/zfsonlinux/zfs/issues/new" >&5
17471 $as_echo "$as_me: error: no - Please file a bug report at
17472 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
17473 { (exit 1); exit 1; }; }
17492 { $as_echo "$as_me:$LINENO: checking whether posix_acl_from_xattr() needs user_ns" >&5
17493 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
17496 cat confdefs.h
- <<_ACEOF >conftest.c
17499 cat confdefs.h
>>conftest.
$ac_ext
17500 cat >>conftest.
$ac_ext <<_ACEOF
17501 /* end confdefs.h. */
17504 #include <linux/cred.h>
17505 #include <linux/fs.h>
17506 #include <linux/posix_acl_xattr.h>
17512 posix_acl_from_xattr(&init_user_ns, NULL, 0);
17522 cat - <<_ACEOF >conftest.h
17527 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17528 echo "obj-m := conftest.o" >build
/Makefile
17530 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17531 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17533 (eval $ac_try) 2>&5
17535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17536 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17538 (eval $ac_try) 2>&5
17540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17541 (exit $ac_status); }; }; then
17543 { $as_echo "$as_me:$LINENO: result: yes" >&5
17544 $as_echo "yes" >&6; }
17546 cat >>confdefs.h
<<\_ACEOF
17547 #define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1
17552 $as_echo "$as_me: failed program was:" >&5
17553 sed 's/^/| /' conftest.
$ac_ext >&5
17555 { $as_echo "$as_me:$LINENO: result: no" >&5
17556 $as_echo "no" >&6; }
17567 { $as_echo "$as_me:$LINENO: checking whether posix_acl_release() is available" >&5
17568 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
17571 cat confdefs.h
- <<_ACEOF >conftest.c
17574 cat confdefs.h
>>conftest.
$ac_ext
17575 cat >>conftest.
$ac_ext <<_ACEOF
17576 /* end confdefs.h. */
17579 #include <linux/cred.h>
17580 #include <linux/fs.h>
17581 #include <linux/posix_acl.h>
17587 struct posix_acl* tmp = posix_acl_alloc(1, 0);
17588 posix_acl_release(tmp);
17598 cat - <<_ACEOF >conftest.h
17603 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17604 echo "obj-m := conftest.o" >build
/Makefile
17606 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17607 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17609 (eval $ac_try) 2>&5
17611 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17614 (eval $ac_try) 2>&5
17616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); }; }; then
17619 { $as_echo "$as_me:$LINENO: result: yes" >&5
17620 $as_echo "yes" >&6; }
17622 cat >>confdefs.h
<<\_ACEOF
17623 #define HAVE_POSIX_ACL_RELEASE 1
17628 $as_echo "$as_me: failed program was:" >&5
17629 sed 's/^/| /' conftest.
$ac_ext >&5
17631 { $as_echo "$as_me:$LINENO: result: no" >&5
17632 $as_echo "no" >&6; }
17642 { $as_echo "$as_me:$LINENO: checking whether posix_acl_release() is GPL-only" >&5
17643 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
17646 cat confdefs.h
- <<_ACEOF >conftest.c
17649 cat confdefs.h
>>conftest.
$ac_ext
17650 cat >>conftest.
$ac_ext <<_ACEOF
17651 /* end confdefs.h. */
17654 #include <linux/cred.h>
17655 #include <linux/fs.h>
17656 #include <linux/posix_acl.h>
17658 MODULE_LICENSE("$ZFS_META_LICENSE");
17664 struct posix_acl* tmp = posix_acl_alloc(1, 0);
17665 posix_acl_release(tmp);
17675 cat - <<_ACEOF >conftest.h
17680 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17681 echo "obj-m := conftest.o" >build
/Makefile
17683 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17684 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17686 (eval $ac_try) 2>&5
17688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17691 (eval $ac_try) 2>&5
17693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694 (exit $ac_status); }; }; then
17696 { $as_echo "$as_me:$LINENO: result: no" >&5
17697 $as_echo "no" >&6; }
17700 $as_echo "$as_me: failed program was:" >&5
17701 sed 's/^/| /' conftest.
$ac_ext >&5
17703 { $as_echo "$as_me:$LINENO: result: yes" >&5
17704 $as_echo "yes" >&6; }
17706 cat >>confdefs.h
<<\_ACEOF
17707 #define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1
17720 { $as_echo "$as_me:$LINENO: checking whether set_cached_acl() is usable" >&5
17721 $as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
17724 cat confdefs.h
- <<_ACEOF >conftest.c
17727 cat confdefs.h
>>conftest.
$ac_ext
17728 cat >>conftest.
$ac_ext <<_ACEOF
17729 /* end confdefs.h. */
17732 #include <linux/module.h>
17733 #include <linux/cred.h>
17734 #include <linux/fs.h>
17735 #include <linux/posix_acl.h>
17737 MODULE_LICENSE("$ZFS_META_LICENSE");
17743 struct inode *ip = NULL;
17744 struct posix_acl *acl = posix_acl_alloc(1, 0);
17745 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
17746 forget_cached_acl(ip, ACL_TYPE_ACCESS);
17756 cat - <<_ACEOF >conftest.h
17761 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17762 echo "obj-m := conftest.o" >build
/Makefile
17764 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17765 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17767 (eval $ac_try) 2>&5
17769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17770 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17772 (eval $ac_try) 2>&5
17774 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17775 (exit $ac_status); }; }; then
17777 { $as_echo "$as_me:$LINENO: result: yes" >&5
17778 $as_echo "yes" >&6; }
17780 cat >>confdefs.h
<<\_ACEOF
17781 #define HAVE_SET_CACHED_ACL_USABLE 1
17786 $as_echo "$as_me: failed program was:" >&5
17787 sed 's/^/| /' conftest.
$ac_ext >&5
17789 { $as_echo "$as_me:$LINENO: result: no" >&5
17790 $as_echo "no" >&6; }
17801 { $as_echo "$as_me:$LINENO: checking whether posix_acl_chmod exists" >&5
17802 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
17805 cat confdefs.h
- <<_ACEOF >conftest.c
17808 cat confdefs.h
>>conftest.
$ac_ext
17809 cat >>conftest.
$ac_ext <<_ACEOF
17810 /* end confdefs.h. */
17813 #include <linux/fs.h>
17814 #include <linux/posix_acl.h>
17820 posix_acl_chmod(NULL, 0, 0)
17830 cat - <<_ACEOF >conftest.h
17835 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17836 echo "obj-m := conftest.o" >build
/Makefile
17838 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17839 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17841 (eval $ac_try) 2>&5
17843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17846 (eval $ac_try) 2>&5
17848 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849 (exit $ac_status); }; }; then
17851 { $as_echo "$as_me:$LINENO: result: yes" >&5
17852 $as_echo "yes" >&6; }
17854 cat >>confdefs.h
<<\_ACEOF
17855 #define HAVE_POSIX_ACL_CHMOD 1
17860 $as_echo "$as_me: failed program was:" >&5
17861 sed 's/^/| /' conftest.
$ac_ext >&5
17863 { $as_echo "$as_me:$LINENO: result: no" >&5
17864 $as_echo "no" >&6; }
17874 { $as_echo "$as_me:$LINENO: checking whether __posix_acl_chmod exists" >&5
17875 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
17878 cat confdefs.h
- <<_ACEOF >conftest.c
17881 cat confdefs.h
>>conftest.
$ac_ext
17882 cat >>conftest.
$ac_ext <<_ACEOF
17883 /* end confdefs.h. */
17886 #include <linux/fs.h>
17887 #include <linux/posix_acl.h>
17893 __posix_acl_chmod(NULL, 0, 0)
17903 cat - <<_ACEOF >conftest.h
17908 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17909 echo "obj-m := conftest.o" >build
/Makefile
17911 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17912 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17914 (eval $ac_try) 2>&5
17916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17919 (eval $ac_try) 2>&5
17921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17922 (exit $ac_status); }; }; then
17924 { $as_echo "$as_me:$LINENO: result: yes" >&5
17925 $as_echo "yes" >&6; }
17927 cat >>confdefs.h
<<\_ACEOF
17928 #define HAVE___POSIX_ACL_CHMOD 1
17933 $as_echo "$as_me: failed program was:" >&5
17934 sed 's/^/| /' conftest.
$ac_ext >&5
17936 { $as_echo "$as_me:$LINENO: result: no" >&5
17937 $as_echo "no" >&6; }
17948 { $as_echo "$as_me:$LINENO: checking whether posix_acl_equiv_mode() wants umode_t" >&5
17949 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
17952 cat confdefs.h
- <<_ACEOF >conftest.c
17955 cat confdefs.h
>>conftest.
$ac_ext
17956 cat >>conftest.
$ac_ext <<_ACEOF
17957 /* end confdefs.h. */
17960 #include <linux/fs.h>
17961 #include <linux/posix_acl.h>
17968 posix_acl_equiv_mode(NULL,&tmp);
17978 cat - <<_ACEOF >conftest.h
17983 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17984 echo "obj-m := conftest.o" >build
/Makefile
17986 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17987 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17989 (eval $ac_try) 2>&5
17991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17994 (eval $ac_try) 2>&5
17996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); }; }; then
17999 { $as_echo "$as_me:$LINENO: result: yes" >&5
18000 $as_echo "yes" >&6; }
18002 cat >>confdefs.h
<<\_ACEOF
18003 #define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1
18008 $as_echo "$as_me: failed program was:" >&5
18009 sed 's/^/| /' conftest.
$ac_ext >&5
18011 { $as_echo "$as_me:$LINENO: result: no" >&5
18012 $as_echo "no" >&6; }
18023 { $as_echo "$as_me:$LINENO: checking whether posix_acl_valid() wants user namespace" >&5
18024 $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
18027 cat confdefs.h
- <<_ACEOF >conftest.c
18030 cat confdefs.h
>>conftest.
$ac_ext
18031 cat >>conftest.
$ac_ext <<_ACEOF
18032 /* end confdefs.h. */
18035 #include <linux/fs.h>
18036 #include <linux/posix_acl.h>
18042 struct user_namespace *user_ns = NULL;
18043 const struct posix_acl *acl = NULL;
18046 error = posix_acl_valid(user_ns, acl);
18056 cat - <<_ACEOF >conftest.h
18061 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18062 echo "obj-m := conftest.o" >build
/Makefile
18064 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18065 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18067 (eval $ac_try) 2>&5
18069 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18070 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18072 (eval $ac_try) 2>&5
18074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); }; }; then
18077 { $as_echo "$as_me:$LINENO: result: yes" >&5
18078 $as_echo "yes" >&6; }
18080 cat >>confdefs.h
<<\_ACEOF
18081 #define HAVE_POSIX_ACL_VALID_WITH_NS 1
18086 $as_echo "$as_me: failed program was:" >&5
18087 sed 's/^/| /' conftest.
$ac_ext >&5
18089 { $as_echo "$as_me:$LINENO: result: no" >&5
18090 $as_echo "no" >&6; }
18101 { $as_echo "$as_me:$LINENO: checking whether iops->permission() exists" >&5
18102 $as_echo_n "checking whether iops->permission() exists... " >&6; }
18105 cat confdefs.h
- <<_ACEOF >conftest.c
18108 cat confdefs.h
>>conftest.
$ac_ext
18109 cat >>conftest.
$ac_ext <<_ACEOF
18110 /* end confdefs.h. */
18113 #include <linux/fs.h>
18115 int permission_fn(struct inode *inode, int mask) { return 0; }
18117 static const struct inode_operations
18118 iops __attribute__ ((unused)) = {
18119 .permission = permission_fn,
18135 cat - <<_ACEOF >conftest.h
18140 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18141 echo "obj-m := conftest.o" >build
/Makefile
18143 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18144 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18146 (eval $ac_try) 2>&5
18148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18149 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18151 (eval $ac_try) 2>&5
18153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18154 (exit $ac_status); }; }; then
18156 { $as_echo "$as_me:$LINENO: result: yes" >&5
18157 $as_echo "yes" >&6; }
18159 cat >>confdefs.h
<<\_ACEOF
18160 #define HAVE_PERMISSION 1
18165 $as_echo "$as_me: failed program was:" >&5
18166 sed 's/^/| /' conftest.
$ac_ext >&5
18168 { $as_echo "$as_me:$LINENO: result: no" >&5
18169 $as_echo "no" >&6; }
18180 { $as_echo "$as_me:$LINENO: checking whether iops->permission() wants nameidata" >&5
18181 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
18184 cat confdefs.h
- <<_ACEOF >conftest.c
18187 cat confdefs.h
>>conftest.
$ac_ext
18188 cat >>conftest.
$ac_ext <<_ACEOF
18189 /* end confdefs.h. */
18192 #include <linux/fs.h>
18194 int permission_fn(struct inode *inode, int mask,
18195 struct nameidata *nd) { return 0; }
18197 static const struct inode_operations
18198 iops __attribute__ ((unused)) = {
18199 .permission = permission_fn,
18215 cat - <<_ACEOF >conftest.h
18220 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18221 echo "obj-m := conftest.o" >build
/Makefile
18223 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18224 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18226 (eval $ac_try) 2>&5
18228 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18231 (eval $ac_try) 2>&5
18233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18234 (exit $ac_status); }; }; then
18236 { $as_echo "$as_me:$LINENO: result: yes" >&5
18237 $as_echo "yes" >&6; }
18239 cat >>confdefs.h
<<\_ACEOF
18240 #define HAVE_PERMISSION 1
18244 cat >>confdefs.h
<<\_ACEOF
18245 #define HAVE_PERMISSION_WITH_NAMEIDATA 1
18250 $as_echo "$as_me: failed program was:" >&5
18251 sed 's/^/| /' conftest.
$ac_ext >&5
18253 { $as_echo "$as_me:$LINENO: result: no" >&5
18254 $as_echo "no" >&6; }
18265 { $as_echo "$as_me:$LINENO: checking whether iops->check_acl() exists" >&5
18266 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
18269 cat confdefs.h
- <<_ACEOF >conftest.c
18272 cat confdefs.h
>>conftest.
$ac_ext
18273 cat >>conftest.
$ac_ext <<_ACEOF
18274 /* end confdefs.h. */
18277 #include <linux/fs.h>
18279 int check_acl_fn(struct inode *inode, int mask) { return 0; }
18281 static const struct inode_operations
18282 iops __attribute__ ((unused)) = {
18283 .check_acl = check_acl_fn,
18299 cat - <<_ACEOF >conftest.h
18304 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18305 echo "obj-m := conftest.o" >build
/Makefile
18307 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18308 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18310 (eval $ac_try) 2>&5
18312 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18315 (eval $ac_try) 2>&5
18317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18318 (exit $ac_status); }; }; then
18320 { $as_echo "$as_me:$LINENO: result: yes" >&5
18321 $as_echo "yes" >&6; }
18323 cat >>confdefs.h
<<\_ACEOF
18324 #define HAVE_CHECK_ACL 1
18329 $as_echo "$as_me: failed program was:" >&5
18330 sed 's/^/| /' conftest.
$ac_ext >&5
18332 { $as_echo "$as_me:$LINENO: result: no" >&5
18333 $as_echo "no" >&6; }
18344 { $as_echo "$as_me:$LINENO: checking whether iops->check_acl() wants flags" >&5
18345 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
18348 cat confdefs.h
- <<_ACEOF >conftest.c
18351 cat confdefs.h
>>conftest.
$ac_ext
18352 cat >>conftest.
$ac_ext <<_ACEOF
18353 /* end confdefs.h. */
18356 #include <linux/fs.h>
18358 int check_acl_fn(struct inode *inode, int mask,
18359 unsigned int flags) { return 0; }
18361 static const struct inode_operations
18362 iops __attribute__ ((unused)) = {
18363 .check_acl = check_acl_fn,
18379 cat - <<_ACEOF >conftest.h
18384 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18385 echo "obj-m := conftest.o" >build
/Makefile
18387 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18388 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18390 (eval $ac_try) 2>&5
18392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18395 (eval $ac_try) 2>&5
18397 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18398 (exit $ac_status); }; }; then
18400 { $as_echo "$as_me:$LINENO: result: yes" >&5
18401 $as_echo "yes" >&6; }
18403 cat >>confdefs.h
<<\_ACEOF
18404 #define HAVE_CHECK_ACL 1
18408 cat >>confdefs.h
<<\_ACEOF
18409 #define HAVE_CHECK_ACL_WITH_FLAGS 1
18414 $as_echo "$as_me: failed program was:" >&5
18415 sed 's/^/| /' conftest.
$ac_ext >&5
18417 { $as_echo "$as_me:$LINENO: result: no" >&5
18418 $as_echo "no" >&6; }
18429 { $as_echo "$as_me:$LINENO: checking whether iops->get_acl() exists" >&5
18430 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
18433 cat confdefs.h
- <<_ACEOF >conftest.c
18436 cat confdefs.h
>>conftest.
$ac_ext
18437 cat >>conftest.
$ac_ext <<_ACEOF
18438 /* end confdefs.h. */
18441 #include <linux/fs.h>
18443 struct posix_acl *get_acl_fn(struct inode *inode, int type)
18446 static const struct inode_operations
18447 iops __attribute__ ((unused)) = {
18448 .get_acl = get_acl_fn,
18464 cat - <<_ACEOF >conftest.h
18469 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18470 echo "obj-m := conftest.o" >build
/Makefile
18472 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18473 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18475 (eval $ac_try) 2>&5
18477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18480 (eval $ac_try) 2>&5
18482 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18483 (exit $ac_status); }; }; then
18485 { $as_echo "$as_me:$LINENO: result: yes" >&5
18486 $as_echo "yes" >&6; }
18488 cat >>confdefs.h
<<\_ACEOF
18489 #define HAVE_GET_ACL 1
18494 $as_echo "$as_me: failed program was:" >&5
18495 sed 's/^/| /' conftest.
$ac_ext >&5
18497 { $as_echo "$as_me:$LINENO: result: no" >&5
18498 $as_echo "no" >&6; }
18509 { $as_echo "$as_me:$LINENO: checking whether iops->set_acl() exists" >&5
18510 $as_echo_n "checking whether iops->set_acl() exists... " >&6; }
18513 cat confdefs.h
- <<_ACEOF >conftest.c
18516 cat confdefs.h
>>conftest.
$ac_ext
18517 cat >>conftest.
$ac_ext <<_ACEOF
18518 /* end confdefs.h. */
18521 #include <linux/fs.h>
18523 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
18526 static const struct inode_operations
18527 iops __attribute__ ((unused)) = {
18528 .set_acl = set_acl_fn,
18544 cat - <<_ACEOF >conftest.h
18549 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18550 echo "obj-m := conftest.o" >build
/Makefile
18552 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18553 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18555 (eval $ac_try) 2>&5
18557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18560 (eval $ac_try) 2>&5
18562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18563 (exit $ac_status); }; }; then
18565 { $as_echo "$as_me:$LINENO: result: yes" >&5
18566 $as_echo "yes" >&6; }
18568 cat >>confdefs.h
<<\_ACEOF
18569 #define HAVE_SET_ACL 1
18574 $as_echo "$as_me: failed program was:" >&5
18575 sed 's/^/| /' conftest.
$ac_ext >&5
18577 { $as_echo "$as_me:$LINENO: result: no" >&5
18578 $as_echo "no" >&6; }
18590 { $as_echo "$as_me:$LINENO: checking whether iops->getattr() takes a path" >&5
18591 $as_echo_n "checking whether iops->getattr() takes a path... " >&6; }
18594 cat confdefs.h
- <<_ACEOF >conftest.c
18597 cat confdefs.h
>>conftest.
$ac_ext
18598 cat >>conftest.
$ac_ext <<_ACEOF
18599 /* end confdefs.h. */
18602 #include <linux/fs.h>
18605 const struct path *p, struct kstat *k,
18606 u32 request_mask, unsigned int query_flags)
18609 static const struct inode_operations
18610 iops __attribute__ ((unused)) = {
18611 .getattr = test_getattr,
18627 cat - <<_ACEOF >conftest.h
18632 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18633 echo "obj-m := conftest.o" >build
/Makefile
18635 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18636 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18638 (eval $ac_try) 2>&5
18640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18643 (eval $ac_try) 2>&5
18645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18646 (exit $ac_status); }; }; then
18648 { $as_echo "$as_me:$LINENO: result: yes" >&5
18649 $as_echo "yes" >&6; }
18651 cat >>confdefs.h
<<\_ACEOF
18652 #define HAVE_PATH_IOPS_GETATTR 1
18657 $as_echo "$as_me: failed program was:" >&5
18658 sed 's/^/| /' conftest.
$ac_ext >&5
18660 { $as_echo "$as_me:$LINENO: result: no" >&5
18661 $as_echo "no" >&6; }
18672 { $as_echo "$as_me:$LINENO: checking whether iops->getattr() takes a vfsmount" >&5
18673 $as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; }
18676 cat confdefs.h
- <<_ACEOF >conftest.c
18679 cat confdefs.h
>>conftest.
$ac_ext
18680 cat >>conftest.
$ac_ext <<_ACEOF
18681 /* end confdefs.h. */
18684 #include <linux/fs.h>
18687 struct vfsmount *mnt, struct dentry *d,
18691 static const struct inode_operations
18692 iops __attribute__ ((unused)) = {
18693 .getattr = test_getattr,
18709 cat - <<_ACEOF >conftest.h
18714 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18715 echo "obj-m := conftest.o" >build
/Makefile
18717 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18718 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18720 (eval $ac_try) 2>&5
18722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18723 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18725 (eval $ac_try) 2>&5
18727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18728 (exit $ac_status); }; }; then
18730 { $as_echo "$as_me:$LINENO: result: yes" >&5
18731 $as_echo "yes" >&6; }
18733 cat >>confdefs.h
<<\_ACEOF
18734 #define HAVE_VFSMOUNT_IOPS_GETATTR 1
18739 $as_echo "$as_me: failed program was:" >&5
18740 sed 's/^/| /' conftest.
$ac_ext >&5
18742 { $as_echo "$as_me:$LINENO: result: no" >&5
18743 $as_echo "no" >&6; }
18755 { $as_echo "$as_me:$LINENO: checking whether uncached_acl_sentinel() exists" >&5
18756 $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
18759 cat confdefs.h
- <<_ACEOF >conftest.c
18762 cat confdefs.h
>>conftest.
$ac_ext
18763 cat >>conftest.
$ac_ext <<_ACEOF
18764 /* end confdefs.h. */
18767 #include <linux/fs.h>
18773 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
18783 cat - <<_ACEOF >conftest.h
18788 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18789 echo "obj-m := conftest.o" >build
/Makefile
18791 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18792 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18794 (eval $ac_try) 2>&5
18796 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18799 (eval $ac_try) 2>&5
18801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18802 (exit $ac_status); }; }; then
18804 { $as_echo "$as_me:$LINENO: result: yes" >&5
18805 $as_echo "yes" >&6; }
18807 cat >>confdefs.h
<<\_ACEOF
18808 #define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1
18813 $as_echo "$as_me: failed program was:" >&5
18814 sed 's/^/| /' conftest.
$ac_ext >&5
18816 { $as_echo "$as_me:$LINENO: result: no" >&5
18817 $as_echo "no" >&6; }
18828 { $as_echo "$as_me:$LINENO: checking whether sops->show_options() wants dentry" >&5
18829 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
18833 cat confdefs.h
- <<_ACEOF >conftest.c
18836 cat confdefs.h
>>conftest.
$ac_ext
18837 cat >>conftest.
$ac_ext <<_ACEOF
18838 /* end confdefs.h. */
18841 #include <linux/fs.h>
18843 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
18844 static struct super_operations sops __attribute__ ((unused)) = {
18845 .show_options = show_options,
18861 cat - <<_ACEOF >conftest.h
18866 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18867 echo "obj-m := conftest.o" >build
/Makefile
18869 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18870 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18872 (eval $ac_try) 2>&5
18874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18877 (eval $ac_try) 2>&5
18879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880 (exit $ac_status); }; }; then
18882 { $as_echo "$as_me:$LINENO: result: yes" >&5
18883 $as_echo "yes" >&6; }
18885 cat >>confdefs.h
<<\_ACEOF
18886 #define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
18891 $as_echo "$as_me: failed program was:" >&5
18892 sed 's/^/| /' conftest.
$ac_ext >&5
18894 { $as_echo "$as_me:$LINENO: result: no" >&5
18895 $as_echo "no" >&6; }
18906 { $as_echo "$as_me:$LINENO: checking whether file_inode() is available" >&5
18907 $as_echo_n "checking whether file_inode() is available... " >&6; }
18910 cat confdefs.h
- <<_ACEOF >conftest.c
18913 cat confdefs.h
>>conftest.
$ac_ext
18914 cat >>conftest.
$ac_ext <<_ACEOF
18915 /* end confdefs.h. */
18918 #include <linux/fs.h>
18924 struct file *f = NULL;
18935 cat - <<_ACEOF >conftest.h
18940 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18941 echo "obj-m := conftest.o" >build
/Makefile
18943 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18944 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18946 (eval $ac_try) 2>&5
18948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18949 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18951 (eval $ac_try) 2>&5
18953 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); }; }; then
18956 { $as_echo "$as_me:$LINENO: result: yes" >&5
18957 $as_echo "yes" >&6; }
18959 cat >>confdefs.h
<<\_ACEOF
18960 #define HAVE_FILE_INODE 1
18965 $as_echo "$as_me: failed program was:" >&5
18966 sed 's/^/| /' conftest.
$ac_ext >&5
18968 { $as_echo "$as_me:$LINENO: result: no" >&5
18969 $as_echo "no" >&6; }
18980 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
18981 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
18985 cat confdefs.h
- <<_ACEOF >conftest.c
18988 cat confdefs.h
>>conftest.
$ac_ext
18989 cat >>conftest.
$ac_ext <<_ACEOF
18990 /* end confdefs.h. */
18993 #include <linux/fs.h>
18995 int test_fsync(struct file *f, struct dentry *dentry, int x)
18998 static const struct file_operations
18999 fops __attribute__ ((unused)) = {
19000 .fsync = test_fsync,
19016 cat - <<_ACEOF >conftest.h
19021 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19022 echo "obj-m := conftest.o" >build
/Makefile
19024 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19025 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19027 (eval $ac_try) 2>&5
19029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19030 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19032 (eval $ac_try) 2>&5
19034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19035 (exit $ac_status); }; }; then
19037 { $as_echo "$as_me:$LINENO: result: dentry" >&5
19038 $as_echo "dentry" >&6; }
19040 cat >>confdefs.h
<<\_ACEOF
19041 #define HAVE_FSYNC_WITH_DENTRY 1
19046 $as_echo "$as_me: failed program was:" >&5
19047 sed 's/^/| /' conftest.
$ac_ext >&5
19061 cat confdefs.h
- <<_ACEOF >conftest.c
19064 cat confdefs.h
>>conftest.
$ac_ext
19065 cat >>conftest.
$ac_ext <<_ACEOF
19066 /* end confdefs.h. */
19069 #include <linux/fs.h>
19071 int test_fsync(struct file *f, int x) { return 0; }
19073 static const struct file_operations
19074 fops __attribute__ ((unused)) = {
19075 .fsync = test_fsync,
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: no dentry" >&5
19113 $as_echo "no dentry" >&6; }
19115 cat >>confdefs.h
<<\_ACEOF
19116 #define HAVE_FSYNC_WITHOUT_DENTRY 1
19121 $as_echo "$as_me: failed program was:" >&5
19122 sed 's/^/| /' conftest.
$ac_ext >&5
19136 cat confdefs.h
- <<_ACEOF >conftest.c
19139 cat confdefs.h
>>conftest.
$ac_ext
19140 cat >>conftest.
$ac_ext <<_ACEOF
19141 /* end confdefs.h. */
19144 #include <linux/fs.h>
19146 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
19149 static const struct file_operations
19150 fops __attribute__ ((unused)) = {
19151 .fsync = test_fsync,
19167 cat - <<_ACEOF >conftest.h
19172 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19173 echo "obj-m := conftest.o" >build
/Makefile
19175 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19176 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19178 (eval $ac_try) 2>&5
19180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19181 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19183 (eval $ac_try) 2>&5
19185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); }; }; then
19188 { $as_echo "$as_me:$LINENO: result: range" >&5
19189 $as_echo "range" >&6; }
19191 cat >>confdefs.h
<<\_ACEOF
19192 #define HAVE_FSYNC_RANGE 1
19197 $as_echo "$as_me: failed program was:" >&5
19198 sed 's/^/| /' conftest.
$ac_ext >&5
19211 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
19212 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
19215 cat confdefs.h
- <<_ACEOF >conftest.c
19218 cat confdefs.h
>>conftest.
$ac_ext
19219 cat >>conftest.
$ac_ext <<_ACEOF
19220 /* end confdefs.h. */
19223 #include <linux/fs.h>
19224 void evict_inode (struct inode * t) { return; }
19225 static struct super_operations sops __attribute__ ((unused)) = {
19226 .evict_inode = evict_inode,
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_EVICT_INODE 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 sops->dirty_inode() wants flags" >&5
19288 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&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/fs.h>
19301 void dirty_inode(struct inode *a, int b) { return; }
19303 static const struct super_operations
19304 sops __attribute__ ((unused)) = {
19305 .dirty_inode = dirty_inode,
19321 cat - <<_ACEOF >conftest.h
19326 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19327 echo "obj-m := conftest.o" >build
/Makefile
19329 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19330 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19332 (eval $ac_try) 2>&5
19334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19335 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19337 (eval $ac_try) 2>&5
19339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); }; }; then
19342 { $as_echo "$as_me:$LINENO: result: yes" >&5
19343 $as_echo "yes" >&6; }
19345 cat >>confdefs.h
<<\_ACEOF
19346 #define HAVE_DIRTY_INODE_WITH_FLAGS 1
19351 $as_echo "$as_me: failed program was:" >&5
19352 sed 's/^/| /' conftest.
$ac_ext >&5
19354 { $as_echo "$as_me:$LINENO: result: no" >&5
19355 $as_echo "no" >&6; }
19366 { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
19367 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
19370 cat confdefs.h
- <<_ACEOF >conftest.c
19373 cat confdefs.h
>>conftest.
$ac_ext
19374 cat >>conftest.
$ac_ext <<_ACEOF
19375 /* end confdefs.h. */
19378 #include <linux/fs.h>
19380 int nr_cached_objects(struct super_block *sb) { return 0; }
19382 static const struct super_operations
19383 sops __attribute__ ((unused)) = {
19384 .nr_cached_objects = nr_cached_objects,
19400 cat - <<_ACEOF >conftest.h
19405 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19406 echo "obj-m := conftest.o" >build
/Makefile
19408 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19409 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19411 (eval $ac_try) 2>&5
19413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19416 (eval $ac_try) 2>&5
19418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); }; }; then
19421 { $as_echo "$as_me:$LINENO: result: yes" >&5
19422 $as_echo "yes" >&6; }
19424 cat >>confdefs.h
<<\_ACEOF
19425 #define HAVE_NR_CACHED_OBJECTS 1
19430 $as_echo "$as_me: failed program was:" >&5
19431 sed 's/^/| /' conftest.
$ac_ext >&5
19433 { $as_echo "$as_me:$LINENO: result: no" >&5
19434 $as_echo "no" >&6; }
19445 { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
19446 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
19449 cat confdefs.h
- <<_ACEOF >conftest.c
19452 cat confdefs.h
>>conftest.
$ac_ext
19453 cat >>conftest.
$ac_ext <<_ACEOF
19454 /* end confdefs.h. */
19457 #include <linux/fs.h>
19459 void free_cached_objects(struct super_block *sb, int x)
19462 static const struct super_operations
19463 sops __attribute__ ((unused)) = {
19464 .free_cached_objects = free_cached_objects,
19480 cat - <<_ACEOF >conftest.h
19485 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19486 echo "obj-m := conftest.o" >build
/Makefile
19488 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19489 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19491 (eval $ac_try) 2>&5
19493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19496 (eval $ac_try) 2>&5
19498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); }; }; then
19501 { $as_echo "$as_me:$LINENO: result: yes" >&5
19502 $as_echo "yes" >&6; }
19504 cat >>confdefs.h
<<\_ACEOF
19505 #define HAVE_FREE_CACHED_OBJECTS 1
19510 $as_echo "$as_me: failed program was:" >&5
19511 sed 's/^/| /' conftest.
$ac_ext >&5
19513 { $as_echo "$as_me:$LINENO: result: no" >&5
19514 $as_echo "no" >&6; }
19526 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
19527 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
19530 cat confdefs.h
- <<_ACEOF >conftest.c
19533 cat confdefs.h
>>conftest.
$ac_ext
19534 cat >>conftest.
$ac_ext <<_ACEOF
19535 /* end confdefs.h. */
19538 #include <linux/fs.h>
19540 long test_fallocate(struct file *file, int mode,
19541 loff_t offset, loff_t len) { return 0; }
19543 static const struct file_operations
19544 fops __attribute__ ((unused)) = {
19545 .fallocate = test_fallocate,
19561 cat - <<_ACEOF >conftest.h
19566 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19567 echo "obj-m := conftest.o" >build
/Makefile
19569 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19570 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19572 (eval $ac_try) 2>&5
19574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19577 (eval $ac_try) 2>&5
19579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19580 (exit $ac_status); }; }; then
19582 { $as_echo "$as_me:$LINENO: result: yes" >&5
19583 $as_echo "yes" >&6; }
19585 cat >>confdefs.h
<<\_ACEOF
19586 #define HAVE_FILE_FALLOCATE 1
19591 $as_echo "$as_me: failed program was:" >&5
19592 sed 's/^/| /' conftest.
$ac_ext >&5
19594 { $as_echo "$as_me:$LINENO: result: no" >&5
19595 $as_echo "no" >&6; }
19606 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
19607 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
19610 cat confdefs.h
- <<_ACEOF >conftest.c
19613 cat confdefs.h
>>conftest.
$ac_ext
19614 cat >>conftest.
$ac_ext <<_ACEOF
19615 /* end confdefs.h. */
19618 #include <linux/fs.h>
19620 long test_fallocate(struct inode *inode, int mode,
19621 loff_t offset, loff_t len) { return 0; }
19623 static const struct inode_operations
19624 fops __attribute__ ((unused)) = {
19625 .fallocate = test_fallocate,
19641 cat - <<_ACEOF >conftest.h
19646 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19647 echo "obj-m := conftest.o" >build
/Makefile
19649 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19650 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19652 (eval $ac_try) 2>&5
19654 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19657 (eval $ac_try) 2>&5
19659 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660 (exit $ac_status); }; }; then
19662 { $as_echo "$as_me:$LINENO: result: yes" >&5
19663 $as_echo "yes" >&6; }
19665 cat >>confdefs.h
<<\_ACEOF
19666 #define HAVE_INODE_FALLOCATE 1
19671 $as_echo "$as_me: failed program was:" >&5
19672 sed 's/^/| /' conftest.
$ac_ext >&5
19674 { $as_echo "$as_me:$LINENO: result: no" >&5
19675 $as_echo "no" >&6; }
19687 { $as_echo "$as_me:$LINENO: checking whether fops->aio_fsync() exists" >&5
19688 $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
19691 cat confdefs.h
- <<_ACEOF >conftest.c
19694 cat confdefs.h
>>conftest.
$ac_ext
19695 cat >>conftest.
$ac_ext <<_ACEOF
19696 /* end confdefs.h. */
19699 #include <linux/fs.h>
19701 static const struct file_operations
19702 fops __attribute__ ((unused)) = {
19719 cat - <<_ACEOF >conftest.h
19724 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19725 echo "obj-m := conftest.o" >build
/Makefile
19727 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19728 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19730 (eval $ac_try) 2>&5
19732 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19734 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19735 (eval $ac_try) 2>&5
19737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19738 (exit $ac_status); }; }; then
19740 { $as_echo "$as_me:$LINENO: result: yes" >&5
19741 $as_echo "yes" >&6; }
19743 cat >>confdefs.h
<<\_ACEOF
19744 #define HAVE_FILE_AIO_FSYNC 1
19749 $as_echo "$as_me: failed program was:" >&5
19750 sed 's/^/| /' conftest.
$ac_ext >&5
19752 { $as_echo "$as_me:$LINENO: result: no" >&5
19753 $as_echo "no" >&6; }
19764 { $as_echo "$as_me:$LINENO: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
19765 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
19768 cat confdefs.h
- <<_ACEOF >conftest.c
19771 cat confdefs.h
>>conftest.
$ac_ext
19772 cat >>conftest.
$ac_ext <<_ACEOF
19773 /* end confdefs.h. */
19776 #include <linux/fs.h>
19778 int mkdir(struct inode *inode, struct dentry *dentry,
19779 umode_t umode) { return 0; }
19781 static const struct inode_operations
19782 iops __attribute__ ((unused)) = {
19799 cat - <<_ACEOF >conftest.h
19804 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19805 echo "obj-m := conftest.o" >build
/Makefile
19807 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19808 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19810 (eval $ac_try) 2>&5
19812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19815 (eval $ac_try) 2>&5
19817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19818 (exit $ac_status); }; }; then
19820 { $as_echo "$as_me:$LINENO: result: yes" >&5
19821 $as_echo "yes" >&6; }
19823 cat >>confdefs.h
<<\_ACEOF
19824 #define HAVE_MKDIR_UMODE_T 1
19829 $as_echo "$as_me: failed program was:" >&5
19830 sed 's/^/| /' conftest.
$ac_ext >&5
19832 { $as_echo "$as_me:$LINENO: result: no" >&5
19833 $as_echo "no" >&6; }
19844 { $as_echo "$as_me:$LINENO: checking whether iops->lookup() passes nameidata" >&5
19845 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
19848 cat confdefs.h
- <<_ACEOF >conftest.c
19851 cat confdefs.h
>>conftest.
$ac_ext
19852 cat >>conftest.
$ac_ext <<_ACEOF
19853 /* end confdefs.h. */
19856 #include <linux/fs.h>
19858 struct dentry *inode_lookup(struct inode *inode,
19859 struct dentry *dentry, struct nameidata *nidata)
19862 static const struct inode_operations iops
19863 __attribute__ ((unused)) = {
19864 .lookup = inode_lookup,
19880 cat - <<_ACEOF >conftest.h
19885 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19886 echo "obj-m := conftest.o" >build
/Makefile
19888 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19889 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19891 (eval $ac_try) 2>&5
19893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19896 (eval $ac_try) 2>&5
19898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); }; }; then
19901 { $as_echo "$as_me:$LINENO: result: yes" >&5
19902 $as_echo "yes" >&6; }
19904 cat >>confdefs.h
<<\_ACEOF
19905 #define HAVE_LOOKUP_NAMEIDATA 1
19910 $as_echo "$as_me: failed program was:" >&5
19911 sed 's/^/| /' conftest.
$ac_ext >&5
19913 { $as_echo "$as_me:$LINENO: result: no" >&5
19914 $as_echo "no" >&6; }
19925 { $as_echo "$as_me:$LINENO: checking whether iops->create() passes nameidata" >&5
19926 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
19929 cat confdefs.h
- <<_ACEOF >conftest.c
19932 cat confdefs.h
>>conftest.
$ac_ext
19933 cat >>conftest.
$ac_ext <<_ACEOF
19934 /* end confdefs.h. */
19937 #include <linux/fs.h>
19939 #ifdef HAVE_MKDIR_UMODE_T
19940 int inode_create(struct inode *inode ,struct dentry *dentry,
19941 umode_t umode, struct nameidata *nidata) { return 0; }
19943 int inode_create(struct inode *inode,struct dentry *dentry,
19944 int umode, struct nameidata * nidata) { return 0; }
19947 static const struct inode_operations
19948 iops __attribute__ ((unused)) = {
19949 .create = inode_create,
19965 cat - <<_ACEOF >conftest.h
19970 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19971 echo "obj-m := conftest.o" >build
/Makefile
19973 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19974 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19976 (eval $ac_try) 2>&5
19978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19981 (eval $ac_try) 2>&5
19983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); }; }; then
19986 { $as_echo "$as_me:$LINENO: result: yes" >&5
19987 $as_echo "yes" >&6; }
19989 cat >>confdefs.h
<<\_ACEOF
19990 #define HAVE_CREATE_NAMEIDATA 1
19995 $as_echo "$as_me: failed program was:" >&5
19996 sed 's/^/| /' conftest.
$ac_ext >&5
19998 { $as_echo "$as_me:$LINENO: result: no" >&5
19999 $as_echo "no" >&6; }
20010 { $as_echo "$as_me:$LINENO: checking whether iops->get_link() passes delayed" >&5
20011 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
20014 cat confdefs.h
- <<_ACEOF >conftest.c
20017 cat confdefs.h
>>conftest.
$ac_ext
20018 cat >>conftest.
$ac_ext <<_ACEOF
20019 /* end confdefs.h. */
20022 #include <linux/fs.h>
20023 const char *get_link(struct dentry *de, struct inode *ip,
20024 struct delayed_call *done) { return "symlink"; }
20025 static struct inode_operations
20026 iops __attribute__ ((unused)) = {
20027 .get_link = get_link,
20043 cat - <<_ACEOF >conftest.h
20048 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20049 echo "obj-m := conftest.o" >build
/Makefile
20051 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20052 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20054 (eval $ac_try) 2>&5
20056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20059 (eval $ac_try) 2>&5
20061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20062 (exit $ac_status); }; }; then
20064 { $as_echo "$as_me:$LINENO: result: yes" >&5
20065 $as_echo "yes" >&6; }
20067 cat >>confdefs.h
<<\_ACEOF
20068 #define HAVE_GET_LINK_DELAYED 1
20073 $as_echo "$as_me: failed program was:" >&5
20074 sed 's/^/| /' conftest.
$ac_ext >&5
20076 { $as_echo "$as_me:$LINENO: result: no" >&5
20077 $as_echo "no" >&6; }
20078 { $as_echo "$as_me:$LINENO: checking whether iops->get_link() passes cookie" >&5
20079 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
20082 cat confdefs.h
- <<_ACEOF >conftest.c
20085 cat confdefs.h
>>conftest.
$ac_ext
20086 cat >>conftest.
$ac_ext <<_ACEOF
20087 /* end confdefs.h. */
20090 #include <linux/fs.h>
20091 const char *get_link(struct dentry *de, struct
20092 inode *ip, void **cookie) { return "symlink"; }
20093 static struct inode_operations
20094 iops __attribute__ ((unused)) = {
20095 .get_link = get_link,
20111 cat - <<_ACEOF >conftest.h
20116 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20117 echo "obj-m := conftest.o" >build
/Makefile
20119 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20120 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20122 (eval $ac_try) 2>&5
20124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20125 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20127 (eval $ac_try) 2>&5
20129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130 (exit $ac_status); }; }; then
20132 { $as_echo "$as_me:$LINENO: result: yes" >&5
20133 $as_echo "yes" >&6; }
20135 cat >>confdefs.h
<<\_ACEOF
20136 #define HAVE_GET_LINK_COOKIE 1
20141 $as_echo "$as_me: failed program was:" >&5
20142 sed 's/^/| /' conftest.
$ac_ext >&5
20144 { $as_echo "$as_me:$LINENO: result: no" >&5
20145 $as_echo "no" >&6; }
20147 { $as_echo "$as_me:$LINENO: checking whether iops->follow_link() passes cookie" >&5
20148 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
20151 cat confdefs.h
- <<_ACEOF >conftest.c
20154 cat confdefs.h
>>conftest.
$ac_ext
20155 cat >>conftest.
$ac_ext <<_ACEOF
20156 /* end confdefs.h. */
20159 #include <linux/fs.h>
20160 const char *follow_link(struct dentry *de,
20161 void **cookie) { return "symlink"; }
20162 static struct inode_operations
20163 iops __attribute__ ((unused)) = {
20164 .follow_link = follow_link,
20180 cat - <<_ACEOF >conftest.h
20185 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20186 echo "obj-m := conftest.o" >build
/Makefile
20188 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20189 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20191 (eval $ac_try) 2>&5
20193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
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); }; }; then
20201 { $as_echo "$as_me:$LINENO: result: yes" >&5
20202 $as_echo "yes" >&6; }
20204 cat >>confdefs.h
<<\_ACEOF
20205 #define HAVE_FOLLOW_LINK_COOKIE 1
20210 $as_echo "$as_me: failed program was:" >&5
20211 sed 's/^/| /' conftest.
$ac_ext >&5
20213 { $as_echo "$as_me:$LINENO: result: no" >&5
20214 $as_echo "no" >&6; }
20215 { $as_echo "$as_me:$LINENO: checking whether iops->follow_link() passes nameidata" >&5
20216 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
20219 cat confdefs.h
- <<_ACEOF >conftest.c
20222 cat confdefs.h
>>conftest.
$ac_ext
20223 cat >>conftest.
$ac_ext <<_ACEOF
20224 /* end confdefs.h. */
20227 #include <linux/fs.h>
20228 void *follow_link(struct dentry *de, struct
20229 nameidata *nd) { return (void *)NULL; }
20230 static struct inode_operations
20231 iops __attribute__ ((unused)) = {
20232 .follow_link = follow_link,
20248 cat - <<_ACEOF >conftest.h
20253 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20254 echo "obj-m := conftest.o" >build
/Makefile
20256 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20257 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20259 (eval $ac_try) 2>&5
20261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20262 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20264 (eval $ac_try) 2>&5
20266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267 (exit $ac_status); }; }; then
20269 { $as_echo "$as_me:$LINENO: result: yes" >&5
20270 $as_echo "yes" >&6; }
20272 cat >>confdefs.h
<<\_ACEOF
20273 #define HAVE_FOLLOW_LINK_NAMEIDATA 1
20278 $as_echo "$as_me: failed program was:" >&5
20279 sed 's/^/| /' conftest.
$ac_ext >&5
20281 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
20282 $as_echo "$as_me: error: no; please file a bug report" >&2;}
20283 { (exit 1); exit 1; }; }
20321 cat confdefs.h
- <<_ACEOF >conftest.c
20324 cat confdefs.h
>>conftest.
$ac_ext
20325 cat >>conftest.
$ac_ext <<_ACEOF
20326 /* end confdefs.h. */
20329 #if !defined(HAVE_GET_LINK_DELAYED)
20330 #error "Expecting get_link() delayed done"
20346 cat - <<_ACEOF >conftest.h
20351 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20352 echo "obj-m := conftest.o" >build
/Makefile
20354 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20355 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20357 (eval $ac_try) 2>&5
20359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20360 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20362 (eval $ac_try) 2>&5
20364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); }; }; then
20368 cat >>confdefs.h
<<\_ACEOF
20369 #define HAVE_PUT_LINK_DELAYED 1
20374 $as_echo "$as_me: failed program was:" >&5
20375 sed 's/^/| /' conftest.
$ac_ext >&5
20377 { $as_echo "$as_me:$LINENO: checking whether iops->put_link() passes cookie" >&5
20378 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
20381 cat confdefs.h
- <<_ACEOF >conftest.c
20384 cat confdefs.h
>>conftest.
$ac_ext
20385 cat >>conftest.
$ac_ext <<_ACEOF
20386 /* end confdefs.h. */
20389 #include <linux/fs.h>
20390 void put_link(struct inode *ip, void *cookie)
20392 static struct inode_operations
20393 iops __attribute__ ((unused)) = {
20394 .put_link = put_link,
20410 cat - <<_ACEOF >conftest.h
20415 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20416 echo "obj-m := conftest.o" >build
/Makefile
20418 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20419 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20421 (eval $ac_try) 2>&5
20423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20426 (eval $ac_try) 2>&5
20428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20429 (exit $ac_status); }; }; then
20431 { $as_echo "$as_me:$LINENO: result: yes" >&5
20432 $as_echo "yes" >&6; }
20434 cat >>confdefs.h
<<\_ACEOF
20435 #define HAVE_PUT_LINK_COOKIE 1
20440 $as_echo "$as_me: failed program was:" >&5
20441 sed 's/^/| /' conftest.
$ac_ext >&5
20443 { $as_echo "$as_me:$LINENO: result: no" >&5
20444 $as_echo "no" >&6; }
20445 { $as_echo "$as_me:$LINENO: checking whether iops->put_link() passes nameidata" >&5
20446 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
20449 cat confdefs.h
- <<_ACEOF >conftest.c
20452 cat confdefs.h
>>conftest.
$ac_ext
20453 cat >>conftest.
$ac_ext <<_ACEOF
20454 /* end confdefs.h. */
20457 #include <linux/fs.h>
20458 void put_link(struct dentry *de, struct
20459 nameidata *nd, void *ptr) { return; }
20460 static struct inode_operations
20461 iops __attribute__ ((unused)) = {
20462 .put_link = put_link,
20478 cat - <<_ACEOF >conftest.h
20483 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20484 echo "obj-m := conftest.o" >build
/Makefile
20486 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20487 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20489 (eval $ac_try) 2>&5
20491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20494 (eval $ac_try) 2>&5
20496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497 (exit $ac_status); }; }; then
20499 { $as_echo "$as_me:$LINENO: result: yes" >&5
20500 $as_echo "yes" >&6; }
20502 cat >>confdefs.h
<<\_ACEOF
20503 #define HAVE_PUT_LINK_NAMEIDATA 1
20508 $as_echo "$as_me: failed program was:" >&5
20509 sed 's/^/| /' conftest.
$ac_ext >&5
20511 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
20512 $as_echo "$as_me: error: no; please file a bug report" >&2;}
20513 { (exit 1); exit 1; }; }
20540 { $as_echo "$as_me:$LINENO: checking whether iops->truncate_range() exists" >&5
20541 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
20544 cat confdefs.h
- <<_ACEOF >conftest.c
20547 cat confdefs.h
>>conftest.
$ac_ext
20548 cat >>conftest.
$ac_ext <<_ACEOF
20549 /* end confdefs.h. */
20552 #include <linux/fs.h>
20553 void truncate_range(struct inode *inode, loff_t start,
20554 loff_t end) { return; }
20555 static struct inode_operations iops __attribute__ ((unused)) = {
20556 .truncate_range = truncate_range,
20572 cat - <<_ACEOF >conftest.h
20577 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20578 echo "obj-m := conftest.o" >build
/Makefile
20580 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20581 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20583 (eval $ac_try) 2>&5
20585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20588 (eval $ac_try) 2>&5
20590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591 (exit $ac_status); }; }; then
20593 { $as_echo "$as_me:$LINENO: result: yes" >&5
20594 $as_echo "yes" >&6; }
20596 cat >>confdefs.h
<<\_ACEOF
20597 #define HAVE_INODE_TRUNCATE_RANGE 1
20602 $as_echo "$as_me: failed program was:" >&5
20603 sed 's/^/| /' conftest.
$ac_ext >&5
20605 { $as_echo "$as_me:$LINENO: result: no" >&5
20606 $as_echo "no" >&6; }
20617 { $as_echo "$as_me:$LINENO: checking whether dops->d_automount() exists" >&5
20618 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
20621 cat confdefs.h
- <<_ACEOF >conftest.c
20624 cat confdefs.h
>>conftest.
$ac_ext
20625 cat >>conftest.
$ac_ext <<_ACEOF
20626 /* end confdefs.h. */
20629 #include <linux/dcache.h>
20630 struct vfsmount *d_automount(struct path *p) { return NULL; }
20631 struct dentry_operations dops __attribute__ ((unused)) = {
20632 .d_automount = d_automount,
20648 cat - <<_ACEOF >conftest.h
20653 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20654 echo "obj-m := conftest.o" >build
/Makefile
20656 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20657 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20659 (eval $ac_try) 2>&5
20661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20664 (eval $ac_try) 2>&5
20666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20667 (exit $ac_status); }; }; then
20669 { $as_echo "$as_me:$LINENO: result: yes" >&5
20670 $as_echo "yes" >&6; }
20672 cat >>confdefs.h
<<\_ACEOF
20673 #define HAVE_AUTOMOUNT 1
20678 $as_echo "$as_me: failed program was:" >&5
20679 sed 's/^/| /' conftest.
$ac_ext >&5
20681 { $as_echo "$as_me:$LINENO: result: no" >&5
20682 $as_echo "no" >&6; }
20693 { $as_echo "$as_me:$LINENO: checking whether eops->encode_fh() wants inode" >&5
20694 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
20697 cat confdefs.h
- <<_ACEOF >conftest.c
20700 cat confdefs.h
>>conftest.
$ac_ext
20701 cat >>conftest.
$ac_ext <<_ACEOF
20702 /* end confdefs.h. */
20705 #include <linux/exportfs.h>
20706 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
20707 struct inode *parent) { return 0; }
20708 static struct export_operations eops __attribute__ ((unused))={
20709 .encode_fh = encode_fh,
20725 cat - <<_ACEOF >conftest.h
20730 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20731 echo "obj-m := conftest.o" >build
/Makefile
20733 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20734 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20736 (eval $ac_try) 2>&5
20738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
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); }; }; then
20746 { $as_echo "$as_me:$LINENO: result: yes" >&5
20747 $as_echo "yes" >&6; }
20749 cat >>confdefs.h
<<\_ACEOF
20750 #define HAVE_ENCODE_FH_WITH_INODE 1
20755 $as_echo "$as_me: failed program was:" >&5
20756 sed 's/^/| /' conftest.
$ac_ext >&5
20758 { $as_echo "$as_me:$LINENO: result: no" >&5
20759 $as_echo "no" >&6; }
20770 { $as_echo "$as_me:$LINENO: checking whether eops->commit_metadata() exists" >&5
20771 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
20774 cat confdefs.h
- <<_ACEOF >conftest.c
20777 cat confdefs.h
>>conftest.
$ac_ext
20778 cat >>conftest.
$ac_ext <<_ACEOF
20779 /* end confdefs.h. */
20782 #include <linux/exportfs.h>
20783 int commit_metadata(struct inode *inode) { return 0; }
20784 static struct export_operations eops __attribute__ ((unused))={
20785 .commit_metadata = commit_metadata,
20801 cat - <<_ACEOF >conftest.h
20806 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20807 echo "obj-m := conftest.o" >build
/Makefile
20809 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20810 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20812 (eval $ac_try) 2>&5
20814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20817 (eval $ac_try) 2>&5
20819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20820 (exit $ac_status); }; }; then
20822 { $as_echo "$as_me:$LINENO: result: yes" >&5
20823 $as_echo "yes" >&6; }
20825 cat >>confdefs.h
<<\_ACEOF
20826 #define HAVE_COMMIT_METADATA 1
20831 $as_echo "$as_me: failed program was:" >&5
20832 sed 's/^/| /' conftest.
$ac_ext >&5
20834 { $as_echo "$as_me:$LINENO: result: no" >&5
20835 $as_echo "no" >&6; }
20845 { $as_echo "$as_me:$LINENO: checking whether clear_inode() is available" >&5
20846 $as_echo_n "checking whether clear_inode() is available... " >&6; }
20850 cat confdefs.h
- <<_ACEOF >conftest.c
20853 cat confdefs.h
>>conftest.
$ac_ext
20854 cat >>conftest.
$ac_ext <<_ACEOF
20855 /* end confdefs.h. */
20858 #include <linux/fs.h>
20874 cat - <<_ACEOF >conftest.h
20879 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20880 echo "obj-m := conftest.o" >build
/Makefile
20882 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20883 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20885 (eval $ac_try) 2>&5
20887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20890 (eval $ac_try) 2>&5
20892 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); }; }; then
20896 $as_echo "$as_me: failed program was:" >&5
20897 sed 's/^/| /' conftest.
$ac_ext >&5
20906 if test $rc -ne 0; then :
20908 { $as_echo "$as_me:$LINENO: result: no" >&5
20909 $as_echo "no" >&6; }
20912 if test "x$enable_linux_builtin" != xyes
; then
20914 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
20915 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
20917 if test $rc -ne 0; then
20919 for file in fs
/inode.c
; do
20920 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
20921 "$LINUX/$file" 2>/dev
/null
20923 if test $rc -eq 0; then
20928 if test $export -eq 0; then :
20938 if test $rc -ne 0; then :
20940 { $as_echo "$as_me:$LINENO: result: no" >&5
20941 $as_echo "no" >&6; }
20945 { $as_echo "$as_me:$LINENO: result: yes" >&5
20946 $as_echo "yes" >&6; }
20948 cat >>confdefs.h
<<\_ACEOF
20949 #define HAVE_CLEAR_INODE 1
20957 { $as_echo "$as_me:$LINENO: checking whether setattr_prepare() is available" >&5
20958 $as_echo_n "checking whether setattr_prepare() is available... " >&6; }
20962 cat confdefs.h
- <<_ACEOF >conftest.c
20965 cat confdefs.h
>>conftest.
$ac_ext
20966 cat >>conftest.
$ac_ext <<_ACEOF
20967 /* end confdefs.h. */
20970 #include <linux/fs.h>
20976 struct dentry *dentry = NULL;
20977 struct iattr *attr = NULL;
20980 error = setattr_prepare(dentry, attr);
20990 cat - <<_ACEOF >conftest.h
20995 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20996 echo "obj-m := conftest.o" >build
/Makefile
20998 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20999 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21001 (eval $ac_try) 2>&5
21003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21004 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21006 (eval $ac_try) 2>&5
21008 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); }; }; then
21012 $as_echo "$as_me: failed program was:" >&5
21013 sed 's/^/| /' conftest.
$ac_ext >&5
21022 if test $rc -ne 0; then :
21024 { $as_echo "$as_me:$LINENO: result: no" >&5
21025 $as_echo "no" >&6; }
21028 if test "x$enable_linux_builtin" != xyes
; then
21030 grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \
21031 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21033 if test $rc -ne 0; then
21035 for file in fs
/attr.c
; do
21036 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
21037 "$LINUX/$file" 2>/dev
/null
21039 if test $rc -eq 0; then
21044 if test $export -eq 0; then :
21054 if test $rc -ne 0; then :
21056 { $as_echo "$as_me:$LINENO: result: no" >&5
21057 $as_echo "no" >&6; }
21061 { $as_echo "$as_me:$LINENO: result: yes" >&5
21062 $as_echo "yes" >&6; }
21064 cat >>confdefs.h
<<\_ACEOF
21065 #define HAVE_SETATTR_PREPARE 1
21073 { $as_echo "$as_me:$LINENO: checking whether insert_inode_locked() is available" >&5
21074 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
21078 cat confdefs.h
- <<_ACEOF >conftest.c
21081 cat confdefs.h
>>conftest.
$ac_ext
21082 cat >>conftest.
$ac_ext <<_ACEOF
21083 /* end confdefs.h. */
21086 #include <linux/fs.h>
21092 insert_inode_locked(NULL);
21102 cat - <<_ACEOF >conftest.h
21107 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21108 echo "obj-m := conftest.o" >build
/Makefile
21110 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21111 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21113 (eval $ac_try) 2>&5
21115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21116 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21118 (eval $ac_try) 2>&5
21120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121 (exit $ac_status); }; }; then
21124 $as_echo "$as_me: failed program was:" >&5
21125 sed 's/^/| /' conftest.
$ac_ext >&5
21134 if test $rc -ne 0; then :
21136 { $as_echo "$as_me:$LINENO: result: no" >&5
21137 $as_echo "no" >&6; }
21140 if test "x$enable_linux_builtin" != xyes
; then
21142 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
21143 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21145 if test $rc -ne 0; then
21147 for file in fs
/inode.c
; do
21148 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
21149 "$LINUX/$file" 2>/dev
/null
21151 if test $rc -eq 0; then
21156 if test $export -eq 0; then :
21166 if test $rc -ne 0; then :
21168 { $as_echo "$as_me:$LINENO: result: no" >&5
21169 $as_echo "no" >&6; }
21173 { $as_echo "$as_me:$LINENO: result: yes" >&5
21174 $as_echo "yes" >&6; }
21176 cat >>confdefs.h
<<\_ACEOF
21177 #define HAVE_INSERT_INODE_LOCKED 1
21185 { $as_echo "$as_me:$LINENO: checking whether d_make_root() is available" >&5
21186 $as_echo_n "checking whether d_make_root() is available... " >&6; }
21190 cat confdefs.h
- <<_ACEOF >conftest.c
21193 cat confdefs.h
>>conftest.
$ac_ext
21194 cat >>conftest.
$ac_ext <<_ACEOF
21195 /* end confdefs.h. */
21198 #include <linux/dcache.h>
21214 cat - <<_ACEOF >conftest.h
21219 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21220 echo "obj-m := conftest.o" >build
/Makefile
21222 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21223 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21225 (eval $ac_try) 2>&5
21227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21228 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21230 (eval $ac_try) 2>&5
21232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); }; }; then
21236 $as_echo "$as_me: failed program was:" >&5
21237 sed 's/^/| /' conftest.
$ac_ext >&5
21246 if test $rc -ne 0; then :
21248 { $as_echo "$as_me:$LINENO: result: no" >&5
21249 $as_echo "no" >&6; }
21252 if test "x$enable_linux_builtin" != xyes
; then
21254 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
21255 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21257 if test $rc -ne 0; then
21259 for file in fs
/dcache.c
; do
21260 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
21261 "$LINUX/$file" 2>/dev
/null
21263 if test $rc -eq 0; then
21268 if test $export -eq 0; then :
21278 if test $rc -ne 0; then :
21280 { $as_echo "$as_me:$LINENO: result: no" >&5
21281 $as_echo "no" >&6; }
21285 { $as_echo "$as_me:$LINENO: result: yes" >&5
21286 $as_echo "yes" >&6; }
21288 cat >>confdefs.h
<<\_ACEOF
21289 #define HAVE_D_MAKE_ROOT 1
21297 { $as_echo "$as_me:$LINENO: checking whether d_obtain_alias() is available" >&5
21298 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
21302 cat confdefs.h
- <<_ACEOF >conftest.c
21305 cat confdefs.h
>>conftest.
$ac_ext
21306 cat >>conftest.
$ac_ext <<_ACEOF
21307 /* end confdefs.h. */
21310 #include <linux/dcache.h>
21316 d_obtain_alias(NULL);
21326 cat - <<_ACEOF >conftest.h
21331 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21332 echo "obj-m := conftest.o" >build
/Makefile
21334 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21335 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21337 (eval $ac_try) 2>&5
21339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21342 (eval $ac_try) 2>&5
21344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); }; }; then
21348 $as_echo "$as_me: failed program was:" >&5
21349 sed 's/^/| /' conftest.
$ac_ext >&5
21358 if test $rc -ne 0; then :
21360 { $as_echo "$as_me:$LINENO: result: no" >&5
21361 $as_echo "no" >&6; }
21364 if test "x$enable_linux_builtin" != xyes
; then
21366 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
21367 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21369 if test $rc -ne 0; then
21371 for file in fs
/dcache.c
; do
21372 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
21373 "$LINUX/$file" 2>/dev
/null
21375 if test $rc -eq 0; then
21380 if test $export -eq 0; then :
21390 if test $rc -ne 0; then :
21392 { $as_echo "$as_me:$LINENO: result: no" >&5
21393 $as_echo "no" >&6; }
21397 { $as_echo "$as_me:$LINENO: result: yes" >&5
21398 $as_echo "yes" >&6; }
21400 cat >>confdefs.h
<<\_ACEOF
21401 #define HAVE_D_OBTAIN_ALIAS 1
21409 { $as_echo "$as_me:$LINENO: checking whether d_prune_aliases() is available" >&5
21410 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
21414 cat confdefs.h
- <<_ACEOF >conftest.c
21417 cat confdefs.h
>>conftest.
$ac_ext
21418 cat >>conftest.
$ac_ext <<_ACEOF
21419 /* end confdefs.h. */
21422 #include <linux/dcache.h>
21428 struct inode *ip = NULL;
21429 d_prune_aliases(ip);
21439 cat - <<_ACEOF >conftest.h
21444 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21445 echo "obj-m := conftest.o" >build
/Makefile
21447 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21448 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21450 (eval $ac_try) 2>&5
21452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21453 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21455 (eval $ac_try) 2>&5
21457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458 (exit $ac_status); }; }; then
21461 $as_echo "$as_me: failed program was:" >&5
21462 sed 's/^/| /' conftest.
$ac_ext >&5
21471 if test $rc -ne 0; then :
21473 { $as_echo "$as_me:$LINENO: result: no" >&5
21474 $as_echo "no" >&6; }
21477 if test "x$enable_linux_builtin" != xyes
; then
21479 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
21480 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21482 if test $rc -ne 0; then
21484 for file in fs
/dcache.c
; do
21485 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
21486 "$LINUX/$file" 2>/dev
/null
21488 if test $rc -eq 0; then
21493 if test $export -eq 0; then :
21503 if test $rc -ne 0; then :
21505 { $as_echo "$as_me:$LINENO: result: no" >&5
21506 $as_echo "no" >&6; }
21510 { $as_echo "$as_me:$LINENO: result: yes" >&5
21511 $as_echo "yes" >&6; }
21513 cat >>confdefs.h
<<\_ACEOF
21514 #define HAVE_D_PRUNE_ALIASES 1
21522 { $as_echo "$as_me:$LINENO: checking whether d_set_d_op() is available" >&5
21523 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
21527 cat confdefs.h
- <<_ACEOF >conftest.c
21530 cat confdefs.h
>>conftest.
$ac_ext
21531 cat >>conftest.
$ac_ext <<_ACEOF
21532 /* end confdefs.h. */
21535 #include <linux/dcache.h>
21541 d_set_d_op(NULL, NULL);
21551 cat - <<_ACEOF >conftest.h
21556 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21557 echo "obj-m := conftest.o" >build
/Makefile
21559 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21560 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21562 (eval $ac_try) 2>&5
21564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21565 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21567 (eval $ac_try) 2>&5
21569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); }; }; then
21573 $as_echo "$as_me: failed program was:" >&5
21574 sed 's/^/| /' conftest.
$ac_ext >&5
21583 if test $rc -ne 0; then :
21585 { $as_echo "$as_me:$LINENO: result: no" >&5
21586 $as_echo "no" >&6; }
21589 if test "x$enable_linux_builtin" != xyes
; then
21591 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
21592 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21594 if test $rc -ne 0; then
21596 for file in fs
/dcache.c
; do
21597 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
21598 "$LINUX/$file" 2>/dev
/null
21600 if test $rc -eq 0; then
21605 if test $export -eq 0; then :
21615 if test $rc -ne 0; then :
21617 { $as_echo "$as_me:$LINENO: result: no" >&5
21618 $as_echo "no" >&6; }
21622 { $as_echo "$as_me:$LINENO: result: yes" >&5
21623 $as_echo "yes" >&6; }
21625 cat >>confdefs.h
<<\_ACEOF
21626 #define HAVE_D_SET_D_OP 1
21635 { $as_echo "$as_me:$LINENO: checking whether dops->d_revalidate() takes struct nameidata" >&5
21636 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
21639 cat confdefs.h
- <<_ACEOF >conftest.c
21642 cat confdefs.h
>>conftest.
$ac_ext
21643 cat >>conftest.
$ac_ext <<_ACEOF
21644 /* end confdefs.h. */
21647 #include <linux/dcache.h>
21649 int revalidate (struct dentry *dentry,
21650 struct nameidata *nidata) { return 0; }
21652 static const struct dentry_operations
21653 dops __attribute__ ((unused)) = {
21654 .d_revalidate = revalidate,
21670 cat - <<_ACEOF >conftest.h
21675 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21676 echo "obj-m := conftest.o" >build
/Makefile
21678 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21679 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21681 (eval $ac_try) 2>&5
21683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21686 (eval $ac_try) 2>&5
21688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689 (exit $ac_status); }; }; then
21691 { $as_echo "$as_me:$LINENO: result: yes" >&5
21692 $as_echo "yes" >&6; }
21694 cat >>confdefs.h
<<\_ACEOF
21695 #define HAVE_D_REVALIDATE_NAMEIDATA 1
21700 $as_echo "$as_me: failed program was:" >&5
21701 sed 's/^/| /' conftest.
$ac_ext >&5
21703 { $as_echo "$as_me:$LINENO: result: no" >&5
21704 $as_echo "no" >&6; }
21715 { $as_echo "$as_me:$LINENO: checking whether dentry uses const struct dentry_operations" >&5
21716 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
21719 cat confdefs.h
- <<_ACEOF >conftest.c
21722 cat confdefs.h
>>conftest.
$ac_ext
21723 cat >>conftest.
$ac_ext <<_ACEOF
21724 /* end confdefs.h. */
21727 #include <linux/dcache.h>
21729 const struct dentry_operations test_d_op = {
21730 .d_revalidate = NULL,
21737 struct dentry d __attribute__ ((unused));
21739 d.d_op = &test_d_op;
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_CONST_DENTRY_OPERATIONS 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; }
21793 { $as_echo "$as_me:$LINENO: checking whether check_disk_size_change() is available" >&5
21794 $as_echo_n "checking whether check_disk_size_change() is available... " >&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>
21812 check_disk_size_change(NULL, NULL);
21822 cat - <<_ACEOF >conftest.h
21827 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21828 echo "obj-m := conftest.o" >build
/Makefile
21830 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21831 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21833 (eval $ac_try) 2>&5
21835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21836 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21838 (eval $ac_try) 2>&5
21840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841 (exit $ac_status); }; }; then
21844 $as_echo "$as_me: failed program was:" >&5
21845 sed 's/^/| /' conftest.
$ac_ext >&5
21854 if test $rc -ne 0; then :
21856 { $as_echo "$as_me:$LINENO: result: no" >&5
21857 $as_echo "no" >&6; }
21860 if test "x$enable_linux_builtin" != xyes
; then
21862 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
21863 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21865 if test $rc -ne 0; then
21867 for file in fs
/block_dev.c
; do
21868 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
21869 "$LINUX/$file" 2>/dev
/null
21871 if test $rc -eq 0; then
21876 if test $export -eq 0; then :
21886 if test $rc -ne 0; then :
21888 { $as_echo "$as_me:$LINENO: result: no" >&5
21889 $as_echo "no" >&6; }
21893 { $as_echo "$as_me:$LINENO: result: yes" >&5
21894 $as_echo "yes" >&6; }
21896 cat >>confdefs.h
<<\_ACEOF
21897 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
21905 { $as_echo "$as_me:$LINENO: checking whether truncate_setsize() is available" >&5
21906 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
21910 cat confdefs.h
- <<_ACEOF >conftest.c
21913 cat confdefs.h
>>conftest.
$ac_ext
21914 cat >>conftest.
$ac_ext <<_ACEOF
21915 /* end confdefs.h. */
21918 #include <linux/mm.h>
21924 truncate_setsize(NULL, 0);
21934 cat - <<_ACEOF >conftest.h
21939 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21940 echo "obj-m := conftest.o" >build
/Makefile
21942 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21943 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21945 (eval $ac_try) 2>&5
21947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21948 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21950 (eval $ac_try) 2>&5
21952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21953 (exit $ac_status); }; }; then
21956 $as_echo "$as_me: failed program was:" >&5
21957 sed 's/^/| /' conftest.
$ac_ext >&5
21966 if test $rc -ne 0; then :
21968 { $as_echo "$as_me:$LINENO: result: no" >&5
21969 $as_echo "no" >&6; }
21972 if test "x$enable_linux_builtin" != xyes
; then
21974 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
21975 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21977 if test $rc -ne 0; then
21979 for file in mm
/truncate.c
; do
21980 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
21981 "$LINUX/$file" 2>/dev
/null
21983 if test $rc -eq 0; then
21988 if test $export -eq 0; then :
21998 if test $rc -ne 0; then :
22000 { $as_echo "$as_me:$LINENO: result: no" >&5
22001 $as_echo "no" >&6; }
22005 { $as_echo "$as_me:$LINENO: result: yes" >&5
22006 $as_echo "yes" >&6; }
22008 cat >>confdefs.h
<<\_ACEOF
22009 #define HAVE_TRUNCATE_SETSIZE 1
22018 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
22019 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
22022 cat confdefs.h
- <<_ACEOF >conftest.c
22025 cat confdefs.h
>>conftest.
$ac_ext
22026 cat >>conftest.
$ac_ext <<_ACEOF
22027 /* end confdefs.h. */
22030 #include <linux/security.h>
22036 struct inode *ip __attribute__ ((unused)) = NULL;
22037 struct inode *dip __attribute__ ((unused)) = NULL;
22038 const struct qstr *str __attribute__ ((unused)) = NULL;
22039 char *name __attribute__ ((unused)) = NULL;
22040 void *value __attribute__ ((unused)) = NULL;
22041 size_t len __attribute__ ((unused)) = 0;
22043 security_inode_init_security(ip, dip, str, &name, &value, &len);
22053 cat - <<_ACEOF >conftest.h
22058 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22059 echo "obj-m := conftest.o" >build
/Makefile
22061 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22062 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22064 (eval $ac_try) 2>&5
22066 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22067 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22069 (eval $ac_try) 2>&5
22071 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072 (exit $ac_status); }; }; then
22074 { $as_echo "$as_me:$LINENO: result: yes" >&5
22075 $as_echo "yes" >&6; }
22077 cat >>confdefs.h
<<\_ACEOF
22078 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
22083 $as_echo "$as_me: failed program was:" >&5
22084 sed 's/^/| /' conftest.
$ac_ext >&5
22086 { $as_echo "$as_me:$LINENO: result: no" >&5
22087 $as_echo "no" >&6; }
22098 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
22099 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
22102 cat confdefs.h
- <<_ACEOF >conftest.c
22105 cat confdefs.h
>>conftest.
$ac_ext
22106 cat >>conftest.
$ac_ext <<_ACEOF
22107 /* end confdefs.h. */
22110 #include <linux/security.h>
22116 struct inode *ip __attribute__ ((unused)) = NULL;
22117 struct inode *dip __attribute__ ((unused)) = NULL;
22118 const struct qstr *str __attribute__ ((unused)) = NULL;
22119 initxattrs func __attribute__ ((unused)) = NULL;
22121 security_inode_init_security(ip, dip, str, func, NULL);
22131 cat - <<_ACEOF >conftest.h
22136 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22137 echo "obj-m := conftest.o" >build
/Makefile
22139 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22140 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22142 (eval $ac_try) 2>&5
22144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22147 (eval $ac_try) 2>&5
22149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22150 (exit $ac_status); }; }; then
22152 { $as_echo "$as_me:$LINENO: result: yes" >&5
22153 $as_echo "yes" >&6; }
22155 cat >>confdefs.h
<<\_ACEOF
22156 #define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
22161 $as_echo "$as_me: failed program was:" >&5
22162 sed 's/^/| /' conftest.
$ac_ext >&5
22164 { $as_echo "$as_me:$LINENO: result: no" >&5
22165 $as_echo "no" >&6; }
22175 { $as_echo "$as_me:$LINENO: checking whether mount_nodev() is available" >&5
22176 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
22180 cat confdefs.h
- <<_ACEOF >conftest.c
22183 cat confdefs.h
>>conftest.
$ac_ext
22184 cat >>conftest.
$ac_ext <<_ACEOF
22185 /* end confdefs.h. */
22188 #include <linux/fs.h>
22194 mount_nodev(NULL, 0, NULL, NULL);
22204 cat - <<_ACEOF >conftest.h
22209 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22210 echo "obj-m := conftest.o" >build
/Makefile
22212 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22213 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22215 (eval $ac_try) 2>&5
22217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22218 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22220 (eval $ac_try) 2>&5
22222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223 (exit $ac_status); }; }; then
22226 $as_echo "$as_me: failed program was:" >&5
22227 sed 's/^/| /' conftest.
$ac_ext >&5
22236 if test $rc -ne 0; then :
22238 { $as_echo "$as_me:$LINENO: result: no" >&5
22239 $as_echo "no" >&6; }
22242 if test "x$enable_linux_builtin" != xyes
; then
22244 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
22245 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22247 if test $rc -ne 0; then
22249 for file in fs
/super.c
; do
22250 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
22251 "$LINUX/$file" 2>/dev
/null
22253 if test $rc -eq 0; then
22258 if test $export -eq 0; then :
22268 if test $rc -ne 0; then :
22270 { $as_echo "$as_me:$LINENO: result: no" >&5
22271 $as_echo "no" >&6; }
22275 { $as_echo "$as_me:$LINENO: result: yes" >&5
22276 $as_echo "yes" >&6; }
22278 cat >>confdefs.h
<<\_ACEOF
22279 #define HAVE_MOUNT_NODEV 1
22288 { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
22289 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
22292 cat confdefs.h
- <<_ACEOF >conftest.c
22295 cat confdefs.h
>>conftest.
$ac_ext
22296 cat >>conftest.
$ac_ext <<_ACEOF
22297 /* end confdefs.h. */
22300 #include <linux/fs.h>
22302 int shrink(struct shrinker *s, struct shrink_control *sc)
22305 static const struct super_block
22306 sb __attribute__ ((unused)) = {
22307 .s_shrink.shrink = shrink,
22308 .s_shrink.seeks = DEFAULT_SEEKS,
22309 .s_shrink.batch = 0,
22325 cat - <<_ACEOF >conftest.h
22330 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22331 echo "obj-m := conftest.o" >build
/Makefile
22333 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22334 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22336 (eval $ac_try) 2>&5
22338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22341 (eval $ac_try) 2>&5
22343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22344 (exit $ac_status); }; }; then
22346 { $as_echo "$as_me:$LINENO: result: yes" >&5
22347 $as_echo "yes" >&6; }
22349 cat >>confdefs.h
<<\_ACEOF
22350 #define HAVE_SHRINK 1
22356 $as_echo "$as_me: failed program was:" >&5
22357 sed 's/^/| /' conftest.
$ac_ext >&5
22359 { $as_echo "$as_me:$LINENO: result: no" >&5
22360 $as_echo "no" >&6; }
22371 { $as_echo "$as_me:$LINENO: checking whether shrink_control has nid" >&5
22372 $as_echo_n "checking whether shrink_control has nid... " >&6; }
22375 cat confdefs.h
- <<_ACEOF >conftest.c
22378 cat confdefs.h
>>conftest.
$ac_ext
22379 cat >>conftest.
$ac_ext <<_ACEOF
22380 /* end confdefs.h. */
22383 #include <linux/fs.h>
22389 struct shrink_control sc __attribute__ ((unused));
22390 unsigned long scnidsize __attribute__ ((unused)) =
22401 cat - <<_ACEOF >conftest.h
22406 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22407 echo "obj-m := conftest.o" >build
/Makefile
22409 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22410 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22412 (eval $ac_try) 2>&5
22414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22415 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22417 (eval $ac_try) 2>&5
22419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22420 (exit $ac_status); }; }; then
22422 { $as_echo "$as_me:$LINENO: result: yes" >&5
22423 $as_echo "yes" >&6; }
22425 cat >>confdefs.h
<<\_ACEOF
22426 #define SHRINK_CONTROL_HAS_NID 1
22431 $as_echo "$as_me: failed program was:" >&5
22432 sed 's/^/| /' conftest.
$ac_ext >&5
22434 { $as_echo "$as_me:$LINENO: result: no" >&5
22435 $as_echo "no" >&6; }
22446 { $as_echo "$as_me:$LINENO: checking whether super_block has s_instances list_head" >&5
22447 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
22450 cat confdefs.h
- <<_ACEOF >conftest.c
22453 cat confdefs.h
>>conftest.
$ac_ext
22454 cat >>conftest.
$ac_ext <<_ACEOF
22455 /* end confdefs.h. */
22458 #include <linux/fs.h>
22464 struct super_block sb __attribute__ ((unused));
22466 INIT_LIST_HEAD(&sb.s_instances);
22476 cat - <<_ACEOF >conftest.h
22481 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22482 echo "obj-m := conftest.o" >build
/Makefile
22484 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22485 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22487 (eval $ac_try) 2>&5
22489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22490 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22492 (eval $ac_try) 2>&5
22494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22495 (exit $ac_status); }; }; then
22497 { $as_echo "$as_me:$LINENO: result: yes" >&5
22498 $as_echo "yes" >&6; }
22500 cat >>confdefs.h
<<\_ACEOF
22501 #define HAVE_S_INSTANCES_LIST_HEAD 1
22506 $as_echo "$as_me: failed program was:" >&5
22507 sed 's/^/| /' conftest.
$ac_ext >&5
22509 { $as_echo "$as_me:$LINENO: result: no" >&5
22510 $as_echo "no" >&6; }
22520 { $as_echo "$as_me:$LINENO: checking whether super_block has s_d_op" >&5
22521 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
22524 cat confdefs.h
- <<_ACEOF >conftest.c
22527 cat confdefs.h
>>conftest.
$ac_ext
22528 cat >>conftest.
$ac_ext <<_ACEOF
22529 /* end confdefs.h. */
22532 #include <linux/fs.h>
22538 struct super_block sb __attribute__ ((unused));
22549 cat - <<_ACEOF >conftest.h
22554 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22555 echo "obj-m := conftest.o" >build
/Makefile
22557 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22558 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22560 (eval $ac_try) 2>&5
22562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22565 (eval $ac_try) 2>&5
22567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22568 (exit $ac_status); }; }; then
22570 { $as_echo "$as_me:$LINENO: result: yes" >&5
22571 $as_echo "yes" >&6; }
22573 cat >>confdefs.h
<<\_ACEOF
22574 #define HAVE_S_D_OP 1
22579 $as_echo "$as_me: failed program was:" >&5
22580 sed 's/^/| /' conftest.
$ac_ext >&5
22582 { $as_echo "$as_me:$LINENO: result: no" >&5
22583 $as_echo "no" >&6; }
22594 { $as_echo "$as_me:$LINENO: checking whether super_setup_bdi_name() exists" >&5
22595 $as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; }
22599 cat confdefs.h
- <<_ACEOF >conftest.c
22602 cat confdefs.h
>>conftest.
$ac_ext
22603 cat >>conftest.
$ac_ext <<_ACEOF
22604 /* end confdefs.h. */
22607 #include <linux/fs.h>
22608 struct super_block sb;
22614 char *name = "bdi";
22615 int error __attribute__((unused)) =
22616 super_setup_bdi_name(&sb, name);
22626 cat - <<_ACEOF >conftest.h
22631 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22632 echo "obj-m := conftest.o" >build
/Makefile
22634 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22635 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22637 (eval $ac_try) 2>&5
22639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22640 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22642 (eval $ac_try) 2>&5
22644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645 (exit $ac_status); }; }; then
22648 $as_echo "$as_me: failed program was:" >&5
22649 sed 's/^/| /' conftest.
$ac_ext >&5
22658 if test $rc -ne 0; then :
22660 { $as_echo "$as_me:$LINENO: result: no" >&5
22661 $as_echo "no" >&6; }
22662 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 2 args" >&5
22663 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
22667 cat confdefs.h
- <<_ACEOF >conftest.c
22670 cat confdefs.h
>>conftest.
$ac_ext
22671 cat >>conftest.
$ac_ext <<_ACEOF
22672 /* end confdefs.h. */
22675 #include <linux/backing-dev.h>
22676 struct backing_dev_info bdi;
22682 char *name = "bdi";
22683 int error __attribute__((unused)) =
22684 bdi_setup_and_register(&bdi, name);
22694 cat - <<_ACEOF >conftest.h
22699 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22700 echo "obj-m := conftest.o" >build
/Makefile
22702 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22703 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22705 (eval $ac_try) 2>&5
22707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22708 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22710 (eval $ac_try) 2>&5
22712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713 (exit $ac_status); }; }; then
22716 $as_echo "$as_me: failed program was:" >&5
22717 sed 's/^/| /' conftest.
$ac_ext >&5
22726 if test $rc -ne 0; then :
22728 { $as_echo "$as_me:$LINENO: result: no" >&5
22729 $as_echo "no" >&6; }
22730 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
22731 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
22735 cat confdefs.h
- <<_ACEOF >conftest.c
22738 cat confdefs.h
>>conftest.
$ac_ext
22739 cat >>conftest.
$ac_ext <<_ACEOF
22740 /* end confdefs.h. */
22743 #include <linux/backing-dev.h>
22744 struct backing_dev_info bdi;
22750 char *name = "bdi";
22751 unsigned int cap = BDI_CAP_MAP_COPY;
22752 int error __attribute__((unused)) =
22753 bdi_setup_and_register(&bdi, name, cap);
22763 cat - <<_ACEOF >conftest.h
22768 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22769 echo "obj-m := conftest.o" >build
/Makefile
22771 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22772 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22774 (eval $ac_try) 2>&5
22776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22777 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22779 (eval $ac_try) 2>&5
22781 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22782 (exit $ac_status); }; }; then
22785 $as_echo "$as_me: failed program was:" >&5
22786 sed 's/^/| /' conftest.
$ac_ext >&5
22795 if test $rc -ne 0; then :
22797 { $as_echo "$as_me:$LINENO: result: no" >&5
22798 $as_echo "no" >&6; }
22801 if test "x$enable_linux_builtin" != xyes
; then
22803 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
22804 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22806 if test $rc -ne 0; then
22808 for file in mm
/backing-dev.c
; do
22809 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
22810 "$LINUX/$file" 2>/dev
/null
22812 if test $rc -eq 0; then
22817 if test $export -eq 0; then :
22827 if test $rc -ne 0; then :
22829 { $as_echo "$as_me:$LINENO: result: no" >&5
22830 $as_echo "no" >&6; }
22834 { $as_echo "$as_me:$LINENO: result: yes" >&5
22835 $as_echo "yes" >&6; }
22837 cat >>confdefs.h
<<\_ACEOF
22838 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
22847 if test "x$enable_linux_builtin" != xyes
; then
22849 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
22850 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22852 if test $rc -ne 0; then
22854 for file in mm
/backing-dev.c
; do
22855 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
22856 "$LINUX/$file" 2>/dev
/null
22858 if test $rc -eq 0; then
22863 if test $export -eq 0; then :
22873 if test $rc -ne 0; then :
22875 { $as_echo "$as_me:$LINENO: result: no" >&5
22876 $as_echo "no" >&6; }
22877 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
22878 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
22882 cat confdefs.h
- <<_ACEOF >conftest.c
22885 cat confdefs.h
>>conftest.
$ac_ext
22886 cat >>conftest.
$ac_ext <<_ACEOF
22887 /* end confdefs.h. */
22890 #include <linux/backing-dev.h>
22891 struct backing_dev_info bdi;
22897 char *name = "bdi";
22898 unsigned int cap = BDI_CAP_MAP_COPY;
22899 int error __attribute__((unused)) =
22900 bdi_setup_and_register(&bdi, name, cap);
22910 cat - <<_ACEOF >conftest.h
22915 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22916 echo "obj-m := conftest.o" >build
/Makefile
22918 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22919 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22921 (eval $ac_try) 2>&5
22923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22926 (eval $ac_try) 2>&5
22928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929 (exit $ac_status); }; }; then
22932 $as_echo "$as_me: failed program was:" >&5
22933 sed 's/^/| /' conftest.
$ac_ext >&5
22942 if test $rc -ne 0; then :
22944 { $as_echo "$as_me:$LINENO: result: no" >&5
22945 $as_echo "no" >&6; }
22948 if test "x$enable_linux_builtin" != xyes
; then
22950 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
22951 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22953 if test $rc -ne 0; then
22955 for file in mm
/backing-dev.c
; do
22956 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
22957 "$LINUX/$file" 2>/dev
/null
22959 if test $rc -eq 0; then
22964 if test $export -eq 0; then :
22974 if test $rc -ne 0; then :
22976 { $as_echo "$as_me:$LINENO: result: no" >&5
22977 $as_echo "no" >&6; }
22981 { $as_echo "$as_me:$LINENO: result: yes" >&5
22982 $as_echo "yes" >&6; }
22984 cat >>confdefs.h
<<\_ACEOF
22985 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
22995 { $as_echo "$as_me:$LINENO: result: yes" >&5
22996 $as_echo "yes" >&6; }
22998 cat >>confdefs.h
<<\_ACEOF
22999 #define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1
23008 if test "x$enable_linux_builtin" != xyes
; then
23010 grep -q -E '[[:space:]]super_setup_bdi_name[[:space:]]' \
23011 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23013 if test $rc -ne 0; then
23015 for file in fs
/super.c
; do
23016 grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \
23017 "$LINUX/$file" 2>/dev
/null
23019 if test $rc -eq 0; then
23024 if test $export -eq 0; then :
23034 if test $rc -ne 0; then :
23036 { $as_echo "$as_me:$LINENO: result: no" >&5
23037 $as_echo "no" >&6; }
23038 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 2 args" >&5
23039 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
23043 cat confdefs.h
- <<_ACEOF >conftest.c
23046 cat confdefs.h
>>conftest.
$ac_ext
23047 cat >>conftest.
$ac_ext <<_ACEOF
23048 /* end confdefs.h. */
23051 #include <linux/backing-dev.h>
23052 struct backing_dev_info bdi;
23058 char *name = "bdi";
23059 int error __attribute__((unused)) =
23060 bdi_setup_and_register(&bdi, name);
23070 cat - <<_ACEOF >conftest.h
23075 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23076 echo "obj-m := conftest.o" >build
/Makefile
23078 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23079 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23081 (eval $ac_try) 2>&5
23083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23086 (eval $ac_try) 2>&5
23088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23089 (exit $ac_status); }; }; then
23092 $as_echo "$as_me: failed program was:" >&5
23093 sed 's/^/| /' conftest.
$ac_ext >&5
23102 if test $rc -ne 0; then :
23104 { $as_echo "$as_me:$LINENO: result: no" >&5
23105 $as_echo "no" >&6; }
23106 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
23107 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23111 cat confdefs.h
- <<_ACEOF >conftest.c
23114 cat confdefs.h
>>conftest.
$ac_ext
23115 cat >>conftest.
$ac_ext <<_ACEOF
23116 /* end confdefs.h. */
23119 #include <linux/backing-dev.h>
23120 struct backing_dev_info bdi;
23126 char *name = "bdi";
23127 unsigned int cap = BDI_CAP_MAP_COPY;
23128 int error __attribute__((unused)) =
23129 bdi_setup_and_register(&bdi, name, cap);
23139 cat - <<_ACEOF >conftest.h
23144 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23145 echo "obj-m := conftest.o" >build
/Makefile
23147 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23148 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23150 (eval $ac_try) 2>&5
23152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23153 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23155 (eval $ac_try) 2>&5
23157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158 (exit $ac_status); }; }; then
23161 $as_echo "$as_me: failed program was:" >&5
23162 sed 's/^/| /' conftest.
$ac_ext >&5
23171 if test $rc -ne 0; then :
23173 { $as_echo "$as_me:$LINENO: result: no" >&5
23174 $as_echo "no" >&6; }
23177 if test "x$enable_linux_builtin" != xyes
; then
23179 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23180 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23182 if test $rc -ne 0; then
23184 for file in mm
/backing-dev.c
; do
23185 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23186 "$LINUX/$file" 2>/dev
/null
23188 if test $rc -eq 0; then
23193 if test $export -eq 0; then :
23203 if test $rc -ne 0; then :
23205 { $as_echo "$as_me:$LINENO: result: no" >&5
23206 $as_echo "no" >&6; }
23210 { $as_echo "$as_me:$LINENO: result: yes" >&5
23211 $as_echo "yes" >&6; }
23213 cat >>confdefs.h
<<\_ACEOF
23214 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
23223 if test "x$enable_linux_builtin" != xyes
; then
23225 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23226 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23228 if test $rc -ne 0; then
23230 for file in mm
/backing-dev.c
; do
23231 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23232 "$LINUX/$file" 2>/dev
/null
23234 if test $rc -eq 0; then
23239 if test $export -eq 0; then :
23249 if test $rc -ne 0; then :
23251 { $as_echo "$as_me:$LINENO: result: no" >&5
23252 $as_echo "no" >&6; }
23253 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
23254 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23258 cat confdefs.h
- <<_ACEOF >conftest.c
23261 cat confdefs.h
>>conftest.
$ac_ext
23262 cat >>conftest.
$ac_ext <<_ACEOF
23263 /* end confdefs.h. */
23266 #include <linux/backing-dev.h>
23267 struct backing_dev_info bdi;
23273 char *name = "bdi";
23274 unsigned int cap = BDI_CAP_MAP_COPY;
23275 int error __attribute__((unused)) =
23276 bdi_setup_and_register(&bdi, name, cap);
23286 cat - <<_ACEOF >conftest.h
23291 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23292 echo "obj-m := conftest.o" >build
/Makefile
23294 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23295 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23297 (eval $ac_try) 2>&5
23299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23300 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23302 (eval $ac_try) 2>&5
23304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23305 (exit $ac_status); }; }; then
23308 $as_echo "$as_me: failed program was:" >&5
23309 sed 's/^/| /' conftest.
$ac_ext >&5
23318 if test $rc -ne 0; then :
23320 { $as_echo "$as_me:$LINENO: result: no" >&5
23321 $as_echo "no" >&6; }
23324 if test "x$enable_linux_builtin" != xyes
; then
23326 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23327 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23329 if test $rc -ne 0; then
23331 for file in mm
/backing-dev.c
; do
23332 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23333 "$LINUX/$file" 2>/dev
/null
23335 if test $rc -eq 0; then
23340 if test $export -eq 0; then :
23350 if test $rc -ne 0; then :
23352 { $as_echo "$as_me:$LINENO: result: no" >&5
23353 $as_echo "no" >&6; }
23357 { $as_echo "$as_me:$LINENO: result: yes" >&5
23358 $as_echo "yes" >&6; }
23360 cat >>confdefs.h
<<\_ACEOF
23361 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
23371 { $as_echo "$as_me:$LINENO: result: yes" >&5
23372 $as_echo "yes" >&6; }
23374 cat >>confdefs.h
<<\_ACEOF
23375 #define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1
23385 { $as_echo "$as_me:$LINENO: result: yes" >&5
23386 $as_echo "yes" >&6; }
23388 cat >>confdefs.h
<<\_ACEOF
23389 #define HAVE_SUPER_SETUP_BDI_NAME 1
23398 { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
23399 $as_echo_n "checking whether set_nlink() is available... " >&6; }
23402 cat confdefs.h
- <<_ACEOF >conftest.c
23405 cat confdefs.h
>>conftest.
$ac_ext
23406 cat >>conftest.
$ac_ext <<_ACEOF
23407 /* end confdefs.h. */
23410 #include <linux/fs.h>
23417 unsigned int link = 0;
23418 (void) set_nlink(&node, link);
23428 cat - <<_ACEOF >conftest.h
23433 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23434 echo "obj-m := conftest.o" >build
/Makefile
23436 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23437 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23439 (eval $ac_try) 2>&5
23441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23442 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23444 (eval $ac_try) 2>&5
23446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447 (exit $ac_status); }; }; then
23449 { $as_echo "$as_me:$LINENO: result: yes" >&5
23450 $as_echo "yes" >&6; }
23452 cat >>confdefs.h
<<\_ACEOF
23453 #define HAVE_SET_NLINK 1
23458 $as_echo "$as_me: failed program was:" >&5
23459 sed 's/^/| /' conftest.
$ac_ext >&5
23461 { $as_echo "$as_me:$LINENO: result: no" >&5
23462 $as_echo "no" >&6; }
23473 { $as_echo "$as_me:$LINENO: checking whether elevator_change() is available" >&5
23474 $as_echo_n "checking whether elevator_change() is available... " >&6; }
23475 tmp_flags
="$EXTRA_KCFLAGS"
23476 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
23479 cat confdefs.h
- <<_ACEOF >conftest.c
23482 cat confdefs.h
>>conftest.
$ac_ext
23483 cat >>conftest.
$ac_ext <<_ACEOF
23484 /* end confdefs.h. */
23487 #include <linux/blkdev.h>
23488 #include <linux/elevator.h>
23495 struct request_queue *q = NULL;
23496 char *elevator = NULL;
23497 ret = elevator_change(q, elevator);
23507 cat - <<_ACEOF >conftest.h
23512 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23513 echo "obj-m := conftest.o" >build
/Makefile
23515 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23516 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23518 (eval $ac_try) 2>&5
23520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23523 (eval $ac_try) 2>&5
23525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23526 (exit $ac_status); }; }; then
23528 { $as_echo "$as_me:$LINENO: result: yes" >&5
23529 $as_echo "yes" >&6; }
23531 cat >>confdefs.h
<<\_ACEOF
23532 #define HAVE_ELEVATOR_CHANGE 1
23537 $as_echo "$as_me: failed program was:" >&5
23538 sed 's/^/| /' conftest.
$ac_ext >&5
23540 { $as_echo "$as_me:$LINENO: result: no" >&5
23541 $as_echo "no" >&6; }
23550 EXTRA_KCFLAGS
="$tmp_flags"
23552 { $as_echo "$as_me:$LINENO: checking whether sget() wants 5 args" >&5
23553 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
23556 cat confdefs.h
- <<_ACEOF >conftest.c
23559 cat confdefs.h
>>conftest.
$ac_ext
23560 cat >>conftest.
$ac_ext <<_ACEOF
23561 /* end confdefs.h. */
23564 #include <linux/fs.h>
23570 struct file_system_type *type = NULL;
23571 int (*test)(struct super_block *,void *) = NULL;
23572 int (*set)(struct super_block *,void *) = NULL;
23575 (void) sget(type, test, set, flags, data);
23585 cat - <<_ACEOF >conftest.h
23590 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23591 echo "obj-m := conftest.o" >build
/Makefile
23593 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23594 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23596 (eval $ac_try) 2>&5
23598 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23601 (eval $ac_try) 2>&5
23603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23604 (exit $ac_status); }; }; then
23606 { $as_echo "$as_me:$LINENO: result: yes" >&5
23607 $as_echo "yes" >&6; }
23609 cat >>confdefs.h
<<\_ACEOF
23610 #define HAVE_5ARG_SGET 1
23615 $as_echo "$as_me: failed program was:" >&5
23616 sed 's/^/| /' conftest.
$ac_ext >&5
23618 { $as_echo "$as_me:$LINENO: result: no" >&5
23619 $as_echo "no" >&6; }
23629 { $as_echo "$as_me:$LINENO: checking whether lseek_execute() is available" >&5
23630 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
23634 cat confdefs.h
- <<_ACEOF >conftest.c
23637 cat confdefs.h
>>conftest.
$ac_ext
23638 cat >>conftest.
$ac_ext <<_ACEOF
23639 /* end confdefs.h. */
23642 #include <linux/fs.h>
23648 struct file *fp __attribute__ ((unused)) = NULL;
23649 struct inode *ip __attribute__ ((unused)) = NULL;
23650 loff_t offset __attribute__ ((unused)) = 0;
23651 loff_t maxsize __attribute__ ((unused)) = 0;
23653 lseek_execute(fp, ip, offset, maxsize);
23663 cat - <<_ACEOF >conftest.h
23668 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23669 echo "obj-m := conftest.o" >build
/Makefile
23671 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23672 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23674 (eval $ac_try) 2>&5
23676 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23677 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23679 (eval $ac_try) 2>&5
23681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682 (exit $ac_status); }; }; then
23685 $as_echo "$as_me: failed program was:" >&5
23686 sed 's/^/| /' conftest.
$ac_ext >&5
23695 if test $rc -ne 0; then :
23697 { $as_echo "$as_me:$LINENO: result: no" >&5
23698 $as_echo "no" >&6; }
23701 if test "x$enable_linux_builtin" != xyes
; then
23703 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
23704 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23706 if test $rc -ne 0; then
23708 for file in fs
/read_write.c
; do
23709 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
23710 "$LINUX/$file" 2>/dev
/null
23712 if test $rc -eq 0; then
23717 if test $export -eq 0; then :
23727 if test $rc -ne 0; then :
23729 { $as_echo "$as_me:$LINENO: result: no" >&5
23730 $as_echo "no" >&6; }
23734 { $as_echo "$as_me:$LINENO: result: yes" >&5
23735 $as_echo "yes" >&6; }
23737 cat >>confdefs.h
<<\_ACEOF
23738 #define HAVE_LSEEK_EXECUTE 1
23747 { $as_echo "$as_me:$LINENO: checking whether fops->iterate_shared() is available" >&5
23748 $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
23751 cat confdefs.h
- <<_ACEOF >conftest.c
23754 cat confdefs.h
>>conftest.
$ac_ext
23755 cat >>conftest.
$ac_ext <<_ACEOF
23756 /* end confdefs.h. */
23759 #include <linux/fs.h>
23760 int iterate(struct file *filp, struct dir_context * context)
23763 static const struct file_operations fops
23764 __attribute__ ((unused)) = {
23765 .iterate_shared = iterate,
23781 cat - <<_ACEOF >conftest.h
23786 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23787 echo "obj-m := conftest.o" >build
/Makefile
23789 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23790 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23792 (eval $ac_try) 2>&5
23794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23795 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23797 (eval $ac_try) 2>&5
23799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23800 (exit $ac_status); }; }; then
23802 { $as_echo "$as_me:$LINENO: result: yes" >&5
23803 $as_echo "yes" >&6; }
23805 cat >>confdefs.h
<<\_ACEOF
23806 #define HAVE_VFS_ITERATE_SHARED 1
23811 $as_echo "$as_me: failed program was:" >&5
23812 sed 's/^/| /' conftest.
$ac_ext >&5
23814 { $as_echo "$as_me:$LINENO: result: no" >&5
23815 $as_echo "no" >&6; }
23817 { $as_echo "$as_me:$LINENO: checking whether fops->iterate() is available" >&5
23818 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
23821 cat confdefs.h
- <<_ACEOF >conftest.c
23824 cat confdefs.h
>>conftest.
$ac_ext
23825 cat >>conftest.
$ac_ext <<_ACEOF
23826 /* end confdefs.h. */
23829 #include <linux/fs.h>
23830 int iterate(struct file *filp, struct dir_context * context)
23833 static const struct file_operations fops
23834 __attribute__ ((unused)) = {
23835 .iterate = iterate,
23851 cat - <<_ACEOF >conftest.h
23856 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23857 echo "obj-m := conftest.o" >build
/Makefile
23859 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23860 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23862 (eval $ac_try) 2>&5
23864 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23865 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23867 (eval $ac_try) 2>&5
23869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23870 (exit $ac_status); }; }; then
23872 { $as_echo "$as_me:$LINENO: result: yes" >&5
23873 $as_echo "yes" >&6; }
23875 cat >>confdefs.h
<<\_ACEOF
23876 #define HAVE_VFS_ITERATE 1
23881 $as_echo "$as_me: failed program was:" >&5
23882 sed 's/^/| /' conftest.
$ac_ext >&5
23884 { $as_echo "$as_me:$LINENO: result: no" >&5
23885 $as_echo "no" >&6; }
23887 { $as_echo "$as_me:$LINENO: checking whether fops->readdir() is available" >&5
23888 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
23891 cat confdefs.h
- <<_ACEOF >conftest.c
23894 cat confdefs.h
>>conftest.
$ac_ext
23895 cat >>conftest.
$ac_ext <<_ACEOF
23896 /* end confdefs.h. */
23899 #include <linux/fs.h>
23900 int readdir(struct file *filp, void *entry, filldir_t func)
23903 static const struct file_operations fops
23904 __attribute__ ((unused)) = {
23905 .readdir = readdir,
23921 cat - <<_ACEOF >conftest.h
23926 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23927 echo "obj-m := conftest.o" >build
/Makefile
23929 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23930 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23932 (eval $ac_try) 2>&5
23934 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23935 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23937 (eval $ac_try) 2>&5
23939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23940 (exit $ac_status); }; }; then
23942 { $as_echo "$as_me:$LINENO: result: yes" >&5
23943 $as_echo "yes" >&6; }
23945 cat >>confdefs.h
<<\_ACEOF
23946 #define HAVE_VFS_READDIR 1
23951 $as_echo "$as_me: failed program was:" >&5
23952 sed 's/^/| /' conftest.
$ac_ext >&5
23954 { { $as_echo "$as_me:$LINENO: error: no; file a bug report with ZFSOnLinux" >&5
23955 $as_echo "$as_me: error: no; file a bug report with ZFSOnLinux" >&2;}
23956 { (exit 1); exit 1; }; }
23982 { $as_echo "$as_me:$LINENO: checking whether fops->read/write_iter() are available" >&5
23983 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
23986 cat confdefs.h
- <<_ACEOF >conftest.c
23989 cat confdefs.h
>>conftest.
$ac_ext
23990 cat >>conftest.
$ac_ext <<_ACEOF
23991 /* end confdefs.h. */
23994 #include <linux/fs.h>
23996 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
23998 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
24001 static const struct file_operations
24002 fops __attribute__ ((unused)) = {
24003 .read_iter = test_read,
24004 .write_iter = test_write,
24020 cat - <<_ACEOF >conftest.h
24025 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24026 echo "obj-m := conftest.o" >build
/Makefile
24028 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24029 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24031 (eval $ac_try) 2>&5
24033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24034 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24036 (eval $ac_try) 2>&5
24038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24039 (exit $ac_status); }; }; then
24041 { $as_echo "$as_me:$LINENO: result: yes" >&5
24042 $as_echo "yes" >&6; }
24044 cat >>confdefs.h
<<\_ACEOF
24045 #define HAVE_VFS_RW_ITERATE 1
24049 { $as_echo "$as_me:$LINENO: checking whether new_sync_read() is available" >&5
24050 $as_echo_n "checking whether new_sync_read() is available... " >&6; }
24053 cat confdefs.h
- <<_ACEOF >conftest.c
24056 cat confdefs.h
>>conftest.
$ac_ext
24057 cat >>conftest.
$ac_ext <<_ACEOF
24058 /* end confdefs.h. */
24061 #include <linux/fs.h>
24067 new_sync_read(NULL, NULL, 0, NULL);
24077 cat - <<_ACEOF >conftest.h
24082 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24083 echo "obj-m := conftest.o" >build
/Makefile
24085 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24086 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24088 (eval $ac_try) 2>&5
24090 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24091 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24093 (eval $ac_try) 2>&5
24095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24096 (exit $ac_status); }; }; then
24098 { $as_echo "$as_me:$LINENO: result: yes" >&5
24099 $as_echo "yes" >&6; }
24101 cat >>confdefs.h
<<\_ACEOF
24102 #define HAVE_NEW_SYNC_READ 1
24107 $as_echo "$as_me: failed program was:" >&5
24108 sed 's/^/| /' conftest.
$ac_ext >&5
24110 { $as_echo "$as_me:$LINENO: result: no" >&5
24111 $as_echo "no" >&6; }
24123 $as_echo "$as_me: failed program was:" >&5
24124 sed 's/^/| /' conftest.
$ac_ext >&5
24126 { $as_echo "$as_me:$LINENO: result: no" >&5
24127 $as_echo "no" >&6; }
24137 { $as_echo "$as_me:$LINENO: checking whether generic_write_checks() takes kiocb" >&5
24138 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
24141 cat confdefs.h
- <<_ACEOF >conftest.c
24144 cat confdefs.h
>>conftest.
$ac_ext
24145 cat >>conftest.
$ac_ext <<_ACEOF
24146 /* end confdefs.h. */
24149 #include <linux/fs.h>
24156 struct kiocb *iocb = NULL;
24157 struct iov_iter *iov = NULL;
24158 generic_write_checks(iocb, iov);
24168 cat - <<_ACEOF >conftest.h
24173 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24174 echo "obj-m := conftest.o" >build
/Makefile
24176 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24177 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24179 (eval $ac_try) 2>&5
24181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24182 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24184 (eval $ac_try) 2>&5
24186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24187 (exit $ac_status); }; }; then
24189 { $as_echo "$as_me:$LINENO: result: yes" >&5
24190 $as_echo "yes" >&6; }
24192 cat >>confdefs.h
<<\_ACEOF
24193 #define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1
24198 $as_echo "$as_me: failed program was:" >&5
24199 sed 's/^/| /' conftest.
$ac_ext >&5
24201 { $as_echo "$as_me:$LINENO: result: no" >&5
24202 $as_echo "no" >&6; }
24213 { $as_echo "$as_me:$LINENO: checking whether kmap_atomic wants 1 args" >&5
24214 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
24217 cat confdefs.h
- <<_ACEOF >conftest.c
24220 cat confdefs.h
>>conftest.
$ac_ext
24221 cat >>conftest.
$ac_ext <<_ACEOF
24222 /* end confdefs.h. */
24225 #include <linux/pagemap.h>
24232 kmap_atomic(&page);
24242 cat - <<_ACEOF >conftest.h
24247 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24248 echo "obj-m := conftest.o" >build
/Makefile
24250 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24251 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24253 (eval $ac_try) 2>&5
24255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24256 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24258 (eval $ac_try) 2>&5
24260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24261 (exit $ac_status); }; }; then
24263 { $as_echo "$as_me:$LINENO: result: yes" >&5
24264 $as_echo "yes" >&6; }
24266 cat >>confdefs.h
<<\_ACEOF
24267 #define HAVE_1ARG_KMAP_ATOMIC 1
24272 $as_echo "$as_me: failed program was:" >&5
24273 sed 's/^/| /' conftest.
$ac_ext >&5
24275 { $as_echo "$as_me:$LINENO: result: no" >&5
24276 $as_echo "no" >&6; }
24287 { $as_echo "$as_me:$LINENO: checking whether follow_down_one() is available" >&5
24288 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
24291 cat confdefs.h
- <<_ACEOF >conftest.c
24294 cat confdefs.h
>>conftest.
$ac_ext
24295 cat >>conftest.
$ac_ext <<_ACEOF
24296 /* end confdefs.h. */
24299 #include <linux/namei.h>
24305 struct path *p = NULL;
24306 follow_down_one(p);
24316 cat - <<_ACEOF >conftest.h
24321 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24322 echo "obj-m := conftest.o" >build
/Makefile
24324 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24325 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
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); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24332 (eval $ac_try) 2>&5
24334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24335 (exit $ac_status); }; }; then
24337 { $as_echo "$as_me:$LINENO: result: yes" >&5
24338 $as_echo "yes" >&6; }
24340 cat >>confdefs.h
<<\_ACEOF
24341 #define HAVE_FOLLOW_DOWN_ONE 1
24346 $as_echo "$as_me: failed program was:" >&5
24347 sed 's/^/| /' conftest.
$ac_ext >&5
24349 { $as_echo "$as_me:$LINENO: result: no" >&5
24350 $as_echo "no" >&6; }
24361 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns int" >&5
24362 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
24365 cat confdefs.h
- <<_ACEOF >conftest.c
24368 cat confdefs.h
>>conftest.
$ac_ext
24369 cat >>conftest.
$ac_ext <<_ACEOF
24370 /* end confdefs.h. */
24373 #include <linux/blkdev.h>
24375 int make_request(struct request_queue *q, struct bio *bio)
24384 blk_queue_make_request(NULL, &make_request);
24394 cat - <<_ACEOF >conftest.h
24399 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24400 echo "obj-m := conftest.o" >build
/Makefile
24402 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24403 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24405 (eval $ac_try) 2>&5
24407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24408 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24410 (eval $ac_try) 2>&5
24412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24413 (exit $ac_status); }; }; then
24415 { $as_echo "$as_me:$LINENO: result: yes" >&5
24416 $as_echo "yes" >&6; }
24418 cat >>confdefs.h
<<\_ACEOF
24419 #define MAKE_REQUEST_FN_RET int
24423 cat >>confdefs.h
<<\_ACEOF
24424 #define HAVE_MAKE_REQUEST_FN_RET_INT 1
24429 $as_echo "$as_me: failed program was:" >&5
24430 sed 's/^/| /' conftest.
$ac_ext >&5
24432 { $as_echo "$as_me:$LINENO: result: no" >&5
24433 $as_echo "no" >&6; }
24434 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns void" >&5
24435 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
24438 cat confdefs.h
- <<_ACEOF >conftest.c
24441 cat confdefs.h
>>conftest.
$ac_ext
24442 cat >>conftest.
$ac_ext <<_ACEOF
24443 /* end confdefs.h. */
24446 #include <linux/blkdev.h>
24448 void make_request(struct request_queue *q, struct bio *bio)
24457 blk_queue_make_request(NULL, &make_request);
24467 cat - <<_ACEOF >conftest.h
24472 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24473 echo "obj-m := conftest.o" >build
/Makefile
24475 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24476 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
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); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24483 (eval $ac_try) 2>&5
24485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24486 (exit $ac_status); }; }; then
24488 { $as_echo "$as_me:$LINENO: result: yes" >&5
24489 $as_echo "yes" >&6; }
24491 cat >>confdefs.h
<<\_ACEOF
24492 #define MAKE_REQUEST_FN_RET void
24497 $as_echo "$as_me: failed program was:" >&5
24498 sed 's/^/| /' conftest.
$ac_ext >&5
24500 { $as_echo "$as_me:$LINENO: result: no" >&5
24501 $as_echo "no" >&6; }
24502 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns blk_qc_t" >&5
24503 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
24506 cat confdefs.h
- <<_ACEOF >conftest.c
24509 cat confdefs.h
>>conftest.
$ac_ext
24510 cat >>conftest.
$ac_ext <<_ACEOF
24511 /* end confdefs.h. */
24514 #include <linux/blkdev.h>
24516 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
24518 return (BLK_QC_T_NONE);
24525 blk_queue_make_request(NULL, &make_request);
24535 cat - <<_ACEOF >conftest.h
24540 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24541 echo "obj-m := conftest.o" >build
/Makefile
24543 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24544 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
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); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24551 (eval $ac_try) 2>&5
24553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24554 (exit $ac_status); }; }; then
24556 { $as_echo "$as_me:$LINENO: result: yes" >&5
24557 $as_echo "yes" >&6; }
24559 cat >>confdefs.h
<<\_ACEOF
24560 #define MAKE_REQUEST_FN_RET blk_qc_t
24564 cat >>confdefs.h
<<\_ACEOF
24565 #define HAVE_MAKE_REQUEST_FN_RET_QC 1
24570 $as_echo "$as_me: failed program was:" >&5
24571 sed 's/^/| /' conftest.
$ac_ext >&5
24573 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
24574 https://github.com/zfsonlinux/zfs/issues/new" >&5
24575 $as_echo "$as_me: error: no - Please file a bug report at
24576 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
24577 { (exit 1); exit 1; }; }
24604 { $as_echo "$as_me:$LINENO: checking whether generic IO accounting symbols are avaliable" >&5
24605 $as_echo_n "checking whether generic IO accounting symbols are avaliable... " >&6; }
24609 cat confdefs.h
- <<_ACEOF >conftest.c
24612 cat confdefs.h
>>conftest.
$ac_ext
24613 cat >>conftest.
$ac_ext <<_ACEOF
24614 /* end confdefs.h. */
24617 #include <linux/bio.h>
24619 void (*generic_start_io_acct_f)(int, unsigned long,
24620 struct hd_struct *) = &generic_start_io_acct;
24621 void (*generic_end_io_acct_f)(int, struct hd_struct *,
24622 unsigned long) = &generic_end_io_acct;
24628 generic_start_io_acct(0, 0, NULL);
24629 generic_end_io_acct(0, NULL, 0);
24639 cat - <<_ACEOF >conftest.h
24644 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24645 echo "obj-m := conftest.o" >build
/Makefile
24647 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24648 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24650 (eval $ac_try) 2>&5
24652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24653 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24655 (eval $ac_try) 2>&5
24657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24658 (exit $ac_status); }; }; then
24661 $as_echo "$as_me: failed program was:" >&5
24662 sed 's/^/| /' conftest.
$ac_ext >&5
24671 if test $rc -ne 0; then :
24673 { $as_echo "$as_me:$LINENO: result: no" >&5
24674 $as_echo "no" >&6; }
24677 if test "x$enable_linux_builtin" != xyes
; then
24679 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
24680 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
24682 if test $rc -ne 0; then
24684 for file in block
/bio.c
; do
24685 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
24686 "$LINUX/$file" 2>/dev
/null
24688 if test $rc -eq 0; then
24693 if test $export -eq 0; then :
24703 if test $rc -ne 0; then :
24705 { $as_echo "$as_me:$LINENO: result: no" >&5
24706 $as_echo "no" >&6; }
24710 { $as_echo "$as_me:$LINENO: result: yes" >&5
24711 $as_echo "yes" >&6; }
24713 cat >>confdefs.h
<<\_ACEOF
24714 #define HAVE_GENERIC_IO_ACCT 1
24723 { $as_echo "$as_me:$LINENO: checking whether iops->rename() wants flags" >&5
24724 $as_echo_n "checking whether iops->rename() wants flags... " >&6; }
24727 cat confdefs.h
- <<_ACEOF >conftest.c
24730 cat confdefs.h
>>conftest.
$ac_ext
24731 cat >>conftest.
$ac_ext <<_ACEOF
24732 /* end confdefs.h. */
24735 #include <linux/fs.h>
24736 int rename_fn(struct inode *sip, struct dentry *sdp,
24737 struct inode *tip, struct dentry *tdp,
24738 unsigned int flags) { return 0; }
24740 static const struct inode_operations
24741 iops __attribute__ ((unused)) = {
24742 .rename = rename_fn,
24758 cat - <<_ACEOF >conftest.h
24763 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24764 echo "obj-m := conftest.o" >build
/Makefile
24766 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24767 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24769 (eval $ac_try) 2>&5
24771 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24772 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24774 (eval $ac_try) 2>&5
24776 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24777 (exit $ac_status); }; }; then
24779 { $as_echo "$as_me:$LINENO: result: yes" >&5
24780 $as_echo "yes" >&6; }
24782 cat >>confdefs.h
<<\_ACEOF
24783 #define HAVE_RENAME_WANTS_FLAGS 1
24788 $as_echo "$as_me: failed program was:" >&5
24789 sed 's/^/| /' conftest.
$ac_ext >&5
24791 { $as_echo "$as_me:$LINENO: result: no" >&5
24792 $as_echo "no" >&6; }
24803 { $as_echo "$as_me:$LINENO: checking whether generic_setxattr() exists" >&5
24804 $as_echo_n "checking whether generic_setxattr() exists... " >&6; }
24807 cat confdefs.h
- <<_ACEOF >conftest.c
24810 cat confdefs.h
>>conftest.
$ac_ext
24811 cat >>conftest.
$ac_ext <<_ACEOF
24812 /* end confdefs.h. */
24815 #include <linux/fs.h>
24816 #include <linux/xattr.h>
24818 static const struct inode_operations
24819 iops __attribute__ ((unused)) = {
24820 .setxattr = generic_setxattr
24836 cat - <<_ACEOF >conftest.h
24841 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24842 echo "obj-m := conftest.o" >build
/Makefile
24844 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24845 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24847 (eval $ac_try) 2>&5
24849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24850 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24852 (eval $ac_try) 2>&5
24854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24855 (exit $ac_status); }; }; then
24857 { $as_echo "$as_me:$LINENO: result: yes" >&5
24858 $as_echo "yes" >&6; }
24860 cat >>confdefs.h
<<\_ACEOF
24861 #define HAVE_GENERIC_SETXATTR 1
24866 $as_echo "$as_me: failed program was:" >&5
24867 sed 's/^/| /' conftest.
$ac_ext >&5
24869 { $as_echo "$as_me:$LINENO: result: no" >&5
24870 $as_echo "no" >&6; }
24880 { $as_echo "$as_me:$LINENO: checking whether current_time() exists" >&5
24881 $as_echo_n "checking whether current_time() exists... " >&6; }
24885 cat confdefs.h
- <<_ACEOF >conftest.c
24888 cat confdefs.h
>>conftest.
$ac_ext
24889 cat >>conftest.
$ac_ext <<_ACEOF
24890 /* end confdefs.h. */
24893 #include <linux/fs.h>
24900 struct timespec now __attribute__ ((unused));
24902 now = current_time(&ip);
24912 cat - <<_ACEOF >conftest.h
24917 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24918 echo "obj-m := conftest.o" >build
/Makefile
24920 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24921 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24923 (eval $ac_try) 2>&5
24925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24926 (exit $ac_status); }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24928 (eval $ac_try) 2>&5
24930 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24931 (exit $ac_status); }; }; then
24934 $as_echo "$as_me: failed program was:" >&5
24935 sed 's/^/| /' conftest.
$ac_ext >&5
24944 if test $rc -ne 0; then :
24946 { $as_echo "$as_me:$LINENO: result: no" >&5
24947 $as_echo "no" >&6; }
24950 if test "x$enable_linux_builtin" != xyes
; then
24952 grep -q -E '[[:space:]]current_time[[:space:]]' \
24953 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
24955 if test $rc -ne 0; then
24957 for file in fs
/inode.c
; do
24958 grep -q -E "EXPORT_SYMBOL.*(current_time)" \
24959 "$LINUX/$file" 2>/dev
/null
24961 if test $rc -eq 0; then
24966 if test $export -eq 0; then :
24976 if test $rc -ne 0; then :
24978 { $as_echo "$as_me:$LINENO: result: no" >&5
24979 $as_echo "no" >&6; }
24983 { $as_echo "$as_me:$LINENO: result: yes" >&5
24984 $as_echo "yes" >&6; }
24986 cat >>confdefs.h
<<\_ACEOF
24987 #define HAVE_CURRENT_TIME 1
24996 if test "$LINUX_OBJ" != "$LINUX"; then
24998 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
25005 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
25006 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
25007 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
25008 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
25015 # Check whether --with-mounthelperdir was given.
25016 if test "${with_mounthelperdir+set}" = set; then
25017 withval
=$with_mounthelperdir; mounthelperdir
=$withval
25019 mounthelperdir
=/sbin
25026 { $as_echo "$as_me:$LINENO: checking for udev directories" >&5
25027 $as_echo_n "checking for udev directories... " >&6; }
25029 # Check whether --with-udevdir was given.
25030 if test "${with_udevdir+set}" = set; then
25031 withval
=$with_udevdir; udevdir
=$withval
25037 if test "x$udevdir" = xcheck
; then
25040 path2
=/usr
/lib
/udev
25043 if test -d "$path1"; then
25047 if test -d "$path2"; then
25061 # Check whether --with-udevruledir was given.
25062 if test "${with_udevruledir+set}" = set; then
25063 withval
=$with_udevruledir; udevruledir
=$withval
25065 udevruledir
="${udevdir}/rules.d"
25071 { $as_echo "$as_me:$LINENO: result: $udevdir;$udevruledir" >&5
25072 $as_echo "$udevdir;$udevruledir" >&6; }
25075 # Check whether --enable-systemd was given.
25076 if test "${enable_systemd+set}" = set; then
25077 enableval
=$enable_systemd;
25084 # Check whether --with-systemdunitdir was given.
25085 if test "${with_systemdunitdir+set}" = set; then
25086 withval
=$with_systemdunitdir; systemdunitdir
=$withval
25088 systemdunitdir
=/usr
/lib
/systemd
/system
25093 # Check whether --with-systemdpresetdir was given.
25094 if test "${with_systemdpresetdir+set}" = set; then
25095 withval
=$with_systemdpresetdir; systemdpresetdir
=$withval
25097 systemdpresetdir
=/usr
/lib
/systemd
/system-preset
25102 # Check whether --with-systemdmodulesloaddir was given.
25103 if test "${with_systemdmodulesloaddir+set}" = set; then
25104 withval
=$with_systemdmodulesloaddir; systemdmoduleloaddir
=$withval
25106 systemdmodulesloaddir
=/usr
/lib
/modules-load.d
25111 if test "x$enable_systemd" = xyes
; then
25113 ZFS_INIT_SYSTEMD
=systemd
25114 ZFS_MODULE_LOAD
=modules-load.d
25115 modulesloaddir
=$systemdmodulesloaddir
25127 # Check whether --enable-sysvinit was given.
25128 if test "${enable_sysvinit+set}" = set; then
25129 enableval
=$enable_sysvinit;
25131 enable_sysvinit
=yes
25135 if test "x$enable_sysvinit" = xyes
; then
25136 ZFS_INIT_SYSV
=init.d
25143 { $as_echo "$as_me:$LINENO: checking for dracut directory" >&5
25144 $as_echo_n "checking for dracut directory... " >&6; }
25146 # Check whether --with-dracutdir was given.
25147 if test "${with_dracutdir+set}" = set; then
25148 withval
=$with_dracutdir; dracutdir
=$withval
25154 if test "x$dracutdir" = xcheck
; then
25156 path1
=/usr
/share
/dracut
25157 path2
=/usr
/lib
/dracut
25160 if test -d "$path1"; then
25164 if test -d "$path2"; then
25167 dracutdir
="$default"
25178 { $as_echo "$as_me:$LINENO: result: $dracutdir" >&5
25179 $as_echo "$dracutdir" >&6; }
25182 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
25183 $as_echo_n "checking for target asm dir... " >&6; }
25184 TARGET_ARCH
=`echo ${target_cpu} | sed -e s/i.86/i386/`
25186 case $TARGET_ARCH in
25188 TARGET_ASM_DIR
=asm-
${TARGET_ARCH}
25191 TARGET_ASM_DIR
=asm-generic
25196 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
25197 $as_echo "$TARGET_ASM_DIR" >&6; }
25202 if test "${ac_cv_header_zlib_h+set}" = set; then
25203 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
25204 $as_echo_n "checking for zlib.h... " >&6; }
25205 if test "${ac_cv_header_zlib_h+set}" = set; then
25206 $as_echo_n "(cached) " >&6
25208 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25209 $as_echo "$ac_cv_header_zlib_h" >&6; }
25211 # Is the header compilable?
25212 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
25213 $as_echo_n "checking zlib.h usability... " >&6; }
25214 cat >conftest.
$ac_ext <<_ACEOF
25217 cat confdefs.h
>>conftest.
$ac_ext
25218 cat >>conftest.
$ac_ext <<_ACEOF
25219 /* end confdefs.h. */
25220 $ac_includes_default
25223 rm -f conftest.
$ac_objext
25224 if { (ac_try
="$ac_compile"
25225 case "(($ac_try" in
25226 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25227 *) ac_try_echo=$ac_try;;
25229 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25230 $as_echo "$ac_try_echo") >&5
25231 (eval "$ac_compile") 2>conftest.er1
25233 grep -v '^ *+' conftest.er1 >conftest.err
25235 cat conftest.err >&5
25236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25237 (exit $ac_status); } && {
25238 test -z "$ac_c_werror_flag" ||
25239 test ! -s conftest.err
25240 } && test -s conftest.$ac_objext; then
25241 ac_header_compiler=yes
25243 $as_echo "$as_me: failed program was:" >&5
25244 sed 's/^/| /' conftest.$ac_ext >&5
25246 ac_header_compiler=no
25249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25250 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25251 $as_echo "$ac_header_compiler" >&6; }
25253 # Is the header present?
25254 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
25255 $as_echo_n "checking zlib.h presence... " >&6; }
25256 cat >conftest.$ac_ext <<_ACEOF
25259 cat confdefs.h >>conftest.$ac_ext
25260 cat >>conftest.$ac_ext <<_ACEOF
25261 /* end confdefs.h. */
25264 if { (ac_try="$ac_cpp conftest.$ac_ext"
25265 case "(($ac_try" in
25266 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25267 *) ac_try_echo
=$ac_try;;
25269 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25270 $as_echo "$ac_try_echo") >&5
25271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25273 grep -v '^ *+' conftest.er1
>conftest.err
25275 cat conftest.err
>&5
25276 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25277 (exit $ac_status); } >/dev
/null
&& {
25278 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25279 test ! -s conftest.err
25281 ac_header_preproc
=yes
25283 $as_echo "$as_me: failed program was:" >&5
25284 sed 's/^/| /' conftest.
$ac_ext >&5
25286 ac_header_preproc
=no
25289 rm -f conftest.err conftest.
$ac_ext
25290 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25291 $as_echo "$ac_header_preproc" >&6; }
25293 # So? What about this header?
25294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25296 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
25297 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25298 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
25299 $as_echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
25300 ac_header_preproc
=yes
25303 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
25304 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
25305 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
25306 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
25307 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
25308 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
25309 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
25310 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
25311 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
25312 $as_echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
25313 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
25314 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
25318 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
25319 $as_echo_n "checking for zlib.h... " >&6; }
25320 if test "${ac_cv_header_zlib_h+set}" = set; then
25321 $as_echo_n "(cached) " >&6
25323 ac_cv_header_zlib_h
=$ac_header_preproc
25325 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
25326 $as_echo "$ac_cv_header_zlib_h" >&6; }
25329 if test "x$ac_cv_header_zlib_h" = x
""yes; then
25332 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25333 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25334 { { $as_echo "$as_me:$LINENO: error:
25335 *** zlib.h missing, zlib-devel package required
25336 See \`config.log' for more details." >&5
25337 $as_echo "$as_me: error:
25338 *** zlib.h missing, zlib-devel package required
25339 See \`config.log' for more details." >&2;}
25340 { (exit 1); exit 1; }; }; }
25346 { $as_echo "$as_me:$LINENO: checking for compress2 in -lz" >&5
25347 $as_echo_n "checking for compress2 in -lz... " >&6; }
25348 if test "${ac_cv_lib_z_compress2+set}" = set; then
25349 $as_echo_n "(cached) " >&6
25351 ac_check_lib_save_LIBS
=$LIBS
25353 cat >conftest.
$ac_ext <<_ACEOF
25356 cat confdefs.h
>>conftest.
$ac_ext
25357 cat >>conftest.
$ac_ext <<_ACEOF
25358 /* end confdefs.h. */
25360 /* Override any GCC internal prototype to avoid an error.
25361 Use char because int might match the return type of a GCC
25362 builtin and then its argument prototype would still apply. */
25370 return compress2 ();
25375 rm -f conftest.
$ac_objext conftest
$ac_exeext
25376 if { (ac_try
="$ac_link"
25377 case "(($ac_try" in
25378 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25379 *) ac_try_echo=$ac_try;;
25381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25382 $as_echo "$ac_try_echo") >&5
25383 (eval "$ac_link") 2>conftest.er1
25385 grep -v '^ *+' conftest.er1 >conftest.err
25387 cat conftest.err >&5
25388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25389 (exit $ac_status); } && {
25390 test -z "$ac_c_werror_flag" ||
25391 test ! -s conftest.err
25392 } && test -s conftest$ac_exeext && {
25393 test "$cross_compiling" = yes ||
25394 $as_test_x conftest$ac_exeext
25396 ac_cv_lib_z_compress2=yes
25398 $as_echo "$as_me: failed program was:" >&5
25399 sed 's/^/| /' conftest.$ac_ext >&5
25401 ac_cv_lib_z_compress2=no
25404 rm -rf conftest.dSYM
25405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25406 conftest$ac_exeext conftest.$ac_ext
25407 LIBS=$ac_check_lib_save_LIBS
25409 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_compress2" >&5
25410 $as_echo "$ac_cv_lib_z_compress2" >&6; }
25411 if test "x$ac_cv_lib_z_compress2" = x""yes; then
25412 cat >>confdefs.h <<_ACEOF
25413 #define HAVE_LIBZ 1
25419 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25421 { { $as_echo "$as_me:$LINENO: error
:
25422 *** compress2
() missing
, zlib-devel package required
25423 See \
`config.log' for more details." >&5
25424 $as_echo "$as_me: error:
25425 *** compress2() missing, zlib-devel package required
25426 See \`config.log
' for more details." >&2;}
25427 { (exit 1); exit 1; }; }; }
25432 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
25433 $as_echo_n "checking for uncompress in -lz... " >&6; }
25434 if test "${ac_cv_lib_z_uncompress+set}" = set; then
25435 $as_echo_n "(cached) " >&6
25437 ac_check_lib_save_LIBS=$LIBS
25439 cat >conftest.$ac_ext <<_ACEOF
25442 cat confdefs.h >>conftest.$ac_ext
25443 cat >>conftest.$ac_ext <<_ACEOF
25444 /* end confdefs.h. */
25446 /* Override any GCC internal prototype to avoid an error.
25447 Use char because int might match the return type of a GCC
25448 builtin and then its argument prototype would still apply. */
25452 char uncompress ();
25456 return uncompress ();
25461 rm -f conftest.$ac_objext conftest$ac_exeext
25462 if { (ac_try="$ac_link"
25463 case "(($ac_try" in
25464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25465 *) ac_try_echo=$ac_try;;
25467 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25468 $as_echo "$ac_try_echo") >&5
25469 (eval "$ac_link") 2>conftest.er1
25471 grep -v '^
*+' conftest.er1 >conftest.err
25473 cat conftest.err >&5
25474 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25475 (exit $ac_status); } && {
25476 test -z "$ac_c_werror_flag" ||
25477 test ! -s conftest.err
25478 } && test -s conftest$ac_exeext && {
25479 test "$cross_compiling" = yes ||
25480 $as_test_x conftest$ac_exeext
25482 ac_cv_lib_z_uncompress=yes
25484 $as_echo "$as_me: failed program was:" >&5
25485 sed 's
/^
/|
/' conftest.$ac_ext >&5
25487 ac_cv_lib_z_uncompress=no
25490 rm -rf conftest.dSYM
25491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25492 conftest$ac_exeext conftest.$ac_ext
25493 LIBS=$ac_check_lib_save_LIBS
25495 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
25496 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
25497 if test "x$ac_cv_lib_z_uncompress" = x""yes; then
25498 cat >>confdefs.h <<_ACEOF
25499 #define HAVE_LIBZ 1
25505 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25506 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
25507 { { $as_echo "$as_me:$LINENO: error:
25508 *** uncompress() missing, zlib-devel package required
25509 See \`config.log
' for more details." >&5
25510 $as_echo "$as_me: error:
25511 *** uncompress() missing, zlib-devel package required
25512 See \`config.log' for more details.
" >&2;}
25513 { (exit 1); exit 1; }; }; }
25518 { $as_echo "$as_me:$LINENO: checking
for crc32
in -lz" >&5
25519 $as_echo_n "checking
for crc32
in -lz...
" >&6; }
25520 if test "${ac_cv_lib_z_crc32+set}" = set; then
25521 $as_echo_n "(cached
) " >&6
25523 ac_check_lib_save_LIBS=$LIBS
25525 cat >conftest.$ac_ext <<_ACEOF
25528 cat confdefs.h >>conftest.$ac_ext
25529 cat >>conftest.$ac_ext <<_ACEOF
25530 /* end confdefs.h. */
25532 /* Override any GCC internal prototype to avoid an error.
25533 Use char because int might match the return type of a GCC
25534 builtin and then its argument prototype would still apply. */
25547 rm -f conftest.$ac_objext conftest$ac_exeext
25548 if { (ac_try="$ac_link"
25549 case "(($ac_try" in
25550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25551 *) ac_try_echo=$ac_try;;
25553 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25554 $as_echo "$ac_try_echo") >&5
25555 (eval "$ac_link") 2>conftest.er1
25557 grep -v '^ *+' conftest.er1 >conftest.err
25559 cat conftest.err >&5
25560 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25561 (exit $ac_status); } && {
25562 test -z "$ac_c_werror_flag" ||
25563 test ! -s conftest.err
25564 } && test -s conftest$ac_exeext && {
25565 test "$cross_compiling" = yes ||
25566 $as_test_x conftest$ac_exeext
25568 ac_cv_lib_z_crc32=yes
25570 $as_echo "$as_me: failed program was
:" >&5
25571 sed 's/^/| /' conftest.$ac_ext >&5
25573 ac_cv_lib_z_crc32=no
25576 rm -rf conftest.dSYM
25577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25578 conftest$ac_exeext conftest.$ac_ext
25579 LIBS=$ac_check_lib_save_LIBS
25581 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_z_crc32" >&5
25582 $as_echo "$ac_cv_lib_z_crc32" >&6; }
25583 if test "x
$ac_cv_lib_z_crc32" = x""yes; then
25584 cat >>confdefs.h <<_ACEOF
25585 #define HAVE_LIBZ 1
25591 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
25592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25593 { { $as_echo "$as_me:$LINENO: error:
25594 *** crc32() missing, zlib-devel package required
25595 See \`config.log' for more details.
" >&5
25596 $as_echo "$as_me: error
:
25597 *** crc32
() missing
, zlib-devel package required
25598 See \
`config.log' for more details." >&2;}
25599 { (exit 1); exit 1; }; }; }
25606 cat >>confdefs.h <<\_ACEOF
25607 #define HAVE_ZLIB 1
25614 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
25615 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
25616 $as_echo_n "checking for uuid/uuid.h... " >&6; }
25617 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
25618 $as_echo_n "(cached) " >&6
25620 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
25621 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
25623 # Is the header compilable?
25624 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
25625 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
25626 cat >conftest.$ac_ext <<_ACEOF
25629 cat confdefs.h >>conftest.$ac_ext
25630 cat >>conftest.$ac_ext <<_ACEOF
25631 /* end confdefs.h. */
25632 $ac_includes_default
25633 #include <uuid/uuid.h>
25635 rm -f conftest.$ac_objext
25636 if { (ac_try="$ac_compile"
25637 case "(($ac_try" in
25638 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25639 *) ac_try_echo
=$ac_try;;
25641 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25642 $as_echo "$ac_try_echo") >&5
25643 (eval "$ac_compile") 2>conftest.er1
25645 grep -v '^ *+' conftest.er1
>conftest.err
25647 cat conftest.err
>&5
25648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25649 (exit $ac_status); } && {
25650 test -z "$ac_c_werror_flag" ||
25651 test ! -s conftest.err
25652 } && test -s conftest.
$ac_objext; then
25653 ac_header_compiler
=yes
25655 $as_echo "$as_me: failed program was:" >&5
25656 sed 's/^/| /' conftest.
$ac_ext >&5
25658 ac_header_compiler
=no
25661 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25662 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25663 $as_echo "$ac_header_compiler" >&6; }
25665 # Is the header present?
25666 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
25667 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
25668 cat >conftest.
$ac_ext <<_ACEOF
25671 cat confdefs.h
>>conftest.
$ac_ext
25672 cat >>conftest.
$ac_ext <<_ACEOF
25673 /* end confdefs.h. */
25674 #include <uuid/uuid.h>
25676 if { (ac_try
="$ac_cpp conftest.$ac_ext"
25677 case "(($ac_try" in
25678 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25679 *) ac_try_echo=$ac_try;;
25681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25682 $as_echo "$ac_try_echo") >&5
25683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25685 grep -v '^ *+' conftest.er1 >conftest.err
25687 cat conftest.err >&5
25688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25689 (exit $ac_status); } >/dev/null && {
25690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25691 test ! -s conftest.err
25693 ac_header_preproc=yes
25695 $as_echo "$as_me: failed program was:" >&5
25696 sed 's/^/| /' conftest.$ac_ext >&5
25698 ac_header_preproc=no
25701 rm -f conftest.err conftest.$ac_ext
25702 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25703 $as_echo "$ac_header_preproc" >&6; }
25705 # So? What about this header?
25706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25708 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
25709 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25710 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&5
25711 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the compiler's result" >&2;}
25712 ac_header_preproc=yes
25715 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
25716 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
25717 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
25718 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
25719 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
25720 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
25721 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
25722 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
25723 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&5
25724 $as_echo "$as_me: WARNING: uuid/uuid.h: proceeding with the preprocessor's result" >&2;}
25725 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
25726 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
25730 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
25731 $as_echo_n "checking for uuid/uuid.h... " >&6; }
25732 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
25733 $as_echo_n "(cached) " >&6
25735 ac_cv_header_uuid_uuid_h=$ac_header_preproc
25737 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
25738 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
25741 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
25744 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25745 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25746 { { $as_echo "$as_me:$LINENO: error
:
25747 *** uuid
/uuid.h missing
, libuuid-devel package required
25748 See \
`config.log' for more details." >&5
25749 $as_echo "$as_me: error:
25750 *** uuid/uuid.h missing, libuuid-devel package required
25751 See \`config.log
' for more details." >&2;}
25752 { (exit 1); exit 1; }; }; }
25758 { $as_echo "$as_me:$LINENO: checking for uuid_generate in -luuid" >&5
25759 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
25760 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
25761 $as_echo_n "(cached) " >&6
25763 ac_check_lib_save_LIBS=$LIBS
25764 LIBS="-luuid $LIBS"
25765 cat >conftest.$ac_ext <<_ACEOF
25768 cat confdefs.h >>conftest.$ac_ext
25769 cat >>conftest.$ac_ext <<_ACEOF
25770 /* end confdefs.h. */
25772 /* Override any GCC internal prototype to avoid an error.
25773 Use char because int might match the return type of a GCC
25774 builtin and then its argument prototype would still apply. */
25778 char uuid_generate ();
25782 return uuid_generate ();
25787 rm -f conftest.$ac_objext conftest$ac_exeext
25788 if { (ac_try="$ac_link"
25789 case "(($ac_try" in
25790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25791 *) ac_try_echo=$ac_try;;
25793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25794 $as_echo "$ac_try_echo") >&5
25795 (eval "$ac_link") 2>conftest.er1
25797 grep -v '^
*+' conftest.er1 >conftest.err
25799 cat conftest.err >&5
25800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25801 (exit $ac_status); } && {
25802 test -z "$ac_c_werror_flag" ||
25803 test ! -s conftest.err
25804 } && test -s conftest$ac_exeext && {
25805 test "$cross_compiling" = yes ||
25806 $as_test_x conftest$ac_exeext
25808 ac_cv_lib_uuid_uuid_generate=yes
25810 $as_echo "$as_me: failed program was:" >&5
25811 sed 's
/^
/|
/' conftest.$ac_ext >&5
25813 ac_cv_lib_uuid_uuid_generate=no
25816 rm -rf conftest.dSYM
25817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25818 conftest$ac_exeext conftest.$ac_ext
25819 LIBS=$ac_check_lib_save_LIBS
25821 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_generate" >&5
25822 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
25823 if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then
25824 cat >>confdefs.h <<_ACEOF
25825 #define HAVE_LIBUUID 1
25828 LIBS="-luuid $LIBS"
25831 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
25832 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
25833 { { $as_echo "$as_me:$LINENO: error:
25834 *** uuid_generate() missing, libuuid-devel package required
25835 See \`config.log
' for more details." >&5
25836 $as_echo "$as_me: error:
25837 *** uuid_generate() missing, libuuid-devel package required
25838 See \`config.log' for more details.
" >&2;}
25839 { (exit 1); exit 1; }; }; }
25844 { $as_echo "$as_me:$LINENO: checking
for uuid_is_null
in -luuid" >&5
25845 $as_echo_n "checking
for uuid_is_null
in -luuid...
" >&6; }
25846 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
25847 $as_echo_n "(cached
) " >&6
25849 ac_check_lib_save_LIBS=$LIBS
25850 LIBS="-luuid $LIBS"
25851 cat >conftest.$ac_ext <<_ACEOF
25854 cat confdefs.h >>conftest.$ac_ext
25855 cat >>conftest.$ac_ext <<_ACEOF
25856 /* end confdefs.h. */
25858 /* Override any GCC internal prototype to avoid an error.
25859 Use char because int might match the return type of a GCC
25860 builtin and then its argument prototype would still apply. */
25864 char uuid_is_null ();
25868 return uuid_is_null ();
25873 rm -f conftest.$ac_objext conftest$ac_exeext
25874 if { (ac_try="$ac_link"
25875 case "(($ac_try" in
25876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25877 *) ac_try_echo=$ac_try;;
25879 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
25880 $as_echo "$ac_try_echo") >&5
25881 (eval "$ac_link") 2>conftest.er1
25883 grep -v '^ *+' conftest.er1 >conftest.err
25885 cat conftest.err >&5
25886 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
25887 (exit $ac_status); } && {
25888 test -z "$ac_c_werror_flag" ||
25889 test ! -s conftest.err
25890 } && test -s conftest$ac_exeext && {
25891 test "$cross_compiling" = yes ||
25892 $as_test_x conftest$ac_exeext
25894 ac_cv_lib_uuid_uuid_is_null=yes
25896 $as_echo "$as_me: failed program was
:" >&5
25897 sed 's/^/| /' conftest.$ac_ext >&5
25899 ac_cv_lib_uuid_uuid_is_null=no
25902 rm -rf conftest.dSYM
25903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25904 conftest$ac_exeext conftest.$ac_ext
25905 LIBS=$ac_check_lib_save_LIBS
25907 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_uuid_uuid_is_null" >&5
25908 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
25909 if test "x
$ac_cv_lib_uuid_uuid_is_null" = x""yes; then
25910 cat >>confdefs.h <<_ACEOF
25911 #define HAVE_LIBUUID 1
25914 LIBS="-luuid $LIBS"
25917 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
25918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
25919 { { $as_echo "$as_me:$LINENO: error:
25920 *** uuid_is_null() missing, libuuid-devel package required
25921 See \`config.log' for more details.
" >&5
25922 $as_echo "$as_me: error
:
25923 *** uuid_is_null
() missing
, libuuid-devel package required
25924 See \
`config.log' for more details." >&2;}
25925 { (exit 1); exit 1; }; }; }
25932 cat >>confdefs.h <<\_ACEOF
25933 #define HAVE_LIBUUID 1
25939 # Check whether --with-blkid was given.
25940 if test "${with_blkid+set}" = set; then
25941 withval=$with_blkid;
25948 if test "x$with_blkid" = xyes; then
25953 cat >>confdefs.h <<\_ACEOF
25954 #define HAVE_LIBBLKID 1
25961 if test "x$with_blkid" = xcheck; then
25963 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
25964 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
25965 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
25966 $as_echo_n "(cached) " >&6
25968 ac_check_lib_save_LIBS=$LIBS
25969 LIBS="-lblkid $LIBS"
25970 cat >conftest.$ac_ext <<_ACEOF
25973 cat confdefs.h >>conftest.$ac_ext
25974 cat >>conftest.$ac_ext <<_ACEOF
25975 /* end confdefs.h. */
25977 /* Override any GCC internal prototype to avoid an error.
25978 Use char because int might match the return type of a GCC
25979 builtin and then its argument prototype would still apply. */
25983 char blkid_get_cache ();
25987 return blkid_get_cache ();
25992 rm -f conftest.$ac_objext conftest$ac_exeext
25993 if { (ac_try="$ac_link"
25994 case "(($ac_try" in
25995 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25996 *) ac_try_echo
=$ac_try;;
25998 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
25999 $as_echo "$ac_try_echo") >&5
26000 (eval "$ac_link") 2>conftest.er1
26002 grep -v '^ *+' conftest.er1
>conftest.err
26004 cat conftest.err
>&5
26005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26006 (exit $ac_status); } && {
26007 test -z "$ac_c_werror_flag" ||
26008 test ! -s conftest.err
26009 } && test -s conftest
$ac_exeext && {
26010 test "$cross_compiling" = yes ||
26011 $as_test_x conftest
$ac_exeext
26013 ac_cv_lib_blkid_blkid_get_cache
=yes
26015 $as_echo "$as_me: failed program was:" >&5
26016 sed 's/^/| /' conftest.
$ac_ext >&5
26018 ac_cv_lib_blkid_blkid_get_cache
=no
26021 rm -rf conftest.dSYM
26022 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
26023 conftest
$ac_exeext conftest.
$ac_ext
26024 LIBS
=$ac_check_lib_save_LIBS
26026 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
26027 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
26028 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x
""yes; then
26030 { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
26031 $as_echo_n "checking for blkid zfs support... " >&6; }
26034 truncate
-s 64M
$ZFS_DEV
26035 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
26036 dd of
=$ZFS_DEV bs
=1k count
=8 \
26037 seek
=128 conv
=notrunc
&>/dev
/null \
26038 >/dev
/null
2>/dev
/null
26039 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
26040 dd of
=$ZFS_DEV bs
=1k count
=8 \
26041 seek
=132 conv
=notrunc
&>/dev
/null \
26042 >/dev
/null
2>/dev
/null
26043 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
26044 dd of
=$ZFS_DEV bs
=1k count
=8 \
26045 seek
=136 conv
=notrunc
&>/dev
/null \
26046 >/dev
/null
2>/dev
/null
26047 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
26048 dd of
=$ZFS_DEV bs
=1k count
=8 \
26049 seek
=140 conv
=notrunc
&>/dev
/null \
26050 >/dev
/null
2>/dev
/null
26055 if test "$cross_compiling" = yes; then
26056 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26058 { { $as_echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26059 See \`config.log' for more details." >&5
26060 $as_echo "$as_me: error: cannot run test program while cross compiling
26061 See \`config.log' for more details." >&2;}
26062 { (exit 1); exit 1; }; }; }
26064 cat >conftest.
$ac_ext <<_ACEOF
26067 cat confdefs.h
>>conftest.
$ac_ext
26068 cat >>conftest.
$ac_ext <<_ACEOF
26069 /* end confdefs.h. */
26072 #include <stdlib.h>
26073 #include <blkid/blkid.h>
26082 if (blkid_get_cache(&cache, NULL) < 0)
26085 value = blkid_get_tag_value(cache, "TYPE",
26088 blkid_put_cache(cache);
26092 if (strcmp(value, "zfs_member")) {
26094 blkid_put_cache(cache);
26099 blkid_put_cache(cache);
26105 rm -f conftest
$ac_exeext
26106 if { (ac_try
="$ac_link"
26107 case "(($ac_try" in
26108 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26109 *) ac_try_echo=$ac_try;;
26111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26112 $as_echo "$ac_try_echo") >&5
26113 (eval "$ac_link") 2>&5
26115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26117 { (case "(($ac_try" in
26118 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26119 *) ac_try_echo
=$ac_try;;
26121 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26122 $as_echo "$ac_try_echo") >&5
26123 (eval "$ac_try") 2>&5
26125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26126 (exit $ac_status); }; }; then
26129 { $as_echo "$as_me:$LINENO: result: yes" >&5
26130 $as_echo "yes" >&6; }
26134 cat >>confdefs.h
<<\_ACEOF
26135 #define HAVE_LIBBLKID 1
26140 $as_echo "$as_me: program exited with status $ac_status" >&5
26141 $as_echo "$as_me: failed program was:" >&5
26142 sed 's/^/| /' conftest.
$ac_ext >&5
26144 ( exit $ac_status )
26147 { $as_echo "$as_me:$LINENO: result: no" >&5
26148 $as_echo "no" >&6; }
26149 if test "x$with_blkid" != xcheck
; then
26150 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26152 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
26153 See \`config.log' for more details." >&5
26154 $as_echo "$as_me: error: --with-blkid given but unavailable
26155 See \`config.log' for more details." >&2;}
26156 { (exit 1); exit 1; }; }; }
26161 rm -rf conftest.dSYM
26162 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
26171 if test "x$with_blkid" != xcheck
; then
26172 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26173 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26174 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
26175 See \`config.log' for more details." >&5
26176 $as_echo "$as_me: error: --with-blkid given but unavailable
26177 See \`config.log' for more details." >&2;}
26178 { (exit 1); exit 1; }; }; }
26190 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
26191 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
26193 saved_flags
="$CFLAGS"
26194 CFLAGS
="$CFLAGS -Wframe-larger-than=1024"
26196 cat >conftest.
$ac_ext <<_ACEOF
26199 cat confdefs.h
>>conftest.
$ac_ext
26200 cat >>conftest.
$ac_ext <<_ACEOF
26201 /* end confdefs.h. */
26211 rm -f conftest.
$ac_objext
26212 if { (ac_try
="$ac_compile"
26213 case "(($ac_try" in
26214 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26215 *) ac_try_echo=$ac_try;;
26217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26218 $as_echo "$ac_try_echo") >&5
26219 (eval "$ac_compile") 2>conftest.er1
26221 grep -v '^ *+' conftest.er1 >conftest.err
26223 cat conftest.err >&5
26224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26225 (exit $ac_status); } && {
26226 test -z "$ac_c_werror_flag" ||
26227 test ! -s conftest.err
26228 } && test -s conftest.$ac_objext; then
26230 FRAME_LARGER_THAN=-Wframe-larger-than=1024
26231 { $as_echo "$as_me:$LINENO: result: yes" >&5
26232 $as_echo "yes" >&6; }
26235 $as_echo "$as_me: failed program was:" >&5
26236 sed 's/^/| /' conftest.$ac_ext >&5
26240 { $as_echo "$as_me:$LINENO: result: no" >&5
26241 $as_echo "no" >&6; }
26245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26247 CFLAGS="$saved_flags"
26251 if test "x$runstatedir" = x; then
26252 runstatedir='${localstatedir}/run'
26257 { $as_echo "$as_me:$LINENO: checking makedev() is declared in sys/sysmacros.h" >&5
26258 $as_echo_n "checking makedev() is declared in sys/sysmacros.h... " >&6; }
26259 cat >conftest.$ac_ext <<_ACEOF
26262 cat confdefs.h >>conftest.$ac_ext
26263 cat >>conftest.$ac_ext <<_ACEOF
26264 /* end confdefs.h. */
26266 #include <sys/sysmacros.h>
26279 rm -f conftest.$ac_objext
26280 if { (ac_try="$ac_compile"
26281 case "(($ac_try" in
26282 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26283 *) ac_try_echo
=$ac_try;;
26285 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26286 $as_echo "$ac_try_echo") >&5
26287 (eval "$ac_compile") 2>conftest.er1
26289 grep -v '^ *+' conftest.er1
>conftest.err
26291 cat conftest.err
>&5
26292 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26293 (exit $ac_status); } && {
26294 test -z "$ac_c_werror_flag" ||
26295 test ! -s conftest.err
26296 } && test -s conftest.
$ac_objext; then
26298 { $as_echo "$as_me:$LINENO: result: yes" >&5
26299 $as_echo "yes" >&6; }
26301 cat >>confdefs.h
<<\_ACEOF
26302 #define HAVE_MAKEDEV_IN_SYSMACROS 1
26307 $as_echo "$as_me: failed program was:" >&5
26308 sed 's/^/| /' conftest.
$ac_ext >&5
26311 { $as_echo "$as_me:$LINENO: result: no" >&5
26312 $as_echo "no" >&6; }
26316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26319 { $as_echo "$as_me:$LINENO: checking makedev() is declared in sys/mkdev.h" >&5
26320 $as_echo_n "checking makedev() is declared in sys/mkdev.h... " >&6; }
26321 cat >conftest.
$ac_ext <<_ACEOF
26324 cat confdefs.h
>>conftest.
$ac_ext
26325 cat >>conftest.
$ac_ext <<_ACEOF
26326 /* end confdefs.h. */
26328 #include <sys/mkdev.h>
26341 rm -f conftest.
$ac_objext
26342 if { (ac_try
="$ac_compile"
26343 case "(($ac_try" in
26344 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26345 *) ac_try_echo=$ac_try;;
26347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26348 $as_echo "$ac_try_echo") >&5
26349 (eval "$ac_compile") 2>conftest.er1
26351 grep -v '^ *+' conftest.er1 >conftest.err
26353 cat conftest.err >&5
26354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26355 (exit $ac_status); } && {
26356 test -z "$ac_c_werror_flag" ||
26357 test ! -s conftest.err
26358 } && test -s conftest.$ac_objext; then
26360 { $as_echo "$as_me:$LINENO: result: yes" >&5
26361 $as_echo "yes" >&6; }
26363 cat >>confdefs.h <<\_ACEOF
26364 #define HAVE_MAKEDEV_IN_MKDEV 1
26369 $as_echo "$as_me: failed program was:" >&5
26370 sed 's/^/| /' conftest.$ac_ext >&5
26373 { $as_echo "$as_me:$LINENO: result: no" >&5
26374 $as_echo "no" >&6; }
26378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26381 { $as_echo "$as_me:$LINENO: checking for -Wno-format-truncation support" >&5
26382 $as_echo_n "checking for -Wno-format-truncation support... " >&6; }
26384 saved_flags="$CFLAGS"
26385 CFLAGS="$CFLAGS -Wno-format-truncation"
26387 cat >conftest.$ac_ext <<_ACEOF
26390 cat confdefs.h >>conftest.$ac_ext
26391 cat >>conftest.$ac_ext <<_ACEOF
26392 /* end confdefs.h. */
26402 rm -f conftest.$ac_objext
26403 if { (ac_try="$ac_compile"
26404 case "(($ac_try" in
26405 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
26406 *) ac_try_echo
=$ac_try;;
26408 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
26409 $as_echo "$ac_try_echo") >&5
26410 (eval "$ac_compile") 2>conftest.er1
26412 grep -v '^ *+' conftest.er1
>conftest.err
26414 cat conftest.err
>&5
26415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26416 (exit $ac_status); } && {
26417 test -z "$ac_c_werror_flag" ||
26418 test ! -s conftest.err
26419 } && test -s conftest.
$ac_objext; then
26421 NO_FORMAT_TRUNCATION
=-Wno-format-truncation
26422 { $as_echo "$as_me:$LINENO: result: yes" >&5
26423 $as_echo "yes" >&6; }
26426 $as_echo "$as_me: failed program was:" >&5
26427 sed 's/^/| /' conftest.
$ac_ext >&5
26430 NO_FORMAT_TRUNCATION
=
26431 { $as_echo "$as_me:$LINENO: result: no" >&5
26432 $as_echo "no" >&6; }
26436 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
26438 CFLAGS
="$saved_flags"
26442 for ac_func
in mlockall
26444 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26445 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26446 $as_echo_n "checking for $ac_func... " >&6; }
26447 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26448 $as_echo_n "(cached) " >&6
26450 cat >conftest.
$ac_ext <<_ACEOF
26453 cat confdefs.h
>>conftest.
$ac_ext
26454 cat >>conftest.
$ac_ext <<_ACEOF
26455 /* end confdefs.h. */
26456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26458 #define $ac_func innocuous_$ac_func
26460 /* System header to define __stub macros and hopefully few prototypes,
26461 which can conflict with char $ac_func (); below.
26462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26463 <limits.h> exists even on freestanding compilers. */
26466 # include <limits.h>
26468 # include <assert.h>
26473 /* Override any GCC internal prototype to avoid an error.
26474 Use char because int might match the return type of a GCC
26475 builtin and then its argument prototype would still apply. */
26480 /* The GNU C library defines this for functions which it implements
26481 to always fail with ENOSYS. Some functions are actually named
26482 something starting with __ and the normal name is an alias. */
26483 #if defined __stub_$ac_func || defined __stub___$ac_func
26490 return $ac_func ();
26495 rm -f conftest.
$ac_objext conftest
$ac_exeext
26496 if { (ac_try
="$ac_link"
26497 case "(($ac_try" in
26498 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
26499 *) ac_try_echo=$ac_try;;
26501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26502 $as_echo "$ac_try_echo") >&5
26503 (eval "$ac_link") 2>conftest.er1
26505 grep -v '^ *+' conftest.er1 >conftest.err
26507 cat conftest.err >&5
26508 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26509 (exit $ac_status); } && {
26510 test -z "$ac_c_werror_flag" ||
26511 test ! -s conftest.err
26512 } && test -s conftest$ac_exeext && {
26513 test "$cross_compiling" = yes ||
26514 $as_test_x conftest$ac_exeext
26516 eval "$as_ac_var=yes"
26518 $as_echo "$as_me: failed program was:" >&5
26519 sed 's/^/| /' conftest.$ac_ext >&5
26521 eval "$as_ac_var=no"
26524 rm -rf conftest.dSYM
26525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26526 conftest$ac_exeext conftest.$ac_ext
26528 ac_res=`eval 'as_val=${'$as_ac_var'}
26529 $as_echo "$as_val"'`
26530 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26531 $as_echo "$ac_res" >&6; }
26532 as_val=`eval 'as_val=${'$as_ac_var'}
26533 $as_echo "$as_val"'`
26534 if test "x$as_val" = x""yes; then
26535 cat >>confdefs.h <<_ACEOF
26536 #define `$as_echo "HAVE_$ac_func" |
$as_tr_cpp` 1
26546 # Check whether --with-linux was given.
26547 if test "${with_linux+set}" = set; then
26548 withval=$with_linux; kernelsrc="$withval"
26553 # Check whether --with-linux-obj was given.
26554 if test "${with_linux_obj+set}" = set; then
26555 withval=$with_linux_obj; kernelbuild="$withval"
26559 { $as_echo "$as_me:$LINENO: checking kernel source directory" >&5
26560 $as_echo_n "checking kernel source directory... " >&6; }
26561 if test -z "$kernelsrc"; then
26563 if test -e "/lib/modules/$(uname -r)/source"; then
26565 headersdir="/lib/modules/$(uname -r)/source"
26566 sourcelink=$(readlink -f "$headersdir")
26568 elif test -e "/lib/modules/$(uname -r)/build"; then
26570 headersdir="/lib/modules/$(uname -r)/build"
26571 sourcelink=$(readlink -f "$headersdir")
26575 sourcelink=$(ls -1d /usr/src/kernels/* \
26577 2>/dev/null | grep -v obj | tail -1)
26582 if test -n "$sourcelink" && test -e ${sourcelink}; then
26584 kernelsrc=`readlink
-f ${sourcelink}`
26588 kernelsrc="Not found"
26595 if test "$kernelsrc" = "NONE"; then
26605 { $as_echo "$as_me:$LINENO: result: $kernelsrc" >&5
26606 $as_echo "$kernelsrc" >&6; }
26607 if test ! -d "$kernelsrc"; then
26609 { { $as_echo "$as_me:$LINENO: error:
26610 *** Please make sure the kernel devel package for your distribution
26611 *** is installed and then try again. If that fails, you can specify the
26612 *** location of the kernel source with the '--with-linux=PATH' option." >&5
26613 $as_echo "$as_me: error:
26614 *** Please make sure the kernel devel package for your distribution
26615 *** is installed and then try again. If that fails, you can specify the
26616 *** location of the kernel source with the '--with-linux=PATH' option." >&2;}
26617 { (exit 1); exit 1; }; }
26622 { $as_echo "$as_me:$LINENO: checking kernel build directory" >&5
26623 $as_echo_n "checking kernel build directory... " >&6; }
26624 if test -z "$kernelbuild"; then
26626 if test -e "/lib/modules/$(uname -r)/build"; then
26628 kernelbuild=`readlink
-f /lib
/modules
/$
(uname
-r)/build
`
26630 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then
26632 kernelbuild=${kernelsrc}-obj/${target_cpu}/${target_cpu}
26634 elif test -d ${kernelsrc}-obj/${target_cpu}/default; then
26636 kernelbuild=${kernelsrc}-obj/${target_cpu}/default
26638 elif test -d `dirname ${kernelsrc}`/build-${target_cpu}; then
26640 kernelbuild=`dirname ${kernelsrc}`/build-${target_cpu}
26644 kernelbuild=${kernelsrc}
26651 { $as_echo "$as_me:$LINENO: result: $kernelbuild" >&5
26652 $as_echo "$kernelbuild" >&6; }
26654 { $as_echo "$as_me:$LINENO: checking kernel source version" >&5
26655 $as_echo_n "checking kernel source version... " >&6; }
26656 utsrelease1=$kernelbuild/include/linux/version.h
26657 utsrelease2=$kernelbuild/include/linux/utsrelease.h
26658 utsrelease3=$kernelbuild/include/generated/utsrelease.h
26659 if test -r $utsrelease1 && fgrep -q UTS_RELEASE $utsrelease1; then
26661 utsrelease=linux/version.h
26663 elif test -r $utsrelease2 && fgrep -q UTS_RELEASE $utsrelease2; then
26665 utsrelease=linux/utsrelease.h
26667 elif test -r $utsrelease3 && fgrep -q UTS_RELEASE $utsrelease3; then
26669 utsrelease=generated/utsrelease.h
26674 if test "$utsrelease"; then
26676 kernsrcver=`(echo "#include <$utsrelease>";
26677 echo "kernsrcver=UTS_RELEASE") |
26678 cpp
-I $kernelbuild/include |
26679 grep "^kernsrcver=" | cut
-d \" -f 2`
26681 if test -z "$kernsrcver"; then
26683 { $as_echo "$as_me:$LINENO: result: Not found" >&5
26684 $as_echo "Not found" >&6; }
26685 { { $as_echo "$as_me:$LINENO: error: *** Cannot determine kernel version." >&5
26686 $as_echo "$as_me: error: *** Cannot determine kernel version." >&2;}
26687 { (exit 1); exit 1; }; }
26694 { $as_echo "$as_me:$LINENO: result: Not found" >&5
26695 $as_echo "Not found" >&6; }
26696 if test "x$enable_linux_builtin" != xyes; then
26697 { { $as_echo "$as_me:$LINENO: error: *** Cannot find UTS_RELEASE definition." >&5
26698 $as_echo "$as_me: error: *** Cannot find UTS_RELEASE definition." >&2;}
26699 { (exit 1); exit 1; }; }
26701 { { $as_echo "$as_me:$LINENO: error:
26702 *** Cannot find UTS_RELEASE definition.
26703 *** Please run 'make prepare' inside the kernel source tree." >&5
26704 $as_echo "$as_me: error:
26705 *** Cannot find UTS_RELEASE definition.
26706 *** Please run 'make prepare' inside the kernel source tree." >&2;}
26707 { (exit 1); exit 1; }; }
26713 { $as_echo "$as_me:$LINENO: result: $kernsrcver" >&5
26714 $as_echo "$kernsrcver" >&6; }
26717 LINUX_OBJ=${kernelbuild}
26718 LINUX_VERSION=${kernsrcver}
26725 modpost=$LINUX/scripts/Makefile.modpost
26726 { $as_echo "$as_me:$LINENO: checking kernel file name for module symbols" >&5
26727 $as_echo_n "checking kernel file name for module symbols... " >&6; }
26728 if test "x$enable_linux_builtin" != xyes -a -f "$modpost"; then
26730 if grep -q Modules.symvers $modpost; then
26732 LINUX_SYMBOLS=Modules.symvers
26736 LINUX_SYMBOLS=Module.symvers
26741 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then
26743 { { $as_echo "$as_me:$LINENO: error:
26744 *** Please make sure the kernel devel package for your distribution
26745 *** is installed. If you are building with a custom kernel, make sure the
26746 *** kernel is configured, built, and the '--with-linux=PATH' configure
26747 *** option refers to the location of the kernel source." >&5
26748 $as_echo "$as_me: error:
26749 *** Please make sure the kernel devel package for your distribution
26750 *** is installed. If you are building with a custom kernel, make sure the
26751 *** kernel is configured, built, and the '--with-linux=PATH' configure
26752 *** option refers to the location of the kernel source." >&2;}
26753 { (exit 1); exit 1; }; }
26764 { $as_echo "$as_me:$LINENO: result: $LINUX_SYMBOLS" >&5
26765 $as_echo "$LINUX_SYMBOLS" >&6; }
26771 # Check whether --with-spl was given.
26772 if test "${with_spl+set}" = set; then
26773 withval=$with_spl; splsrc="$withval"
26778 # Check whether --with-spl-obj was given.
26779 if test "${with_spl_obj+set}" = set; then
26780 withval=$with_spl_obj; splbuild="$withval"
26785 # Check whether --with-spl-timeout was given.
26786 if test "${with_spl_timeout+set}" = set; then
26787 withval=$with_spl_timeout; timeout="$withval"
26793 splsrc0="/var/lib/dkms/spl/${VERSION}/build"
26794 splsrc1="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
26795 splsrc2="/usr/local/src/spl-${VERSION}"
26796 splsrc3="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
26797 splsrc4="/usr/src/spl-${VERSION}"
26801 { $as_echo "$as_me:$LINENO: checking spl source directory" >&5
26802 $as_echo_n "checking spl source directory... " >&6; }
26803 if test -z "${splsrc}"; then
26805 if test -e "${splsrc0}/spl.release.in"; then
26809 elif test -e "${splsrc1}/spl.release.in"; then
26813 elif test -e "${splsrc2}/spl.release.in"; then
26817 elif test -e "${splsrc3}/spl.release.in"; then
26819 splsrc=$(readlink -f "${splsrc3}")
26821 elif test -e "${splsrc4}/spl.release.in" ; then
26825 elif test -e "${splsrc5}/spl.release.in"; then
26827 splsrc=$(readlink -f "${splsrc5}")
26829 elif test -e "${splsrc6}/spl.release.in" ; then
26842 if test "$splsrc" = "NONE"; then
26853 { $as_echo "$as_me:$LINENO: result: $splsrc" >&5
26854 $as_echo "$splsrc" >&6; }
26855 if test ! -e "$splsrc/spl.release.in"; then
26857 { { $as_echo "$as_me:$LINENO: error:
26858 *** Please make sure the kmod spl devel package for your distribution
26859 *** is installed then try again. If that fails you can specify the
26860 *** location of the spl source with the '--with-spl=PATH' option." >&5
26861 $as_echo "$as_me: error:
26862 *** Please make sure the kmod spl devel package for your distribution
26863 *** is installed then try again. If that fails you can specify the
26864 *** location of the spl source with the '--with-spl=PATH' option." >&2;}
26865 { (exit 1); exit 1; }; }
26870 { $as_echo "$as_me:$LINENO: checking spl build directory" >&5
26871 $as_echo_n "checking spl build directory... " >&6; }
26873 if test -z "$splbuild"; then
26875 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then
26877 splbuild="${splsrc}/${LINUX_VERSION}"
26879 elif test -e "${splsrc}/spl_config.h" ; then
26881 splbuild="${splsrc}"
26883 elif find -L "${splsrc}" -name spl_config.h 2> /dev/null | grep -wq spl_config.h ; then
26885 splbuild=$(find -L "${splsrc}" -name spl_config.h | sed 's,/spl_config.h,,')
26889 splbuild="Not found"
26896 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then
26903 timeout=$((timeout-1))
26909 { $as_echo "$as_me:$LINENO: result: $splbuild" >&5
26910 $as_echo "$splbuild" >&6; }
26911 if ! test -e "$splbuild/spl_config.h"; then
26913 { { $as_echo "$as_me:$LINENO: error:
26914 *** Please make sure the kmod spl devel <kernel> package for your
26915 *** distribution is installed then try again. If that fails you
26916 *** can specify the location of the spl objects with the
26917 *** '--with-spl-obj=PATH' option." >&5
26918 $as_echo "$as_me: error:
26919 *** Please make sure the kmod spl devel <kernel> package for your
26920 *** distribution is installed then try again. If that fails you
26921 *** can specify the location of the spl objects with the
26922 *** '--with-spl-obj=PATH' option." >&2;}
26923 { (exit 1); exit 1; }; }
26928 { $as_echo "$as_me:$LINENO: checking spl source version" >&5
26929 $as_echo_n "checking spl source version... " >&6; }
26930 if test -r $splbuild/spl_config.h &&
26931 fgrep -q SPL_META_VERSION $splbuild/spl_config.h; then
26934 splsrcver=`(echo "#include <spl_config.h>";
26935 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
26937 grep "^splsrcver=" |
tr -d \" | cut
-d= -f2`
26942 if test -z "$splsrcver"; then
26944 { $as_echo "$as_me:$LINENO: result: Not found" >&5
26945 $as_echo "Not found" >&6; }
26946 { { $as_echo "$as_me:$LINENO: error:
26947 *** Cannot determine the version of the spl source.
26948 *** Please prepare the spl source before running this script" >&5
26949 $as_echo "$as_me: error:
26950 *** Cannot determine the version of the spl source.
26951 *** Please prepare the spl source before running this script" >&2;}
26952 { (exit 1); exit 1; }; }
26957 { $as_echo "$as_me:$LINENO: result: $splsrcver" >&5
26958 $as_echo "$splsrcver" >&6; }
26961 SPL_OBJ=${splbuild}
26962 SPL_VERSION=${splsrcver}
26968 { $as_echo "$as_me:$LINENO: checking spl file name for module symbols" >&5
26969 $as_echo_n "checking spl file name for module symbols... " >&6; }
26973 if test -r $SPL_OBJ/Module.symvers; then
26975 SPL_SYMBOLS=Module.symvers
26977 elif test -r $SPL_OBJ/Modules.symvers; then
26979 SPL_SYMBOLS=Modules.symvers
26981 elif test -r $SPL_OBJ/module/Module.symvers; then
26983 SPL_SYMBOLS=Module.symvers
26985 elif test -r $SPL_OBJ/module/Modules.symvers; then
26987 SPL_SYMBOLS=Modules.symvers
26992 if test $SPL_SYMBOLS != NONE -o $timeout -le 0; then
26999 timeout=$((timeout-1))
27005 if test "$SPL_SYMBOLS" = NONE; then
27007 SPL_SYMBOLS=$LINUX_SYMBOLS
27012 { $as_echo "$as_me:$LINENO: result: $SPL_SYMBOLS" >&5
27013 $as_echo "$SPL_SYMBOLS" >&6; }
27017 { $as_echo "$as_me:$LINENO: checking whether modules can be built" >&5
27018 $as_echo_n "checking whether modules can be built... " >&6; }
27021 cat confdefs.h - <<_ACEOF >conftest.c
27024 cat confdefs.h >>conftest.$ac_ext
27025 cat >>conftest.$ac_ext <<_ACEOF
27026 /* end confdefs.h. */
27041 cat - <<_ACEOF >conftest.h
27046 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27047 echo "obj-m := conftest.o" >build/Makefile
27049 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost=true' # fake modpost stage
27050 if { ac_try='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27052 (eval $ac_try) 2>&5
27054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27055 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build/conftest.o'
27056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27057 (eval $ac_try) 2>&5
27059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27060 (exit $ac_status); }; }; then
27062 { $as_echo "$as_me:$LINENO: result: yes" >&5
27063 $as_echo "yes" >&6; }
27066 $as_echo "$as_me: failed program was:" >&5
27067 sed 's/^/| /' conftest.$ac_ext >&5
27069 { $as_echo "$as_me:$LINENO: result: no" >&5
27070 $as_echo "no" >&6; }
27071 if test "x$enable_linux_builtin" != xyes; then
27072 { { $as_echo "$as_me:$LINENO: error: *** Unable to build an empty module." >&5
27073 $as_echo "$as_me: error: *** Unable to build an empty module." >&2;}
27074 { (exit 1); exit 1; }; }
27076 { { $as_echo "$as_me:$LINENO: error:
27077 *** Unable to build an empty module.
27078 *** Please run 'make scripts' inside the kernel source tree." >&5
27079 $as_echo "$as_me: error:
27080 *** Unable to build an empty module.
27081 *** Please run 'make scripts' inside the kernel source tree." >&2;}
27082 { (exit 1); exit 1; }; }
27094 if test "x$cross_compiling" != xyes; then
27096 if test "$cross_compiling" = yes; then
27097 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
27098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27099 { { $as_echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
27100 See \
`config.log' for more details." >&5
27101 $as_echo "$as_me: error: cannot run test program while cross compiling
27102 See \`config.log
' for more details." >&2;}
27103 { (exit 1); exit 1; }; }; }
27105 cat >conftest.$ac_ext <<_ACEOF
27109 cat confdefs.h >>conftest.$ac_ext
27110 cat >>conftest.$ac_ext <<_ACEOF
27111 /* end confdefs.h. */
27113 #include "$LINUX/include/linux/license.h"
27119 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
27126 rm -f conftest$ac_exeext
27127 if { (ac_try="$ac_link"
27128 case "(($ac_try" in
27129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27130 *) ac_try_echo=$ac_try;;
27132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27133 $as_echo "$ac_try_echo") >&5
27134 (eval "$ac_link") 2>&5
27136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27137 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
27138 { (case "(($ac_try" in
27139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27140 *) ac_try_echo=$ac_try;;
27142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27143 $as_echo "$ac_try_echo") >&5
27144 (eval "$ac_try") 2>&5
27146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27147 (exit $ac_status); }; }; then
27150 cat >>confdefs.h <<\_ACEOF
27151 #define ZFS_IS_GPL_COMPATIBLE 1
27156 $as_echo "$as_me: program exited with status $ac_status" >&5
27157 $as_echo "$as_me: failed program was:" >&5
27158 sed 's
/^
/|
/' conftest.$ac_ext >&5
27160 ( exit $ac_status )
27164 rm -rf conftest.dSYM
27165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27174 { $as_echo "$as_me:$LINENO: checking whether kernel was built with 16K or larger stacks" >&5
27175 $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
27178 cat confdefs.h - <<_ACEOF >conftest.c
27181 cat confdefs.h >>conftest.$ac_ext
27182 cat >>conftest.$ac_ext <<_ACEOF
27183 /* end confdefs.h. */
27186 #include <linux/module.h>
27192 #if (THREAD_SIZE < 16384)
27193 #error "THREAD_SIZE is less than 16K"
27204 cat - <<_ACEOF >conftest.h
27209 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27210 echo "obj-m := conftest.o" >build/Makefile
27212 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
27213 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
27214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27215 (eval $ac_try) 2>&5
27217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27218 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
27219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27220 (eval $ac_try) 2>&5
27222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27223 (exit $ac_status); }; }; then
27225 { $as_echo "$as_me:$LINENO: result: yes" >&5
27226 $as_echo "yes" >&6; }
27228 cat >>confdefs.h <<\_ACEOF
27229 #define HAVE_LARGE_STACKS 1
27234 $as_echo "$as_me: failed program was:" >&5
27235 sed 's
/^
/|
/' conftest.$ac_ext >&5
27237 { $as_echo "$as_me:$LINENO: result: no" >&5
27238 $as_echo "no" >&6; }
27250 { $as_echo "$as_me:$LINENO: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
27251 $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
27254 cat confdefs.h - <<_ACEOF >conftest.c
27257 cat confdefs.h >>conftest.$ac_ext
27258 cat >>conftest.$ac_ext <<_ACEOF
27259 /* end confdefs.h. */
27262 #include <linux/module.h>
27268 #ifndef CONFIG_DEBUG_LOCK_ALLOC
27269 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
27280 cat - <<_ACEOF >conftest.h
27285 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27286 echo "obj-m := conftest.o" >build/Makefile
27288 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
27289 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
27290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27291 (eval $ac_try) 2>&5
27293 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27294 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
27295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27296 (eval $ac_try) 2>&5
27298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27299 (exit $ac_status); }; }; then
27301 { $as_echo "$as_me:$LINENO: result: yes" >&5
27302 $as_echo "yes" >&6; }
27304 { $as_echo "$as_me:$LINENO: checking whether mutex_lock() is GPL-only" >&5
27305 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
27306 tmp_flags="$EXTRA_KCFLAGS"
27309 cat confdefs.h - <<_ACEOF >conftest.c
27312 cat confdefs.h >>conftest.$ac_ext
27313 cat >>conftest.$ac_ext <<_ACEOF
27314 /* end confdefs.h. */
27317 #include <linux/module.h>
27318 #include <linux/mutex.h>
27320 MODULE_LICENSE("$ZFS_META_LICENSE");
27330 mutex_unlock(&lock);
27340 cat - <<_ACEOF >conftest.h
27345 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27346 echo "obj-m := conftest.o" >build/Makefile
27348 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
27349 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
27350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27351 (eval $ac_try) 2>&5
27353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27354 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
27355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27356 (eval $ac_try) 2>&5
27358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27359 (exit $ac_status); }; }; then
27361 { $as_echo "$as_me:$LINENO: result: no" >&5
27362 $as_echo "no" >&6; }
27365 $as_echo "$as_me: failed program was:" >&5
27366 sed 's
/^
/|
/' conftest.$ac_ext >&5
27368 { $as_echo "$as_me:$LINENO: result: yes" >&5
27369 $as_echo "yes" >&6; }
27370 { { $as_echo "$as_me:$LINENO: error:
27371 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
27372 *** with the CDDL license and will prevent the module linking stage
27373 *** from succeeding. You must rebuild your kernel without this
27374 *** option enabled." >&5
27375 $as_echo "$as_me: error:
27376 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
27377 *** with the CDDL license and will prevent the module linking stage
27378 *** from succeeding. You must rebuild your kernel without this
27379 *** option enabled." >&2;}
27380 { (exit 1); exit 1; }; }
27389 EXTRA_KCFLAGS="$tmp_flags"
27393 $as_echo "$as_me: failed program was:" >&5
27394 sed 's
/^
/|
/' conftest.$ac_ext >&5
27396 { $as_echo "$as_me:$LINENO: result: no" >&5
27397 $as_echo "no" >&6; }
27411 tmp_flags="$EXTRA_KCFLAGS"
27412 EXTRA_KCFLAGS="-I\$(src)"
27414 { $as_echo "$as_me:$LINENO: checking whether DECLARE_EVENT_CLASS() is available" >&5
27415 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
27418 cat confdefs.h - <<_ACEOF >conftest.c
27421 cat confdefs.h >>conftest.$ac_ext
27422 cat >>conftest.$ac_ext <<_ACEOF
27423 /* end confdefs.h. */
27426 #include <linux/module.h>
27427 MODULE_LICENSE(ZFS_META_LICENSE);
27429 #define CREATE_TRACE_POINTS
27430 #include "conftest.h"
27436 trace_zfs_autoconf_event_one(1UL);
27437 trace_zfs_autoconf_event_two(2UL);
27447 cat - <<_ACEOF >conftest.h
27449 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
27450 #define _CONFTEST_H
27452 #undef TRACE_SYSTEM
27453 #define TRACE_SYSTEM zfs
27454 #include <linux/tracepoint.h>
27456 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
27457 TP_PROTO(unsigned long i),
27460 __field(unsigned long, i)
27465 TP_printk("i = %lu", __entry->i)
27468 #define DEFINE_AUTOCONF_EVENT(name) \
27469 DEFINE_EVENT(zfs_autoconf_event_class, name, \
27470 TP_PROTO(unsigned long i), \
27472 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
27473 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
27475 #endif /* _CONFTEST_H */
27477 #undef TRACE_INCLUDE_PATH
27478 #define TRACE_INCLUDE_PATH .
27479 #define TRACE_INCLUDE_FILE conftest
27480 #include <trace/define_trace.h>
27485 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27486 echo "obj-m := conftest.o" >build/Makefile
27488 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
27489 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
27490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27491 (eval $ac_try) 2>&5
27493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27494 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
27495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27496 (eval $ac_try) 2>&5
27498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27499 (exit $ac_status); }; }; then
27501 { $as_echo "$as_me:$LINENO: result: yes" >&5
27502 $as_echo "yes" >&6; }
27504 cat >>confdefs.h <<\_ACEOF
27505 #define HAVE_DECLARE_EVENT_CLASS 1
27510 $as_echo "$as_me: failed program was:" >&5
27511 sed 's
/^
/|
/' conftest.$ac_ext >&5
27513 { $as_echo "$as_me:$LINENO: result: no" >&5
27514 $as_echo "no" >&6; }
27523 EXTRA_KCFLAGS="$tmp_flags"
27526 { $as_echo "$as_me:$LINENO: checking whether current->bio_tail exists" >&5
27527 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
27530 cat confdefs.h - <<_ACEOF >conftest.c
27533 cat confdefs.h >>conftest.$ac_ext
27534 cat >>conftest.$ac_ext <<_ACEOF
27535 /* end confdefs.h. */
27538 #include <linux/sched.h>
27544 current->bio_tail = (struct bio **) NULL;
27554 cat - <<_ACEOF >conftest.h
27559 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27560 echo "obj-m := conftest.o" >build/Makefile
27562 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
27563 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
27564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27565 (eval $ac_try) 2>&5
27567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27568 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
27569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27570 (eval $ac_try) 2>&5
27572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27573 (exit $ac_status); }; }; then
27575 { $as_echo "$as_me:$LINENO: result: yes" >&5
27576 $as_echo "yes" >&6; }
27578 cat >>confdefs.h <<\_ACEOF
27579 #define HAVE_CURRENT_BIO_TAIL 1
27584 $as_echo "$as_me: failed program was:" >&5
27585 sed 's
/^
/|
/' conftest.$ac_ext >&5
27587 { $as_echo "$as_me:$LINENO: result: no" >&5
27588 $as_echo "no" >&6; }
27589 { $as_echo "$as_me:$LINENO: checking whether current->bio_list exists" >&5
27590 $as_echo_n "checking whether current->bio_list exists... " >&6; }
27593 cat confdefs.h - <<_ACEOF >conftest.c
27596 cat confdefs.h >>conftest.$ac_ext
27597 cat >>conftest.$ac_ext <<_ACEOF
27598 /* end confdefs.h. */
27601 #include <linux/sched.h>
27607 current->bio_list = (struct bio_list *) NULL;
27617 cat - <<_ACEOF >conftest.h
27622 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27623 echo "obj-m := conftest.o" >build/Makefile
27625 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
27626 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
27627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27628 (eval $ac_try) 2>&5
27630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27631 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
27632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27633 (eval $ac_try) 2>&5
27635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27636 (exit $ac_status); }; }; then
27638 { $as_echo "$as_me:$LINENO: result: yes" >&5
27639 $as_echo "yes" >&6; }
27641 cat >>confdefs.h <<\_ACEOF
27642 #define HAVE_CURRENT_BIO_LIST 1
27647 $as_echo "$as_me: failed program was:" >&5
27648 sed 's
/^
/|
/' conftest.$ac_ext >&5
27650 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
27651 https://github.com/zfsonlinux/zfs/issues/new" >&5
27652 $as_echo "$as_me: error: no - Please file a bug report at
27653 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
27654 { (exit 1); exit 1; }; }
27673 { $as_echo "$as_me:$LINENO: checking whether submit_bio() wants 1 arg" >&5
27674 $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
27677 cat confdefs.h - <<_ACEOF >conftest.c
27680 cat confdefs.h >>conftest.$ac_ext
27681 cat >>conftest.$ac_ext <<_ACEOF
27682 /* end confdefs.h. */
27685 #include <linux/bio.h>
27692 struct bio *bio = NULL;
27693 blk_qc = submit_bio(bio);
27703 cat - <<_ACEOF >conftest.h
27708 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27709 echo "obj-m := conftest.o" >build/Makefile
27711 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
27712 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
27713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27714 (eval $ac_try) 2>&5
27716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27717 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
27718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27719 (eval $ac_try) 2>&5
27721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27722 (exit $ac_status); }; }; then
27724 { $as_echo "$as_me:$LINENO: result: yes" >&5
27725 $as_echo "yes" >&6; }
27727 cat >>confdefs.h <<\_ACEOF
27728 #define HAVE_1ARG_SUBMIT_BIO 1
27733 $as_echo "$as_me: failed program was:" >&5
27734 sed 's
/^
/|
/' conftest.$ac_ext >&5
27736 { $as_echo "$as_me:$LINENO: result: no" >&5
27737 $as_echo "no" >&6; }
27748 { $as_echo "$as_me:$LINENO: checking block device operation prototypes" >&5
27749 $as_echo_n "checking block device operation prototypes... " >&6; }
27750 tmp_flags="$EXTRA_KCFLAGS"
27751 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
27754 cat confdefs.h - <<_ACEOF >conftest.c
27757 cat confdefs.h >>conftest.$ac_ext
27758 cat >>conftest.$ac_ext <<_ACEOF
27759 /* end confdefs.h. */
27762 #include <linux/blkdev.h>
27764 int blk_open(struct block_device *bdev, fmode_t mode)
27766 int blk_ioctl(struct block_device *bdev, fmode_t mode,
27767 unsigned x, unsigned long y) { return 0; }
27768 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
27769 unsigned x, unsigned long y) { return 0; }
27771 static const struct block_device_operations
27772 bops __attribute__ ((unused)) = {
27775 .ioctl = blk_ioctl,
27776 .compat_ioctl = blk_compat_ioctl,
27792 cat - <<_ACEOF >conftest.h
27797 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27798 echo "obj-m := conftest.o" >build/Makefile
27800 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
27801 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
27802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27803 (eval $ac_try) 2>&5
27805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27806 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
27807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27808 (eval $ac_try) 2>&5
27810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27811 (exit $ac_status); }; }; then
27813 { $as_echo "$as_me:$LINENO: result: struct block_device" >&5
27814 $as_echo "struct block_device" >&6; }
27816 cat >>confdefs.h <<\_ACEOF
27817 #define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1
27822 $as_echo "$as_me: failed program was:" >&5
27823 sed 's
/^
/|
/' conftest.$ac_ext >&5
27825 { $as_echo "$as_me:$LINENO: result: struct inode" >&5
27826 $as_echo "struct inode" >&6; }
27835 EXTRA_KCFLAGS="$tmp_flags"
27838 { $as_echo "$as_me:$LINENO: checking whether block_device_operations.release is void" >&5
27839 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
27840 tmp_flags="$EXTRA_KCFLAGS"
27841 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
27844 cat confdefs.h - <<_ACEOF >conftest.c
27847 cat confdefs.h >>conftest.$ac_ext
27848 cat >>conftest.$ac_ext <<_ACEOF
27849 /* end confdefs.h. */
27852 #include <linux/blkdev.h>
27854 void blk_release(struct gendisk *g, fmode_t mode) { return; }
27856 static const struct block_device_operations
27857 bops __attribute__ ((unused)) = {
27859 .release = blk_release,
27861 .compat_ioctl = NULL,
27877 cat - <<_ACEOF >conftest.h
27882 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27883 echo "obj-m := conftest.o" >build/Makefile
27885 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
27886 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
27887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27888 (eval $ac_try) 2>&5
27890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27891 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
27892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27893 (eval $ac_try) 2>&5
27895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27896 (exit $ac_status); }; }; then
27898 { $as_echo "$as_me:$LINENO: result: void" >&5
27899 $as_echo "void" >&6; }
27901 cat >>confdefs.h <<\_ACEOF
27902 #define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1
27907 $as_echo "$as_me: failed program was:" >&5
27908 sed 's
/^
/|
/' conftest.$ac_ext >&5
27910 { $as_echo "$as_me:$LINENO: result: int" >&5
27911 $as_echo "int" >&6; }
27920 EXTRA_KCFLAGS="$tmp_flags"
27922 { $as_echo "$as_me:$LINENO: checking whether kernel defines fmode_t" >&5
27923 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
27926 cat confdefs.h - <<_ACEOF >conftest.c
27929 cat confdefs.h >>conftest.$ac_ext
27930 cat >>conftest.$ac_ext <<_ACEOF
27931 /* end confdefs.h. */
27934 #include <linux/types.h>
27940 fmode_t *ptr __attribute__ ((unused));
27950 cat - <<_ACEOF >conftest.h
27955 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
27956 echo "obj-m := conftest.o" >build/Makefile
27958 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
27959 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
27960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27961 (eval $ac_try) 2>&5
27963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27964 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
27965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27966 (eval $ac_try) 2>&5
27968 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27969 (exit $ac_status); }; }; then
27971 { $as_echo "$as_me:$LINENO: result: yes" >&5
27972 $as_echo "yes" >&6; }
27974 cat >>confdefs.h <<\_ACEOF
27975 #define HAVE_FMODE_T 1
27980 $as_echo "$as_me: failed program was:" >&5
27981 sed 's
/^
/|
/' conftest.$ac_ext >&5
27983 { $as_echo "$as_me:$LINENO: result: no" >&5
27984 $as_echo "no" >&6; }
27995 { $as_echo "$as_me:$LINENO: checking whether kernel defines KOBJ_NAME_LEN" >&5
27996 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
27999 cat confdefs.h - <<_ACEOF >conftest.c
28002 cat confdefs.h >>conftest.$ac_ext
28003 cat >>conftest.$ac_ext <<_ACEOF
28004 /* end confdefs.h. */
28007 #include <linux/kobject.h>
28013 int val __attribute__ ((unused));
28014 val = KOBJ_NAME_LEN;
28024 cat - <<_ACEOF >conftest.h
28029 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28030 echo "obj-m := conftest.o" >build/Makefile
28032 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
28033 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
28034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28035 (eval $ac_try) 2>&5
28037 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28038 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
28039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28040 (eval $ac_try) 2>&5
28042 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28043 (exit $ac_status); }; }; then
28045 { $as_echo "$as_me:$LINENO: result: yes" >&5
28046 $as_echo "yes" >&6; }
28048 cat >>confdefs.h <<\_ACEOF
28049 #define HAVE_KOBJ_NAME_LEN 1
28054 $as_echo "$as_me: failed program was:" >&5
28055 sed 's
/^
/|
/' conftest.$ac_ext >&5
28057 { $as_echo "$as_me:$LINENO: result: no" >&5
28058 $as_echo "no" >&6; }
28069 { $as_echo "$as_me:$LINENO: checking whether blkdev_get() wants 3 args" >&5
28070 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
28073 cat confdefs.h - <<_ACEOF >conftest.c
28076 cat confdefs.h >>conftest.$ac_ext
28077 cat >>conftest.$ac_ext <<_ACEOF
28078 /* end confdefs.h. */
28081 #include <linux/fs.h>
28087 struct block_device *bdev = NULL;
28088 (void) blkdev_get(bdev, 0, NULL);
28098 cat - <<_ACEOF >conftest.h
28103 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28104 echo "obj-m := conftest.o" >build/Makefile
28106 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
28107 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
28108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28109 (eval $ac_try) 2>&5
28111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28112 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
28113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28114 (eval $ac_try) 2>&5
28116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28117 (exit $ac_status); }; }; then
28119 { $as_echo "$as_me:$LINENO: result: yes" >&5
28120 $as_echo "yes" >&6; }
28122 cat >>confdefs.h <<\_ACEOF
28123 #define HAVE_3ARG_BLKDEV_GET 1
28128 $as_echo "$as_me: failed program was:" >&5
28129 sed 's
/^
/|
/' conftest.$ac_ext >&5
28131 { $as_echo "$as_me:$LINENO: result: no" >&5
28132 $as_echo "no" >&6; }
28142 { $as_echo "$as_me:$LINENO: checking whether blkdev_get_by_path() is available" >&5
28143 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
28147 cat confdefs.h - <<_ACEOF >conftest.c
28150 cat confdefs.h >>conftest.$ac_ext
28151 cat >>conftest.$ac_ext <<_ACEOF
28152 /* end confdefs.h. */
28155 #include <linux/fs.h>
28161 blkdev_get_by_path(NULL, 0, NULL);
28171 cat - <<_ACEOF >conftest.h
28176 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28177 echo "obj-m := conftest.o" >build/Makefile
28179 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
28180 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
28181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28182 (eval $ac_try) 2>&5
28184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28185 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
28186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28187 (eval $ac_try) 2>&5
28189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28190 (exit $ac_status); }; }; then
28193 $as_echo "$as_me: failed program was:" >&5
28194 sed 's
/^
/|
/' conftest.$ac_ext >&5
28203 if test $rc -ne 0; then :
28205 { $as_echo "$as_me:$LINENO: result: no" >&5
28206 $as_echo "no" >&6; }
28209 if test "x$enable_linux_builtin" != xyes; then
28211 grep -q -E '[[:space
:]]blkdev_get_by_path
[[:space
:]]' \
28212 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
28214 if test $rc -ne 0; then
28216 for file in fs/block_dev.c; do
28217 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
28218 "$LINUX/$file" 2>/dev/null
28220 if test $rc -eq 0; then
28225 if test $export -eq 0; then :
28235 if test $rc -ne 0; then :
28237 { $as_echo "$as_me:$LINENO: result: no" >&5
28238 $as_echo "no" >&6; }
28242 { $as_echo "$as_me:$LINENO: result: yes" >&5
28243 $as_echo "yes" >&6; }
28245 cat >>confdefs.h <<\_ACEOF
28246 #define HAVE_BLKDEV_GET_BY_PATH 1
28254 { $as_echo "$as_me:$LINENO: checking whether open_bdev_exclusive() is available" >&5
28255 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
28259 cat confdefs.h - <<_ACEOF >conftest.c
28262 cat confdefs.h >>conftest.$ac_ext
28263 cat >>conftest.$ac_ext <<_ACEOF
28264 /* end confdefs.h. */
28267 #include <linux/fs.h>
28273 open_bdev_exclusive(NULL, 0, NULL);
28283 cat - <<_ACEOF >conftest.h
28288 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28289 echo "obj-m := conftest.o" >build/Makefile
28291 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
28292 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
28293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28294 (eval $ac_try) 2>&5
28296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28297 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
28298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28299 (eval $ac_try) 2>&5
28301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28302 (exit $ac_status); }; }; then
28305 $as_echo "$as_me: failed program was:" >&5
28306 sed 's
/^
/|
/' conftest.$ac_ext >&5
28315 if test $rc -ne 0; then :
28317 { $as_echo "$as_me:$LINENO: result: no" >&5
28318 $as_echo "no" >&6; }
28321 if test "x$enable_linux_builtin" != xyes; then
28323 grep -q -E '[[:space
:]]open_bdev_exclusive
[[:space
:]]' \
28324 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
28326 if test $rc -ne 0; then
28328 for file in fs/block_dev.c; do
28329 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
28330 "$LINUX/$file" 2>/dev/null
28332 if test $rc -eq 0; then
28337 if test $export -eq 0; then :
28347 if test $rc -ne 0; then :
28349 { $as_echo "$as_me:$LINENO: result: no" >&5
28350 $as_echo "no" >&6; }
28354 { $as_echo "$as_me:$LINENO: result: yes" >&5
28355 $as_echo "yes" >&6; }
28357 cat >>confdefs.h <<\_ACEOF
28358 #define HAVE_OPEN_BDEV_EXCLUSIVE 1
28366 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 1 arg" >&5
28367 $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
28371 cat confdefs.h - <<_ACEOF >conftest.c
28374 cat confdefs.h >>conftest.$ac_ext
28375 cat >>conftest.$ac_ext <<_ACEOF
28376 /* end confdefs.h. */
28379 #include <linux/fs.h>
28395 cat - <<_ACEOF >conftest.h
28400 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28401 echo "obj-m := conftest.o" >build/Makefile
28403 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
28404 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
28405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28406 (eval $ac_try) 2>&5
28408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28409 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
28410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28411 (eval $ac_try) 2>&5
28413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28414 (exit $ac_status); }; }; then
28417 $as_echo "$as_me: failed program was:" >&5
28418 sed 's
/^
/|
/' conftest.$ac_ext >&5
28427 if test $rc -ne 0; then :
28429 { $as_echo "$as_me:$LINENO: result: no" >&5
28430 $as_echo "no" >&6; }
28431 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 2 args" >&5
28432 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
28436 cat confdefs.h - <<_ACEOF >conftest.c
28439 cat confdefs.h >>conftest.$ac_ext
28440 cat >>conftest.$ac_ext <<_ACEOF
28441 /* end confdefs.h. */
28444 #include <linux/fs.h>
28450 lookup_bdev(NULL, FMODE_READ);
28460 cat - <<_ACEOF >conftest.h
28465 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28466 echo "obj-m := conftest.o" >build/Makefile
28468 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
28469 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
28470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28471 (eval $ac_try) 2>&5
28473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28474 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
28475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28476 (eval $ac_try) 2>&5
28478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28479 (exit $ac_status); }; }; then
28482 $as_echo "$as_me: failed program was:" >&5
28483 sed 's
/^
/|
/' conftest.$ac_ext >&5
28492 if test $rc -ne 0; then :
28494 { $as_echo "$as_me:$LINENO: result: no" >&5
28495 $as_echo "no" >&6; }
28498 if test "x$enable_linux_builtin" != xyes; then
28500 grep -q -E '[[:space
:]]lookup_bdev
[[:space
:]]' \
28501 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
28503 if test $rc -ne 0; then
28505 for file in fs/block_dev.c; do
28506 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
28507 "$LINUX/$file" 2>/dev/null
28509 if test $rc -eq 0; then
28514 if test $export -eq 0; then :
28524 if test $rc -ne 0; then :
28526 { $as_echo "$as_me:$LINENO: result: no" >&5
28527 $as_echo "no" >&6; }
28531 { $as_echo "$as_me:$LINENO: result: yes" >&5
28532 $as_echo "yes" >&6; }
28534 cat >>confdefs.h <<\_ACEOF
28535 #define HAVE_2ARGS_LOOKUP_BDEV 1
28544 if test "x$enable_linux_builtin" != xyes; then
28546 grep -q -E '[[:space
:]]lookup_bdev
[[:space
:]]' \
28547 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
28549 if test $rc -ne 0; then
28551 for file in fs/block_dev.c; do
28552 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
28553 "$LINUX/$file" 2>/dev/null
28555 if test $rc -eq 0; then
28560 if test $export -eq 0; then :
28570 if test $rc -ne 0; then :
28572 { $as_echo "$as_me:$LINENO: result: no" >&5
28573 $as_echo "no" >&6; }
28574 { $as_echo "$as_me:$LINENO: checking whether lookup_bdev() wants 2 args" >&5
28575 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
28579 cat confdefs.h - <<_ACEOF >conftest.c
28582 cat confdefs.h >>conftest.$ac_ext
28583 cat >>conftest.$ac_ext <<_ACEOF
28584 /* end confdefs.h. */
28587 #include <linux/fs.h>
28593 lookup_bdev(NULL, FMODE_READ);
28603 cat - <<_ACEOF >conftest.h
28608 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28609 echo "obj-m := conftest.o" >build/Makefile
28611 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
28612 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
28613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28614 (eval $ac_try) 2>&5
28616 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28617 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
28618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28619 (eval $ac_try) 2>&5
28621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28622 (exit $ac_status); }; }; then
28625 $as_echo "$as_me: failed program was:" >&5
28626 sed 's
/^
/|
/' conftest.$ac_ext >&5
28635 if test $rc -ne 0; then :
28637 { $as_echo "$as_me:$LINENO: result: no" >&5
28638 $as_echo "no" >&6; }
28641 if test "x$enable_linux_builtin" != xyes; then
28643 grep -q -E '[[:space
:]]lookup_bdev
[[:space
:]]' \
28644 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
28646 if test $rc -ne 0; then
28648 for file in fs/block_dev.c; do
28649 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
28650 "$LINUX/$file" 2>/dev/null
28652 if test $rc -eq 0; then
28657 if test $export -eq 0; then :
28667 if test $rc -ne 0; then :
28669 { $as_echo "$as_me:$LINENO: result: no" >&5
28670 $as_echo "no" >&6; }
28674 { $as_echo "$as_me:$LINENO: result: yes" >&5
28675 $as_echo "yes" >&6; }
28677 cat >>confdefs.h <<\_ACEOF
28678 #define HAVE_2ARGS_LOOKUP_BDEV 1
28688 { $as_echo "$as_me:$LINENO: result: yes" >&5
28689 $as_echo "yes" >&6; }
28691 cat >>confdefs.h <<\_ACEOF
28692 #define HAVE_1ARG_LOOKUP_BDEV 1
28701 { $as_echo "$as_me:$LINENO: checking whether invalidate_bdev() wants 1 arg" >&5
28702 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
28705 cat confdefs.h - <<_ACEOF >conftest.c
28708 cat confdefs.h >>conftest.$ac_ext
28709 cat >>conftest.$ac_ext <<_ACEOF
28710 /* end confdefs.h. */
28713 #include <linux/buffer_head.h>
28719 struct block_device *bdev = NULL;
28720 invalidate_bdev(bdev);
28730 cat - <<_ACEOF >conftest.h
28735 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28736 echo "obj-m := conftest.o" >build/Makefile
28738 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
28739 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
28740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28741 (eval $ac_try) 2>&5
28743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28744 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
28745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28746 (eval $ac_try) 2>&5
28748 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28749 (exit $ac_status); }; }; then
28751 { $as_echo "$as_me:$LINENO: result: yes" >&5
28752 $as_echo "yes" >&6; }
28754 cat >>confdefs.h <<\_ACEOF
28755 #define HAVE_1ARG_INVALIDATE_BDEV 1
28760 $as_echo "$as_me: failed program was:" >&5
28761 sed 's
/^
/|
/' conftest.$ac_ext >&5
28763 { $as_echo "$as_me:$LINENO: result: no" >&5
28764 $as_echo "no" >&6; }
28775 { $as_echo "$as_me:$LINENO: checking whether bdev_logical_block_size() is available" >&5
28776 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
28777 tmp_flags="$EXTRA_KCFLAGS"
28778 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
28781 cat confdefs.h - <<_ACEOF >conftest.c
28784 cat confdefs.h >>conftest.$ac_ext
28785 cat >>conftest.$ac_ext <<_ACEOF
28786 /* end confdefs.h. */
28789 #include <linux/blkdev.h>
28795 struct block_device *bdev = NULL;
28796 bdev_logical_block_size(bdev);
28806 cat - <<_ACEOF >conftest.h
28811 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28812 echo "obj-m := conftest.o" >build/Makefile
28814 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
28815 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
28816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28817 (eval $ac_try) 2>&5
28819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28820 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
28821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28822 (eval $ac_try) 2>&5
28824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28825 (exit $ac_status); }; }; then
28827 { $as_echo "$as_me:$LINENO: result: yes" >&5
28828 $as_echo "yes" >&6; }
28830 cat >>confdefs.h <<\_ACEOF
28831 #define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1
28836 $as_echo "$as_me: failed program was:" >&5
28837 sed 's
/^
/|
/' conftest.$ac_ext >&5
28839 { $as_echo "$as_me:$LINENO: result: no" >&5
28840 $as_echo "no" >&6; }
28849 EXTRA_KCFLAGS="$tmp_flags"
28852 { $as_echo "$as_me:$LINENO: checking whether bdev_physical_block_size() is available" >&5
28853 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
28854 tmp_flags="$EXTRA_KCFLAGS"
28855 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
28858 cat confdefs.h - <<_ACEOF >conftest.c
28861 cat confdefs.h >>conftest.$ac_ext
28862 cat >>conftest.$ac_ext <<_ACEOF
28863 /* end confdefs.h. */
28866 #include <linux/blkdev.h>
28872 struct block_device *bdev = NULL;
28873 bdev_physical_block_size(bdev);
28883 cat - <<_ACEOF >conftest.h
28888 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28889 echo "obj-m := conftest.o" >build/Makefile
28891 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
28892 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
28893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28894 (eval $ac_try) 2>&5
28896 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28897 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
28898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28899 (eval $ac_try) 2>&5
28901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28902 (exit $ac_status); }; }; then
28904 { $as_echo "$as_me:$LINENO: result: yes" >&5
28905 $as_echo "yes" >&6; }
28907 cat >>confdefs.h <<\_ACEOF
28908 #define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1
28913 $as_echo "$as_me: failed program was:" >&5
28914 sed 's
/^
/|
/' conftest.$ac_ext >&5
28916 { $as_echo "$as_me:$LINENO: result: no" >&5
28917 $as_echo "no" >&6; }
28926 EXTRA_KCFLAGS="$tmp_flags"
28929 { $as_echo "$as_me:$LINENO: checking whether bio has bi_iter" >&5
28930 $as_echo_n "checking whether bio has bi_iter... " >&6; }
28933 cat confdefs.h - <<_ACEOF >conftest.c
28936 cat confdefs.h >>conftest.$ac_ext
28937 cat >>conftest.$ac_ext <<_ACEOF
28938 /* end confdefs.h. */
28941 #include <linux/bio.h>
28948 bio.bi_iter.bi_sector = 0;
28958 cat - <<_ACEOF >conftest.h
28963 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
28964 echo "obj-m := conftest.o" >build/Makefile
28966 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
28967 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
28968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28969 (eval $ac_try) 2>&5
28971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28972 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
28973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28974 (eval $ac_try) 2>&5
28976 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28977 (exit $ac_status); }; }; then
28979 { $as_echo "$as_me:$LINENO: result: yes" >&5
28980 $as_echo "yes" >&6; }
28982 cat >>confdefs.h <<\_ACEOF
28983 #define HAVE_BIO_BVEC_ITER 1
28988 $as_echo "$as_me: failed program was:" >&5
28989 sed 's
/^
/|
/' conftest.$ac_ext >&5
28991 { $as_echo "$as_me:$LINENO: result: no" >&5
28992 $as_echo "no" >&6; }
29003 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_FAILFAST_* are defined" >&5
29004 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
29007 cat confdefs.h - <<_ACEOF >conftest.c
29010 cat confdefs.h >>conftest.$ac_ext
29011 cat >>conftest.$ac_ext <<_ACEOF
29012 /* end confdefs.h. */
29015 #include <linux/bio.h>
29021 int flags __attribute__ ((unused));
29022 flags = ((1 << BIO_RW_FAILFAST_DEV) |
29023 (1 << BIO_RW_FAILFAST_TRANSPORT) |
29024 (1 << BIO_RW_FAILFAST_DRIVER));
29034 cat - <<_ACEOF >conftest.h
29039 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29040 echo "obj-m := conftest.o" >build/Makefile
29042 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
29043 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
29044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29045 (eval $ac_try) 2>&5
29047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29048 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
29049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29050 (eval $ac_try) 2>&5
29052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29053 (exit $ac_status); }; }; then
29055 { $as_echo "$as_me:$LINENO: result: yes" >&5
29056 $as_echo "yes" >&6; }
29058 cat >>confdefs.h <<\_ACEOF
29059 #define HAVE_BIO_RW_FAILFAST_DTD 1
29064 $as_echo "$as_me: failed program was:" >&5
29065 sed 's
/^
/|
/' conftest.$ac_ext >&5
29067 { $as_echo "$as_me:$LINENO: result: no" >&5
29068 $as_echo "no" >&6; }
29079 { $as_echo "$as_me:$LINENO: checking whether REQ_FAILFAST_MASK is defined" >&5
29080 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
29083 cat confdefs.h - <<_ACEOF >conftest.c
29086 cat confdefs.h >>conftest.$ac_ext
29087 cat >>conftest.$ac_ext <<_ACEOF
29088 /* end confdefs.h. */
29091 #include <linux/bio.h>
29097 int flags __attribute__ ((unused));
29098 flags = REQ_FAILFAST_MASK;
29108 cat - <<_ACEOF >conftest.h
29113 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29114 echo "obj-m := conftest.o" >build/Makefile
29116 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
29117 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
29118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29119 (eval $ac_try) 2>&5
29121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29122 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
29123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29124 (eval $ac_try) 2>&5
29126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29127 (exit $ac_status); }; }; then
29129 { $as_echo "$as_me:$LINENO: result: yes" >&5
29130 $as_echo "yes" >&6; }
29132 cat >>confdefs.h <<\_ACEOF
29133 #define HAVE_REQ_FAILFAST_MASK 1
29138 $as_echo "$as_me: failed program was:" >&5
29139 sed 's
/^
/|
/' conftest.$ac_ext >&5
29141 { $as_echo "$as_me:$LINENO: result: no" >&5
29142 $as_echo "no" >&6; }
29153 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_DISCARD is defined" >&5
29154 $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
29157 cat confdefs.h - <<_ACEOF >conftest.c
29160 cat confdefs.h >>conftest.$ac_ext
29161 cat >>conftest.$ac_ext <<_ACEOF
29162 /* end confdefs.h. */
29165 #include <linux/blk_types.h>
29171 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
29181 cat - <<_ACEOF >conftest.h
29186 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29187 echo "obj-m := conftest.o" >build/Makefile
29189 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
29190 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
29191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29192 (eval $ac_try) 2>&5
29194 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29195 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
29196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29197 (eval $ac_try) 2>&5
29199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29200 (exit $ac_status); }; }; then
29202 { $as_echo "$as_me:$LINENO: result: yes" >&5
29203 $as_echo "yes" >&6; }
29205 cat >>confdefs.h <<\_ACEOF
29206 #define HAVE_REQ_OP_DISCARD 1
29211 $as_echo "$as_me: failed program was:" >&5
29212 sed 's
/^
/|
/' conftest.$ac_ext >&5
29214 { $as_echo "$as_me:$LINENO: result: no" >&5
29215 $as_echo "no" >&6; }
29226 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_SECURE_ERASE is defined" >&5
29227 $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
29230 cat confdefs.h - <<_ACEOF >conftest.c
29233 cat confdefs.h >>conftest.$ac_ext
29234 cat >>conftest.$ac_ext <<_ACEOF
29235 /* end confdefs.h. */
29238 #include <linux/blk_types.h>
29244 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
29254 cat - <<_ACEOF >conftest.h
29259 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29260 echo "obj-m := conftest.o" >build/Makefile
29262 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
29263 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
29264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29265 (eval $ac_try) 2>&5
29267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29268 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
29269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29270 (eval $ac_try) 2>&5
29272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29273 (exit $ac_status); }; }; then
29275 { $as_echo "$as_me:$LINENO: result: yes" >&5
29276 $as_echo "yes" >&6; }
29278 cat >>confdefs.h <<\_ACEOF
29279 #define HAVE_REQ_OP_SECURE_ERASE 1
29284 $as_echo "$as_me: failed program was:" >&5
29285 sed 's
/^
/|
/' conftest.$ac_ext >&5
29287 { $as_echo "$as_me:$LINENO: result: no" >&5
29288 $as_echo "no" >&6; }
29299 { $as_echo "$as_me:$LINENO: checking whether REQ_OP_FLUSH is defined" >&5
29300 $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
29303 cat confdefs.h - <<_ACEOF >conftest.c
29306 cat confdefs.h >>conftest.$ac_ext
29307 cat >>conftest.$ac_ext <<_ACEOF
29308 /* end confdefs.h. */
29311 #include <linux/blk_types.h>
29317 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
29327 cat - <<_ACEOF >conftest.h
29332 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29333 echo "obj-m := conftest.o" >build/Makefile
29335 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
29336 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
29337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29338 (eval $ac_try) 2>&5
29340 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29341 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
29342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29343 (eval $ac_try) 2>&5
29345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29346 (exit $ac_status); }; }; then
29348 { $as_echo "$as_me:$LINENO: result: yes" >&5
29349 $as_echo "yes" >&6; }
29351 cat >>confdefs.h <<\_ACEOF
29352 #define HAVE_REQ_OP_FLUSH 1
29357 $as_echo "$as_me: failed program was:" >&5
29358 sed 's
/^
/|
/' conftest.$ac_ext >&5
29360 { $as_echo "$as_me:$LINENO: result: no" >&5
29361 $as_echo "no" >&6; }
29372 { $as_echo "$as_me:$LINENO: checking whether bio->bi_opf is defined" >&5
29373 $as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
29376 cat confdefs.h - <<_ACEOF >conftest.c
29379 cat confdefs.h >>conftest.$ac_ext
29380 cat >>conftest.$ac_ext <<_ACEOF
29381 /* end confdefs.h. */
29384 #include <linux/bio.h>
29390 struct bio bio __attribute__ ((unused));
29401 cat - <<_ACEOF >conftest.h
29406 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29407 echo "obj-m := conftest.o" >build/Makefile
29409 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
29410 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
29411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29412 (eval $ac_try) 2>&5
29414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29415 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
29416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29417 (eval $ac_try) 2>&5
29419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29420 (exit $ac_status); }; }; then
29422 { $as_echo "$as_me:$LINENO: result: yes" >&5
29423 $as_echo "yes" >&6; }
29425 cat >>confdefs.h <<\_ACEOF
29426 #define HAVE_BIO_BI_OPF 1
29431 $as_echo "$as_me: failed program was:" >&5
29432 sed 's
/^
/|
/' conftest.$ac_ext >&5
29434 { $as_echo "$as_me:$LINENO: result: no" >&5
29435 $as_echo "no" >&6; }
29446 { $as_echo "$as_me:$LINENO: checking whether bio_end_io_t wants 1 arg" >&5
29447 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
29450 cat confdefs.h - <<_ACEOF >conftest.c
29453 cat confdefs.h >>conftest.$ac_ext
29454 cat >>conftest.$ac_ext <<_ACEOF
29455 /* end confdefs.h. */
29458 #include <linux/bio.h>
29460 void wanted_end_io(struct bio *bio) { return; }
29462 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
29477 cat - <<_ACEOF >conftest.h
29482 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29483 echo "obj-m := conftest.o" >build/Makefile
29485 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
29486 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
29487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29488 (eval $ac_try) 2>&5
29490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29491 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
29492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29493 (eval $ac_try) 2>&5
29495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29496 (exit $ac_status); }; }; then
29498 { $as_echo "$as_me:$LINENO: result: yes" >&5
29499 $as_echo "yes" >&6; }
29501 cat >>confdefs.h <<\_ACEOF
29502 #define HAVE_1ARG_BIO_END_IO_T 1
29507 $as_echo "$as_me: failed program was:" >&5
29508 sed 's
/^
/|
/' conftest.$ac_ext >&5
29510 { $as_echo "$as_me:$LINENO: result: no" >&5
29511 $as_echo "no" >&6; }
29522 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_BARRIER is defined" >&5
29523 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
29526 cat confdefs.h - <<_ACEOF >conftest.c
29529 cat confdefs.h >>conftest.$ac_ext
29530 cat >>conftest.$ac_ext <<_ACEOF
29531 /* end confdefs.h. */
29534 #include <linux/bio.h>
29540 int flags __attribute__ ((unused));
29541 flags = BIO_RW_BARRIER;
29551 cat - <<_ACEOF >conftest.h
29556 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29557 echo "obj-m := conftest.o" >build/Makefile
29559 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
29560 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
29561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29562 (eval $ac_try) 2>&5
29564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29565 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
29566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29567 (eval $ac_try) 2>&5
29569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29570 (exit $ac_status); }; }; then
29572 { $as_echo "$as_me:$LINENO: result: yes" >&5
29573 $as_echo "yes" >&6; }
29575 cat >>confdefs.h <<\_ACEOF
29576 #define HAVE_BIO_RW_BARRIER 1
29581 $as_echo "$as_me: failed program was:" >&5
29582 sed 's
/^
/|
/' conftest.$ac_ext >&5
29584 { $as_echo "$as_me:$LINENO: result: no" >&5
29585 $as_echo "no" >&6; }
29596 { $as_echo "$as_me:$LINENO: checking whether BIO_RW_DISCARD is defined" >&5
29597 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
29600 cat confdefs.h - <<_ACEOF >conftest.c
29603 cat confdefs.h >>conftest.$ac_ext
29604 cat >>conftest.$ac_ext <<_ACEOF
29605 /* end confdefs.h. */
29608 #include <linux/bio.h>
29614 int flags __attribute__ ((unused));
29615 flags = BIO_RW_DISCARD;
29625 cat - <<_ACEOF >conftest.h
29630 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29631 echo "obj-m := conftest.o" >build/Makefile
29633 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
29634 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
29635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29636 (eval $ac_try) 2>&5
29638 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29639 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
29640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29641 (eval $ac_try) 2>&5
29643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29644 (exit $ac_status); }; }; then
29646 { $as_echo "$as_me:$LINENO: result: yes" >&5
29647 $as_echo "yes" >&6; }
29649 cat >>confdefs.h <<\_ACEOF
29650 #define HAVE_BIO_RW_DISCARD 1
29655 $as_echo "$as_me: failed program was:" >&5
29656 sed 's
/^
/|
/' conftest.$ac_ext >&5
29658 { $as_echo "$as_me:$LINENO: result: no" >&5
29659 $as_echo "no" >&6; }
29670 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is available" >&5
29671 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
29672 tmp_flags="$EXTRA_KCFLAGS"
29673 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
29676 cat confdefs.h - <<_ACEOF >conftest.c
29679 cat confdefs.h >>conftest.$ac_ext
29680 cat >>conftest.$ac_ext <<_ACEOF
29681 /* end confdefs.h. */
29684 #include <linux/blkdev.h>
29690 struct request_queue *q = NULL;
29691 (void) blk_queue_flush(q, REQ_FLUSH);
29701 cat - <<_ACEOF >conftest.h
29706 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29707 echo "obj-m := conftest.o" >build/Makefile
29709 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
29710 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
29711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29712 (eval $ac_try) 2>&5
29714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29715 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
29716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29717 (eval $ac_try) 2>&5
29719 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29720 (exit $ac_status); }; }; then
29722 { $as_echo "$as_me:$LINENO: result: yes" >&5
29723 $as_echo "yes" >&6; }
29725 cat >>confdefs.h <<\_ACEOF
29726 #define HAVE_BLK_QUEUE_FLUSH 1
29730 { $as_echo "$as_me:$LINENO: checking whether blk_queue_flush() is GPL-only" >&5
29731 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
29734 cat confdefs.h - <<_ACEOF >conftest.c
29737 cat confdefs.h >>conftest.$ac_ext
29738 cat >>conftest.$ac_ext <<_ACEOF
29739 /* end confdefs.h. */
29742 #include <linux/module.h>
29743 #include <linux/blkdev.h>
29745 MODULE_LICENSE("$ZFS_META_LICENSE");
29751 struct request_queue *q = NULL;
29752 (void) blk_queue_flush(q, REQ_FLUSH);
29762 cat - <<_ACEOF >conftest.h
29767 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29768 echo "obj-m := conftest.o" >build/Makefile
29770 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
29771 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
29772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29773 (eval $ac_try) 2>&5
29775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29776 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
29777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29778 (eval $ac_try) 2>&5
29780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29781 (exit $ac_status); }; }; then
29783 { $as_echo "$as_me:$LINENO: result: no" >&5
29784 $as_echo "no" >&6; }
29787 $as_echo "$as_me: failed program was:" >&5
29788 sed 's
/^
/|
/' conftest.$ac_ext >&5
29790 { $as_echo "$as_me:$LINENO: result: yes" >&5
29791 $as_echo "yes" >&6; }
29793 cat >>confdefs.h <<\_ACEOF
29794 #define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1
29807 $as_echo "$as_me: failed program was:" >&5
29808 sed 's
/^
/|
/' conftest.$ac_ext >&5
29810 { $as_echo "$as_me:$LINENO: result: no" >&5
29811 $as_echo "no" >&6; }
29821 { $as_echo "$as_me:$LINENO: checking whether blk_queue_write_cache() exists" >&5
29822 $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
29825 cat confdefs.h - <<_ACEOF >conftest.c
29828 cat confdefs.h >>conftest.$ac_ext
29829 cat >>conftest.$ac_ext <<_ACEOF
29830 /* end confdefs.h. */
29833 #include <linux/kernel.h>
29834 #include <linux/blkdev.h>
29841 struct request_queue *q = NULL;
29842 blk_queue_write_cache(q, true, true);
29852 cat - <<_ACEOF >conftest.h
29857 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29858 echo "obj-m := conftest.o" >build/Makefile
29860 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
29861 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
29862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29863 (eval $ac_try) 2>&5
29865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29866 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
29867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29868 (eval $ac_try) 2>&5
29870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29871 (exit $ac_status); }; }; then
29873 { $as_echo "$as_me:$LINENO: result: yes" >&5
29874 $as_echo "yes" >&6; }
29876 cat >>confdefs.h <<\_ACEOF
29877 #define HAVE_BLK_QUEUE_WRITE_CACHE 1
29881 { $as_echo "$as_me:$LINENO: checking whether blk_queue_write_cache() is GPL-only" >&5
29882 $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
29885 cat confdefs.h - <<_ACEOF >conftest.c
29888 cat confdefs.h >>conftest.$ac_ext
29889 cat >>conftest.$ac_ext <<_ACEOF
29890 /* end confdefs.h. */
29893 #include <linux/kernel.h>
29894 #include <linux/module.h>
29895 #include <linux/blkdev.h>
29897 MODULE_LICENSE("$ZFS_META_LICENSE");
29903 struct request_queue *q = NULL;
29904 blk_queue_write_cache(q, true, true);
29914 cat - <<_ACEOF >conftest.h
29919 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
29920 echo "obj-m := conftest.o" >build/Makefile
29922 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
29923 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
29924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29925 (eval $ac_try) 2>&5
29927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29928 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
29929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29930 (eval $ac_try) 2>&5
29932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29933 (exit $ac_status); }; }; then
29935 { $as_echo "$as_me:$LINENO: result: no" >&5
29936 $as_echo "no" >&6; }
29939 $as_echo "$as_me: failed program was:" >&5
29940 sed 's
/^
/|
/' conftest.$ac_ext >&5
29942 { $as_echo "$as_me:$LINENO: result: yes" >&5
29943 $as_echo "yes" >&6; }
29945 cat >>confdefs.h <<\_ACEOF
29946 #define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1
29959 $as_echo "$as_me: failed program was:" >&5
29960 sed 's
/^
/|
/' conftest.$ac_ext >&5
29962 { $as_echo "$as_me:$LINENO: result: no" >&5
29963 $as_echo "no" >&6; }
29973 EXTRA_KCFLAGS="$tmp_flags"
29976 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_hw_sectors() is available" >&5
29977 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
29978 tmp_flags="$EXTRA_KCFLAGS"
29979 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
29982 cat confdefs.h - <<_ACEOF >conftest.c
29985 cat confdefs.h >>conftest.$ac_ext
29986 cat >>conftest.$ac_ext <<_ACEOF
29987 /* end confdefs.h. */
29990 #include <linux/blkdev.h>
29996 struct request_queue *q = NULL;
29997 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
30007 cat - <<_ACEOF >conftest.h
30012 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30013 echo "obj-m := conftest.o" >build/Makefile
30015 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
30016 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
30017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30018 (eval $ac_try) 2>&5
30020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30021 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
30022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30023 (eval $ac_try) 2>&5
30025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30026 (exit $ac_status); }; }; then
30028 { $as_echo "$as_me:$LINENO: result: yes" >&5
30029 $as_echo "yes" >&6; }
30031 cat >>confdefs.h <<\_ACEOF
30032 #define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1
30037 $as_echo "$as_me: failed program was:" >&5
30038 sed 's
/^
/|
/' conftest.$ac_ext >&5
30040 { $as_echo "$as_me:$LINENO: result: no" >&5
30041 $as_echo "no" >&6; }
30050 EXTRA_KCFLAGS="$tmp_flags"
30053 { $as_echo "$as_me:$LINENO: checking whether blk_queue_max_segments() is available" >&5
30054 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
30055 tmp_flags="$EXTRA_KCFLAGS"
30056 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
30059 cat confdefs.h - <<_ACEOF >conftest.c
30062 cat confdefs.h >>conftest.$ac_ext
30063 cat >>conftest.$ac_ext <<_ACEOF
30064 /* end confdefs.h. */
30067 #include <linux/blkdev.h>
30073 struct request_queue *q = NULL;
30074 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
30084 cat - <<_ACEOF >conftest.h
30089 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30090 echo "obj-m := conftest.o" >build/Makefile
30092 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
30093 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
30094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30095 (eval $ac_try) 2>&5
30097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30098 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
30099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30100 (eval $ac_try) 2>&5
30102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30103 (exit $ac_status); }; }; then
30105 { $as_echo "$as_me:$LINENO: result: yes" >&5
30106 $as_echo "yes" >&6; }
30108 cat >>confdefs.h <<\_ACEOF
30109 #define HAVE_BLK_QUEUE_MAX_SEGMENTS 1
30114 $as_echo "$as_me: failed program was:" >&5
30115 sed 's
/^
/|
/' conftest.$ac_ext >&5
30117 { $as_echo "$as_me:$LINENO: result: no" >&5
30118 $as_echo "no" >&6; }
30127 EXTRA_KCFLAGS="$tmp_flags"
30130 { $as_echo "$as_me:$LINENO: checking whether the BIO_RW_UNPLUG enum is available" >&5
30131 $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
30132 tmp_flags="$EXTRA_KCFLAGS"
30133 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
30136 cat confdefs.h - <<_ACEOF >conftest.c
30139 cat confdefs.h >>conftest.$ac_ext
30140 cat >>conftest.$ac_ext <<_ACEOF
30141 /* end confdefs.h. */
30144 #include <linux/blkdev.h>
30150 extern enum bio_rw_flags rw;
30152 rw = BIO_RW_UNPLUG;
30162 cat - <<_ACEOF >conftest.h
30167 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30168 echo "obj-m := conftest.o" >build/Makefile
30170 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
30171 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
30172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30173 (eval $ac_try) 2>&5
30175 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30176 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
30177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30178 (eval $ac_try) 2>&5
30180 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30181 (exit $ac_status); }; }; then
30183 { $as_echo "$as_me:$LINENO: result: yes" >&5
30184 $as_echo "yes" >&6; }
30186 cat >>confdefs.h <<\_ACEOF
30187 #define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1
30192 $as_echo "$as_me: failed program was:" >&5
30193 sed 's
/^
/|
/' conftest.$ac_ext >&5
30195 { $as_echo "$as_me:$LINENO: result: no" >&5
30196 $as_echo "no" >&6; }
30205 EXTRA_KCFLAGS="$tmp_flags"
30208 { $as_echo "$as_me:$LINENO: checking whether struct blk_plug is available" >&5
30209 $as_echo_n "checking whether struct blk_plug is available... " >&6; }
30210 tmp_flags="$EXTRA_KCFLAGS"
30211 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
30214 cat confdefs.h - <<_ACEOF >conftest.c
30217 cat confdefs.h >>conftest.$ac_ext
30218 cat >>conftest.$ac_ext <<_ACEOF
30219 /* end confdefs.h. */
30222 #include <linux/blkdev.h>
30228 struct blk_plug plug;
30230 blk_start_plug(&plug);
30231 blk_finish_plug(&plug);
30241 cat - <<_ACEOF >conftest.h
30246 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30247 echo "obj-m := conftest.o" >build/Makefile
30249 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
30250 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
30251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30252 (eval $ac_try) 2>&5
30254 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30255 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
30256 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30257 (eval $ac_try) 2>&5
30259 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30260 (exit $ac_status); }; }; then
30262 { $as_echo "$as_me:$LINENO: result: yes" >&5
30263 $as_echo "yes" >&6; }
30265 cat >>confdefs.h <<\_ACEOF
30266 #define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1
30271 $as_echo "$as_me: failed program was:" >&5
30272 sed 's
/^
/|
/' conftest.$ac_ext >&5
30274 { $as_echo "$as_me:$LINENO: result: no" >&5
30275 $as_echo "no" >&6; }
30284 EXTRA_KCFLAGS="$tmp_flags"
30287 { $as_echo "$as_me:$LINENO: checking whether get_disk_ro() is available" >&5
30288 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
30289 tmp_flags="$EXTRA_KCFLAGS"
30290 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
30293 cat confdefs.h - <<_ACEOF >conftest.c
30296 cat confdefs.h >>conftest.$ac_ext
30297 cat >>conftest.$ac_ext <<_ACEOF
30298 /* end confdefs.h. */
30301 #include <linux/blkdev.h>
30307 struct gendisk *disk = NULL;
30308 (void) get_disk_ro(disk);
30318 cat - <<_ACEOF >conftest.h
30323 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30324 echo "obj-m := conftest.o" >build/Makefile
30326 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
30327 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
30328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30329 (eval $ac_try) 2>&5
30331 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30332 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
30333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30334 (eval $ac_try) 2>&5
30336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30337 (exit $ac_status); }; }; then
30339 { $as_echo "$as_me:$LINENO: result: yes" >&5
30340 $as_echo "yes" >&6; }
30342 cat >>confdefs.h <<\_ACEOF
30343 #define HAVE_GET_DISK_RO 1
30348 $as_echo "$as_me: failed program was:" >&5
30349 sed 's
/^
/|
/' conftest.$ac_ext >&5
30351 { $as_echo "$as_me:$LINENO: result: no" >&5
30352 $as_echo "no" >&6; }
30361 EXTRA_KCFLAGS="$tmp_flags"
30363 { $as_echo "$as_me:$LINENO: checking whether get_gendisk() is available" >&5
30364 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
30368 cat confdefs.h - <<_ACEOF >conftest.c
30371 cat confdefs.h >>conftest.$ac_ext
30372 cat >>conftest.$ac_ext <<_ACEOF
30373 /* end confdefs.h. */
30376 #include <linux/genhd.h>
30382 get_gendisk(0, NULL);
30392 cat - <<_ACEOF >conftest.h
30397 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30398 echo "obj-m := conftest.o" >build/Makefile
30400 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
30401 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
30402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30403 (eval $ac_try) 2>&5
30405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30406 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
30407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30408 (eval $ac_try) 2>&5
30410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30411 (exit $ac_status); }; }; then
30414 $as_echo "$as_me: failed program was:" >&5
30415 sed 's
/^
/|
/' conftest.$ac_ext >&5
30424 if test $rc -ne 0; then :
30426 { $as_echo "$as_me:$LINENO: result: no" >&5
30427 $as_echo "no" >&6; }
30430 if test "x$enable_linux_builtin" != xyes; then
30432 grep -q -E '[[:space
:]]get_gendisk
[[:space
:]]' \
30433 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
30435 if test $rc -ne 0; then
30437 for file in block/genhd.c; do
30438 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
30439 "$LINUX/$file" 2>/dev/null
30441 if test $rc -eq 0; then
30446 if test $export -eq 0; then :
30456 if test $rc -ne 0; then :
30458 { $as_echo "$as_me:$LINENO: result: no" >&5
30459 $as_echo "no" >&6; }
30463 { $as_echo "$as_me:$LINENO: result: yes" >&5
30464 $as_echo "yes" >&6; }
30466 cat >>confdefs.h <<\_ACEOF
30467 #define HAVE_GET_GENDISK 1
30476 { $as_echo "$as_me:$LINENO: checking whether bio_set_op_attrs is available" >&5
30477 $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
30480 cat confdefs.h - <<_ACEOF >conftest.c
30483 cat confdefs.h >>conftest.$ac_ext
30484 cat >>conftest.$ac_ext <<_ACEOF
30485 /* end confdefs.h. */
30488 #include <linux/bio.h>
30494 struct bio *bio __attribute__ ((unused)) = NULL;
30496 bio_set_op_attrs(bio, 0, 0);
30506 cat - <<_ACEOF >conftest.h
30511 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30512 echo "obj-m := conftest.o" >build/Makefile
30514 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
30515 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
30516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30517 (eval $ac_try) 2>&5
30519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30520 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
30521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30522 (eval $ac_try) 2>&5
30524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30525 (exit $ac_status); }; }; then
30527 { $as_echo "$as_me:$LINENO: result: yes" >&5
30528 $as_echo "yes" >&6; }
30530 cat >>confdefs.h <<\_ACEOF
30531 #define HAVE_BIO_SET_OP_ATTRS 1
30536 $as_echo "$as_me: failed program was:" >&5
30537 sed 's
/^
/|
/' conftest.$ac_ext >&5
30539 { $as_echo "$as_me:$LINENO: result: no" >&5
30540 $as_echo "no" >&6; }
30551 { $as_echo "$as_me:$LINENO: checking whether generic_readlink is global" >&5
30552 $as_echo_n "checking whether generic_readlink is global... " >&6; }
30555 cat confdefs.h - <<_ACEOF >conftest.c
30558 cat confdefs.h >>conftest.$ac_ext
30559 cat >>conftest.$ac_ext <<_ACEOF
30560 /* end confdefs.h. */
30563 #include <linux/fs.h>
30569 int i __attribute__ ((unused));
30571 i = generic_readlink(NULL, NULL, 0);
30581 cat - <<_ACEOF >conftest.h
30586 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30587 echo "obj-m := conftest.o" >build/Makefile
30589 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
30590 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
30591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30592 (eval $ac_try) 2>&5
30594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30595 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
30596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30597 (eval $ac_try) 2>&5
30599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30600 (exit $ac_status); }; }; then
30602 { $as_echo "$as_me:$LINENO: result: yes" >&5
30603 $as_echo "yes" >&6; }
30605 cat >>confdefs.h <<\_ACEOF
30606 #define HAVE_GENERIC_READLINK 1
30611 $as_echo "$as_me: failed program was:" >&5
30612 sed 's
/^
/|
/' conftest.$ac_ext >&5
30614 { $as_echo "$as_me:$LINENO: result: no" >&5
30615 $as_echo "no" >&6; }
30626 { $as_echo "$as_me:$LINENO: checking whether ql->discard_granularity is available" >&5
30627 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
30630 cat confdefs.h - <<_ACEOF >conftest.c
30633 cat confdefs.h >>conftest.$ac_ext
30634 cat >>conftest.$ac_ext <<_ACEOF
30635 /* end confdefs.h. */
30638 #include <linux/blkdev.h>
30644 struct queue_limits ql __attribute__ ((unused));
30646 ql.discard_granularity = 0;
30656 cat - <<_ACEOF >conftest.h
30661 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30662 echo "obj-m := conftest.o" >build/Makefile
30664 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
30665 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
30666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30667 (eval $ac_try) 2>&5
30669 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30670 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
30671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30672 (eval $ac_try) 2>&5
30674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30675 (exit $ac_status); }; }; then
30677 { $as_echo "$as_me:$LINENO: result: yes" >&5
30678 $as_echo "yes" >&6; }
30680 cat >>confdefs.h <<\_ACEOF
30681 #define HAVE_DISCARD_GRANULARITY 1
30686 $as_echo "$as_me: failed program was:" >&5
30687 sed 's
/^
/|
/' conftest.$ac_ext >&5
30689 { $as_echo "$as_me:$LINENO: result: no" >&5
30690 $as_echo "no" >&6; }
30701 { $as_echo "$as_me:$LINENO: checking whether super_block uses const struct xattr_handler" >&5
30702 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
30705 cat confdefs.h - <<_ACEOF >conftest.c
30708 cat confdefs.h >>conftest.$ac_ext
30709 cat >>conftest.$ac_ext <<_ACEOF
30710 /* end confdefs.h. */
30713 #include <linux/fs.h>
30714 #include <linux/xattr.h>
30716 const struct xattr_handler xattr_test_handler = {
30722 const struct xattr_handler *xattr_handlers[] = {
30723 &xattr_test_handler,
30726 const struct super_block sb __attribute__ ((unused)) = {
30727 .s_xattr = xattr_handlers,
30743 cat - <<_ACEOF >conftest.h
30748 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30749 echo "obj-m := conftest.o" >build/Makefile
30751 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
30752 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
30753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30754 (eval $ac_try) 2>&5
30756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30757 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
30758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30759 (eval $ac_try) 2>&5
30761 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30762 (exit $ac_status); }; }; then
30764 { $as_echo "$as_me:$LINENO: result: yes" >&5
30765 $as_echo "yes" >&6; }
30767 cat >>confdefs.h <<\_ACEOF
30768 #define HAVE_CONST_XATTR_HANDLER 1
30773 $as_echo "$as_me: failed program was:" >&5
30774 sed 's
/^
/|
/' conftest.$ac_ext >&5
30776 { $as_echo "$as_me:$LINENO: result: no" >&5
30777 $as_echo "no" >&6; }
30788 { $as_echo "$as_me:$LINENO: checking whether xattr_handler has name" >&5
30789 $as_echo_n "checking whether xattr_handler has name... " >&6; }
30792 cat confdefs.h - <<_ACEOF >conftest.c
30795 cat confdefs.h >>conftest.$ac_ext
30796 cat >>conftest.$ac_ext <<_ACEOF
30797 /* end confdefs.h. */
30800 #include <linux/xattr.h>
30802 static const struct xattr_handler
30803 xops __attribute__ ((unused)) = {
30804 .name = XATTR_NAME_POSIX_ACL_ACCESS,
30820 cat - <<_ACEOF >conftest.h
30825 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30826 echo "obj-m := conftest.o" >build/Makefile
30828 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
30829 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
30830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30831 (eval $ac_try) 2>&5
30833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30834 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
30835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30836 (eval $ac_try) 2>&5
30838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30839 (exit $ac_status); }; }; then
30841 { $as_echo "$as_me:$LINENO: result: yes" >&5
30842 $as_echo "yes" >&6; }
30844 cat >>confdefs.h <<\_ACEOF
30845 #define HAVE_XATTR_HANDLER_NAME 1
30850 $as_echo "$as_me: failed program was:" >&5
30851 sed 's
/^
/|
/' conftest.$ac_ext >&5
30853 { $as_echo "$as_me:$LINENO: result: no" >&5
30854 $as_echo "no" >&6; }
30865 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants both dentry and inode" >&5
30866 $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
30869 cat confdefs.h - <<_ACEOF >conftest.c
30872 cat confdefs.h >>conftest.$ac_ext
30873 cat >>conftest.$ac_ext <<_ACEOF
30874 /* end confdefs.h. */
30877 #include <linux/xattr.h>
30879 int get(const struct xattr_handler *handler,
30880 struct dentry *dentry, struct inode *inode,
30881 const char *name, void *buffer, size_t size) { return 0; }
30882 static const struct xattr_handler
30883 xops __attribute__ ((unused)) = {
30900 cat - <<_ACEOF >conftest.h
30905 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30906 echo "obj-m := conftest.o" >build/Makefile
30908 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
30909 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
30910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30911 (eval $ac_try) 2>&5
30913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30914 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
30915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30916 (eval $ac_try) 2>&5
30918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30919 (exit $ac_status); }; }; then
30921 { $as_echo "$as_me:$LINENO: result: yes" >&5
30922 $as_echo "yes" >&6; }
30924 cat >>confdefs.h <<\_ACEOF
30925 #define HAVE_XATTR_GET_DENTRY_INODE 1
30930 $as_echo "$as_me: failed program was:" >&5
30931 sed 's
/^
/|
/' conftest.$ac_ext >&5
30933 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants xattr_handler" >&5
30934 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
30937 cat confdefs.h - <<_ACEOF >conftest.c
30940 cat confdefs.h >>conftest.$ac_ext
30941 cat >>conftest.$ac_ext <<_ACEOF
30942 /* end confdefs.h. */
30945 #include <linux/xattr.h>
30947 int get(const struct xattr_handler *handler,
30948 struct dentry *dentry, const char *name,
30949 void *buffer, size_t size) { return 0; }
30950 static const struct xattr_handler
30951 xops __attribute__ ((unused)) = {
30968 cat - <<_ACEOF >conftest.h
30973 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
30974 echo "obj-m := conftest.o" >build/Makefile
30976 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
30977 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
30978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30979 (eval $ac_try) 2>&5
30981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30982 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
30983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30984 (eval $ac_try) 2>&5
30986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30987 (exit $ac_status); }; }; then
30989 { $as_echo "$as_me:$LINENO: result: yes" >&5
30990 $as_echo "yes" >&6; }
30992 cat >>confdefs.h <<\_ACEOF
30993 #define HAVE_XATTR_GET_HANDLER 1
30998 $as_echo "$as_me: failed program was:" >&5
30999 sed 's
/^
/|
/' conftest.$ac_ext >&5
31001 { $as_echo "$as_me:$LINENO: result: no" >&5
31002 $as_echo "no" >&6; }
31003 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants dentry" >&5
31004 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
31007 cat confdefs.h - <<_ACEOF >conftest.c
31010 cat confdefs.h >>conftest.$ac_ext
31011 cat >>conftest.$ac_ext <<_ACEOF
31012 /* end confdefs.h. */
31015 #include <linux/xattr.h>
31017 int get(struct dentry *dentry, const char *name,
31018 void *buffer, size_t size, int handler_flags)
31020 static const struct xattr_handler
31021 xops __attribute__ ((unused)) = {
31038 cat - <<_ACEOF >conftest.h
31043 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31044 echo "obj-m := conftest.o" >build/Makefile
31046 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
31047 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
31048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31049 (eval $ac_try) 2>&5
31051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31052 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
31053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31054 (eval $ac_try) 2>&5
31056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31057 (exit $ac_status); }; }; then
31059 { $as_echo "$as_me:$LINENO: result: yes" >&5
31060 $as_echo "yes" >&6; }
31062 cat >>confdefs.h <<\_ACEOF
31063 #define HAVE_XATTR_GET_DENTRY 1
31068 $as_echo "$as_me: failed program was:" >&5
31069 sed 's
/^
/|
/' conftest.$ac_ext >&5
31071 { $as_echo "$as_me:$LINENO: result: no" >&5
31072 $as_echo "no" >&6; }
31073 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->get() wants inode" >&5
31074 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
31077 cat confdefs.h - <<_ACEOF >conftest.c
31080 cat confdefs.h >>conftest.$ac_ext
31081 cat >>conftest.$ac_ext <<_ACEOF
31082 /* end confdefs.h. */
31085 #include <linux/xattr.h>
31087 int get(struct inode *ip, const char *name,
31088 void *buffer, size_t size) { return 0; }
31089 static const struct xattr_handler
31090 xops __attribute__ ((unused)) = {
31107 cat - <<_ACEOF >conftest.h
31112 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31113 echo "obj-m := conftest.o" >build/Makefile
31115 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
31116 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
31117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31118 (eval $ac_try) 2>&5
31120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31121 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
31122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31123 (eval $ac_try) 2>&5
31125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31126 (exit $ac_status); }; }; then
31128 { $as_echo "$as_me:$LINENO: result: yes" >&5
31129 $as_echo "yes" >&6; }
31131 cat >>confdefs.h <<\_ACEOF
31132 #define HAVE_XATTR_GET_INODE 1
31137 $as_echo "$as_me: failed program was:" >&5
31138 sed 's
/^
/|
/' conftest.$ac_ext >&5
31140 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
31141 $as_echo "$as_me: error: no; please file a bug report" >&2;}
31142 { (exit 1); exit 1; }; }
31177 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants both dentry and inode" >&5
31178 $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
31181 cat confdefs.h - <<_ACEOF >conftest.c
31184 cat confdefs.h >>conftest.$ac_ext
31185 cat >>conftest.$ac_ext <<_ACEOF
31186 /* end confdefs.h. */
31189 #include <linux/xattr.h>
31191 int set(const struct xattr_handler *handler,
31192 struct dentry *dentry, struct inode *inode,
31193 const char *name, const void *buffer,
31194 size_t size, int flags)
31196 static const struct xattr_handler
31197 xops __attribute__ ((unused)) = {
31214 cat - <<_ACEOF >conftest.h
31219 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31220 echo "obj-m := conftest.o" >build/Makefile
31222 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
31223 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
31224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31225 (eval $ac_try) 2>&5
31227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31228 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
31229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31230 (eval $ac_try) 2>&5
31232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31233 (exit $ac_status); }; }; then
31235 { $as_echo "$as_me:$LINENO: result: yes" >&5
31236 $as_echo "yes" >&6; }
31238 cat >>confdefs.h <<\_ACEOF
31239 #define HAVE_XATTR_SET_DENTRY_INODE 1
31244 $as_echo "$as_me: failed program was:" >&5
31245 sed 's
/^
/|
/' conftest.$ac_ext >&5
31247 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants xattr_handler" >&5
31248 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
31251 cat confdefs.h - <<_ACEOF >conftest.c
31254 cat confdefs.h >>conftest.$ac_ext
31255 cat >>conftest.$ac_ext <<_ACEOF
31256 /* end confdefs.h. */
31259 #include <linux/xattr.h>
31261 int set(const struct xattr_handler *handler,
31262 struct dentry *dentry, const char *name,
31263 const void *buffer, size_t size, int flags)
31265 static const struct xattr_handler
31266 xops __attribute__ ((unused)) = {
31283 cat - <<_ACEOF >conftest.h
31288 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31289 echo "obj-m := conftest.o" >build/Makefile
31291 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
31292 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
31293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31294 (eval $ac_try) 2>&5
31296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31297 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
31298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31299 (eval $ac_try) 2>&5
31301 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31302 (exit $ac_status); }; }; then
31304 { $as_echo "$as_me:$LINENO: result: yes" >&5
31305 $as_echo "yes" >&6; }
31307 cat >>confdefs.h <<\_ACEOF
31308 #define HAVE_XATTR_SET_HANDLER 1
31313 $as_echo "$as_me: failed program was:" >&5
31314 sed 's
/^
/|
/' conftest.$ac_ext >&5
31316 { $as_echo "$as_me:$LINENO: result: no" >&5
31317 $as_echo "no" >&6; }
31318 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants dentry" >&5
31319 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
31322 cat confdefs.h - <<_ACEOF >conftest.c
31325 cat confdefs.h >>conftest.$ac_ext
31326 cat >>conftest.$ac_ext <<_ACEOF
31327 /* end confdefs.h. */
31330 #include <linux/xattr.h>
31332 int set(struct dentry *dentry, const char *name,
31333 const void *buffer, size_t size, int flags,
31334 int handler_flags) { return 0; }
31335 static const struct xattr_handler
31336 xops __attribute__ ((unused)) = {
31353 cat - <<_ACEOF >conftest.h
31358 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31359 echo "obj-m := conftest.o" >build/Makefile
31361 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
31362 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
31363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31364 (eval $ac_try) 2>&5
31366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31367 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
31368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31369 (eval $ac_try) 2>&5
31371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31372 (exit $ac_status); }; }; then
31374 { $as_echo "$as_me:$LINENO: result: yes" >&5
31375 $as_echo "yes" >&6; }
31377 cat >>confdefs.h <<\_ACEOF
31378 #define HAVE_XATTR_SET_DENTRY 1
31383 $as_echo "$as_me: failed program was:" >&5
31384 sed 's
/^
/|
/' conftest.$ac_ext >&5
31386 { $as_echo "$as_me:$LINENO: result: no" >&5
31387 $as_echo "no" >&6; }
31388 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->set() wants inode" >&5
31389 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
31392 cat confdefs.h - <<_ACEOF >conftest.c
31395 cat confdefs.h >>conftest.$ac_ext
31396 cat >>conftest.$ac_ext <<_ACEOF
31397 /* end confdefs.h. */
31400 #include <linux/xattr.h>
31402 int set(struct inode *ip, const char *name,
31403 const void *buffer, size_t size, int flags)
31405 static const struct xattr_handler
31406 xops __attribute__ ((unused)) = {
31423 cat - <<_ACEOF >conftest.h
31428 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31429 echo "obj-m := conftest.o" >build/Makefile
31431 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
31432 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
31433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31434 (eval $ac_try) 2>&5
31436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31437 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
31438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31439 (eval $ac_try) 2>&5
31441 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31442 (exit $ac_status); }; }; then
31444 { $as_echo "$as_me:$LINENO: result: yes" >&5
31445 $as_echo "yes" >&6; }
31447 cat >>confdefs.h <<\_ACEOF
31448 #define HAVE_XATTR_SET_INODE 1
31453 $as_echo "$as_me: failed program was:" >&5
31454 sed 's
/^
/|
/' conftest.$ac_ext >&5
31456 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
31457 $as_echo "$as_me: error: no; please file a bug report" >&2;}
31458 { (exit 1); exit 1; }; }
31493 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants simple" >&5
31494 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
31497 cat confdefs.h - <<_ACEOF >conftest.c
31500 cat confdefs.h >>conftest.$ac_ext
31501 cat >>conftest.$ac_ext <<_ACEOF
31502 /* end confdefs.h. */
31505 #include <linux/xattr.h>
31507 bool list(struct dentry *dentry) { return 0; }
31508 static const struct xattr_handler
31509 xops __attribute__ ((unused)) = {
31526 cat - <<_ACEOF >conftest.h
31531 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31532 echo "obj-m := conftest.o" >build/Makefile
31534 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
31535 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
31536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31537 (eval $ac_try) 2>&5
31539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31540 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
31541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31542 (eval $ac_try) 2>&5
31544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31545 (exit $ac_status); }; }; then
31547 { $as_echo "$as_me:$LINENO: result: yes" >&5
31548 $as_echo "yes" >&6; }
31550 cat >>confdefs.h <<\_ACEOF
31551 #define HAVE_XATTR_LIST_SIMPLE 1
31556 $as_echo "$as_me: failed program was:" >&5
31557 sed 's
/^
/|
/' conftest.$ac_ext >&5
31559 { $as_echo "$as_me:$LINENO: result: no" >&5
31560 $as_echo "no" >&6; }
31561 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants xattr_handler" >&5
31562 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
31565 cat confdefs.h - <<_ACEOF >conftest.c
31568 cat confdefs.h >>conftest.$ac_ext
31569 cat >>conftest.$ac_ext <<_ACEOF
31570 /* end confdefs.h. */
31573 #include <linux/xattr.h>
31575 size_t list(const struct xattr_handler *handler,
31576 struct dentry *dentry, char *list, size_t list_size,
31577 const char *name, size_t name_len) { return 0; }
31578 static const struct xattr_handler
31579 xops __attribute__ ((unused)) = {
31596 cat - <<_ACEOF >conftest.h
31601 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31602 echo "obj-m := conftest.o" >build/Makefile
31604 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
31605 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
31606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31607 (eval $ac_try) 2>&5
31609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31610 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
31611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31612 (eval $ac_try) 2>&5
31614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31615 (exit $ac_status); }; }; then
31617 { $as_echo "$as_me:$LINENO: result: yes" >&5
31618 $as_echo "yes" >&6; }
31620 cat >>confdefs.h <<\_ACEOF
31621 #define HAVE_XATTR_LIST_HANDLER 1
31626 $as_echo "$as_me: failed program was:" >&5
31627 sed 's
/^
/|
/' conftest.$ac_ext >&5
31629 { $as_echo "$as_me:$LINENO: result: no" >&5
31630 $as_echo "no" >&6; }
31631 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants dentry" >&5
31632 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
31635 cat confdefs.h - <<_ACEOF >conftest.c
31638 cat confdefs.h >>conftest.$ac_ext
31639 cat >>conftest.$ac_ext <<_ACEOF
31640 /* end confdefs.h. */
31643 #include <linux/xattr.h>
31645 size_t list(struct dentry *dentry,
31646 char *list, size_t list_size,
31647 const char *name, size_t name_len,
31648 int handler_flags) { return 0; }
31649 static const struct xattr_handler
31650 xops __attribute__ ((unused)) = {
31667 cat - <<_ACEOF >conftest.h
31672 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31673 echo "obj-m := conftest.o" >build/Makefile
31675 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
31676 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
31677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31678 (eval $ac_try) 2>&5
31680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31681 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
31682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31683 (eval $ac_try) 2>&5
31685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31686 (exit $ac_status); }; }; then
31688 { $as_echo "$as_me:$LINENO: result: yes" >&5
31689 $as_echo "yes" >&6; }
31691 cat >>confdefs.h <<\_ACEOF
31692 #define HAVE_XATTR_LIST_DENTRY 1
31697 $as_echo "$as_me: failed program was:" >&5
31698 sed 's
/^
/|
/' conftest.$ac_ext >&5
31700 { $as_echo "$as_me:$LINENO: result: no" >&5
31701 $as_echo "no" >&6; }
31702 { $as_echo "$as_me:$LINENO: checking whether xattr_handler->list() wants inode" >&5
31703 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
31706 cat confdefs.h - <<_ACEOF >conftest.c
31709 cat confdefs.h >>conftest.$ac_ext
31710 cat >>conftest.$ac_ext <<_ACEOF
31711 /* end confdefs.h. */
31714 #include <linux/xattr.h>
31716 size_t list(struct inode *ip, char *lst,
31717 size_t list_size, const char *name,
31718 size_t name_len) { return 0; }
31719 static const struct xattr_handler
31720 xops __attribute__ ((unused)) = {
31737 cat - <<_ACEOF >conftest.h
31742 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31743 echo "obj-m := conftest.o" >build/Makefile
31745 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
31746 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
31747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31748 (eval $ac_try) 2>&5
31750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31751 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
31752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31753 (eval $ac_try) 2>&5
31755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31756 (exit $ac_status); }; }; then
31758 { $as_echo "$as_me:$LINENO: result: yes" >&5
31759 $as_echo "yes" >&6; }
31761 cat >>confdefs.h <<\_ACEOF
31762 #define HAVE_XATTR_LIST_INODE 1
31767 $as_echo "$as_me: failed program was:" >&5
31768 sed 's
/^
/|
/' conftest.$ac_ext >&5
31770 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
31771 $as_echo "$as_me: error: no; please file a bug report" >&2;}
31772 { (exit 1); exit 1; }; }
31807 { $as_echo "$as_me:$LINENO: checking whether inode_owner_or_capable() exists" >&5
31808 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
31811 cat confdefs.h - <<_ACEOF >conftest.c
31814 cat confdefs.h >>conftest.$ac_ext
31815 cat >>conftest.$ac_ext <<_ACEOF
31816 /* end confdefs.h. */
31819 #include <linux/fs.h>
31825 struct inode *ip = NULL;
31826 (void) inode_owner_or_capable(ip);
31836 cat - <<_ACEOF >conftest.h
31841 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31842 echo "obj-m := conftest.o" >build/Makefile
31844 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
31845 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
31846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31847 (eval $ac_try) 2>&5
31849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31850 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
31851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31852 (eval $ac_try) 2>&5
31854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31855 (exit $ac_status); }; }; then
31857 { $as_echo "$as_me:$LINENO: result: yes" >&5
31858 $as_echo "yes" >&6; }
31860 cat >>confdefs.h <<\_ACEOF
31861 #define HAVE_INODE_OWNER_OR_CAPABLE 1
31866 $as_echo "$as_me: failed program was:" >&5
31867 sed 's
/^
/|
/' conftest.$ac_ext >&5
31869 { $as_echo "$as_me:$LINENO: result: no" >&5
31870 $as_echo "no" >&6; }
31871 { $as_echo "$as_me:$LINENO: checking whether is_owner_or_cap() exists" >&5
31872 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
31875 cat confdefs.h - <<_ACEOF >conftest.c
31878 cat confdefs.h >>conftest.$ac_ext
31879 cat >>conftest.$ac_ext <<_ACEOF
31880 /* end confdefs.h. */
31883 #include <linux/fs.h>
31884 #include <linux/sched.h>
31890 struct inode *ip = NULL;
31891 (void) is_owner_or_cap(ip);
31901 cat - <<_ACEOF >conftest.h
31906 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31907 echo "obj-m := conftest.o" >build/Makefile
31909 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
31910 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
31911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31912 (eval $ac_try) 2>&5
31914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31915 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
31916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31917 (eval $ac_try) 2>&5
31919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31920 (exit $ac_status); }; }; then
31922 { $as_echo "$as_me:$LINENO: result: yes" >&5
31923 $as_echo "yes" >&6; }
31925 cat >>confdefs.h <<\_ACEOF
31926 #define HAVE_IS_OWNER_OR_CAP 1
31931 $as_echo "$as_me: failed program was:" >&5
31932 sed 's
/^
/|
/' conftest.$ac_ext >&5
31934 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
31935 https://github.com/zfsonlinux/zfs/issues/new" >&5
31936 $as_echo "$as_me: error: no - Please file a bug report at
31937 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
31938 { (exit 1); exit 1; }; }
31957 { $as_echo "$as_me:$LINENO: checking whether posix_acl_from_xattr() needs user_ns" >&5
31958 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
31961 cat confdefs.h - <<_ACEOF >conftest.c
31964 cat confdefs.h >>conftest.$ac_ext
31965 cat >>conftest.$ac_ext <<_ACEOF
31966 /* end confdefs.h. */
31969 #include <linux/cred.h>
31970 #include <linux/fs.h>
31971 #include <linux/posix_acl_xattr.h>
31977 posix_acl_from_xattr(&init_user_ns, NULL, 0);
31987 cat - <<_ACEOF >conftest.h
31992 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
31993 echo "obj-m := conftest.o" >build/Makefile
31995 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
31996 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
31997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31998 (eval $ac_try) 2>&5
32000 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32001 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
32002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32003 (eval $ac_try) 2>&5
32005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32006 (exit $ac_status); }; }; then
32008 { $as_echo "$as_me:$LINENO: result: yes" >&5
32009 $as_echo "yes" >&6; }
32011 cat >>confdefs.h <<\_ACEOF
32012 #define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1
32017 $as_echo "$as_me: failed program was:" >&5
32018 sed 's
/^
/|
/' conftest.$ac_ext >&5
32020 { $as_echo "$as_me:$LINENO: result: no" >&5
32021 $as_echo "no" >&6; }
32032 { $as_echo "$as_me:$LINENO: checking whether posix_acl_release() is available" >&5
32033 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
32036 cat confdefs.h - <<_ACEOF >conftest.c
32039 cat confdefs.h >>conftest.$ac_ext
32040 cat >>conftest.$ac_ext <<_ACEOF
32041 /* end confdefs.h. */
32044 #include <linux/cred.h>
32045 #include <linux/fs.h>
32046 #include <linux/posix_acl.h>
32052 struct posix_acl* tmp = posix_acl_alloc(1, 0);
32053 posix_acl_release(tmp);
32063 cat - <<_ACEOF >conftest.h
32068 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32069 echo "obj-m := conftest.o" >build/Makefile
32071 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
32072 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
32073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32074 (eval $ac_try) 2>&5
32076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32077 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
32078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32079 (eval $ac_try) 2>&5
32081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32082 (exit $ac_status); }; }; then
32084 { $as_echo "$as_me:$LINENO: result: yes" >&5
32085 $as_echo "yes" >&6; }
32087 cat >>confdefs.h <<\_ACEOF
32088 #define HAVE_POSIX_ACL_RELEASE 1
32093 $as_echo "$as_me: failed program was:" >&5
32094 sed 's
/^
/|
/' conftest.$ac_ext >&5
32096 { $as_echo "$as_me:$LINENO: result: no" >&5
32097 $as_echo "no" >&6; }
32107 { $as_echo "$as_me:$LINENO: checking whether posix_acl_release() is GPL-only" >&5
32108 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
32111 cat confdefs.h - <<_ACEOF >conftest.c
32114 cat confdefs.h >>conftest.$ac_ext
32115 cat >>conftest.$ac_ext <<_ACEOF
32116 /* end confdefs.h. */
32119 #include <linux/cred.h>
32120 #include <linux/fs.h>
32121 #include <linux/posix_acl.h>
32123 MODULE_LICENSE("$ZFS_META_LICENSE");
32129 struct posix_acl* tmp = posix_acl_alloc(1, 0);
32130 posix_acl_release(tmp);
32140 cat - <<_ACEOF >conftest.h
32145 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32146 echo "obj-m := conftest.o" >build/Makefile
32148 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
32149 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
32150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32151 (eval $ac_try) 2>&5
32153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32154 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
32155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32156 (eval $ac_try) 2>&5
32158 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32159 (exit $ac_status); }; }; then
32161 { $as_echo "$as_me:$LINENO: result: no" >&5
32162 $as_echo "no" >&6; }
32165 $as_echo "$as_me: failed program was:" >&5
32166 sed 's
/^
/|
/' conftest.$ac_ext >&5
32168 { $as_echo "$as_me:$LINENO: result: yes" >&5
32169 $as_echo "yes" >&6; }
32171 cat >>confdefs.h <<\_ACEOF
32172 #define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1
32185 { $as_echo "$as_me:$LINENO: checking whether set_cached_acl() is usable" >&5
32186 $as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
32189 cat confdefs.h - <<_ACEOF >conftest.c
32192 cat confdefs.h >>conftest.$ac_ext
32193 cat >>conftest.$ac_ext <<_ACEOF
32194 /* end confdefs.h. */
32197 #include <linux/module.h>
32198 #include <linux/cred.h>
32199 #include <linux/fs.h>
32200 #include <linux/posix_acl.h>
32202 MODULE_LICENSE("$ZFS_META_LICENSE");
32208 struct inode *ip = NULL;
32209 struct posix_acl *acl = posix_acl_alloc(1, 0);
32210 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
32211 forget_cached_acl(ip, ACL_TYPE_ACCESS);
32221 cat - <<_ACEOF >conftest.h
32226 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32227 echo "obj-m := conftest.o" >build/Makefile
32229 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
32230 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
32231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32232 (eval $ac_try) 2>&5
32234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32235 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
32236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32237 (eval $ac_try) 2>&5
32239 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32240 (exit $ac_status); }; }; then
32242 { $as_echo "$as_me:$LINENO: result: yes" >&5
32243 $as_echo "yes" >&6; }
32245 cat >>confdefs.h <<\_ACEOF
32246 #define HAVE_SET_CACHED_ACL_USABLE 1
32251 $as_echo "$as_me: failed program was:" >&5
32252 sed 's
/^
/|
/' conftest.$ac_ext >&5
32254 { $as_echo "$as_me:$LINENO: result: no" >&5
32255 $as_echo "no" >&6; }
32266 { $as_echo "$as_me:$LINENO: checking whether posix_acl_chmod exists" >&5
32267 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
32270 cat confdefs.h - <<_ACEOF >conftest.c
32273 cat confdefs.h >>conftest.$ac_ext
32274 cat >>conftest.$ac_ext <<_ACEOF
32275 /* end confdefs.h. */
32278 #include <linux/fs.h>
32279 #include <linux/posix_acl.h>
32285 posix_acl_chmod(NULL, 0, 0)
32295 cat - <<_ACEOF >conftest.h
32300 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32301 echo "obj-m := conftest.o" >build/Makefile
32303 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
32304 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
32305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32306 (eval $ac_try) 2>&5
32308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32309 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
32310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32311 (eval $ac_try) 2>&5
32313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32314 (exit $ac_status); }; }; then
32316 { $as_echo "$as_me:$LINENO: result: yes" >&5
32317 $as_echo "yes" >&6; }
32319 cat >>confdefs.h <<\_ACEOF
32320 #define HAVE_POSIX_ACL_CHMOD 1
32325 $as_echo "$as_me: failed program was:" >&5
32326 sed 's
/^
/|
/' conftest.$ac_ext >&5
32328 { $as_echo "$as_me:$LINENO: result: no" >&5
32329 $as_echo "no" >&6; }
32339 { $as_echo "$as_me:$LINENO: checking whether __posix_acl_chmod exists" >&5
32340 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
32343 cat confdefs.h - <<_ACEOF >conftest.c
32346 cat confdefs.h >>conftest.$ac_ext
32347 cat >>conftest.$ac_ext <<_ACEOF
32348 /* end confdefs.h. */
32351 #include <linux/fs.h>
32352 #include <linux/posix_acl.h>
32358 __posix_acl_chmod(NULL, 0, 0)
32368 cat - <<_ACEOF >conftest.h
32373 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32374 echo "obj-m := conftest.o" >build/Makefile
32376 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
32377 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
32378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32379 (eval $ac_try) 2>&5
32381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32382 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
32383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32384 (eval $ac_try) 2>&5
32386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32387 (exit $ac_status); }; }; then
32389 { $as_echo "$as_me:$LINENO: result: yes" >&5
32390 $as_echo "yes" >&6; }
32392 cat >>confdefs.h <<\_ACEOF
32393 #define HAVE___POSIX_ACL_CHMOD 1
32398 $as_echo "$as_me: failed program was:" >&5
32399 sed 's
/^
/|
/' conftest.$ac_ext >&5
32401 { $as_echo "$as_me:$LINENO: result: no" >&5
32402 $as_echo "no" >&6; }
32413 { $as_echo "$as_me:$LINENO: checking whether posix_acl_equiv_mode() wants umode_t" >&5
32414 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
32417 cat confdefs.h - <<_ACEOF >conftest.c
32420 cat confdefs.h >>conftest.$ac_ext
32421 cat >>conftest.$ac_ext <<_ACEOF
32422 /* end confdefs.h. */
32425 #include <linux/fs.h>
32426 #include <linux/posix_acl.h>
32433 posix_acl_equiv_mode(NULL,&tmp);
32443 cat - <<_ACEOF >conftest.h
32448 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32449 echo "obj-m := conftest.o" >build/Makefile
32451 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
32452 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
32453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32454 (eval $ac_try) 2>&5
32456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32457 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
32458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32459 (eval $ac_try) 2>&5
32461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32462 (exit $ac_status); }; }; then
32464 { $as_echo "$as_me:$LINENO: result: yes" >&5
32465 $as_echo "yes" >&6; }
32467 cat >>confdefs.h <<\_ACEOF
32468 #define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1
32473 $as_echo "$as_me: failed program was:" >&5
32474 sed 's
/^
/|
/' conftest.$ac_ext >&5
32476 { $as_echo "$as_me:$LINENO: result: no" >&5
32477 $as_echo "no" >&6; }
32488 { $as_echo "$as_me:$LINENO: checking whether posix_acl_valid() wants user namespace" >&5
32489 $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
32492 cat confdefs.h - <<_ACEOF >conftest.c
32495 cat confdefs.h >>conftest.$ac_ext
32496 cat >>conftest.$ac_ext <<_ACEOF
32497 /* end confdefs.h. */
32500 #include <linux/fs.h>
32501 #include <linux/posix_acl.h>
32507 struct user_namespace *user_ns = NULL;
32508 const struct posix_acl *acl = NULL;
32511 error = posix_acl_valid(user_ns, acl);
32521 cat - <<_ACEOF >conftest.h
32526 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32527 echo "obj-m := conftest.o" >build/Makefile
32529 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
32530 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
32531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32532 (eval $ac_try) 2>&5
32534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32535 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
32536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32537 (eval $ac_try) 2>&5
32539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32540 (exit $ac_status); }; }; then
32542 { $as_echo "$as_me:$LINENO: result: yes" >&5
32543 $as_echo "yes" >&6; }
32545 cat >>confdefs.h <<\_ACEOF
32546 #define HAVE_POSIX_ACL_VALID_WITH_NS 1
32551 $as_echo "$as_me: failed program was:" >&5
32552 sed 's
/^
/|
/' conftest.$ac_ext >&5
32554 { $as_echo "$as_me:$LINENO: result: no" >&5
32555 $as_echo "no" >&6; }
32566 { $as_echo "$as_me:$LINENO: checking whether iops->permission() exists" >&5
32567 $as_echo_n "checking whether iops->permission() exists... " >&6; }
32570 cat confdefs.h - <<_ACEOF >conftest.c
32573 cat confdefs.h >>conftest.$ac_ext
32574 cat >>conftest.$ac_ext <<_ACEOF
32575 /* end confdefs.h. */
32578 #include <linux/fs.h>
32580 int permission_fn(struct inode *inode, int mask) { return 0; }
32582 static const struct inode_operations
32583 iops __attribute__ ((unused)) = {
32584 .permission = permission_fn,
32600 cat - <<_ACEOF >conftest.h
32605 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32606 echo "obj-m := conftest.o" >build/Makefile
32608 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
32609 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
32610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32611 (eval $ac_try) 2>&5
32613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32614 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
32615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32616 (eval $ac_try) 2>&5
32618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32619 (exit $ac_status); }; }; then
32621 { $as_echo "$as_me:$LINENO: result: yes" >&5
32622 $as_echo "yes" >&6; }
32624 cat >>confdefs.h <<\_ACEOF
32625 #define HAVE_PERMISSION 1
32630 $as_echo "$as_me: failed program was:" >&5
32631 sed 's
/^
/|
/' conftest.$ac_ext >&5
32633 { $as_echo "$as_me:$LINENO: result: no" >&5
32634 $as_echo "no" >&6; }
32645 { $as_echo "$as_me:$LINENO: checking whether iops->permission() wants nameidata" >&5
32646 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
32649 cat confdefs.h - <<_ACEOF >conftest.c
32652 cat confdefs.h >>conftest.$ac_ext
32653 cat >>conftest.$ac_ext <<_ACEOF
32654 /* end confdefs.h. */
32657 #include <linux/fs.h>
32659 int permission_fn(struct inode *inode, int mask,
32660 struct nameidata *nd) { return 0; }
32662 static const struct inode_operations
32663 iops __attribute__ ((unused)) = {
32664 .permission = permission_fn,
32680 cat - <<_ACEOF >conftest.h
32685 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32686 echo "obj-m := conftest.o" >build/Makefile
32688 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
32689 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
32690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32691 (eval $ac_try) 2>&5
32693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32694 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
32695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32696 (eval $ac_try) 2>&5
32698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32699 (exit $ac_status); }; }; then
32701 { $as_echo "$as_me:$LINENO: result: yes" >&5
32702 $as_echo "yes" >&6; }
32704 cat >>confdefs.h <<\_ACEOF
32705 #define HAVE_PERMISSION 1
32709 cat >>confdefs.h <<\_ACEOF
32710 #define HAVE_PERMISSION_WITH_NAMEIDATA 1
32715 $as_echo "$as_me: failed program was:" >&5
32716 sed 's
/^
/|
/' conftest.$ac_ext >&5
32718 { $as_echo "$as_me:$LINENO: result: no" >&5
32719 $as_echo "no" >&6; }
32730 { $as_echo "$as_me:$LINENO: checking whether iops->check_acl() exists" >&5
32731 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
32734 cat confdefs.h - <<_ACEOF >conftest.c
32737 cat confdefs.h >>conftest.$ac_ext
32738 cat >>conftest.$ac_ext <<_ACEOF
32739 /* end confdefs.h. */
32742 #include <linux/fs.h>
32744 int check_acl_fn(struct inode *inode, int mask) { return 0; }
32746 static const struct inode_operations
32747 iops __attribute__ ((unused)) = {
32748 .check_acl = check_acl_fn,
32764 cat - <<_ACEOF >conftest.h
32769 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32770 echo "obj-m := conftest.o" >build/Makefile
32772 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
32773 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
32774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32775 (eval $ac_try) 2>&5
32777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32778 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
32779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32780 (eval $ac_try) 2>&5
32782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32783 (exit $ac_status); }; }; then
32785 { $as_echo "$as_me:$LINENO: result: yes" >&5
32786 $as_echo "yes" >&6; }
32788 cat >>confdefs.h <<\_ACEOF
32789 #define HAVE_CHECK_ACL 1
32794 $as_echo "$as_me: failed program was:" >&5
32795 sed 's
/^
/|
/' conftest.$ac_ext >&5
32797 { $as_echo "$as_me:$LINENO: result: no" >&5
32798 $as_echo "no" >&6; }
32809 { $as_echo "$as_me:$LINENO: checking whether iops->check_acl() wants flags" >&5
32810 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
32813 cat confdefs.h - <<_ACEOF >conftest.c
32816 cat confdefs.h >>conftest.$ac_ext
32817 cat >>conftest.$ac_ext <<_ACEOF
32818 /* end confdefs.h. */
32821 #include <linux/fs.h>
32823 int check_acl_fn(struct inode *inode, int mask,
32824 unsigned int flags) { return 0; }
32826 static const struct inode_operations
32827 iops __attribute__ ((unused)) = {
32828 .check_acl = check_acl_fn,
32844 cat - <<_ACEOF >conftest.h
32849 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32850 echo "obj-m := conftest.o" >build/Makefile
32852 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
32853 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
32854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32855 (eval $ac_try) 2>&5
32857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32858 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
32859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32860 (eval $ac_try) 2>&5
32862 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32863 (exit $ac_status); }; }; then
32865 { $as_echo "$as_me:$LINENO: result: yes" >&5
32866 $as_echo "yes" >&6; }
32868 cat >>confdefs.h <<\_ACEOF
32869 #define HAVE_CHECK_ACL 1
32873 cat >>confdefs.h <<\_ACEOF
32874 #define HAVE_CHECK_ACL_WITH_FLAGS 1
32879 $as_echo "$as_me: failed program was:" >&5
32880 sed 's
/^
/|
/' conftest.$ac_ext >&5
32882 { $as_echo "$as_me:$LINENO: result: no" >&5
32883 $as_echo "no" >&6; }
32894 { $as_echo "$as_me:$LINENO: checking whether iops->get_acl() exists" >&5
32895 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
32898 cat confdefs.h - <<_ACEOF >conftest.c
32901 cat confdefs.h >>conftest.$ac_ext
32902 cat >>conftest.$ac_ext <<_ACEOF
32903 /* end confdefs.h. */
32906 #include <linux/fs.h>
32908 struct posix_acl *get_acl_fn(struct inode *inode, int type)
32911 static const struct inode_operations
32912 iops __attribute__ ((unused)) = {
32913 .get_acl = get_acl_fn,
32929 cat - <<_ACEOF >conftest.h
32934 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
32935 echo "obj-m := conftest.o" >build/Makefile
32937 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
32938 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
32939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32940 (eval $ac_try) 2>&5
32942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32943 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
32944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32945 (eval $ac_try) 2>&5
32947 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32948 (exit $ac_status); }; }; then
32950 { $as_echo "$as_me:$LINENO: result: yes" >&5
32951 $as_echo "yes" >&6; }
32953 cat >>confdefs.h <<\_ACEOF
32954 #define HAVE_GET_ACL 1
32959 $as_echo "$as_me: failed program was:" >&5
32960 sed 's
/^
/|
/' conftest.$ac_ext >&5
32962 { $as_echo "$as_me:$LINENO: result: no" >&5
32963 $as_echo "no" >&6; }
32974 { $as_echo "$as_me:$LINENO: checking whether iops->set_acl() exists" >&5
32975 $as_echo_n "checking whether iops->set_acl() exists... " >&6; }
32978 cat confdefs.h - <<_ACEOF >conftest.c
32981 cat confdefs.h >>conftest.$ac_ext
32982 cat >>conftest.$ac_ext <<_ACEOF
32983 /* end confdefs.h. */
32986 #include <linux/fs.h>
32988 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
32991 static const struct inode_operations
32992 iops __attribute__ ((unused)) = {
32993 .set_acl = set_acl_fn,
33009 cat - <<_ACEOF >conftest.h
33014 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33015 echo "obj-m := conftest.o" >build/Makefile
33017 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
33018 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
33019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33020 (eval $ac_try) 2>&5
33022 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33023 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
33024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33025 (eval $ac_try) 2>&5
33027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33028 (exit $ac_status); }; }; then
33030 { $as_echo "$as_me:$LINENO: result: yes" >&5
33031 $as_echo "yes" >&6; }
33033 cat >>confdefs.h <<\_ACEOF
33034 #define HAVE_SET_ACL 1
33039 $as_echo "$as_me: failed program was:" >&5
33040 sed 's
/^
/|
/' conftest.$ac_ext >&5
33042 { $as_echo "$as_me:$LINENO: result: no" >&5
33043 $as_echo "no" >&6; }
33055 { $as_echo "$as_me:$LINENO: checking whether iops->getattr() takes a path" >&5
33056 $as_echo_n "checking whether iops->getattr() takes a path... " >&6; }
33059 cat confdefs.h - <<_ACEOF >conftest.c
33062 cat confdefs.h >>conftest.$ac_ext
33063 cat >>conftest.$ac_ext <<_ACEOF
33064 /* end confdefs.h. */
33067 #include <linux/fs.h>
33070 const struct path *p, struct kstat *k,
33071 u32 request_mask, unsigned int query_flags)
33074 static const struct inode_operations
33075 iops __attribute__ ((unused)) = {
33076 .getattr = test_getattr,
33092 cat - <<_ACEOF >conftest.h
33097 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33098 echo "obj-m := conftest.o" >build/Makefile
33100 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
33101 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
33102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33103 (eval $ac_try) 2>&5
33105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33106 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
33107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33108 (eval $ac_try) 2>&5
33110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33111 (exit $ac_status); }; }; then
33113 { $as_echo "$as_me:$LINENO: result: yes" >&5
33114 $as_echo "yes" >&6; }
33116 cat >>confdefs.h <<\_ACEOF
33117 #define HAVE_PATH_IOPS_GETATTR 1
33122 $as_echo "$as_me: failed program was:" >&5
33123 sed 's
/^
/|
/' conftest.$ac_ext >&5
33125 { $as_echo "$as_me:$LINENO: result: no" >&5
33126 $as_echo "no" >&6; }
33137 { $as_echo "$as_me:$LINENO: checking whether iops->getattr() takes a vfsmount" >&5
33138 $as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; }
33141 cat confdefs.h - <<_ACEOF >conftest.c
33144 cat confdefs.h >>conftest.$ac_ext
33145 cat >>conftest.$ac_ext <<_ACEOF
33146 /* end confdefs.h. */
33149 #include <linux/fs.h>
33152 struct vfsmount *mnt, struct dentry *d,
33156 static const struct inode_operations
33157 iops __attribute__ ((unused)) = {
33158 .getattr = test_getattr,
33174 cat - <<_ACEOF >conftest.h
33179 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33180 echo "obj-m := conftest.o" >build/Makefile
33182 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
33183 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
33184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33185 (eval $ac_try) 2>&5
33187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33188 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
33189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33190 (eval $ac_try) 2>&5
33192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33193 (exit $ac_status); }; }; then
33195 { $as_echo "$as_me:$LINENO: result: yes" >&5
33196 $as_echo "yes" >&6; }
33198 cat >>confdefs.h <<\_ACEOF
33199 #define HAVE_VFSMOUNT_IOPS_GETATTR 1
33204 $as_echo "$as_me: failed program was:" >&5
33205 sed 's
/^
/|
/' conftest.$ac_ext >&5
33207 { $as_echo "$as_me:$LINENO: result: no" >&5
33208 $as_echo "no" >&6; }
33220 { $as_echo "$as_me:$LINENO: checking whether uncached_acl_sentinel() exists" >&5
33221 $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
33224 cat confdefs.h - <<_ACEOF >conftest.c
33227 cat confdefs.h >>conftest.$ac_ext
33228 cat >>conftest.$ac_ext <<_ACEOF
33229 /* end confdefs.h. */
33232 #include <linux/fs.h>
33238 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
33248 cat - <<_ACEOF >conftest.h
33253 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33254 echo "obj-m := conftest.o" >build/Makefile
33256 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
33257 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
33258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33259 (eval $ac_try) 2>&5
33261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33262 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
33263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33264 (eval $ac_try) 2>&5
33266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33267 (exit $ac_status); }; }; then
33269 { $as_echo "$as_me:$LINENO: result: yes" >&5
33270 $as_echo "yes" >&6; }
33272 cat >>confdefs.h <<\_ACEOF
33273 #define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1
33278 $as_echo "$as_me: failed program was:" >&5
33279 sed 's
/^
/|
/' conftest.$ac_ext >&5
33281 { $as_echo "$as_me:$LINENO: result: no" >&5
33282 $as_echo "no" >&6; }
33293 { $as_echo "$as_me:$LINENO: checking whether sops->show_options() wants dentry" >&5
33294 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
33298 cat confdefs.h - <<_ACEOF >conftest.c
33301 cat confdefs.h >>conftest.$ac_ext
33302 cat >>conftest.$ac_ext <<_ACEOF
33303 /* end confdefs.h. */
33306 #include <linux/fs.h>
33308 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
33309 static struct super_operations sops __attribute__ ((unused)) = {
33310 .show_options = show_options,
33326 cat - <<_ACEOF >conftest.h
33331 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33332 echo "obj-m := conftest.o" >build/Makefile
33334 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
33335 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
33336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33337 (eval $ac_try) 2>&5
33339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33340 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
33341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33342 (eval $ac_try) 2>&5
33344 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33345 (exit $ac_status); }; }; then
33347 { $as_echo "$as_me:$LINENO: result: yes" >&5
33348 $as_echo "yes" >&6; }
33350 cat >>confdefs.h <<\_ACEOF
33351 #define HAVE_SHOW_OPTIONS_WITH_DENTRY 1
33356 $as_echo "$as_me: failed program was:" >&5
33357 sed 's
/^
/|
/' conftest.$ac_ext >&5
33359 { $as_echo "$as_me:$LINENO: result: no" >&5
33360 $as_echo "no" >&6; }
33371 { $as_echo "$as_me:$LINENO: checking whether file_inode() is available" >&5
33372 $as_echo_n "checking whether file_inode() is available... " >&6; }
33375 cat confdefs.h - <<_ACEOF >conftest.c
33378 cat confdefs.h >>conftest.$ac_ext
33379 cat >>conftest.$ac_ext <<_ACEOF
33380 /* end confdefs.h. */
33383 #include <linux/fs.h>
33389 struct file *f = NULL;
33400 cat - <<_ACEOF >conftest.h
33405 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33406 echo "obj-m := conftest.o" >build/Makefile
33408 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
33409 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
33410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33411 (eval $ac_try) 2>&5
33413 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33414 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
33415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33416 (eval $ac_try) 2>&5
33418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33419 (exit $ac_status); }; }; then
33421 { $as_echo "$as_me:$LINENO: result: yes" >&5
33422 $as_echo "yes" >&6; }
33424 cat >>confdefs.h <<\_ACEOF
33425 #define HAVE_FILE_INODE 1
33430 $as_echo "$as_me: failed program was:" >&5
33431 sed 's
/^
/|
/' conftest.$ac_ext >&5
33433 { $as_echo "$as_me:$LINENO: result: no" >&5
33434 $as_echo "no" >&6; }
33445 { $as_echo "$as_me:$LINENO: checking whether fops->fsync() wants" >&5
33446 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
33450 cat confdefs.h - <<_ACEOF >conftest.c
33453 cat confdefs.h >>conftest.$ac_ext
33454 cat >>conftest.$ac_ext <<_ACEOF
33455 /* end confdefs.h. */
33458 #include <linux/fs.h>
33460 int test_fsync(struct file *f, struct dentry *dentry, int x)
33463 static const struct file_operations
33464 fops __attribute__ ((unused)) = {
33465 .fsync = test_fsync,
33481 cat - <<_ACEOF >conftest.h
33486 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33487 echo "obj-m := conftest.o" >build/Makefile
33489 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
33490 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
33491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33492 (eval $ac_try) 2>&5
33494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33495 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
33496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33497 (eval $ac_try) 2>&5
33499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33500 (exit $ac_status); }; }; then
33502 { $as_echo "$as_me:$LINENO: result: dentry" >&5
33503 $as_echo "dentry" >&6; }
33505 cat >>confdefs.h <<\_ACEOF
33506 #define HAVE_FSYNC_WITH_DENTRY 1
33511 $as_echo "$as_me: failed program was:" >&5
33512 sed 's
/^
/|
/' conftest.$ac_ext >&5
33526 cat confdefs.h - <<_ACEOF >conftest.c
33529 cat confdefs.h >>conftest.$ac_ext
33530 cat >>conftest.$ac_ext <<_ACEOF
33531 /* end confdefs.h. */
33534 #include <linux/fs.h>
33536 int test_fsync(struct file *f, int x) { return 0; }
33538 static const struct file_operations
33539 fops __attribute__ ((unused)) = {
33540 .fsync = test_fsync,
33556 cat - <<_ACEOF >conftest.h
33561 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33562 echo "obj-m := conftest.o" >build/Makefile
33564 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
33565 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
33566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33567 (eval $ac_try) 2>&5
33569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33570 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
33571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33572 (eval $ac_try) 2>&5
33574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33575 (exit $ac_status); }; }; then
33577 { $as_echo "$as_me:$LINENO: result: no dentry" >&5
33578 $as_echo "no dentry" >&6; }
33580 cat >>confdefs.h <<\_ACEOF
33581 #define HAVE_FSYNC_WITHOUT_DENTRY 1
33586 $as_echo "$as_me: failed program was:" >&5
33587 sed 's
/^
/|
/' conftest.$ac_ext >&5
33601 cat confdefs.h - <<_ACEOF >conftest.c
33604 cat confdefs.h >>conftest.$ac_ext
33605 cat >>conftest.$ac_ext <<_ACEOF
33606 /* end confdefs.h. */
33609 #include <linux/fs.h>
33611 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
33614 static const struct file_operations
33615 fops __attribute__ ((unused)) = {
33616 .fsync = test_fsync,
33632 cat - <<_ACEOF >conftest.h
33637 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33638 echo "obj-m := conftest.o" >build/Makefile
33640 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
33641 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
33642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33643 (eval $ac_try) 2>&5
33645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33646 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
33647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33648 (eval $ac_try) 2>&5
33650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33651 (exit $ac_status); }; }; then
33653 { $as_echo "$as_me:$LINENO: result: range" >&5
33654 $as_echo "range" >&6; }
33656 cat >>confdefs.h <<\_ACEOF
33657 #define HAVE_FSYNC_RANGE 1
33662 $as_echo "$as_me: failed program was:" >&5
33663 sed 's
/^
/|
/' conftest.$ac_ext >&5
33676 { $as_echo "$as_me:$LINENO: checking whether sops->evict_inode() exists" >&5
33677 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
33680 cat confdefs.h - <<_ACEOF >conftest.c
33683 cat confdefs.h >>conftest.$ac_ext
33684 cat >>conftest.$ac_ext <<_ACEOF
33685 /* end confdefs.h. */
33688 #include <linux/fs.h>
33689 void evict_inode (struct inode * t) { return; }
33690 static struct super_operations sops __attribute__ ((unused)) = {
33691 .evict_inode = evict_inode,
33707 cat - <<_ACEOF >conftest.h
33712 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33713 echo "obj-m := conftest.o" >build/Makefile
33715 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
33716 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
33717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33718 (eval $ac_try) 2>&5
33720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33721 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
33722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33723 (eval $ac_try) 2>&5
33725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33726 (exit $ac_status); }; }; then
33728 { $as_echo "$as_me:$LINENO: result: yes" >&5
33729 $as_echo "yes" >&6; }
33731 cat >>confdefs.h <<\_ACEOF
33732 #define HAVE_EVICT_INODE 1
33737 $as_echo "$as_me: failed program was:" >&5
33738 sed 's
/^
/|
/' conftest.$ac_ext >&5
33740 { $as_echo "$as_me:$LINENO: result: no" >&5
33741 $as_echo "no" >&6; }
33752 { $as_echo "$as_me:$LINENO: checking whether sops->dirty_inode() wants flags" >&5
33753 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
33756 cat confdefs.h - <<_ACEOF >conftest.c
33759 cat confdefs.h >>conftest.$ac_ext
33760 cat >>conftest.$ac_ext <<_ACEOF
33761 /* end confdefs.h. */
33764 #include <linux/fs.h>
33766 void dirty_inode(struct inode *a, int b) { return; }
33768 static const struct super_operations
33769 sops __attribute__ ((unused)) = {
33770 .dirty_inode = dirty_inode,
33786 cat - <<_ACEOF >conftest.h
33791 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33792 echo "obj-m := conftest.o" >build/Makefile
33794 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
33795 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
33796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33797 (eval $ac_try) 2>&5
33799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33800 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
33801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33802 (eval $ac_try) 2>&5
33804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33805 (exit $ac_status); }; }; then
33807 { $as_echo "$as_me:$LINENO: result: yes" >&5
33808 $as_echo "yes" >&6; }
33810 cat >>confdefs.h <<\_ACEOF
33811 #define HAVE_DIRTY_INODE_WITH_FLAGS 1
33816 $as_echo "$as_me: failed program was:" >&5
33817 sed 's
/^
/|
/' conftest.$ac_ext >&5
33819 { $as_echo "$as_me:$LINENO: result: no" >&5
33820 $as_echo "no" >&6; }
33831 { $as_echo "$as_me:$LINENO: checking whether sops->nr_cached_objects() exists" >&5
33832 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
33835 cat confdefs.h - <<_ACEOF >conftest.c
33838 cat confdefs.h >>conftest.$ac_ext
33839 cat >>conftest.$ac_ext <<_ACEOF
33840 /* end confdefs.h. */
33843 #include <linux/fs.h>
33845 int nr_cached_objects(struct super_block *sb) { return 0; }
33847 static const struct super_operations
33848 sops __attribute__ ((unused)) = {
33849 .nr_cached_objects = nr_cached_objects,
33865 cat - <<_ACEOF >conftest.h
33870 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33871 echo "obj-m := conftest.o" >build/Makefile
33873 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
33874 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
33875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33876 (eval $ac_try) 2>&5
33878 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33879 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
33880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33881 (eval $ac_try) 2>&5
33883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33884 (exit $ac_status); }; }; then
33886 { $as_echo "$as_me:$LINENO: result: yes" >&5
33887 $as_echo "yes" >&6; }
33889 cat >>confdefs.h <<\_ACEOF
33890 #define HAVE_NR_CACHED_OBJECTS 1
33895 $as_echo "$as_me: failed program was:" >&5
33896 sed 's
/^
/|
/' conftest.$ac_ext >&5
33898 { $as_echo "$as_me:$LINENO: result: no" >&5
33899 $as_echo "no" >&6; }
33910 { $as_echo "$as_me:$LINENO: checking whether sops->free_cached_objects() exists" >&5
33911 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
33914 cat confdefs.h - <<_ACEOF >conftest.c
33917 cat confdefs.h >>conftest.$ac_ext
33918 cat >>conftest.$ac_ext <<_ACEOF
33919 /* end confdefs.h. */
33922 #include <linux/fs.h>
33924 void free_cached_objects(struct super_block *sb, int x)
33927 static const struct super_operations
33928 sops __attribute__ ((unused)) = {
33929 .free_cached_objects = free_cached_objects,
33945 cat - <<_ACEOF >conftest.h
33950 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
33951 echo "obj-m := conftest.o" >build/Makefile
33953 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
33954 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
33955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33956 (eval $ac_try) 2>&5
33958 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33959 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
33960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33961 (eval $ac_try) 2>&5
33963 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33964 (exit $ac_status); }; }; then
33966 { $as_echo "$as_me:$LINENO: result: yes" >&5
33967 $as_echo "yes" >&6; }
33969 cat >>confdefs.h <<\_ACEOF
33970 #define HAVE_FREE_CACHED_OBJECTS 1
33975 $as_echo "$as_me: failed program was:" >&5
33976 sed 's
/^
/|
/' conftest.$ac_ext >&5
33978 { $as_echo "$as_me:$LINENO: result: no" >&5
33979 $as_echo "no" >&6; }
33991 { $as_echo "$as_me:$LINENO: checking whether fops->fallocate() exists" >&5
33992 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
33995 cat confdefs.h - <<_ACEOF >conftest.c
33998 cat confdefs.h >>conftest.$ac_ext
33999 cat >>conftest.$ac_ext <<_ACEOF
34000 /* end confdefs.h. */
34003 #include <linux/fs.h>
34005 long test_fallocate(struct file *file, int mode,
34006 loff_t offset, loff_t len) { return 0; }
34008 static const struct file_operations
34009 fops __attribute__ ((unused)) = {
34010 .fallocate = test_fallocate,
34026 cat - <<_ACEOF >conftest.h
34031 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34032 echo "obj-m := conftest.o" >build/Makefile
34034 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
34035 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
34036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34037 (eval $ac_try) 2>&5
34039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34040 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
34041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34042 (eval $ac_try) 2>&5
34044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34045 (exit $ac_status); }; }; then
34047 { $as_echo "$as_me:$LINENO: result: yes" >&5
34048 $as_echo "yes" >&6; }
34050 cat >>confdefs.h <<\_ACEOF
34051 #define HAVE_FILE_FALLOCATE 1
34056 $as_echo "$as_me: failed program was:" >&5
34057 sed 's
/^
/|
/' conftest.$ac_ext >&5
34059 { $as_echo "$as_me:$LINENO: result: no" >&5
34060 $as_echo "no" >&6; }
34071 { $as_echo "$as_me:$LINENO: checking whether iops->fallocate() exists" >&5
34072 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
34075 cat confdefs.h - <<_ACEOF >conftest.c
34078 cat confdefs.h >>conftest.$ac_ext
34079 cat >>conftest.$ac_ext <<_ACEOF
34080 /* end confdefs.h. */
34083 #include <linux/fs.h>
34085 long test_fallocate(struct inode *inode, int mode,
34086 loff_t offset, loff_t len) { return 0; }
34088 static const struct inode_operations
34089 fops __attribute__ ((unused)) = {
34090 .fallocate = test_fallocate,
34106 cat - <<_ACEOF >conftest.h
34111 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34112 echo "obj-m := conftest.o" >build/Makefile
34114 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
34115 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
34116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34117 (eval $ac_try) 2>&5
34119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34120 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
34121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34122 (eval $ac_try) 2>&5
34124 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34125 (exit $ac_status); }; }; then
34127 { $as_echo "$as_me:$LINENO: result: yes" >&5
34128 $as_echo "yes" >&6; }
34130 cat >>confdefs.h <<\_ACEOF
34131 #define HAVE_INODE_FALLOCATE 1
34136 $as_echo "$as_me: failed program was:" >&5
34137 sed 's
/^
/|
/' conftest.$ac_ext >&5
34139 { $as_echo "$as_me:$LINENO: result: no" >&5
34140 $as_echo "no" >&6; }
34152 { $as_echo "$as_me:$LINENO: checking whether fops->aio_fsync() exists" >&5
34153 $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
34156 cat confdefs.h - <<_ACEOF >conftest.c
34159 cat confdefs.h >>conftest.$ac_ext
34160 cat >>conftest.$ac_ext <<_ACEOF
34161 /* end confdefs.h. */
34164 #include <linux/fs.h>
34166 static const struct file_operations
34167 fops __attribute__ ((unused)) = {
34184 cat - <<_ACEOF >conftest.h
34189 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34190 echo "obj-m := conftest.o" >build/Makefile
34192 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
34193 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
34194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34195 (eval $ac_try) 2>&5
34197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34198 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
34199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34200 (eval $ac_try) 2>&5
34202 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34203 (exit $ac_status); }; }; then
34205 { $as_echo "$as_me:$LINENO: result: yes" >&5
34206 $as_echo "yes" >&6; }
34208 cat >>confdefs.h <<\_ACEOF
34209 #define HAVE_FILE_AIO_FSYNC 1
34214 $as_echo "$as_me: failed program was:" >&5
34215 sed 's
/^
/|
/' conftest.$ac_ext >&5
34217 { $as_echo "$as_me:$LINENO: result: no" >&5
34218 $as_echo "no" >&6; }
34229 { $as_echo "$as_me:$LINENO: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
34230 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
34233 cat confdefs.h - <<_ACEOF >conftest.c
34236 cat confdefs.h >>conftest.$ac_ext
34237 cat >>conftest.$ac_ext <<_ACEOF
34238 /* end confdefs.h. */
34241 #include <linux/fs.h>
34243 int mkdir(struct inode *inode, struct dentry *dentry,
34244 umode_t umode) { return 0; }
34246 static const struct inode_operations
34247 iops __attribute__ ((unused)) = {
34264 cat - <<_ACEOF >conftest.h
34269 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34270 echo "obj-m := conftest.o" >build/Makefile
34272 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
34273 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
34274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34275 (eval $ac_try) 2>&5
34277 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34278 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
34279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34280 (eval $ac_try) 2>&5
34282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34283 (exit $ac_status); }; }; then
34285 { $as_echo "$as_me:$LINENO: result: yes" >&5
34286 $as_echo "yes" >&6; }
34288 cat >>confdefs.h <<\_ACEOF
34289 #define HAVE_MKDIR_UMODE_T 1
34294 $as_echo "$as_me: failed program was:" >&5
34295 sed 's
/^
/|
/' conftest.$ac_ext >&5
34297 { $as_echo "$as_me:$LINENO: result: no" >&5
34298 $as_echo "no" >&6; }
34309 { $as_echo "$as_me:$LINENO: checking whether iops->lookup() passes nameidata" >&5
34310 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
34313 cat confdefs.h - <<_ACEOF >conftest.c
34316 cat confdefs.h >>conftest.$ac_ext
34317 cat >>conftest.$ac_ext <<_ACEOF
34318 /* end confdefs.h. */
34321 #include <linux/fs.h>
34323 struct dentry *inode_lookup(struct inode *inode,
34324 struct dentry *dentry, struct nameidata *nidata)
34327 static const struct inode_operations iops
34328 __attribute__ ((unused)) = {
34329 .lookup = inode_lookup,
34345 cat - <<_ACEOF >conftest.h
34350 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34351 echo "obj-m := conftest.o" >build/Makefile
34353 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
34354 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
34355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34356 (eval $ac_try) 2>&5
34358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34359 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
34360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34361 (eval $ac_try) 2>&5
34363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34364 (exit $ac_status); }; }; then
34366 { $as_echo "$as_me:$LINENO: result: yes" >&5
34367 $as_echo "yes" >&6; }
34369 cat >>confdefs.h <<\_ACEOF
34370 #define HAVE_LOOKUP_NAMEIDATA 1
34375 $as_echo "$as_me: failed program was:" >&5
34376 sed 's
/^
/|
/' conftest.$ac_ext >&5
34378 { $as_echo "$as_me:$LINENO: result: no" >&5
34379 $as_echo "no" >&6; }
34390 { $as_echo "$as_me:$LINENO: checking whether iops->create() passes nameidata" >&5
34391 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
34394 cat confdefs.h - <<_ACEOF >conftest.c
34397 cat confdefs.h >>conftest.$ac_ext
34398 cat >>conftest.$ac_ext <<_ACEOF
34399 /* end confdefs.h. */
34402 #include <linux/fs.h>
34404 #ifdef HAVE_MKDIR_UMODE_T
34405 int inode_create(struct inode *inode ,struct dentry *dentry,
34406 umode_t umode, struct nameidata *nidata) { return 0; }
34408 int inode_create(struct inode *inode,struct dentry *dentry,
34409 int umode, struct nameidata * nidata) { return 0; }
34412 static const struct inode_operations
34413 iops __attribute__ ((unused)) = {
34414 .create = inode_create,
34430 cat - <<_ACEOF >conftest.h
34435 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34436 echo "obj-m := conftest.o" >build/Makefile
34438 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
34439 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
34440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34441 (eval $ac_try) 2>&5
34443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34444 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
34445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34446 (eval $ac_try) 2>&5
34448 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34449 (exit $ac_status); }; }; then
34451 { $as_echo "$as_me:$LINENO: result: yes" >&5
34452 $as_echo "yes" >&6; }
34454 cat >>confdefs.h <<\_ACEOF
34455 #define HAVE_CREATE_NAMEIDATA 1
34460 $as_echo "$as_me: failed program was:" >&5
34461 sed 's
/^
/|
/' conftest.$ac_ext >&5
34463 { $as_echo "$as_me:$LINENO: result: no" >&5
34464 $as_echo "no" >&6; }
34475 { $as_echo "$as_me:$LINENO: checking whether iops->get_link() passes delayed" >&5
34476 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
34479 cat confdefs.h - <<_ACEOF >conftest.c
34482 cat confdefs.h >>conftest.$ac_ext
34483 cat >>conftest.$ac_ext <<_ACEOF
34484 /* end confdefs.h. */
34487 #include <linux/fs.h>
34488 const char *get_link(struct dentry *de, struct inode *ip,
34489 struct delayed_call *done) { return "symlink"; }
34490 static struct inode_operations
34491 iops __attribute__ ((unused)) = {
34492 .get_link = get_link,
34508 cat - <<_ACEOF >conftest.h
34513 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34514 echo "obj-m := conftest.o" >build/Makefile
34516 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
34517 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
34518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34519 (eval $ac_try) 2>&5
34521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34522 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
34523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34524 (eval $ac_try) 2>&5
34526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34527 (exit $ac_status); }; }; then
34529 { $as_echo "$as_me:$LINENO: result: yes" >&5
34530 $as_echo "yes" >&6; }
34532 cat >>confdefs.h <<\_ACEOF
34533 #define HAVE_GET_LINK_DELAYED 1
34538 $as_echo "$as_me: failed program was:" >&5
34539 sed 's
/^
/|
/' conftest.$ac_ext >&5
34541 { $as_echo "$as_me:$LINENO: result: no" >&5
34542 $as_echo "no" >&6; }
34543 { $as_echo "$as_me:$LINENO: checking whether iops->get_link() passes cookie" >&5
34544 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
34547 cat confdefs.h - <<_ACEOF >conftest.c
34550 cat confdefs.h >>conftest.$ac_ext
34551 cat >>conftest.$ac_ext <<_ACEOF
34552 /* end confdefs.h. */
34555 #include <linux/fs.h>
34556 const char *get_link(struct dentry *de, struct
34557 inode *ip, void **cookie) { return "symlink"; }
34558 static struct inode_operations
34559 iops __attribute__ ((unused)) = {
34560 .get_link = get_link,
34576 cat - <<_ACEOF >conftest.h
34581 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34582 echo "obj-m := conftest.o" >build/Makefile
34584 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
34585 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
34586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34587 (eval $ac_try) 2>&5
34589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34590 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
34591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34592 (eval $ac_try) 2>&5
34594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34595 (exit $ac_status); }; }; then
34597 { $as_echo "$as_me:$LINENO: result: yes" >&5
34598 $as_echo "yes" >&6; }
34600 cat >>confdefs.h <<\_ACEOF
34601 #define HAVE_GET_LINK_COOKIE 1
34606 $as_echo "$as_me: failed program was:" >&5
34607 sed 's
/^
/|
/' conftest.$ac_ext >&5
34609 { $as_echo "$as_me:$LINENO: result: no" >&5
34610 $as_echo "no" >&6; }
34612 { $as_echo "$as_me:$LINENO: checking whether iops->follow_link() passes cookie" >&5
34613 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
34616 cat confdefs.h - <<_ACEOF >conftest.c
34619 cat confdefs.h >>conftest.$ac_ext
34620 cat >>conftest.$ac_ext <<_ACEOF
34621 /* end confdefs.h. */
34624 #include <linux/fs.h>
34625 const char *follow_link(struct dentry *de,
34626 void **cookie) { return "symlink"; }
34627 static struct inode_operations
34628 iops __attribute__ ((unused)) = {
34629 .follow_link = follow_link,
34645 cat - <<_ACEOF >conftest.h
34650 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34651 echo "obj-m := conftest.o" >build/Makefile
34653 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
34654 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
34655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34656 (eval $ac_try) 2>&5
34658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34659 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
34660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34661 (eval $ac_try) 2>&5
34663 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34664 (exit $ac_status); }; }; then
34666 { $as_echo "$as_me:$LINENO: result: yes" >&5
34667 $as_echo "yes" >&6; }
34669 cat >>confdefs.h <<\_ACEOF
34670 #define HAVE_FOLLOW_LINK_COOKIE 1
34675 $as_echo "$as_me: failed program was:" >&5
34676 sed 's
/^
/|
/' conftest.$ac_ext >&5
34678 { $as_echo "$as_me:$LINENO: result: no" >&5
34679 $as_echo "no" >&6; }
34680 { $as_echo "$as_me:$LINENO: checking whether iops->follow_link() passes nameidata" >&5
34681 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
34684 cat confdefs.h - <<_ACEOF >conftest.c
34687 cat confdefs.h >>conftest.$ac_ext
34688 cat >>conftest.$ac_ext <<_ACEOF
34689 /* end confdefs.h. */
34692 #include <linux/fs.h>
34693 void *follow_link(struct dentry *de, struct
34694 nameidata *nd) { return (void *)NULL; }
34695 static struct inode_operations
34696 iops __attribute__ ((unused)) = {
34697 .follow_link = follow_link,
34713 cat - <<_ACEOF >conftest.h
34718 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34719 echo "obj-m := conftest.o" >build/Makefile
34721 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
34722 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
34723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34724 (eval $ac_try) 2>&5
34726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34727 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
34728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34729 (eval $ac_try) 2>&5
34731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34732 (exit $ac_status); }; }; then
34734 { $as_echo "$as_me:$LINENO: result: yes" >&5
34735 $as_echo "yes" >&6; }
34737 cat >>confdefs.h <<\_ACEOF
34738 #define HAVE_FOLLOW_LINK_NAMEIDATA 1
34743 $as_echo "$as_me: failed program was:" >&5
34744 sed 's
/^
/|
/' conftest.$ac_ext >&5
34746 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
34747 $as_echo "$as_me: error: no; please file a bug report" >&2;}
34748 { (exit 1); exit 1; }; }
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 #if !defined(HAVE_GET_LINK_DELAYED)
34795 #error "Expecting get_link() delayed done"
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
34833 cat >>confdefs.h <<\_ACEOF
34834 #define HAVE_PUT_LINK_DELAYED 1
34839 $as_echo "$as_me: failed program was:" >&5
34840 sed 's
/^
/|
/' conftest.$ac_ext >&5
34842 { $as_echo "$as_me:$LINENO: checking whether iops->put_link() passes cookie" >&5
34843 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
34846 cat confdefs.h - <<_ACEOF >conftest.c
34849 cat confdefs.h >>conftest.$ac_ext
34850 cat >>conftest.$ac_ext <<_ACEOF
34851 /* end confdefs.h. */
34854 #include <linux/fs.h>
34855 void put_link(struct inode *ip, void *cookie)
34857 static struct inode_operations
34858 iops __attribute__ ((unused)) = {
34859 .put_link = put_link,
34875 cat - <<_ACEOF >conftest.h
34880 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34881 echo "obj-m := conftest.o" >build/Makefile
34883 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
34884 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
34885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34886 (eval $ac_try) 2>&5
34888 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34889 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
34890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34891 (eval $ac_try) 2>&5
34893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34894 (exit $ac_status); }; }; then
34896 { $as_echo "$as_me:$LINENO: result: yes" >&5
34897 $as_echo "yes" >&6; }
34899 cat >>confdefs.h <<\_ACEOF
34900 #define HAVE_PUT_LINK_COOKIE 1
34905 $as_echo "$as_me: failed program was:" >&5
34906 sed 's
/^
/|
/' conftest.$ac_ext >&5
34908 { $as_echo "$as_me:$LINENO: result: no" >&5
34909 $as_echo "no" >&6; }
34910 { $as_echo "$as_me:$LINENO: checking whether iops->put_link() passes nameidata" >&5
34911 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
34914 cat confdefs.h - <<_ACEOF >conftest.c
34917 cat confdefs.h >>conftest.$ac_ext
34918 cat >>conftest.$ac_ext <<_ACEOF
34919 /* end confdefs.h. */
34922 #include <linux/fs.h>
34923 void put_link(struct dentry *de, struct
34924 nameidata *nd, void *ptr) { return; }
34925 static struct inode_operations
34926 iops __attribute__ ((unused)) = {
34927 .put_link = put_link,
34943 cat - <<_ACEOF >conftest.h
34948 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
34949 echo "obj-m := conftest.o" >build/Makefile
34951 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
34952 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
34953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34954 (eval $ac_try) 2>&5
34956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34957 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
34958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
34959 (eval $ac_try) 2>&5
34961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34962 (exit $ac_status); }; }; then
34964 { $as_echo "$as_me:$LINENO: result: yes" >&5
34965 $as_echo "yes" >&6; }
34967 cat >>confdefs.h <<\_ACEOF
34968 #define HAVE_PUT_LINK_NAMEIDATA 1
34973 $as_echo "$as_me: failed program was:" >&5
34974 sed 's
/^
/|
/' conftest.$ac_ext >&5
34976 { { $as_echo "$as_me:$LINENO: error: no; please file a bug report" >&5
34977 $as_echo "$as_me: error: no; please file a bug report" >&2;}
34978 { (exit 1); exit 1; }; }
35005 { $as_echo "$as_me:$LINENO: checking whether iops->truncate_range() exists" >&5
35006 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
35009 cat confdefs.h - <<_ACEOF >conftest.c
35012 cat confdefs.h >>conftest.$ac_ext
35013 cat >>conftest.$ac_ext <<_ACEOF
35014 /* end confdefs.h. */
35017 #include <linux/fs.h>
35018 void truncate_range(struct inode *inode, loff_t start,
35019 loff_t end) { return; }
35020 static struct inode_operations iops __attribute__ ((unused)) = {
35021 .truncate_range = truncate_range,
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_INODE_TRUNCATE_RANGE 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 dops->d_automount() exists" >&5
35083 $as_echo_n "checking whether dops->d_automount() exists... " >&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/dcache.h>
35095 struct vfsmount *d_automount(struct path *p) { return NULL; }
35096 struct dentry_operations dops __attribute__ ((unused)) = {
35097 .d_automount = d_automount,
35113 cat - <<_ACEOF >conftest.h
35118 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35119 echo "obj-m := conftest.o" >build/Makefile
35121 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
35122 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
35123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35124 (eval $ac_try) 2>&5
35126 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35127 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
35128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35129 (eval $ac_try) 2>&5
35131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35132 (exit $ac_status); }; }; then
35134 { $as_echo "$as_me:$LINENO: result: yes" >&5
35135 $as_echo "yes" >&6; }
35137 cat >>confdefs.h <<\_ACEOF
35138 #define HAVE_AUTOMOUNT 1
35143 $as_echo "$as_me: failed program was:" >&5
35144 sed 's
/^
/|
/' conftest.$ac_ext >&5
35146 { $as_echo "$as_me:$LINENO: result: no" >&5
35147 $as_echo "no" >&6; }
35158 { $as_echo "$as_me:$LINENO: checking whether eops->encode_fh() wants inode" >&5
35159 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
35162 cat confdefs.h - <<_ACEOF >conftest.c
35165 cat confdefs.h >>conftest.$ac_ext
35166 cat >>conftest.$ac_ext <<_ACEOF
35167 /* end confdefs.h. */
35170 #include <linux/exportfs.h>
35171 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
35172 struct inode *parent) { return 0; }
35173 static struct export_operations eops __attribute__ ((unused))={
35174 .encode_fh = encode_fh,
35190 cat - <<_ACEOF >conftest.h
35195 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35196 echo "obj-m := conftest.o" >build/Makefile
35198 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
35199 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
35200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35201 (eval $ac_try) 2>&5
35203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35204 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
35205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35206 (eval $ac_try) 2>&5
35208 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35209 (exit $ac_status); }; }; then
35211 { $as_echo "$as_me:$LINENO: result: yes" >&5
35212 $as_echo "yes" >&6; }
35214 cat >>confdefs.h <<\_ACEOF
35215 #define HAVE_ENCODE_FH_WITH_INODE 1
35220 $as_echo "$as_me: failed program was:" >&5
35221 sed 's
/^
/|
/' conftest.$ac_ext >&5
35223 { $as_echo "$as_me:$LINENO: result: no" >&5
35224 $as_echo "no" >&6; }
35235 { $as_echo "$as_me:$LINENO: checking whether eops->commit_metadata() exists" >&5
35236 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
35239 cat confdefs.h - <<_ACEOF >conftest.c
35242 cat confdefs.h >>conftest.$ac_ext
35243 cat >>conftest.$ac_ext <<_ACEOF
35244 /* end confdefs.h. */
35247 #include <linux/exportfs.h>
35248 int commit_metadata(struct inode *inode) { return 0; }
35249 static struct export_operations eops __attribute__ ((unused))={
35250 .commit_metadata = commit_metadata,
35266 cat - <<_ACEOF >conftest.h
35271 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35272 echo "obj-m := conftest.o" >build/Makefile
35274 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
35275 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
35276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35277 (eval $ac_try) 2>&5
35279 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35280 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
35281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35282 (eval $ac_try) 2>&5
35284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35285 (exit $ac_status); }; }; then
35287 { $as_echo "$as_me:$LINENO: result: yes" >&5
35288 $as_echo "yes" >&6; }
35290 cat >>confdefs.h <<\_ACEOF
35291 #define HAVE_COMMIT_METADATA 1
35296 $as_echo "$as_me: failed program was:" >&5
35297 sed 's
/^
/|
/' conftest.$ac_ext >&5
35299 { $as_echo "$as_me:$LINENO: result: no" >&5
35300 $as_echo "no" >&6; }
35310 { $as_echo "$as_me:$LINENO: checking whether clear_inode() is available" >&5
35311 $as_echo_n "checking whether clear_inode() is available... " >&6; }
35315 cat confdefs.h - <<_ACEOF >conftest.c
35318 cat confdefs.h >>conftest.$ac_ext
35319 cat >>conftest.$ac_ext <<_ACEOF
35320 /* end confdefs.h. */
35323 #include <linux/fs.h>
35339 cat - <<_ACEOF >conftest.h
35344 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35345 echo "obj-m := conftest.o" >build/Makefile
35347 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
35348 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
35349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35350 (eval $ac_try) 2>&5
35352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35353 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
35354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35355 (eval $ac_try) 2>&5
35357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35358 (exit $ac_status); }; }; then
35361 $as_echo "$as_me: failed program was:" >&5
35362 sed 's
/^
/|
/' conftest.$ac_ext >&5
35371 if test $rc -ne 0; then :
35373 { $as_echo "$as_me:$LINENO: result: no" >&5
35374 $as_echo "no" >&6; }
35377 if test "x$enable_linux_builtin" != xyes; then
35379 grep -q -E '[[:space
:]]clear_inode
[[:space
:]]' \
35380 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
35382 if test $rc -ne 0; then
35384 for file in fs/inode.c; do
35385 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
35386 "$LINUX/$file" 2>/dev/null
35388 if test $rc -eq 0; then
35393 if test $export -eq 0; then :
35403 if test $rc -ne 0; then :
35405 { $as_echo "$as_me:$LINENO: result: no" >&5
35406 $as_echo "no" >&6; }
35410 { $as_echo "$as_me:$LINENO: result: yes" >&5
35411 $as_echo "yes" >&6; }
35413 cat >>confdefs.h <<\_ACEOF
35414 #define HAVE_CLEAR_INODE 1
35422 { $as_echo "$as_me:$LINENO: checking whether setattr_prepare() is available" >&5
35423 $as_echo_n "checking whether setattr_prepare() is available... " >&6; }
35427 cat confdefs.h - <<_ACEOF >conftest.c
35430 cat confdefs.h >>conftest.$ac_ext
35431 cat >>conftest.$ac_ext <<_ACEOF
35432 /* end confdefs.h. */
35435 #include <linux/fs.h>
35441 struct dentry *dentry = NULL;
35442 struct iattr *attr = NULL;
35445 error = setattr_prepare(dentry, attr);
35455 cat - <<_ACEOF >conftest.h
35460 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35461 echo "obj-m := conftest.o" >build/Makefile
35463 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
35464 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
35465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35466 (eval $ac_try) 2>&5
35468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35469 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
35470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35471 (eval $ac_try) 2>&5
35473 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35474 (exit $ac_status); }; }; then
35477 $as_echo "$as_me: failed program was:" >&5
35478 sed 's
/^
/|
/' conftest.$ac_ext >&5
35487 if test $rc -ne 0; then :
35489 { $as_echo "$as_me:$LINENO: result: no" >&5
35490 $as_echo "no" >&6; }
35493 if test "x$enable_linux_builtin" != xyes; then
35495 grep -q -E '[[:space
:]]setattr_prepare
[[:space
:]]' \
35496 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
35498 if test $rc -ne 0; then
35500 for file in fs/attr.c; do
35501 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
35502 "$LINUX/$file" 2>/dev/null
35504 if test $rc -eq 0; then
35509 if test $export -eq 0; then :
35519 if test $rc -ne 0; then :
35521 { $as_echo "$as_me:$LINENO: result: no" >&5
35522 $as_echo "no" >&6; }
35526 { $as_echo "$as_me:$LINENO: result: yes" >&5
35527 $as_echo "yes" >&6; }
35529 cat >>confdefs.h <<\_ACEOF
35530 #define HAVE_SETATTR_PREPARE 1
35538 { $as_echo "$as_me:$LINENO: checking whether insert_inode_locked() is available" >&5
35539 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
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/fs.h>
35557 insert_inode_locked(NULL);
35567 cat - <<_ACEOF >conftest.h
35572 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35573 echo "obj-m := conftest.o" >build/Makefile
35575 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
35576 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
35577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35578 (eval $ac_try) 2>&5
35580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35581 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
35582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35583 (eval $ac_try) 2>&5
35585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35586 (exit $ac_status); }; }; then
35589 $as_echo "$as_me: failed program was:" >&5
35590 sed 's
/^
/|
/' conftest.$ac_ext >&5
35599 if test $rc -ne 0; then :
35601 { $as_echo "$as_me:$LINENO: result: no" >&5
35602 $as_echo "no" >&6; }
35605 if test "x$enable_linux_builtin" != xyes; then
35607 grep -q -E '[[:space
:]]insert_inode_locked
[[:space
:]]' \
35608 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
35610 if test $rc -ne 0; then
35612 for file in fs/inode.c; do
35613 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
35614 "$LINUX/$file" 2>/dev/null
35616 if test $rc -eq 0; then
35621 if test $export -eq 0; then :
35631 if test $rc -ne 0; then :
35633 { $as_echo "$as_me:$LINENO: result: no" >&5
35634 $as_echo "no" >&6; }
35638 { $as_echo "$as_me:$LINENO: result: yes" >&5
35639 $as_echo "yes" >&6; }
35641 cat >>confdefs.h <<\_ACEOF
35642 #define HAVE_INSERT_INODE_LOCKED 1
35650 { $as_echo "$as_me:$LINENO: checking whether d_make_root() is available" >&5
35651 $as_echo_n "checking whether d_make_root() is available... " >&6; }
35655 cat confdefs.h - <<_ACEOF >conftest.c
35658 cat confdefs.h >>conftest.$ac_ext
35659 cat >>conftest.$ac_ext <<_ACEOF
35660 /* end confdefs.h. */
35663 #include <linux/dcache.h>
35679 cat - <<_ACEOF >conftest.h
35684 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35685 echo "obj-m := conftest.o" >build/Makefile
35687 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
35688 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
35689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35690 (eval $ac_try) 2>&5
35692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35693 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
35694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35695 (eval $ac_try) 2>&5
35697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35698 (exit $ac_status); }; }; then
35701 $as_echo "$as_me: failed program was:" >&5
35702 sed 's
/^
/|
/' conftest.$ac_ext >&5
35711 if test $rc -ne 0; then :
35713 { $as_echo "$as_me:$LINENO: result: no" >&5
35714 $as_echo "no" >&6; }
35717 if test "x$enable_linux_builtin" != xyes; then
35719 grep -q -E '[[:space
:]]d_make_root
[[:space
:]]' \
35720 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
35722 if test $rc -ne 0; then
35724 for file in fs/dcache.c; do
35725 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
35726 "$LINUX/$file" 2>/dev/null
35728 if test $rc -eq 0; then
35733 if test $export -eq 0; then :
35743 if test $rc -ne 0; then :
35745 { $as_echo "$as_me:$LINENO: result: no" >&5
35746 $as_echo "no" >&6; }
35750 { $as_echo "$as_me:$LINENO: result: yes" >&5
35751 $as_echo "yes" >&6; }
35753 cat >>confdefs.h <<\_ACEOF
35754 #define HAVE_D_MAKE_ROOT 1
35762 { $as_echo "$as_me:$LINENO: checking whether d_obtain_alias() is available" >&5
35763 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
35767 cat confdefs.h - <<_ACEOF >conftest.c
35770 cat confdefs.h >>conftest.$ac_ext
35771 cat >>conftest.$ac_ext <<_ACEOF
35772 /* end confdefs.h. */
35775 #include <linux/dcache.h>
35781 d_obtain_alias(NULL);
35791 cat - <<_ACEOF >conftest.h
35796 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35797 echo "obj-m := conftest.o" >build/Makefile
35799 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
35800 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
35801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35802 (eval $ac_try) 2>&5
35804 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35805 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
35806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35807 (eval $ac_try) 2>&5
35809 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35810 (exit $ac_status); }; }; then
35813 $as_echo "$as_me: failed program was:" >&5
35814 sed 's
/^
/|
/' conftest.$ac_ext >&5
35823 if test $rc -ne 0; then :
35825 { $as_echo "$as_me:$LINENO: result: no" >&5
35826 $as_echo "no" >&6; }
35829 if test "x$enable_linux_builtin" != xyes; then
35831 grep -q -E '[[:space
:]]d_obtain_alias
[[:space
:]]' \
35832 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
35834 if test $rc -ne 0; then
35836 for file in fs/dcache.c; do
35837 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
35838 "$LINUX/$file" 2>/dev/null
35840 if test $rc -eq 0; then
35845 if test $export -eq 0; then :
35855 if test $rc -ne 0; then :
35857 { $as_echo "$as_me:$LINENO: result: no" >&5
35858 $as_echo "no" >&6; }
35862 { $as_echo "$as_me:$LINENO: result: yes" >&5
35863 $as_echo "yes" >&6; }
35865 cat >>confdefs.h <<\_ACEOF
35866 #define HAVE_D_OBTAIN_ALIAS 1
35874 { $as_echo "$as_me:$LINENO: checking whether d_prune_aliases() is available" >&5
35875 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
35879 cat confdefs.h - <<_ACEOF >conftest.c
35882 cat confdefs.h >>conftest.$ac_ext
35883 cat >>conftest.$ac_ext <<_ACEOF
35884 /* end confdefs.h. */
35887 #include <linux/dcache.h>
35893 struct inode *ip = NULL;
35894 d_prune_aliases(ip);
35904 cat - <<_ACEOF >conftest.h
35909 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
35910 echo "obj-m := conftest.o" >build/Makefile
35912 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
35913 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
35914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35915 (eval $ac_try) 2>&5
35917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35918 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
35919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35920 (eval $ac_try) 2>&5
35922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35923 (exit $ac_status); }; }; then
35926 $as_echo "$as_me: failed program was:" >&5
35927 sed 's
/^
/|
/' conftest.$ac_ext >&5
35936 if test $rc -ne 0; then :
35938 { $as_echo "$as_me:$LINENO: result: no" >&5
35939 $as_echo "no" >&6; }
35942 if test "x$enable_linux_builtin" != xyes; then
35944 grep -q -E '[[:space
:]]d_prune_aliases
[[:space
:]]' \
35945 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
35947 if test $rc -ne 0; then
35949 for file in fs/dcache.c; do
35950 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
35951 "$LINUX/$file" 2>/dev/null
35953 if test $rc -eq 0; then
35958 if test $export -eq 0; then :
35968 if test $rc -ne 0; then :
35970 { $as_echo "$as_me:$LINENO: result: no" >&5
35971 $as_echo "no" >&6; }
35975 { $as_echo "$as_me:$LINENO: result: yes" >&5
35976 $as_echo "yes" >&6; }
35978 cat >>confdefs.h <<\_ACEOF
35979 #define HAVE_D_PRUNE_ALIASES 1
35987 { $as_echo "$as_me:$LINENO: checking whether d_set_d_op() is available" >&5
35988 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
35992 cat confdefs.h - <<_ACEOF >conftest.c
35995 cat confdefs.h >>conftest.$ac_ext
35996 cat >>conftest.$ac_ext <<_ACEOF
35997 /* end confdefs.h. */
36000 #include <linux/dcache.h>
36006 d_set_d_op(NULL, NULL);
36016 cat - <<_ACEOF >conftest.h
36021 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36022 echo "obj-m := conftest.o" >build/Makefile
36024 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
36025 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
36026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36027 (eval $ac_try) 2>&5
36029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36030 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
36031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36032 (eval $ac_try) 2>&5
36034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36035 (exit $ac_status); }; }; then
36038 $as_echo "$as_me: failed program was:" >&5
36039 sed 's
/^
/|
/' conftest.$ac_ext >&5
36048 if test $rc -ne 0; then :
36050 { $as_echo "$as_me:$LINENO: result: no" >&5
36051 $as_echo "no" >&6; }
36054 if test "x$enable_linux_builtin" != xyes; then
36056 grep -q -E '[[:space
:]]d_set_d_op
[[:space
:]]' \
36057 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
36059 if test $rc -ne 0; then
36061 for file in fs/dcache.c; do
36062 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
36063 "$LINUX/$file" 2>/dev/null
36065 if test $rc -eq 0; then
36070 if test $export -eq 0; then :
36080 if test $rc -ne 0; then :
36082 { $as_echo "$as_me:$LINENO: result: no" >&5
36083 $as_echo "no" >&6; }
36087 { $as_echo "$as_me:$LINENO: result: yes" >&5
36088 $as_echo "yes" >&6; }
36090 cat >>confdefs.h <<\_ACEOF
36091 #define HAVE_D_SET_D_OP 1
36100 { $as_echo "$as_me:$LINENO: checking whether dops->d_revalidate() takes struct nameidata" >&5
36101 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
36104 cat confdefs.h - <<_ACEOF >conftest.c
36107 cat confdefs.h >>conftest.$ac_ext
36108 cat >>conftest.$ac_ext <<_ACEOF
36109 /* end confdefs.h. */
36112 #include <linux/dcache.h>
36114 int revalidate (struct dentry *dentry,
36115 struct nameidata *nidata) { return 0; }
36117 static const struct dentry_operations
36118 dops __attribute__ ((unused)) = {
36119 .d_revalidate = revalidate,
36135 cat - <<_ACEOF >conftest.h
36140 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36141 echo "obj-m := conftest.o" >build/Makefile
36143 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
36144 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
36145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36146 (eval $ac_try) 2>&5
36148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36149 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
36150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36151 (eval $ac_try) 2>&5
36153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36154 (exit $ac_status); }; }; then
36156 { $as_echo "$as_me:$LINENO: result: yes" >&5
36157 $as_echo "yes" >&6; }
36159 cat >>confdefs.h <<\_ACEOF
36160 #define HAVE_D_REVALIDATE_NAMEIDATA 1
36165 $as_echo "$as_me: failed program was:" >&5
36166 sed 's
/^
/|
/' conftest.$ac_ext >&5
36168 { $as_echo "$as_me:$LINENO: result: no" >&5
36169 $as_echo "no" >&6; }
36180 { $as_echo "$as_me:$LINENO: checking whether dentry uses const struct dentry_operations" >&5
36181 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
36184 cat confdefs.h - <<_ACEOF >conftest.c
36187 cat confdefs.h >>conftest.$ac_ext
36188 cat >>conftest.$ac_ext <<_ACEOF
36189 /* end confdefs.h. */
36192 #include <linux/dcache.h>
36194 const struct dentry_operations test_d_op = {
36195 .d_revalidate = NULL,
36202 struct dentry d __attribute__ ((unused));
36204 d.d_op = &test_d_op;
36214 cat - <<_ACEOF >conftest.h
36219 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36220 echo "obj-m := conftest.o" >build/Makefile
36222 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
36223 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
36224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36225 (eval $ac_try) 2>&5
36227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36228 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
36229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36230 (eval $ac_try) 2>&5
36232 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36233 (exit $ac_status); }; }; then
36235 { $as_echo "$as_me:$LINENO: result: yes" >&5
36236 $as_echo "yes" >&6; }
36238 cat >>confdefs.h <<\_ACEOF
36239 #define HAVE_CONST_DENTRY_OPERATIONS 1
36244 $as_echo "$as_me: failed program was:" >&5
36245 sed 's
/^
/|
/' conftest.$ac_ext >&5
36247 { $as_echo "$as_me:$LINENO: result: no" >&5
36248 $as_echo "no" >&6; }
36258 { $as_echo "$as_me:$LINENO: checking whether check_disk_size_change() is available" >&5
36259 $as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
36263 cat confdefs.h - <<_ACEOF >conftest.c
36266 cat confdefs.h >>conftest.$ac_ext
36267 cat >>conftest.$ac_ext <<_ACEOF
36268 /* end confdefs.h. */
36271 #include <linux/fs.h>
36277 check_disk_size_change(NULL, NULL);
36287 cat - <<_ACEOF >conftest.h
36292 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36293 echo "obj-m := conftest.o" >build/Makefile
36295 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
36296 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
36297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36298 (eval $ac_try) 2>&5
36300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36301 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
36302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36303 (eval $ac_try) 2>&5
36305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36306 (exit $ac_status); }; }; then
36309 $as_echo "$as_me: failed program was:" >&5
36310 sed 's
/^
/|
/' conftest.$ac_ext >&5
36319 if test $rc -ne 0; then :
36321 { $as_echo "$as_me:$LINENO: result: no" >&5
36322 $as_echo "no" >&6; }
36325 if test "x$enable_linux_builtin" != xyes; then
36327 grep -q -E '[[:space
:]]check_disk_size_change
[[:space
:]]' \
36328 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
36330 if test $rc -ne 0; then
36332 for file in fs/block_dev.c; do
36333 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
36334 "$LINUX/$file" 2>/dev/null
36336 if test $rc -eq 0; then
36341 if test $export -eq 0; then :
36351 if test $rc -ne 0; then :
36353 { $as_echo "$as_me:$LINENO: result: no" >&5
36354 $as_echo "no" >&6; }
36358 { $as_echo "$as_me:$LINENO: result: yes" >&5
36359 $as_echo "yes" >&6; }
36361 cat >>confdefs.h <<\_ACEOF
36362 #define HAVE_CHECK_DISK_SIZE_CHANGE 1
36370 { $as_echo "$as_me:$LINENO: checking whether truncate_setsize() is available" >&5
36371 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
36375 cat confdefs.h - <<_ACEOF >conftest.c
36378 cat confdefs.h >>conftest.$ac_ext
36379 cat >>conftest.$ac_ext <<_ACEOF
36380 /* end confdefs.h. */
36383 #include <linux/mm.h>
36389 truncate_setsize(NULL, 0);
36399 cat - <<_ACEOF >conftest.h
36404 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36405 echo "obj-m := conftest.o" >build/Makefile
36407 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
36408 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
36409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36410 (eval $ac_try) 2>&5
36412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36413 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
36414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36415 (eval $ac_try) 2>&5
36417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36418 (exit $ac_status); }; }; then
36421 $as_echo "$as_me: failed program was:" >&5
36422 sed 's
/^
/|
/' conftest.$ac_ext >&5
36431 if test $rc -ne 0; then :
36433 { $as_echo "$as_me:$LINENO: result: no" >&5
36434 $as_echo "no" >&6; }
36437 if test "x$enable_linux_builtin" != xyes; then
36439 grep -q -E '[[:space
:]]truncate_setsize
[[:space
:]]' \
36440 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
36442 if test $rc -ne 0; then
36444 for file in mm/truncate.c; do
36445 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
36446 "$LINUX/$file" 2>/dev/null
36448 if test $rc -eq 0; then
36453 if test $export -eq 0; then :
36463 if test $rc -ne 0; then :
36465 { $as_echo "$as_me:$LINENO: result: no" >&5
36466 $as_echo "no" >&6; }
36470 { $as_echo "$as_me:$LINENO: result: yes" >&5
36471 $as_echo "yes" >&6; }
36473 cat >>confdefs.h <<\_ACEOF
36474 #define HAVE_TRUNCATE_SETSIZE 1
36483 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants 6 args" >&5
36484 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
36487 cat confdefs.h - <<_ACEOF >conftest.c
36490 cat confdefs.h >>conftest.$ac_ext
36491 cat >>conftest.$ac_ext <<_ACEOF
36492 /* end confdefs.h. */
36495 #include <linux/security.h>
36501 struct inode *ip __attribute__ ((unused)) = NULL;
36502 struct inode *dip __attribute__ ((unused)) = NULL;
36503 const struct qstr *str __attribute__ ((unused)) = NULL;
36504 char *name __attribute__ ((unused)) = NULL;
36505 void *value __attribute__ ((unused)) = NULL;
36506 size_t len __attribute__ ((unused)) = 0;
36508 security_inode_init_security(ip, dip, str, &name, &value, &len);
36518 cat - <<_ACEOF >conftest.h
36523 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36524 echo "obj-m := conftest.o" >build/Makefile
36526 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
36527 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
36528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36529 (eval $ac_try) 2>&5
36531 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36532 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
36533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36534 (eval $ac_try) 2>&5
36536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36537 (exit $ac_status); }; }; then
36539 { $as_echo "$as_me:$LINENO: result: yes" >&5
36540 $as_echo "yes" >&6; }
36542 cat >>confdefs.h <<\_ACEOF
36543 #define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1
36548 $as_echo "$as_me: failed program was:" >&5
36549 sed 's
/^
/|
/' conftest.$ac_ext >&5
36551 { $as_echo "$as_me:$LINENO: result: no" >&5
36552 $as_echo "no" >&6; }
36563 { $as_echo "$as_me:$LINENO: checking whether security_inode_init_security wants callback" >&5
36564 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
36567 cat confdefs.h - <<_ACEOF >conftest.c
36570 cat confdefs.h >>conftest.$ac_ext
36571 cat >>conftest.$ac_ext <<_ACEOF
36572 /* end confdefs.h. */
36575 #include <linux/security.h>
36581 struct inode *ip __attribute__ ((unused)) = NULL;
36582 struct inode *dip __attribute__ ((unused)) = NULL;
36583 const struct qstr *str __attribute__ ((unused)) = NULL;
36584 initxattrs func __attribute__ ((unused)) = NULL;
36586 security_inode_init_security(ip, dip, str, func, NULL);
36596 cat - <<_ACEOF >conftest.h
36601 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36602 echo "obj-m := conftest.o" >build/Makefile
36604 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
36605 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
36606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36607 (eval $ac_try) 2>&5
36609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36610 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
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); }; }; then
36617 { $as_echo "$as_me:$LINENO: result: yes" >&5
36618 $as_echo "yes" >&6; }
36620 cat >>confdefs.h <<\_ACEOF
36621 #define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1
36626 $as_echo "$as_me: failed program was:" >&5
36627 sed 's
/^
/|
/' conftest.$ac_ext >&5
36629 { $as_echo "$as_me:$LINENO: result: no" >&5
36630 $as_echo "no" >&6; }
36640 { $as_echo "$as_me:$LINENO: checking whether mount_nodev() is available" >&5
36641 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
36645 cat confdefs.h - <<_ACEOF >conftest.c
36648 cat confdefs.h >>conftest.$ac_ext
36649 cat >>conftest.$ac_ext <<_ACEOF
36650 /* end confdefs.h. */
36653 #include <linux/fs.h>
36659 mount_nodev(NULL, 0, NULL, NULL);
36669 cat - <<_ACEOF >conftest.h
36674 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36675 echo "obj-m := conftest.o" >build/Makefile
36677 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
36678 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
36679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36680 (eval $ac_try) 2>&5
36682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36683 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
36684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36685 (eval $ac_try) 2>&5
36687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36688 (exit $ac_status); }; }; then
36691 $as_echo "$as_me: failed program was:" >&5
36692 sed 's
/^
/|
/' conftest.$ac_ext >&5
36701 if test $rc -ne 0; then :
36703 { $as_echo "$as_me:$LINENO: result: no" >&5
36704 $as_echo "no" >&6; }
36707 if test "x$enable_linux_builtin" != xyes; then
36709 grep -q -E '[[:space
:]]mount_nodev
[[:space
:]]' \
36710 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
36712 if test $rc -ne 0; then
36714 for file in fs/super.c; do
36715 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
36716 "$LINUX/$file" 2>/dev/null
36718 if test $rc -eq 0; then
36723 if test $export -eq 0; then :
36733 if test $rc -ne 0; then :
36735 { $as_echo "$as_me:$LINENO: result: no" >&5
36736 $as_echo "no" >&6; }
36740 { $as_echo "$as_me:$LINENO: result: yes" >&5
36741 $as_echo "yes" >&6; }
36743 cat >>confdefs.h <<\_ACEOF
36744 #define HAVE_MOUNT_NODEV 1
36753 { $as_echo "$as_me:$LINENO: checking whether super_block has s_shrink" >&5
36754 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
36757 cat confdefs.h - <<_ACEOF >conftest.c
36760 cat confdefs.h >>conftest.$ac_ext
36761 cat >>conftest.$ac_ext <<_ACEOF
36762 /* end confdefs.h. */
36765 #include <linux/fs.h>
36767 int shrink(struct shrinker *s, struct shrink_control *sc)
36770 static const struct super_block
36771 sb __attribute__ ((unused)) = {
36772 .s_shrink.shrink = shrink,
36773 .s_shrink.seeks = DEFAULT_SEEKS,
36774 .s_shrink.batch = 0,
36790 cat - <<_ACEOF >conftest.h
36795 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36796 echo "obj-m := conftest.o" >build/Makefile
36798 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
36799 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
36800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36801 (eval $ac_try) 2>&5
36803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36804 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
36805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36806 (eval $ac_try) 2>&5
36808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36809 (exit $ac_status); }; }; then
36811 { $as_echo "$as_me:$LINENO: result: yes" >&5
36812 $as_echo "yes" >&6; }
36814 cat >>confdefs.h <<\_ACEOF
36815 #define HAVE_SHRINK 1
36821 $as_echo "$as_me: failed program was:" >&5
36822 sed 's
/^
/|
/' conftest.$ac_ext >&5
36824 { $as_echo "$as_me:$LINENO: result: no" >&5
36825 $as_echo "no" >&6; }
36836 { $as_echo "$as_me:$LINENO: checking whether shrink_control has nid" >&5
36837 $as_echo_n "checking whether shrink_control has nid... " >&6; }
36840 cat confdefs.h - <<_ACEOF >conftest.c
36843 cat confdefs.h >>conftest.$ac_ext
36844 cat >>conftest.$ac_ext <<_ACEOF
36845 /* end confdefs.h. */
36848 #include <linux/fs.h>
36854 struct shrink_control sc __attribute__ ((unused));
36855 unsigned long scnidsize __attribute__ ((unused)) =
36866 cat - <<_ACEOF >conftest.h
36871 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36872 echo "obj-m := conftest.o" >build/Makefile
36874 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
36875 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
36876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36877 (eval $ac_try) 2>&5
36879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36880 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
36881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36882 (eval $ac_try) 2>&5
36884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36885 (exit $ac_status); }; }; then
36887 { $as_echo "$as_me:$LINENO: result: yes" >&5
36888 $as_echo "yes" >&6; }
36890 cat >>confdefs.h <<\_ACEOF
36891 #define SHRINK_CONTROL_HAS_NID 1
36896 $as_echo "$as_me: failed program was:" >&5
36897 sed 's
/^
/|
/' conftest.$ac_ext >&5
36899 { $as_echo "$as_me:$LINENO: result: no" >&5
36900 $as_echo "no" >&6; }
36911 { $as_echo "$as_me:$LINENO: checking whether super_block has s_instances list_head" >&5
36912 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
36915 cat confdefs.h - <<_ACEOF >conftest.c
36918 cat confdefs.h >>conftest.$ac_ext
36919 cat >>conftest.$ac_ext <<_ACEOF
36920 /* end confdefs.h. */
36923 #include <linux/fs.h>
36929 struct super_block sb __attribute__ ((unused));
36931 INIT_LIST_HEAD(&sb.s_instances);
36941 cat - <<_ACEOF >conftest.h
36946 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
36947 echo "obj-m := conftest.o" >build/Makefile
36949 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
36950 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
36951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36952 (eval $ac_try) 2>&5
36954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36955 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
36956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36957 (eval $ac_try) 2>&5
36959 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36960 (exit $ac_status); }; }; then
36962 { $as_echo "$as_me:$LINENO: result: yes" >&5
36963 $as_echo "yes" >&6; }
36965 cat >>confdefs.h <<\_ACEOF
36966 #define HAVE_S_INSTANCES_LIST_HEAD 1
36971 $as_echo "$as_me: failed program was:" >&5
36972 sed 's
/^
/|
/' conftest.$ac_ext >&5
36974 { $as_echo "$as_me:$LINENO: result: no" >&5
36975 $as_echo "no" >&6; }
36985 { $as_echo "$as_me:$LINENO: checking whether super_block has s_d_op" >&5
36986 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
36989 cat confdefs.h - <<_ACEOF >conftest.c
36992 cat confdefs.h >>conftest.$ac_ext
36993 cat >>conftest.$ac_ext <<_ACEOF
36994 /* end confdefs.h. */
36997 #include <linux/fs.h>
37003 struct super_block sb __attribute__ ((unused));
37014 cat - <<_ACEOF >conftest.h
37019 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37020 echo "obj-m := conftest.o" >build/Makefile
37022 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
37023 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
37024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37025 (eval $ac_try) 2>&5
37027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37028 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
37029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37030 (eval $ac_try) 2>&5
37032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37033 (exit $ac_status); }; }; then
37035 { $as_echo "$as_me:$LINENO: result: yes" >&5
37036 $as_echo "yes" >&6; }
37038 cat >>confdefs.h <<\_ACEOF
37039 #define HAVE_S_D_OP 1
37044 $as_echo "$as_me: failed program was:" >&5
37045 sed 's
/^
/|
/' conftest.$ac_ext >&5
37047 { $as_echo "$as_me:$LINENO: result: no" >&5
37048 $as_echo "no" >&6; }
37059 { $as_echo "$as_me:$LINENO: checking whether super_setup_bdi_name() exists" >&5
37060 $as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; }
37064 cat confdefs.h - <<_ACEOF >conftest.c
37067 cat confdefs.h >>conftest.$ac_ext
37068 cat >>conftest.$ac_ext <<_ACEOF
37069 /* end confdefs.h. */
37072 #include <linux/fs.h>
37073 struct super_block sb;
37079 char *name = "bdi";
37080 int error __attribute__((unused)) =
37081 super_setup_bdi_name(&sb, name);
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
37113 $as_echo "$as_me: failed program was:" >&5
37114 sed 's
/^
/|
/' conftest.$ac_ext >&5
37123 if test $rc -ne 0; then :
37125 { $as_echo "$as_me:$LINENO: result: no" >&5
37126 $as_echo "no" >&6; }
37127 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 2 args" >&5
37128 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
37132 cat confdefs.h - <<_ACEOF >conftest.c
37135 cat confdefs.h >>conftest.$ac_ext
37136 cat >>conftest.$ac_ext <<_ACEOF
37137 /* end confdefs.h. */
37140 #include <linux/backing-dev.h>
37141 struct backing_dev_info bdi;
37147 char *name = "bdi";
37148 int error __attribute__((unused)) =
37149 bdi_setup_and_register(&bdi, name);
37159 cat - <<_ACEOF >conftest.h
37164 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37165 echo "obj-m := conftest.o" >build/Makefile
37167 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
37168 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
37169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37170 (eval $ac_try) 2>&5
37172 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37173 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
37174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37175 (eval $ac_try) 2>&5
37177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37178 (exit $ac_status); }; }; then
37181 $as_echo "$as_me: failed program was:" >&5
37182 sed 's
/^
/|
/' conftest.$ac_ext >&5
37191 if test $rc -ne 0; then :
37193 { $as_echo "$as_me:$LINENO: result: no" >&5
37194 $as_echo "no" >&6; }
37195 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
37196 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&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/backing-dev.h>
37209 struct backing_dev_info bdi;
37215 char *name = "bdi";
37216 unsigned int cap = BDI_CAP_MAP_COPY;
37217 int error __attribute__((unused)) =
37218 bdi_setup_and_register(&bdi, name, cap);
37228 cat - <<_ACEOF >conftest.h
37233 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37234 echo "obj-m := conftest.o" >build/Makefile
37236 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
37237 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
37238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37239 (eval $ac_try) 2>&5
37241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37242 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
37243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37244 (eval $ac_try) 2>&5
37246 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37247 (exit $ac_status); }; }; then
37250 $as_echo "$as_me: failed program was:" >&5
37251 sed 's
/^
/|
/' conftest.$ac_ext >&5
37260 if test $rc -ne 0; then :
37262 { $as_echo "$as_me:$LINENO: result: no" >&5
37263 $as_echo "no" >&6; }
37266 if test "x$enable_linux_builtin" != xyes; then
37268 grep -q -E '[[:space
:]]bdi_setup_and_register
[[:space
:]]' \
37269 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
37271 if test $rc -ne 0; then
37273 for file in mm/backing-dev.c; do
37274 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
37275 "$LINUX/$file" 2>/dev/null
37277 if test $rc -eq 0; then
37282 if test $export -eq 0; then :
37292 if test $rc -ne 0; then :
37294 { $as_echo "$as_me:$LINENO: result: no" >&5
37295 $as_echo "no" >&6; }
37299 { $as_echo "$as_me:$LINENO: result: yes" >&5
37300 $as_echo "yes" >&6; }
37302 cat >>confdefs.h <<\_ACEOF
37303 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
37312 if test "x$enable_linux_builtin" != xyes; then
37314 grep -q -E '[[:space
:]]bdi_setup_and_register
[[:space
:]]' \
37315 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
37317 if test $rc -ne 0; then
37319 for file in mm/backing-dev.c; do
37320 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
37321 "$LINUX/$file" 2>/dev/null
37323 if test $rc -eq 0; then
37328 if test $export -eq 0; then :
37338 if test $rc -ne 0; then :
37340 { $as_echo "$as_me:$LINENO: result: no" >&5
37341 $as_echo "no" >&6; }
37342 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
37343 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
37347 cat confdefs.h - <<_ACEOF >conftest.c
37350 cat confdefs.h >>conftest.$ac_ext
37351 cat >>conftest.$ac_ext <<_ACEOF
37352 /* end confdefs.h. */
37355 #include <linux/backing-dev.h>
37356 struct backing_dev_info bdi;
37362 char *name = "bdi";
37363 unsigned int cap = BDI_CAP_MAP_COPY;
37364 int error __attribute__((unused)) =
37365 bdi_setup_and_register(&bdi, name, cap);
37375 cat - <<_ACEOF >conftest.h
37380 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37381 echo "obj-m := conftest.o" >build/Makefile
37383 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
37384 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
37385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37386 (eval $ac_try) 2>&5
37388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37389 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
37390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37391 (eval $ac_try) 2>&5
37393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37394 (exit $ac_status); }; }; then
37397 $as_echo "$as_me: failed program was:" >&5
37398 sed 's
/^
/|
/' conftest.$ac_ext >&5
37407 if test $rc -ne 0; then :
37409 { $as_echo "$as_me:$LINENO: result: no" >&5
37410 $as_echo "no" >&6; }
37413 if test "x$enable_linux_builtin" != xyes; then
37415 grep -q -E '[[:space
:]]bdi_setup_and_register
[[:space
:]]' \
37416 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
37418 if test $rc -ne 0; then
37420 for file in mm/backing-dev.c; do
37421 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
37422 "$LINUX/$file" 2>/dev/null
37424 if test $rc -eq 0; then
37429 if test $export -eq 0; then :
37439 if test $rc -ne 0; then :
37441 { $as_echo "$as_me:$LINENO: result: no" >&5
37442 $as_echo "no" >&6; }
37446 { $as_echo "$as_me:$LINENO: result: yes" >&5
37447 $as_echo "yes" >&6; }
37449 cat >>confdefs.h <<\_ACEOF
37450 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
37460 { $as_echo "$as_me:$LINENO: result: yes" >&5
37461 $as_echo "yes" >&6; }
37463 cat >>confdefs.h <<\_ACEOF
37464 #define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1
37473 if test "x$enable_linux_builtin" != xyes; then
37475 grep -q -E '[[:space
:]]super_setup_bdi_name
[[:space
:]]' \
37476 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
37478 if test $rc -ne 0; then
37480 for file in fs/super.c; do
37481 grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \
37482 "$LINUX/$file" 2>/dev/null
37484 if test $rc -eq 0; then
37489 if test $export -eq 0; then :
37499 if test $rc -ne 0; then :
37501 { $as_echo "$as_me:$LINENO: result: no" >&5
37502 $as_echo "no" >&6; }
37503 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 2 args" >&5
37504 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
37508 cat confdefs.h - <<_ACEOF >conftest.c
37511 cat confdefs.h >>conftest.$ac_ext
37512 cat >>conftest.$ac_ext <<_ACEOF
37513 /* end confdefs.h. */
37516 #include <linux/backing-dev.h>
37517 struct backing_dev_info bdi;
37523 char *name = "bdi";
37524 int error __attribute__((unused)) =
37525 bdi_setup_and_register(&bdi, name);
37535 cat - <<_ACEOF >conftest.h
37540 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37541 echo "obj-m := conftest.o" >build/Makefile
37543 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
37544 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
37545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37546 (eval $ac_try) 2>&5
37548 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37549 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
37550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37551 (eval $ac_try) 2>&5
37553 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37554 (exit $ac_status); }; }; then
37557 $as_echo "$as_me: failed program was:" >&5
37558 sed 's
/^
/|
/' conftest.$ac_ext >&5
37567 if test $rc -ne 0; then :
37569 { $as_echo "$as_me:$LINENO: result: no" >&5
37570 $as_echo "no" >&6; }
37571 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
37572 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
37576 cat confdefs.h - <<_ACEOF >conftest.c
37579 cat confdefs.h >>conftest.$ac_ext
37580 cat >>conftest.$ac_ext <<_ACEOF
37581 /* end confdefs.h. */
37584 #include <linux/backing-dev.h>
37585 struct backing_dev_info bdi;
37591 char *name = "bdi";
37592 unsigned int cap = BDI_CAP_MAP_COPY;
37593 int error __attribute__((unused)) =
37594 bdi_setup_and_register(&bdi, name, cap);
37604 cat - <<_ACEOF >conftest.h
37609 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37610 echo "obj-m := conftest.o" >build/Makefile
37612 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
37613 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
37614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37615 (eval $ac_try) 2>&5
37617 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37618 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
37619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37620 (eval $ac_try) 2>&5
37622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37623 (exit $ac_status); }; }; then
37626 $as_echo "$as_me: failed program was:" >&5
37627 sed 's
/^
/|
/' conftest.$ac_ext >&5
37636 if test $rc -ne 0; then :
37638 { $as_echo "$as_me:$LINENO: result: no" >&5
37639 $as_echo "no" >&6; }
37642 if test "x$enable_linux_builtin" != xyes; then
37644 grep -q -E '[[:space
:]]bdi_setup_and_register
[[:space
:]]' \
37645 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
37647 if test $rc -ne 0; then
37649 for file in mm/backing-dev.c; do
37650 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
37651 "$LINUX/$file" 2>/dev/null
37653 if test $rc -eq 0; then
37658 if test $export -eq 0; then :
37668 if test $rc -ne 0; then :
37670 { $as_echo "$as_me:$LINENO: result: no" >&5
37671 $as_echo "no" >&6; }
37675 { $as_echo "$as_me:$LINENO: result: yes" >&5
37676 $as_echo "yes" >&6; }
37678 cat >>confdefs.h <<\_ACEOF
37679 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
37688 if test "x$enable_linux_builtin" != xyes; then
37690 grep -q -E '[[:space
:]]bdi_setup_and_register
[[:space
:]]' \
37691 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
37693 if test $rc -ne 0; then
37695 for file in mm/backing-dev.c; do
37696 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
37697 "$LINUX/$file" 2>/dev/null
37699 if test $rc -eq 0; then
37704 if test $export -eq 0; then :
37714 if test $rc -ne 0; then :
37716 { $as_echo "$as_me:$LINENO: result: no" >&5
37717 $as_echo "no" >&6; }
37718 { $as_echo "$as_me:$LINENO: checking whether bdi_setup_and_register() wants 3 args" >&5
37719 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
37723 cat confdefs.h - <<_ACEOF >conftest.c
37726 cat confdefs.h >>conftest.$ac_ext
37727 cat >>conftest.$ac_ext <<_ACEOF
37728 /* end confdefs.h. */
37731 #include <linux/backing-dev.h>
37732 struct backing_dev_info bdi;
37738 char *name = "bdi";
37739 unsigned int cap = BDI_CAP_MAP_COPY;
37740 int error __attribute__((unused)) =
37741 bdi_setup_and_register(&bdi, name, cap);
37751 cat - <<_ACEOF >conftest.h
37756 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37757 echo "obj-m := conftest.o" >build/Makefile
37759 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
37760 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
37761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37762 (eval $ac_try) 2>&5
37764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37765 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
37766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37767 (eval $ac_try) 2>&5
37769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37770 (exit $ac_status); }; }; then
37773 $as_echo "$as_me: failed program was:" >&5
37774 sed 's
/^
/|
/' conftest.$ac_ext >&5
37783 if test $rc -ne 0; then :
37785 { $as_echo "$as_me:$LINENO: result: no" >&5
37786 $as_echo "no" >&6; }
37789 if test "x$enable_linux_builtin" != xyes; then
37791 grep -q -E '[[:space
:]]bdi_setup_and_register
[[:space
:]]' \
37792 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
37794 if test $rc -ne 0; then
37796 for file in mm/backing-dev.c; do
37797 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
37798 "$LINUX/$file" 2>/dev/null
37800 if test $rc -eq 0; then
37805 if test $export -eq 0; then :
37815 if test $rc -ne 0; then :
37817 { $as_echo "$as_me:$LINENO: result: no" >&5
37818 $as_echo "no" >&6; }
37822 { $as_echo "$as_me:$LINENO: result: yes" >&5
37823 $as_echo "yes" >&6; }
37825 cat >>confdefs.h <<\_ACEOF
37826 #define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1
37836 { $as_echo "$as_me:$LINENO: result: yes" >&5
37837 $as_echo "yes" >&6; }
37839 cat >>confdefs.h <<\_ACEOF
37840 #define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1
37850 { $as_echo "$as_me:$LINENO: result: yes" >&5
37851 $as_echo "yes" >&6; }
37853 cat >>confdefs.h <<\_ACEOF
37854 #define HAVE_SUPER_SETUP_BDI_NAME 1
37863 { $as_echo "$as_me:$LINENO: checking whether set_nlink() is available" >&5
37864 $as_echo_n "checking whether set_nlink() is available... " >&6; }
37867 cat confdefs.h - <<_ACEOF >conftest.c
37870 cat confdefs.h >>conftest.$ac_ext
37871 cat >>conftest.$ac_ext <<_ACEOF
37872 /* end confdefs.h. */
37875 #include <linux/fs.h>
37882 unsigned int link = 0;
37883 (void) set_nlink(&node, link);
37893 cat - <<_ACEOF >conftest.h
37898 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37899 echo "obj-m := conftest.o" >build/Makefile
37901 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
37902 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
37903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37904 (eval $ac_try) 2>&5
37906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37907 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
37908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37909 (eval $ac_try) 2>&5
37911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37912 (exit $ac_status); }; }; then
37914 { $as_echo "$as_me:$LINENO: result: yes" >&5
37915 $as_echo "yes" >&6; }
37917 cat >>confdefs.h <<\_ACEOF
37918 #define HAVE_SET_NLINK 1
37923 $as_echo "$as_me: failed program was:" >&5
37924 sed 's
/^
/|
/' conftest.$ac_ext >&5
37926 { $as_echo "$as_me:$LINENO: result: no" >&5
37927 $as_echo "no" >&6; }
37938 { $as_echo "$as_me:$LINENO: checking whether elevator_change() is available" >&5
37939 $as_echo_n "checking whether elevator_change() is available... " >&6; }
37940 tmp_flags="$EXTRA_KCFLAGS"
37941 EXTRA_KCFLAGS="${NO_UNUSED_BUT_SET_VARIABLE}"
37944 cat confdefs.h - <<_ACEOF >conftest.c
37947 cat confdefs.h >>conftest.$ac_ext
37948 cat >>conftest.$ac_ext <<_ACEOF
37949 /* end confdefs.h. */
37952 #include <linux/blkdev.h>
37953 #include <linux/elevator.h>
37960 struct request_queue *q = NULL;
37961 char *elevator = NULL;
37962 ret = elevator_change(q, elevator);
37972 cat - <<_ACEOF >conftest.h
37977 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
37978 echo "obj-m := conftest.o" >build/Makefile
37980 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
37981 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
37982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37983 (eval $ac_try) 2>&5
37985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37986 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
37987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
37988 (eval $ac_try) 2>&5
37990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37991 (exit $ac_status); }; }; then
37993 { $as_echo "$as_me:$LINENO: result: yes" >&5
37994 $as_echo "yes" >&6; }
37996 cat >>confdefs.h <<\_ACEOF
37997 #define HAVE_ELEVATOR_CHANGE 1
38002 $as_echo "$as_me: failed program was:" >&5
38003 sed 's
/^
/|
/' conftest.$ac_ext >&5
38005 { $as_echo "$as_me:$LINENO: result: no" >&5
38006 $as_echo "no" >&6; }
38015 EXTRA_KCFLAGS="$tmp_flags"
38017 { $as_echo "$as_me:$LINENO: checking whether sget() wants 5 args" >&5
38018 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
38021 cat confdefs.h - <<_ACEOF >conftest.c
38024 cat confdefs.h >>conftest.$ac_ext
38025 cat >>conftest.$ac_ext <<_ACEOF
38026 /* end confdefs.h. */
38029 #include <linux/fs.h>
38035 struct file_system_type *type = NULL;
38036 int (*test)(struct super_block *,void *) = NULL;
38037 int (*set)(struct super_block *,void *) = NULL;
38040 (void) sget(type, test, set, flags, data);
38050 cat - <<_ACEOF >conftest.h
38055 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38056 echo "obj-m := conftest.o" >build/Makefile
38058 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
38059 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
38060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38061 (eval $ac_try) 2>&5
38063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38064 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
38065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38066 (eval $ac_try) 2>&5
38068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38069 (exit $ac_status); }; }; then
38071 { $as_echo "$as_me:$LINENO: result: yes" >&5
38072 $as_echo "yes" >&6; }
38074 cat >>confdefs.h <<\_ACEOF
38075 #define HAVE_5ARG_SGET 1
38080 $as_echo "$as_me: failed program was:" >&5
38081 sed 's
/^
/|
/' conftest.$ac_ext >&5
38083 { $as_echo "$as_me:$LINENO: result: no" >&5
38084 $as_echo "no" >&6; }
38094 { $as_echo "$as_me:$LINENO: checking whether lseek_execute() is available" >&5
38095 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
38099 cat confdefs.h - <<_ACEOF >conftest.c
38102 cat confdefs.h >>conftest.$ac_ext
38103 cat >>conftest.$ac_ext <<_ACEOF
38104 /* end confdefs.h. */
38107 #include <linux/fs.h>
38113 struct file *fp __attribute__ ((unused)) = NULL;
38114 struct inode *ip __attribute__ ((unused)) = NULL;
38115 loff_t offset __attribute__ ((unused)) = 0;
38116 loff_t maxsize __attribute__ ((unused)) = 0;
38118 lseek_execute(fp, ip, offset, maxsize);
38128 cat - <<_ACEOF >conftest.h
38133 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38134 echo "obj-m := conftest.o" >build/Makefile
38136 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
38137 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
38138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38139 (eval $ac_try) 2>&5
38141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38142 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
38143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38144 (eval $ac_try) 2>&5
38146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38147 (exit $ac_status); }; }; then
38150 $as_echo "$as_me: failed program was:" >&5
38151 sed 's
/^
/|
/' conftest.$ac_ext >&5
38160 if test $rc -ne 0; then :
38162 { $as_echo "$as_me:$LINENO: result: no" >&5
38163 $as_echo "no" >&6; }
38166 if test "x$enable_linux_builtin" != xyes; then
38168 grep -q -E '[[:space
:]]lseek_exclusive
[[:space
:]]' \
38169 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
38171 if test $rc -ne 0; then
38173 for file in fs/read_write.c; do
38174 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
38175 "$LINUX/$file" 2>/dev/null
38177 if test $rc -eq 0; then
38182 if test $export -eq 0; then :
38192 if test $rc -ne 0; then :
38194 { $as_echo "$as_me:$LINENO: result: no" >&5
38195 $as_echo "no" >&6; }
38199 { $as_echo "$as_me:$LINENO: result: yes" >&5
38200 $as_echo "yes" >&6; }
38202 cat >>confdefs.h <<\_ACEOF
38203 #define HAVE_LSEEK_EXECUTE 1
38212 { $as_echo "$as_me:$LINENO: checking whether fops->iterate_shared() is available" >&5
38213 $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
38216 cat confdefs.h - <<_ACEOF >conftest.c
38219 cat confdefs.h >>conftest.$ac_ext
38220 cat >>conftest.$ac_ext <<_ACEOF
38221 /* end confdefs.h. */
38224 #include <linux/fs.h>
38225 int iterate(struct file *filp, struct dir_context * context)
38228 static const struct file_operations fops
38229 __attribute__ ((unused)) = {
38230 .iterate_shared = iterate,
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_VFS_ITERATE_SHARED 1
38276 $as_echo "$as_me: failed program was:" >&5
38277 sed 's
/^
/|
/' conftest.$ac_ext >&5
38279 { $as_echo "$as_me:$LINENO: result: no" >&5
38280 $as_echo "no" >&6; }
38282 { $as_echo "$as_me:$LINENO: checking whether fops->iterate() is available" >&5
38283 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
38286 cat confdefs.h - <<_ACEOF >conftest.c
38289 cat confdefs.h >>conftest.$ac_ext
38290 cat >>conftest.$ac_ext <<_ACEOF
38291 /* end confdefs.h. */
38294 #include <linux/fs.h>
38295 int iterate(struct file *filp, struct dir_context * context)
38298 static const struct file_operations fops
38299 __attribute__ ((unused)) = {
38300 .iterate = iterate,
38316 cat - <<_ACEOF >conftest.h
38321 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38322 echo "obj-m := conftest.o" >build/Makefile
38324 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
38325 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
38326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38327 (eval $ac_try) 2>&5
38329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38330 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
38331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38332 (eval $ac_try) 2>&5
38334 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38335 (exit $ac_status); }; }; then
38337 { $as_echo "$as_me:$LINENO: result: yes" >&5
38338 $as_echo "yes" >&6; }
38340 cat >>confdefs.h <<\_ACEOF
38341 #define HAVE_VFS_ITERATE 1
38346 $as_echo "$as_me: failed program was:" >&5
38347 sed 's
/^
/|
/' conftest.$ac_ext >&5
38349 { $as_echo "$as_me:$LINENO: result: no" >&5
38350 $as_echo "no" >&6; }
38352 { $as_echo "$as_me:$LINENO: checking whether fops->readdir() is available" >&5
38353 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
38356 cat confdefs.h - <<_ACEOF >conftest.c
38359 cat confdefs.h >>conftest.$ac_ext
38360 cat >>conftest.$ac_ext <<_ACEOF
38361 /* end confdefs.h. */
38364 #include <linux/fs.h>
38365 int readdir(struct file *filp, void *entry, filldir_t func)
38368 static const struct file_operations fops
38369 __attribute__ ((unused)) = {
38370 .readdir = readdir,
38386 cat - <<_ACEOF >conftest.h
38391 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38392 echo "obj-m := conftest.o" >build/Makefile
38394 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
38395 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
38396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38397 (eval $ac_try) 2>&5
38399 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38400 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
38401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38402 (eval $ac_try) 2>&5
38404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38405 (exit $ac_status); }; }; then
38407 { $as_echo "$as_me:$LINENO: result: yes" >&5
38408 $as_echo "yes" >&6; }
38410 cat >>confdefs.h <<\_ACEOF
38411 #define HAVE_VFS_READDIR 1
38416 $as_echo "$as_me: failed program was:" >&5
38417 sed 's
/^
/|
/' conftest.$ac_ext >&5
38419 { { $as_echo "$as_me:$LINENO: error: no; file a bug report with ZFSOnLinux" >&5
38420 $as_echo "$as_me: error: no; file a bug report with ZFSOnLinux" >&2;}
38421 { (exit 1); exit 1; }; }
38447 { $as_echo "$as_me:$LINENO: checking whether fops->read/write_iter() are available" >&5
38448 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
38451 cat confdefs.h - <<_ACEOF >conftest.c
38454 cat confdefs.h >>conftest.$ac_ext
38455 cat >>conftest.$ac_ext <<_ACEOF
38456 /* end confdefs.h. */
38459 #include <linux/fs.h>
38461 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
38463 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
38466 static const struct file_operations
38467 fops __attribute__ ((unused)) = {
38468 .read_iter = test_read,
38469 .write_iter = test_write,
38485 cat - <<_ACEOF >conftest.h
38490 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38491 echo "obj-m := conftest.o" >build/Makefile
38493 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
38494 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
38495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38496 (eval $ac_try) 2>&5
38498 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38499 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
38500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38501 (eval $ac_try) 2>&5
38503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38504 (exit $ac_status); }; }; then
38506 { $as_echo "$as_me:$LINENO: result: yes" >&5
38507 $as_echo "yes" >&6; }
38509 cat >>confdefs.h <<\_ACEOF
38510 #define HAVE_VFS_RW_ITERATE 1
38514 { $as_echo "$as_me:$LINENO: checking whether new_sync_read() is available" >&5
38515 $as_echo_n "checking whether new_sync_read() is available... " >&6; }
38518 cat confdefs.h - <<_ACEOF >conftest.c
38521 cat confdefs.h >>conftest.$ac_ext
38522 cat >>conftest.$ac_ext <<_ACEOF
38523 /* end confdefs.h. */
38526 #include <linux/fs.h>
38532 new_sync_read(NULL, NULL, 0, NULL);
38542 cat - <<_ACEOF >conftest.h
38547 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38548 echo "obj-m := conftest.o" >build/Makefile
38550 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
38551 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
38552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38553 (eval $ac_try) 2>&5
38555 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38556 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
38557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38558 (eval $ac_try) 2>&5
38560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38561 (exit $ac_status); }; }; then
38563 { $as_echo "$as_me:$LINENO: result: yes" >&5
38564 $as_echo "yes" >&6; }
38566 cat >>confdefs.h <<\_ACEOF
38567 #define HAVE_NEW_SYNC_READ 1
38572 $as_echo "$as_me: failed program was:" >&5
38573 sed 's
/^
/|
/' conftest.$ac_ext >&5
38575 { $as_echo "$as_me:$LINENO: result: no" >&5
38576 $as_echo "no" >&6; }
38588 $as_echo "$as_me: failed program was:" >&5
38589 sed 's
/^
/|
/' conftest.$ac_ext >&5
38591 { $as_echo "$as_me:$LINENO: result: no" >&5
38592 $as_echo "no" >&6; }
38602 { $as_echo "$as_me:$LINENO: checking whether generic_write_checks() takes kiocb" >&5
38603 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
38606 cat confdefs.h - <<_ACEOF >conftest.c
38609 cat confdefs.h >>conftest.$ac_ext
38610 cat >>conftest.$ac_ext <<_ACEOF
38611 /* end confdefs.h. */
38614 #include <linux/fs.h>
38621 struct kiocb *iocb = NULL;
38622 struct iov_iter *iov = NULL;
38623 generic_write_checks(iocb, iov);
38633 cat - <<_ACEOF >conftest.h
38638 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38639 echo "obj-m := conftest.o" >build/Makefile
38641 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
38642 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
38643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38644 (eval $ac_try) 2>&5
38646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38647 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
38648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38649 (eval $ac_try) 2>&5
38651 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38652 (exit $ac_status); }; }; then
38654 { $as_echo "$as_me:$LINENO: result: yes" >&5
38655 $as_echo "yes" >&6; }
38657 cat >>confdefs.h <<\_ACEOF
38658 #define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1
38663 $as_echo "$as_me: failed program was:" >&5
38664 sed 's
/^
/|
/' conftest.$ac_ext >&5
38666 { $as_echo "$as_me:$LINENO: result: no" >&5
38667 $as_echo "no" >&6; }
38678 { $as_echo "$as_me:$LINENO: checking whether kmap_atomic wants 1 args" >&5
38679 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
38682 cat confdefs.h - <<_ACEOF >conftest.c
38685 cat confdefs.h >>conftest.$ac_ext
38686 cat >>conftest.$ac_ext <<_ACEOF
38687 /* end confdefs.h. */
38690 #include <linux/pagemap.h>
38697 kmap_atomic(&page);
38707 cat - <<_ACEOF >conftest.h
38712 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38713 echo "obj-m := conftest.o" >build/Makefile
38715 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
38716 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
38717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38718 (eval $ac_try) 2>&5
38720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38721 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
38722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38723 (eval $ac_try) 2>&5
38725 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38726 (exit $ac_status); }; }; then
38728 { $as_echo "$as_me:$LINENO: result: yes" >&5
38729 $as_echo "yes" >&6; }
38731 cat >>confdefs.h <<\_ACEOF
38732 #define HAVE_1ARG_KMAP_ATOMIC 1
38737 $as_echo "$as_me: failed program was:" >&5
38738 sed 's
/^
/|
/' conftest.$ac_ext >&5
38740 { $as_echo "$as_me:$LINENO: result: no" >&5
38741 $as_echo "no" >&6; }
38752 { $as_echo "$as_me:$LINENO: checking whether follow_down_one() is available" >&5
38753 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
38756 cat confdefs.h - <<_ACEOF >conftest.c
38759 cat confdefs.h >>conftest.$ac_ext
38760 cat >>conftest.$ac_ext <<_ACEOF
38761 /* end confdefs.h. */
38764 #include <linux/namei.h>
38770 struct path *p = NULL;
38771 follow_down_one(p);
38781 cat - <<_ACEOF >conftest.h
38786 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38787 echo "obj-m := conftest.o" >build/Makefile
38789 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
38790 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
38791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38792 (eval $ac_try) 2>&5
38794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38795 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
38796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38797 (eval $ac_try) 2>&5
38799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38800 (exit $ac_status); }; }; then
38802 { $as_echo "$as_me:$LINENO: result: yes" >&5
38803 $as_echo "yes" >&6; }
38805 cat >>confdefs.h <<\_ACEOF
38806 #define HAVE_FOLLOW_DOWN_ONE 1
38811 $as_echo "$as_me: failed program was:" >&5
38812 sed 's
/^
/|
/' conftest.$ac_ext >&5
38814 { $as_echo "$as_me:$LINENO: result: no" >&5
38815 $as_echo "no" >&6; }
38826 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns int" >&5
38827 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
38830 cat confdefs.h - <<_ACEOF >conftest.c
38833 cat confdefs.h >>conftest.$ac_ext
38834 cat >>conftest.$ac_ext <<_ACEOF
38835 /* end confdefs.h. */
38838 #include <linux/blkdev.h>
38840 int make_request(struct request_queue *q, struct bio *bio)
38849 blk_queue_make_request(NULL, &make_request);
38859 cat - <<_ACEOF >conftest.h
38864 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38865 echo "obj-m := conftest.o" >build/Makefile
38867 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
38868 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
38869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38870 (eval $ac_try) 2>&5
38872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38873 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
38874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38875 (eval $ac_try) 2>&5
38877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38878 (exit $ac_status); }; }; then
38880 { $as_echo "$as_me:$LINENO: result: yes" >&5
38881 $as_echo "yes" >&6; }
38883 cat >>confdefs.h <<\_ACEOF
38884 #define MAKE_REQUEST_FN_RET int
38888 cat >>confdefs.h <<\_ACEOF
38889 #define HAVE_MAKE_REQUEST_FN_RET_INT 1
38894 $as_echo "$as_me: failed program was:" >&5
38895 sed 's
/^
/|
/' conftest.$ac_ext >&5
38897 { $as_echo "$as_me:$LINENO: result: no" >&5
38898 $as_echo "no" >&6; }
38899 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns void" >&5
38900 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
38903 cat confdefs.h - <<_ACEOF >conftest.c
38906 cat confdefs.h >>conftest.$ac_ext
38907 cat >>conftest.$ac_ext <<_ACEOF
38908 /* end confdefs.h. */
38911 #include <linux/blkdev.h>
38913 void make_request(struct request_queue *q, struct bio *bio)
38922 blk_queue_make_request(NULL, &make_request);
38932 cat - <<_ACEOF >conftest.h
38937 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
38938 echo "obj-m := conftest.o" >build/Makefile
38940 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
38941 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
38942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38943 (eval $ac_try) 2>&5
38945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38946 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
38947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
38948 (eval $ac_try) 2>&5
38950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38951 (exit $ac_status); }; }; then
38953 { $as_echo "$as_me:$LINENO: result: yes" >&5
38954 $as_echo "yes" >&6; }
38956 cat >>confdefs.h <<\_ACEOF
38957 #define MAKE_REQUEST_FN_RET void
38962 $as_echo "$as_me: failed program was:" >&5
38963 sed 's
/^
/|
/' conftest.$ac_ext >&5
38965 { $as_echo "$as_me:$LINENO: result: no" >&5
38966 $as_echo "no" >&6; }
38967 { $as_echo "$as_me:$LINENO: checking whether make_request_fn() returns blk_qc_t" >&5
38968 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
38971 cat confdefs.h - <<_ACEOF >conftest.c
38974 cat confdefs.h >>conftest.$ac_ext
38975 cat >>conftest.$ac_ext <<_ACEOF
38976 /* end confdefs.h. */
38979 #include <linux/blkdev.h>
38981 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
38983 return (BLK_QC_T_NONE);
38990 blk_queue_make_request(NULL, &make_request);
39000 cat - <<_ACEOF >conftest.h
39005 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39006 echo "obj-m := conftest.o" >build/Makefile
39008 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
39009 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
39010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39011 (eval $ac_try) 2>&5
39013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39014 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
39015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39016 (eval $ac_try) 2>&5
39018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39019 (exit $ac_status); }; }; then
39021 { $as_echo "$as_me:$LINENO: result: yes" >&5
39022 $as_echo "yes" >&6; }
39024 cat >>confdefs.h <<\_ACEOF
39025 #define MAKE_REQUEST_FN_RET blk_qc_t
39029 cat >>confdefs.h <<\_ACEOF
39030 #define HAVE_MAKE_REQUEST_FN_RET_QC 1
39035 $as_echo "$as_me: failed program was:" >&5
39036 sed 's
/^
/|
/' conftest.$ac_ext >&5
39038 { { $as_echo "$as_me:$LINENO: error: no - Please file a bug report at
39039 https://github.com/zfsonlinux/zfs/issues/new" >&5
39040 $as_echo "$as_me: error: no - Please file a bug report at
39041 https://github.com/zfsonlinux/zfs/issues/new" >&2;}
39042 { (exit 1); exit 1; }; }
39069 { $as_echo "$as_me:$LINENO: checking whether generic IO accounting symbols are avaliable" >&5
39070 $as_echo_n "checking whether generic IO accounting symbols are avaliable... " >&6; }
39074 cat confdefs.h - <<_ACEOF >conftest.c
39077 cat confdefs.h >>conftest.$ac_ext
39078 cat >>conftest.$ac_ext <<_ACEOF
39079 /* end confdefs.h. */
39082 #include <linux/bio.h>
39084 void (*generic_start_io_acct_f)(int, unsigned long,
39085 struct hd_struct *) = &generic_start_io_acct;
39086 void (*generic_end_io_acct_f)(int, struct hd_struct *,
39087 unsigned long) = &generic_end_io_acct;
39093 generic_start_io_acct(0, 0, NULL);
39094 generic_end_io_acct(0, NULL, 0);
39104 cat - <<_ACEOF >conftest.h
39109 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39110 echo "obj-m := conftest.o" >build/Makefile
39112 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
39113 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
39114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39115 (eval $ac_try) 2>&5
39117 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39118 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
39119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39120 (eval $ac_try) 2>&5
39122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39123 (exit $ac_status); }; }; then
39126 $as_echo "$as_me: failed program was:" >&5
39127 sed 's
/^
/|
/' conftest.$ac_ext >&5
39136 if test $rc -ne 0; then :
39138 { $as_echo "$as_me:$LINENO: result: no" >&5
39139 $as_echo "no" >&6; }
39142 if test "x$enable_linux_builtin" != xyes; then
39144 grep -q -E '[[:space
:]]generic_start_io_acct
[[:space
:]]' \
39145 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
39147 if test $rc -ne 0; then
39149 for file in block/bio.c; do
39150 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
39151 "$LINUX/$file" 2>/dev/null
39153 if test $rc -eq 0; then
39158 if test $export -eq 0; then :
39168 if test $rc -ne 0; then :
39170 { $as_echo "$as_me:$LINENO: result: no" >&5
39171 $as_echo "no" >&6; }
39175 { $as_echo "$as_me:$LINENO: result: yes" >&5
39176 $as_echo "yes" >&6; }
39178 cat >>confdefs.h <<\_ACEOF
39179 #define HAVE_GENERIC_IO_ACCT 1
39188 { $as_echo "$as_me:$LINENO: checking whether iops->rename() wants flags" >&5
39189 $as_echo_n "checking whether iops->rename() wants flags... " >&6; }
39192 cat confdefs.h - <<_ACEOF >conftest.c
39195 cat confdefs.h >>conftest.$ac_ext
39196 cat >>conftest.$ac_ext <<_ACEOF
39197 /* end confdefs.h. */
39200 #include <linux/fs.h>
39201 int rename_fn(struct inode *sip, struct dentry *sdp,
39202 struct inode *tip, struct dentry *tdp,
39203 unsigned int flags) { return 0; }
39205 static const struct inode_operations
39206 iops __attribute__ ((unused)) = {
39207 .rename = rename_fn,
39223 cat - <<_ACEOF >conftest.h
39228 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39229 echo "obj-m := conftest.o" >build/Makefile
39231 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
39232 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
39233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39234 (eval $ac_try) 2>&5
39236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39237 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
39238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39239 (eval $ac_try) 2>&5
39241 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39242 (exit $ac_status); }; }; then
39244 { $as_echo "$as_me:$LINENO: result: yes" >&5
39245 $as_echo "yes" >&6; }
39247 cat >>confdefs.h <<\_ACEOF
39248 #define HAVE_RENAME_WANTS_FLAGS 1
39253 $as_echo "$as_me: failed program was:" >&5
39254 sed 's
/^
/|
/' conftest.$ac_ext >&5
39256 { $as_echo "$as_me:$LINENO: result: no" >&5
39257 $as_echo "no" >&6; }
39268 { $as_echo "$as_me:$LINENO: checking whether generic_setxattr() exists" >&5
39269 $as_echo_n "checking whether generic_setxattr() exists... " >&6; }
39272 cat confdefs.h - <<_ACEOF >conftest.c
39275 cat confdefs.h >>conftest.$ac_ext
39276 cat >>conftest.$ac_ext <<_ACEOF
39277 /* end confdefs.h. */
39280 #include <linux/fs.h>
39281 #include <linux/xattr.h>
39283 static const struct inode_operations
39284 iops __attribute__ ((unused)) = {
39285 .setxattr = generic_setxattr
39301 cat - <<_ACEOF >conftest.h
39306 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39307 echo "obj-m := conftest.o" >build/Makefile
39309 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
39310 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
39311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39312 (eval $ac_try) 2>&5
39314 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39315 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
39316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39317 (eval $ac_try) 2>&5
39319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39320 (exit $ac_status); }; }; then
39322 { $as_echo "$as_me:$LINENO: result: yes" >&5
39323 $as_echo "yes" >&6; }
39325 cat >>confdefs.h <<\_ACEOF
39326 #define HAVE_GENERIC_SETXATTR 1
39331 $as_echo "$as_me: failed program was:" >&5
39332 sed 's
/^
/|
/' conftest.$ac_ext >&5
39334 { $as_echo "$as_me:$LINENO: result: no" >&5
39335 $as_echo "no" >&6; }
39345 { $as_echo "$as_me:$LINENO: checking whether current_time() exists" >&5
39346 $as_echo_n "checking whether current_time() exists... " >&6; }
39350 cat confdefs.h - <<_ACEOF >conftest.c
39353 cat confdefs.h >>conftest.$ac_ext
39354 cat >>conftest.$ac_ext <<_ACEOF
39355 /* end confdefs.h. */
39358 #include <linux/fs.h>
39365 struct timespec now __attribute__ ((unused));
39367 now = current_time(&ip);
39377 cat - <<_ACEOF >conftest.h
39382 rm -Rf build && mkdir -p build && touch build/conftest.mod.c
39383 echo "obj-m := conftest.o" >build/Makefile
39385 test "x$enable_linux_builtin" = xyes && modpost_flag='modpost
=true
' # fake modpost stage
39386 if { ac_try='cp conftest.c conftest.h build
&& make modules
-C $LINUX_OBJ EXTRA_CFLAGS
="-Werror $EXTRA_KCFLAGS" $ARCH_UM M
=$PWD/build
$modpost_flag'
39387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39388 (eval $ac_try) 2>&5
39390 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39391 (exit $ac_status); }; } >/dev/null && { ac_try='test -s build
/conftest.o
'
39392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
39393 (eval $ac_try) 2>&5
39395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39396 (exit $ac_status); }; }; then
39399 $as_echo "$as_me: failed program was:" >&5
39400 sed 's
/^
/|
/' conftest.$ac_ext >&5
39409 if test $rc -ne 0; then :
39411 { $as_echo "$as_me:$LINENO: result: no" >&5
39412 $as_echo "no" >&6; }
39415 if test "x$enable_linux_builtin" != xyes; then
39417 grep -q -E '[[:space
:]]current_time
[[:space
:]]' \
39418 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev/null
39420 if test $rc -ne 0; then
39422 for file in fs/inode.c; do
39423 grep -q -E "EXPORT_SYMBOL.*(current_time)" \
39424 "$LINUX/$file" 2>/dev/null
39426 if test $rc -eq 0; then
39431 if test $export -eq 0; then :
39441 if test $rc -ne 0; then :
39443 { $as_echo "$as_me:$LINENO: result: no" >&5
39444 $as_echo "no" >&6; }
39448 { $as_echo "$as_me:$LINENO: result: yes" >&5
39449 $as_echo "yes" >&6; }
39451 cat >>confdefs.h <<\_ACEOF
39452 #define HAVE_CURRENT_TIME 1
39461 if test "$LINUX_OBJ" != "$LINUX"; then
39463 KERNELMAKE_PARAMS="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
39470 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
39471 KERNELCPPFLAGS="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
39472 KERNELCPPFLAGS="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
39473 KERNELCPPFLAGS="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
39480 # Check whether --with-mounthelperdir was given.
39481 if test "${with_mounthelperdir+set}" = set; then
39482 withval=$with_mounthelperdir; mounthelperdir=$withval
39484 mounthelperdir=/sbin
39491 { $as_echo "$as_me:$LINENO: checking for udev directories" >&5
39492 $as_echo_n "checking for udev directories... " >&6; }
39494 # Check whether --with-udevdir was given.
39495 if test "${with_udevdir+set}" = set; then
39496 withval=$with_udevdir; udevdir=$withval
39502 if test "x$udevdir" = xcheck; then
39505 path2=/usr/lib/udev
39508 if test -d "$path1"; then
39512 if test -d "$path2"; then
39526 # Check whether --with-udevruledir was given.
39527 if test "${with_udevruledir+set}" = set; then
39528 withval=$with_udevruledir; udevruledir=$withval
39530 udevruledir="${udevdir}/rules.d"
39536 { $as_echo "$as_me:$LINENO: result: $udevdir;$udevruledir" >&5
39537 $as_echo "$udevdir;$udevruledir" >&6; }
39540 # Check whether --enable-systemd was given.
39541 if test "${enable_systemd+set}" = set; then
39542 enableval=$enable_systemd;
39549 # Check whether --with-systemdunitdir was given.
39550 if test "${with_systemdunitdir+set}" = set; then
39551 withval=$with_systemdunitdir; systemdunitdir=$withval
39553 systemdunitdir=/usr/lib/systemd/system
39558 # Check whether --with-systemdpresetdir was given.
39559 if test "${with_systemdpresetdir+set}" = set; then
39560 withval=$with_systemdpresetdir; systemdpresetdir=$withval
39562 systemdpresetdir=/usr/lib/systemd/system-preset
39567 # Check whether --with-systemdmodulesloaddir was given.
39568 if test "${with_systemdmodulesloaddir+set}" = set; then
39569 withval=$with_systemdmodulesloaddir; systemdmoduleloaddir=$withval
39571 systemdmodulesloaddir=/usr/lib/modules-load.d
39576 if test "x$enable_systemd" = xyes; then
39578 ZFS_INIT_SYSTEMD=systemd
39579 ZFS_MODULE_LOAD=modules-load.d
39580 modulesloaddir=$systemdmodulesloaddir
39592 # Check whether --enable-sysvinit was given.
39593 if test "${enable_sysvinit+set}" = set; then
39594 enableval=$enable_sysvinit;
39596 enable_sysvinit=yes
39600 if test "x$enable_sysvinit" = xyes; then
39601 ZFS_INIT_SYSV=init.d
39608 { $as_echo "$as_me:$LINENO: checking for dracut directory" >&5
39609 $as_echo_n "checking for dracut directory... " >&6; }
39611 # Check whether --with-dracutdir was given.
39612 if test "${with_dracutdir+set}" = set; then
39613 withval=$with_dracutdir; dracutdir=$withval
39619 if test "x$dracutdir" = xcheck; then
39621 path1=/usr/share/dracut
39622 path2=/usr/lib/dracut
39625 if test -d "$path1"; then
39629 if test -d "$path2"; then
39632 dracutdir="$default"
39643 { $as_echo "$as_me:$LINENO: result: $dracutdir" >&5
39644 $as_echo "$dracutdir" >&6; }
39647 { $as_echo "$as_me:$LINENO: checking for target asm dir" >&5
39648 $as_echo_n "checking for target asm dir... " >&6; }
39649 TARGET_ARCH=`echo ${target_cpu} | sed -e s/i.86/i386/`
39651 case $TARGET_ARCH in
39653 TARGET_ASM_DIR=asm-${TARGET_ARCH}
39656 TARGET_ASM_DIR=asm-generic
39661 { $as_echo "$as_me:$LINENO: result: $TARGET_ASM_DIR" >&5
39662 $as_echo "$TARGET_ASM_DIR" >&6; }
39667 if test "${ac_cv_header_zlib_h+set}" = set; then
39668 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
39669 $as_echo_n "checking for zlib.h... " >&6; }
39670 if test "${ac_cv_header_zlib_h+set}" = set; then
39671 $as_echo_n "(cached) " >&6
39673 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
39674 $as_echo "$ac_cv_header_zlib_h" >&6; }
39676 # Is the header compilable?
39677 { $as_echo "$as_me:$LINENO: checking zlib.h usability" >&5
39678 $as_echo_n "checking zlib.h usability... " >&6; }
39679 cat >conftest.$ac_ext <<_ACEOF
39682 cat confdefs.h >>conftest.$ac_ext
39683 cat >>conftest.$ac_ext <<_ACEOF
39684 /* end confdefs.h. */
39685 $ac_includes_default
39688 rm -f conftest.$ac_objext
39689 if { (ac_try="$ac_compile"
39690 case "(($ac_try" in
39691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39692 *) ac_try_echo=$ac_try;;
39694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39695 $as_echo "$ac_try_echo") >&5
39696 (eval "$ac_compile") 2>conftest.er1
39698 grep -v '^
*+' conftest.er1 >conftest.err
39700 cat conftest.err >&5
39701 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39702 (exit $ac_status); } && {
39703 test -z "$ac_c_werror_flag" ||
39704 test ! -s conftest.err
39705 } && test -s conftest.$ac_objext; then
39706 ac_header_compiler=yes
39708 $as_echo "$as_me: failed program was:" >&5
39709 sed 's
/^
/|
/' conftest.$ac_ext >&5
39711 ac_header_compiler=no
39714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39715 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39716 $as_echo "$ac_header_compiler" >&6; }
39718 # Is the header present?
39719 { $as_echo "$as_me:$LINENO: checking zlib.h presence" >&5
39720 $as_echo_n "checking zlib.h presence... " >&6; }
39721 cat >conftest.$ac_ext <<_ACEOF
39724 cat confdefs.h >>conftest.$ac_ext
39725 cat >>conftest.$ac_ext <<_ACEOF
39726 /* end confdefs.h. */
39729 if { (ac_try="$ac_cpp conftest.$ac_ext"
39730 case "(($ac_try" in
39731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39732 *) ac_try_echo=$ac_try;;
39734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39735 $as_echo "$ac_try_echo") >&5
39736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39738 grep -v '^
*+' conftest.er1 >conftest.err
39740 cat conftest.err >&5
39741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39742 (exit $ac_status); } >/dev/null && {
39743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39744 test ! -s conftest.err
39746 ac_header_preproc=yes
39748 $as_echo "$as_me: failed program was:" >&5
39749 sed 's
/^
/|
/' conftest.$ac_ext >&5
39751 ac_header_preproc=no
39754 rm -f conftest.err conftest.$ac_ext
39755 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39756 $as_echo "$ac_header_preproc" >&6; }
39758 # So? What about this header?
39759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39761 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
39762 $as_echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
39763 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result
" >&5
39764 $as_echo "$as_me: WARNING
: zlib.h
: proceeding with the compiler
's result" >&2;}
39765 ac_header_preproc=yes
39768 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
39769 $as_echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
39770 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
39771 $as_echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
39772 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
39773 $as_echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
39774 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
39775 $as_echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
39776 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result
" >&5
39777 $as_echo "$as_me: WARNING
: zlib.h
: proceeding with the preprocessor
's result" >&2;}
39778 { $as_echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
39779 $as_echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
39783 { $as_echo "$as_me:$LINENO: checking for zlib.h" >&5
39784 $as_echo_n "checking for zlib.h... " >&6; }
39785 if test "${ac_cv_header_zlib_h+set}" = set; then
39786 $as_echo_n "(cached) " >&6
39788 ac_cv_header_zlib_h=$ac_header_preproc
39790 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
39791 $as_echo "$ac_cv_header_zlib_h" >&6; }
39794 if test "x$ac_cv_header_zlib_h" = x""yes; then
39797 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
39798 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
39799 { { $as_echo "$as_me:$LINENO: error:
39800 *** zlib.h missing, zlib-devel package required
39801 See \`config.log
' for more details." >&5
39802 $as_echo "$as_me: error:
39803 *** zlib.h missing, zlib-devel package required
39804 See \`config.log' for more details.
" >&2;}
39805 { (exit 1); exit 1; }; }; }
39811 { $as_echo "$as_me:$LINENO: checking
for compress2
in -lz" >&5
39812 $as_echo_n "checking
for compress2
in -lz...
" >&6; }
39813 if test "${ac_cv_lib_z_compress2+set}" = set; then
39814 $as_echo_n "(cached
) " >&6
39816 ac_check_lib_save_LIBS=$LIBS
39818 cat >conftest.$ac_ext <<_ACEOF
39821 cat confdefs.h >>conftest.$ac_ext
39822 cat >>conftest.$ac_ext <<_ACEOF
39823 /* end confdefs.h. */
39825 /* Override any GCC internal prototype to avoid an error.
39826 Use char because int might match the return type of a GCC
39827 builtin and then its argument prototype would still apply. */
39835 return compress2 ();
39840 rm -f conftest.$ac_objext conftest$ac_exeext
39841 if { (ac_try="$ac_link"
39842 case "(($ac_try" in
39843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39844 *) ac_try_echo=$ac_try;;
39846 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
39847 $as_echo "$ac_try_echo") >&5
39848 (eval "$ac_link") 2>conftest.er1
39850 grep -v '^ *+' conftest.er1 >conftest.err
39852 cat conftest.err >&5
39853 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
39854 (exit $ac_status); } && {
39855 test -z "$ac_c_werror_flag" ||
39856 test ! -s conftest.err
39857 } && test -s conftest$ac_exeext && {
39858 test "$cross_compiling" = yes ||
39859 $as_test_x conftest$ac_exeext
39861 ac_cv_lib_z_compress2=yes
39863 $as_echo "$as_me: failed program was
:" >&5
39864 sed 's/^/| /' conftest.$ac_ext >&5
39866 ac_cv_lib_z_compress2=no
39869 rm -rf conftest.dSYM
39870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39871 conftest$ac_exeext conftest.$ac_ext
39872 LIBS=$ac_check_lib_save_LIBS
39874 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_z_compress2" >&5
39875 $as_echo "$ac_cv_lib_z_compress2" >&6; }
39876 if test "x
$ac_cv_lib_z_compress2" = x""yes; then
39877 cat >>confdefs.h <<_ACEOF
39878 #define HAVE_LIBZ 1
39884 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
39885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
39886 { { $as_echo "$as_me:$LINENO: error:
39887 *** compress2() missing, zlib-devel package required
39888 See \`config.log' for more details.
" >&5
39889 $as_echo "$as_me: error
:
39890 *** compress2
() missing
, zlib-devel package required
39891 See \
`config.log' for more details." >&2;}
39892 { (exit 1); exit 1; }; }; }
39897 { $as_echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
39898 $as_echo_n "checking for uncompress in -lz... " >&6; }
39899 if test "${ac_cv_lib_z_uncompress+set}" = set; then
39900 $as_echo_n "(cached) " >&6
39902 ac_check_lib_save_LIBS=$LIBS
39904 cat >conftest.$ac_ext <<_ACEOF
39907 cat confdefs.h >>conftest.$ac_ext
39908 cat >>conftest.$ac_ext <<_ACEOF
39909 /* end confdefs.h. */
39911 /* Override any GCC internal prototype to avoid an error.
39912 Use char because int might match the return type of a GCC
39913 builtin and then its argument prototype would still apply. */
39917 char uncompress ();
39921 return uncompress ();
39926 rm -f conftest.$ac_objext conftest$ac_exeext
39927 if { (ac_try="$ac_link"
39928 case "(($ac_try" in
39929 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
39930 *) ac_try_echo
=$ac_try;;
39932 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
39933 $as_echo "$ac_try_echo") >&5
39934 (eval "$ac_link") 2>conftest.er1
39936 grep -v '^ *+' conftest.er1
>conftest.err
39938 cat conftest.err
>&5
39939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39940 (exit $ac_status); } && {
39941 test -z "$ac_c_werror_flag" ||
39942 test ! -s conftest.err
39943 } && test -s conftest
$ac_exeext && {
39944 test "$cross_compiling" = yes ||
39945 $as_test_x conftest
$ac_exeext
39947 ac_cv_lib_z_uncompress
=yes
39949 $as_echo "$as_me: failed program was:" >&5
39950 sed 's/^/| /' conftest.
$ac_ext >&5
39952 ac_cv_lib_z_uncompress
=no
39955 rm -rf conftest.dSYM
39956 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
39957 conftest
$ac_exeext conftest.
$ac_ext
39958 LIBS
=$ac_check_lib_save_LIBS
39960 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
39961 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
39962 if test "x$ac_cv_lib_z_uncompress" = x
""yes; then
39963 cat >>confdefs.h
<<_ACEOF
39964 #define HAVE_LIBZ 1
39970 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
39971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
39972 { { $as_echo "$as_me:$LINENO: error:
39973 *** uncompress() missing, zlib-devel package required
39974 See \`config.log' for more details." >&5
39975 $as_echo "$as_me: error:
39976 *** uncompress() missing, zlib-devel package required
39977 See \`config.log' for more details." >&2;}
39978 { (exit 1); exit 1; }; }; }
39983 { $as_echo "$as_me:$LINENO: checking for crc32 in -lz" >&5
39984 $as_echo_n "checking for crc32 in -lz... " >&6; }
39985 if test "${ac_cv_lib_z_crc32+set}" = set; then
39986 $as_echo_n "(cached) " >&6
39988 ac_check_lib_save_LIBS
=$LIBS
39990 cat >conftest.
$ac_ext <<_ACEOF
39993 cat confdefs.h
>>conftest.
$ac_ext
39994 cat >>conftest.
$ac_ext <<_ACEOF
39995 /* end confdefs.h. */
39997 /* Override any GCC internal prototype to avoid an error.
39998 Use char because int might match the return type of a GCC
39999 builtin and then its argument prototype would still apply. */
40012 rm -f conftest.
$ac_objext conftest
$ac_exeext
40013 if { (ac_try
="$ac_link"
40014 case "(($ac_try" in
40015 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
40016 *) ac_try_echo=$ac_try;;
40018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40019 $as_echo "$ac_try_echo") >&5
40020 (eval "$ac_link") 2>conftest.er1
40022 grep -v '^ *+' conftest.er1 >conftest.err
40024 cat conftest.err >&5
40025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40026 (exit $ac_status); } && {
40027 test -z "$ac_c_werror_flag" ||
40028 test ! -s conftest.err
40029 } && test -s conftest$ac_exeext && {
40030 test "$cross_compiling" = yes ||
40031 $as_test_x conftest$ac_exeext
40033 ac_cv_lib_z_crc32=yes
40035 $as_echo "$as_me: failed program was:" >&5
40036 sed 's/^/| /' conftest.$ac_ext >&5
40038 ac_cv_lib_z_crc32=no
40041 rm -rf conftest.dSYM
40042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40043 conftest$ac_exeext conftest.$ac_ext
40044 LIBS=$ac_check_lib_save_LIBS
40046 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_z_crc32" >&5
40047 $as_echo "$ac_cv_lib_z_crc32" >&6; }
40048 if test "x$ac_cv_lib_z_crc32" = x""yes; then
40049 cat >>confdefs.h <<_ACEOF
40050 #define HAVE_LIBZ 1
40056 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
40057 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
40058 { { $as_echo "$as_me:$LINENO: error
:
40059 *** crc32
() missing
, zlib-devel package required
40060 See \
`config.log' for more details." >&5
40061 $as_echo "$as_me: error:
40062 *** crc32() missing, zlib-devel package required
40063 See \`config.log
' for more details." >&2;}
40064 { (exit 1); exit 1; }; }; }
40071 cat >>confdefs.h <<\_ACEOF
40072 #define HAVE_ZLIB 1
40079 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
40080 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
40081 $as_echo_n "checking for uuid/uuid.h... " >&6; }
40082 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
40083 $as_echo_n "(cached) " >&6
40085 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
40086 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
40088 # Is the header compilable?
40089 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h usability" >&5
40090 $as_echo_n "checking uuid/uuid.h usability... " >&6; }
40091 cat >conftest.$ac_ext <<_ACEOF
40094 cat confdefs.h >>conftest.$ac_ext
40095 cat >>conftest.$ac_ext <<_ACEOF
40096 /* end confdefs.h. */
40097 $ac_includes_default
40098 #include <uuid/uuid.h>
40100 rm -f conftest.$ac_objext
40101 if { (ac_try="$ac_compile"
40102 case "(($ac_try" in
40103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40104 *) ac_try_echo=$ac_try;;
40106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40107 $as_echo "$ac_try_echo") >&5
40108 (eval "$ac_compile") 2>conftest.er1
40110 grep -v '^
*+' conftest.er1 >conftest.err
40112 cat conftest.err >&5
40113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40114 (exit $ac_status); } && {
40115 test -z "$ac_c_werror_flag" ||
40116 test ! -s conftest.err
40117 } && test -s conftest.$ac_objext; then
40118 ac_header_compiler=yes
40120 $as_echo "$as_me: failed program was:" >&5
40121 sed 's
/^
/|
/' conftest.$ac_ext >&5
40123 ac_header_compiler=no
40126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40127 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40128 $as_echo "$ac_header_compiler" >&6; }
40130 # Is the header present?
40131 { $as_echo "$as_me:$LINENO: checking uuid/uuid.h presence" >&5
40132 $as_echo_n "checking uuid/uuid.h presence... " >&6; }
40133 cat >conftest.$ac_ext <<_ACEOF
40136 cat confdefs.h >>conftest.$ac_ext
40137 cat >>conftest.$ac_ext <<_ACEOF
40138 /* end confdefs.h. */
40139 #include <uuid/uuid.h>
40141 if { (ac_try="$ac_cpp conftest.$ac_ext"
40142 case "(($ac_try" in
40143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40144 *) ac_try_echo=$ac_try;;
40146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40147 $as_echo "$ac_try_echo") >&5
40148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40150 grep -v '^
*+' conftest.er1 >conftest.err
40152 cat conftest.err >&5
40153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40154 (exit $ac_status); } >/dev/null && {
40155 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40156 test ! -s conftest.err
40158 ac_header_preproc=yes
40160 $as_echo "$as_me: failed program was:" >&5
40161 sed 's
/^
/|
/' conftest.$ac_ext >&5
40163 ac_header_preproc=no
40166 rm -f conftest.err conftest.$ac_ext
40167 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40168 $as_echo "$ac_header_preproc" >&6; }
40170 # So? What about this header?
40171 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40173 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&5
40174 $as_echo "$as_me: WARNING: uuid/uuid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
40175 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the compiler's result
" >&5
40176 $as_echo "$as_me: WARNING
: uuid
/uuid.h
: proceeding with the compiler
's result" >&2;}
40177 ac_header_preproc=yes
40180 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: present but cannot be compiled" >&5
40181 $as_echo "$as_me: WARNING: uuid/uuid.h: present but cannot be compiled" >&2;}
40182 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&5
40183 $as_echo "$as_me: WARNING: uuid/uuid.h: check for missing prerequisite headers?" >&2;}
40184 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: see the Autoconf documentation" >&5
40185 $as_echo "$as_me: WARNING: uuid/uuid.h: see the Autoconf documentation" >&2;}
40186 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&5
40187 $as_echo "$as_me: WARNING: uuid/uuid.h: section \"Present But Cannot Be Compiled\"" >&2;}
40188 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: proceeding with the preprocessor's result
" >&5
40189 $as_echo "$as_me: WARNING
: uuid
/uuid.h
: proceeding with the preprocessor
's result" >&2;}
40190 { $as_echo "$as_me:$LINENO: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&5
40191 $as_echo "$as_me: WARNING: uuid/uuid.h: in the future, the compiler will take precedence" >&2;}
40195 { $as_echo "$as_me:$LINENO: checking for uuid/uuid.h" >&5
40196 $as_echo_n "checking for uuid/uuid.h... " >&6; }
40197 if test "${ac_cv_header_uuid_uuid_h+set}" = set; then
40198 $as_echo_n "(cached) " >&6
40200 ac_cv_header_uuid_uuid_h=$ac_header_preproc
40202 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_uuid_uuid_h" >&5
40203 $as_echo "$ac_cv_header_uuid_uuid_h" >&6; }
40206 if test "x$ac_cv_header_uuid_uuid_h" = x""yes; then
40209 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
40210 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
40211 { { $as_echo "$as_me:$LINENO: error:
40212 *** uuid/uuid.h missing, libuuid-devel package required
40213 See \`config.log
' for more details." >&5
40214 $as_echo "$as_me: error:
40215 *** uuid/uuid.h missing, libuuid-devel package required
40216 See \`config.log' for more details.
" >&2;}
40217 { (exit 1); exit 1; }; }; }
40223 { $as_echo "$as_me:$LINENO: checking
for uuid_generate
in -luuid" >&5
40224 $as_echo_n "checking
for uuid_generate
in -luuid...
" >&6; }
40225 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then
40226 $as_echo_n "(cached
) " >&6
40228 ac_check_lib_save_LIBS=$LIBS
40229 LIBS="-luuid $LIBS"
40230 cat >conftest.$ac_ext <<_ACEOF
40233 cat confdefs.h >>conftest.$ac_ext
40234 cat >>conftest.$ac_ext <<_ACEOF
40235 /* end confdefs.h. */
40237 /* Override any GCC internal prototype to avoid an error.
40238 Use char because int might match the return type of a GCC
40239 builtin and then its argument prototype would still apply. */
40243 char uuid_generate ();
40247 return uuid_generate ();
40252 rm -f conftest.$ac_objext conftest$ac_exeext
40253 if { (ac_try="$ac_link"
40254 case "(($ac_try" in
40255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40256 *) ac_try_echo=$ac_try;;
40258 eval ac_try_echo="\"\
$as_me:$LINENO: $ac_try_echo\""
40259 $as_echo "$ac_try_echo") >&5
40260 (eval "$ac_link") 2>conftest.er1
40262 grep -v '^ *+' conftest.er1 >conftest.err
40264 cat conftest.err >&5
40265 $as_echo "$as_me:$LINENO: \$?
= $ac_status" >&5
40266 (exit $ac_status); } && {
40267 test -z "$ac_c_werror_flag" ||
40268 test ! -s conftest.err
40269 } && test -s conftest$ac_exeext && {
40270 test "$cross_compiling" = yes ||
40271 $as_test_x conftest$ac_exeext
40273 ac_cv_lib_uuid_uuid_generate=yes
40275 $as_echo "$as_me: failed program was
:" >&5
40276 sed 's/^/| /' conftest.$ac_ext >&5
40278 ac_cv_lib_uuid_uuid_generate=no
40281 rm -rf conftest.dSYM
40282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40283 conftest$ac_exeext conftest.$ac_ext
40284 LIBS=$ac_check_lib_save_LIBS
40286 { $as_echo "$as_me:$LINENO: result
: $ac_cv_lib_uuid_uuid_generate" >&5
40287 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
40288 if test "x
$ac_cv_lib_uuid_uuid_generate" = x""yes; then
40289 cat >>confdefs.h <<_ACEOF
40290 #define HAVE_LIBUUID 1
40293 LIBS="-luuid $LIBS"
40296 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
40297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
40298 { { $as_echo "$as_me:$LINENO: error:
40299 *** uuid_generate() missing, libuuid-devel package required
40300 See \`config.log' for more details.
" >&5
40301 $as_echo "$as_me: error
:
40302 *** uuid_generate
() missing
, libuuid-devel package required
40303 See \
`config.log' for more details." >&2;}
40304 { (exit 1); exit 1; }; }; }
40309 { $as_echo "$as_me:$LINENO: checking for uuid_is_null in -luuid" >&5
40310 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
40311 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then
40312 $as_echo_n "(cached) " >&6
40314 ac_check_lib_save_LIBS=$LIBS
40315 LIBS="-luuid $LIBS"
40316 cat >conftest.$ac_ext <<_ACEOF
40319 cat confdefs.h >>conftest.$ac_ext
40320 cat >>conftest.$ac_ext <<_ACEOF
40321 /* end confdefs.h. */
40323 /* Override any GCC internal prototype to avoid an error.
40324 Use char because int might match the return type of a GCC
40325 builtin and then its argument prototype would still apply. */
40329 char uuid_is_null ();
40333 return uuid_is_null ();
40338 rm -f conftest.$ac_objext conftest$ac_exeext
40339 if { (ac_try="$ac_link"
40340 case "(($ac_try" in
40341 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
40342 *) ac_try_echo
=$ac_try;;
40344 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
40345 $as_echo "$ac_try_echo") >&5
40346 (eval "$ac_link") 2>conftest.er1
40348 grep -v '^ *+' conftest.er1
>conftest.err
40350 cat conftest.err
>&5
40351 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40352 (exit $ac_status); } && {
40353 test -z "$ac_c_werror_flag" ||
40354 test ! -s conftest.err
40355 } && test -s conftest
$ac_exeext && {
40356 test "$cross_compiling" = yes ||
40357 $as_test_x conftest
$ac_exeext
40359 ac_cv_lib_uuid_uuid_is_null
=yes
40361 $as_echo "$as_me: failed program was:" >&5
40362 sed 's/^/| /' conftest.
$ac_ext >&5
40364 ac_cv_lib_uuid_uuid_is_null
=no
40367 rm -rf conftest.dSYM
40368 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
40369 conftest
$ac_exeext conftest.
$ac_ext
40370 LIBS
=$ac_check_lib_save_LIBS
40372 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_uuid_uuid_is_null" >&5
40373 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
40374 if test "x$ac_cv_lib_uuid_uuid_is_null" = x
""yes; then
40375 cat >>confdefs.h
<<_ACEOF
40376 #define HAVE_LIBUUID 1
40379 LIBS
="-luuid $LIBS"
40382 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
40383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
40384 { { $as_echo "$as_me:$LINENO: error:
40385 *** uuid_is_null() missing, libuuid-devel package required
40386 See \`config.log' for more details." >&5
40387 $as_echo "$as_me: error:
40388 *** uuid_is_null() missing, libuuid-devel package required
40389 See \`config.log' for more details." >&2;}
40390 { (exit 1); exit 1; }; }; }
40397 cat >>confdefs.h
<<\_ACEOF
40398 #define HAVE_LIBUUID 1
40404 # Check whether --with-blkid was given.
40405 if test "${with_blkid+set}" = set; then
40406 withval
=$with_blkid;
40413 if test "x$with_blkid" = xyes
; then
40418 cat >>confdefs.h
<<\_ACEOF
40419 #define HAVE_LIBBLKID 1
40426 if test "x$with_blkid" = xcheck
; then
40428 { $as_echo "$as_me:$LINENO: checking for blkid_get_cache in -lblkid" >&5
40429 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
40430 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then
40431 $as_echo_n "(cached) " >&6
40433 ac_check_lib_save_LIBS
=$LIBS
40434 LIBS
="-lblkid $LIBS"
40435 cat >conftest.
$ac_ext <<_ACEOF
40438 cat confdefs.h
>>conftest.
$ac_ext
40439 cat >>conftest.
$ac_ext <<_ACEOF
40440 /* end confdefs.h. */
40442 /* Override any GCC internal prototype to avoid an error.
40443 Use char because int might match the return type of a GCC
40444 builtin and then its argument prototype would still apply. */
40448 char blkid_get_cache ();
40452 return blkid_get_cache ();
40457 rm -f conftest.
$ac_objext conftest
$ac_exeext
40458 if { (ac_try
="$ac_link"
40459 case "(($ac_try" in
40460 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
40461 *) ac_try_echo=$ac_try;;
40463 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40464 $as_echo "$ac_try_echo") >&5
40465 (eval "$ac_link") 2>conftest.er1
40467 grep -v '^ *+' conftest.er1 >conftest.err
40469 cat conftest.err >&5
40470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40471 (exit $ac_status); } && {
40472 test -z "$ac_c_werror_flag" ||
40473 test ! -s conftest.err
40474 } && test -s conftest$ac_exeext && {
40475 test "$cross_compiling" = yes ||
40476 $as_test_x conftest$ac_exeext
40478 ac_cv_lib_blkid_blkid_get_cache=yes
40480 $as_echo "$as_me: failed program was:" >&5
40481 sed 's/^/| /' conftest.$ac_ext >&5
40483 ac_cv_lib_blkid_blkid_get_cache=no
40486 rm -rf conftest.dSYM
40487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40488 conftest$ac_exeext conftest.$ac_ext
40489 LIBS=$ac_check_lib_save_LIBS
40491 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
40492 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
40493 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then
40495 { $as_echo "$as_me:$LINENO: checking for blkid zfs support" >&5
40496 $as_echo_n "checking for blkid zfs support... " >&6; }
40499 truncate -s 64M $ZFS_DEV
40500 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
40501 dd of=$ZFS_DEV bs=1k count=8 \
40502 seek=128 conv=notrunc &>/dev/null \
40503 >/dev/null 2>/dev/null
40504 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
40505 dd of=$ZFS_DEV bs=1k count=8 \
40506 seek=132 conv=notrunc &>/dev/null \
40507 >/dev/null 2>/dev/null
40508 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
40509 dd of=$ZFS_DEV bs=1k count=8 \
40510 seek=136 conv=notrunc &>/dev/null \
40511 >/dev/null 2>/dev/null
40512 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
40513 dd of=$ZFS_DEV bs=1k count=8 \
40514 seek=140 conv=notrunc &>/dev/null \
40515 >/dev/null 2>/dev/null
40520 if test "$cross_compiling" = yes; then
40521 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
40522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
40523 { { $as_echo "$as_me:$LINENO: error
: cannot run
test program
while cross compiling
40524 See \
`config.log' for more details." >&5
40525 $as_echo "$as_me: error: cannot run test program while cross compiling
40526 See \`config.log
' for more details." >&2;}
40527 { (exit 1); exit 1; }; }; }
40529 cat >conftest.$ac_ext <<_ACEOF
40532 cat confdefs.h >>conftest.$ac_ext
40533 cat >>conftest.$ac_ext <<_ACEOF
40534 /* end confdefs.h. */
40537 #include <stdlib.h>
40538 #include <blkid/blkid.h>
40547 if (blkid_get_cache(&cache, NULL) < 0)
40550 value = blkid_get_tag_value(cache, "TYPE",
40553 blkid_put_cache(cache);
40557 if (strcmp(value, "zfs_member")) {
40559 blkid_put_cache(cache);
40564 blkid_put_cache(cache);
40570 rm -f conftest$ac_exeext
40571 if { (ac_try="$ac_link"
40572 case "(($ac_try" in
40573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40574 *) ac_try_echo=$ac_try;;
40576 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40577 $as_echo "$ac_try_echo") >&5
40578 (eval "$ac_link") 2>&5
40580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40581 (exit $ac_status); } && { ac_try='.
/conftest
$ac_exeext'
40582 { (case "(($ac_try" in
40583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40584 *) ac_try_echo=$ac_try;;
40586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40587 $as_echo "$ac_try_echo") >&5
40588 (eval "$ac_try") 2>&5
40590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40591 (exit $ac_status); }; }; then
40594 { $as_echo "$as_me:$LINENO: result: yes" >&5
40595 $as_echo "yes" >&6; }
40599 cat >>confdefs.h <<\_ACEOF
40600 #define HAVE_LIBBLKID 1
40605 $as_echo "$as_me: program exited with status $ac_status" >&5
40606 $as_echo "$as_me: failed program was:" >&5
40607 sed 's
/^
/|
/' conftest.$ac_ext >&5
40609 ( exit $ac_status )
40612 { $as_echo "$as_me:$LINENO: result: no" >&5
40613 $as_echo "no" >&6; }
40614 if test "x$with_blkid" != xcheck; then
40615 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
40616 $as_echo "$as_me: error
: in \
`$ac_pwd':" >&2;}
40617 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
40618 See \`config.log
' for more details." >&5
40619 $as_echo "$as_me: error: --with-blkid given but unavailable
40620 See \`config.log' for more details.
" >&2;}
40621 { (exit 1); exit 1; }; }; }
40626 rm -rf conftest.dSYM
40627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40636 if test "x
$with_blkid" != xcheck; then
40637 { { $as_echo "$as_me:$LINENO: error
: in \
`$ac_pwd':" >&5
40638 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
40639 { { $as_echo "$as_me:$LINENO: error: --with-blkid given but unavailable
40640 See \`config.log' for more details.
" >&5
40641 $as_echo "$as_me: error
: --with-blkid given but unavailable
40642 See \
`config.log' for more details." >&2;}
40643 { (exit 1); exit 1; }; }; }
40655 { $as_echo "$as_me:$LINENO: checking for -Wframe-larger-than=<size> support" >&5
40656 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
40658 saved_flags="$CFLAGS"
40659 CFLAGS="$CFLAGS -Wframe-larger-than=1024"
40661 cat >conftest.$ac_ext <<_ACEOF
40664 cat confdefs.h >>conftest.$ac_ext
40665 cat >>conftest.$ac_ext <<_ACEOF
40666 /* end confdefs.h. */
40676 rm -f conftest.$ac_objext
40677 if { (ac_try="$ac_compile"
40678 case "(($ac_try" in
40679 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
40680 *) ac_try_echo
=$ac_try;;
40682 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
40683 $as_echo "$ac_try_echo") >&5
40684 (eval "$ac_compile") 2>conftest.er1
40686 grep -v '^ *+' conftest.er1
>conftest.err
40688 cat conftest.err
>&5
40689 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40690 (exit $ac_status); } && {
40691 test -z "$ac_c_werror_flag" ||
40692 test ! -s conftest.err
40693 } && test -s conftest.
$ac_objext; then
40695 FRAME_LARGER_THAN
=-Wframe-larger-than=1024
40696 { $as_echo "$as_me:$LINENO: result: yes" >&5
40697 $as_echo "yes" >&6; }
40700 $as_echo "$as_me: failed program was:" >&5
40701 sed 's/^/| /' conftest.
$ac_ext >&5
40705 { $as_echo "$as_me:$LINENO: result: no" >&5
40706 $as_echo "no" >&6; }
40710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
40712 CFLAGS
="$saved_flags"
40716 if test "x$runstatedir" = x
; then
40717 runstatedir
='${localstatedir}/run'
40722 { $as_echo "$as_me:$LINENO: checking makedev() is declared in sys/sysmacros.h" >&5
40723 $as_echo_n "checking makedev() is declared in sys/sysmacros.h... " >&6; }
40724 cat >conftest.
$ac_ext <<_ACEOF
40727 cat confdefs.h
>>conftest.
$ac_ext
40728 cat >>conftest.
$ac_ext <<_ACEOF
40729 /* end confdefs.h. */
40731 #include <sys/sysmacros.h>
40744 rm -f conftest.
$ac_objext
40745 if { (ac_try
="$ac_compile"
40746 case "(($ac_try" in
40747 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
40748 *) ac_try_echo=$ac_try;;
40750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40751 $as_echo "$ac_try_echo") >&5
40752 (eval "$ac_compile") 2>conftest.er1
40754 grep -v '^ *+' conftest.er1 >conftest.err
40756 cat conftest.err >&5
40757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40758 (exit $ac_status); } && {
40759 test -z "$ac_c_werror_flag" ||
40760 test ! -s conftest.err
40761 } && test -s conftest.$ac_objext; then
40763 { $as_echo "$as_me:$LINENO: result: yes" >&5
40764 $as_echo "yes" >&6; }
40766 cat >>confdefs.h <<\_ACEOF
40767 #define HAVE_MAKEDEV_IN_SYSMACROS 1
40772 $as_echo "$as_me: failed program was:" >&5
40773 sed 's/^/| /' conftest.$ac_ext >&5
40776 { $as_echo "$as_me:$LINENO: result: no" >&5
40777 $as_echo "no" >&6; }
40781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40784 { $as_echo "$as_me:$LINENO: checking makedev() is declared in sys/mkdev.h" >&5
40785 $as_echo_n "checking makedev() is declared in sys/mkdev.h... " >&6; }
40786 cat >conftest.$ac_ext <<_ACEOF
40789 cat confdefs.h >>conftest.$ac_ext
40790 cat >>conftest.$ac_ext <<_ACEOF
40791 /* end confdefs.h. */
40793 #include <sys/mkdev.h>
40806 rm -f conftest.$ac_objext
40807 if { (ac_try="$ac_compile"
40808 case "(($ac_try" in
40809 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
40810 *) ac_try_echo
=$ac_try;;
40812 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
40813 $as_echo "$ac_try_echo") >&5
40814 (eval "$ac_compile") 2>conftest.er1
40816 grep -v '^ *+' conftest.er1
>conftest.err
40818 cat conftest.err
>&5
40819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40820 (exit $ac_status); } && {
40821 test -z "$ac_c_werror_flag" ||
40822 test ! -s conftest.err
40823 } && test -s conftest.
$ac_objext; then
40825 { $as_echo "$as_me:$LINENO: result: yes" >&5
40826 $as_echo "yes" >&6; }
40828 cat >>confdefs.h
<<\_ACEOF
40829 #define HAVE_MAKEDEV_IN_MKDEV 1
40834 $as_echo "$as_me: failed program was:" >&5
40835 sed 's/^/| /' conftest.
$ac_ext >&5
40838 { $as_echo "$as_me:$LINENO: result: no" >&5
40839 $as_echo "no" >&6; }
40843 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
40846 { $as_echo "$as_me:$LINENO: checking for -Wno-format-truncation support" >&5
40847 $as_echo_n "checking for -Wno-format-truncation support... " >&6; }
40849 saved_flags
="$CFLAGS"
40850 CFLAGS
="$CFLAGS -Wno-format-truncation"
40852 cat >conftest.
$ac_ext <<_ACEOF
40855 cat confdefs.h
>>conftest.
$ac_ext
40856 cat >>conftest.
$ac_ext <<_ACEOF
40857 /* end confdefs.h. */
40867 rm -f conftest.
$ac_objext
40868 if { (ac_try
="$ac_compile"
40869 case "(($ac_try" in
40870 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
40871 *) ac_try_echo=$ac_try;;
40873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40874 $as_echo "$ac_try_echo") >&5
40875 (eval "$ac_compile") 2>conftest.er1
40877 grep -v '^ *+' conftest.er1 >conftest.err
40879 cat conftest.err >&5
40880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40881 (exit $ac_status); } && {
40882 test -z "$ac_c_werror_flag" ||
40883 test ! -s conftest.err
40884 } && test -s conftest.$ac_objext; then
40886 NO_FORMAT_TRUNCATION=-Wno-format-truncation
40887 { $as_echo "$as_me:$LINENO: result: yes" >&5
40888 $as_echo "yes" >&6; }
40891 $as_echo "$as_me: failed program was:" >&5
40892 sed 's/^/| /' conftest.$ac_ext >&5
40895 NO_FORMAT_TRUNCATION=
40896 { $as_echo "$as_me:$LINENO: result: no" >&5
40897 $as_echo "no" >&6; }
40901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40903 CFLAGS="$saved_flags"
40907 for ac_func in mlockall
40909 as_ac_var=`$as_echo "ac_cv_func_$ac_func" |
$as_tr_sh`
40910 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40911 $as_echo_n "checking for $ac_func... " >&6; }
40912 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40913 $as_echo_n "(cached) " >&6
40915 cat >conftest.$ac_ext <<_ACEOF
40918 cat confdefs.h >>conftest.$ac_ext
40919 cat >>conftest.$ac_ext <<_ACEOF
40920 /* end confdefs.h. */
40921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
40923 #define $ac_func innocuous_$ac_func
40925 /* System header to define __stub macros and hopefully few prototypes,
40926 which can conflict with char $ac_func (); below.
40927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40928 <limits.h> exists even on freestanding compilers. */
40931 # include <limits.h>
40933 # include <assert.h>
40938 /* Override any GCC internal prototype to avoid an error.
40939 Use char because int might match the return type of a GCC
40940 builtin and then its argument prototype would still apply. */
40945 /* The GNU C library defines this for functions which it implements
40946 to always fail with ENOSYS. Some functions are actually named
40947 something starting with __ and the normal name is an alias. */
40948 #if defined __stub_$ac_func || defined __stub___$ac_func
40955 return $ac_func ();
40960 rm -f conftest.$ac_objext conftest$ac_exeext
40961 if { (ac_try="$ac_link"
40962 case "(($ac_try" in
40963 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
40964 *) ac_try_echo
=$ac_try;;
40966 eval ac_try_echo
="\"\$as_me:$LINENO: $ac_try_echo\""
40967 $as_echo "$ac_try_echo") >&5
40968 (eval "$ac_link") 2>conftest.er1
40970 grep -v '^ *+' conftest.er1
>conftest.err
40972 cat conftest.err
>&5
40973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40974 (exit $ac_status); } && {
40975 test -z "$ac_c_werror_flag" ||
40976 test ! -s conftest.err
40977 } && test -s conftest
$ac_exeext && {
40978 test "$cross_compiling" = yes ||
40979 $as_test_x conftest
$ac_exeext
40981 eval "$as_ac_var=yes"
40983 $as_echo "$as_me: failed program was:" >&5
40984 sed 's/^/| /' conftest.
$ac_ext >&5
40986 eval "$as_ac_var=no"
40989 rm -rf conftest.dSYM
40990 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
40991 conftest
$ac_exeext conftest.
$ac_ext
40993 ac_res
=`eval 'as_val=${'$as_ac_var'}
40994 $as_echo "$as_val"'`
40995 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40996 $as_echo "$ac_res" >&6; }
40997 as_val
=`eval 'as_val=${'$as_ac_var'}
40998 $as_echo "$as_val"'`
40999 if test "x$as_val" = x
""yes; then
41000 cat >>confdefs.h
<<_ACEOF
41001 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41010 { $as_echo "$as_me:$LINENO: result: Error!" >&5
41011 $as_echo "Error!" >&6; }
41012 { { $as_echo "$as_me:$LINENO: error: Bad value \"$ZFS_CONFIG\" for --with-config,
41013 user kernel|user|all|srpm" >&5
41014 $as_echo "$as_me: error: Bad value \"$ZFS_CONFIG\" for --with-config,
41015 user kernel|user|all|srpm" >&2;}
41016 { (exit 1); exit 1; }; } ;;
41019 if test "$ZFS_CONFIG" = user
-o "$ZFS_CONFIG" = all
; then
41021 CONFIG_USER_FALSE
='#'
41023 CONFIG_USER_TRUE
='#'
41027 if test "$ZFS_CONFIG" = kernel
-o "$ZFS_CONFIG" = all
&&
41028 test "x$enable_linux_builtin" != xyes
; then
41029 CONFIG_KERNEL_TRUE
=
41030 CONFIG_KERNEL_FALSE
='#'
41032 CONFIG_KERNEL_TRUE
='#'
41033 CONFIG_KERNEL_FALSE
=
41038 { $as_echo "$as_me:$LINENO: checking whether debugging is enabled" >&5
41039 $as_echo_n "checking whether debugging is enabled... " >&6; }
41040 # Check whether --enable-debug was given.
41041 if test "${enable_debug+set}" = set; then
41042 enableval
=$enable_debug;
41048 if test "x$enable_debug" = xyes
; then
41050 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG -Werror"
41051 HOSTCFLAGS
="${HOSTCFLAGS} -DDEBUG -Werror"
41052 DEBUG_CFLAGS
="-DDEBUG -Werror"
41053 DEBUG_STACKFLAGS
="-fstack-check"
41054 DEBUG_ZFS
="_with_debug"
41056 cat >>confdefs.h
<<\_ACEOF
41057 #define ZFS_DEBUG 1
41063 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DNDEBUG "
41064 HOSTCFLAGS
="${HOSTCFLAGS} -DNDEBUG "
41065 DEBUG_CFLAGS
="-DNDEBUG"
41066 DEBUG_STACKFLAGS
=""
41067 DEBUG_ZFS
="_without_debug"
41075 { $as_echo "$as_me:$LINENO: result: $enable_debug" >&5
41076 $as_echo "$enable_debug" >&6; }
41079 # Check whether --enable-debug-dmu-tx was given.
41080 if test "${enable_debug_dmu_tx+set}" = set; then
41081 enableval
=$enable_debug_dmu_tx;
41083 enable_debug_dmu_tx
=no
41087 if test "x$enable_debug_dmu_tx" = xyes
; then
41089 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG_DMU_TX"
41090 DEBUG_DMU_TX
="_with_debug_dmu_tx"
41092 cat >>confdefs.h
<<\_ACEOF
41093 #define DEBUG_DMU_TX 1
41099 DEBUG_DMU_TX
="_without_debug_dmu_tx"
41105 { $as_echo "$as_me:$LINENO: checking whether dmu tx validation is enabled" >&5
41106 $as_echo_n "checking whether dmu tx validation is enabled... " >&6; }
41107 { $as_echo "$as_me:$LINENO: result: $enable_debug_dmu_tx" >&5
41108 $as_echo "$enable_debug_dmu_tx" >&6; }
41111 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/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/sysevent/Makefile lib/libspl/include/sys/dktp/Makefile lib/libspl/include/util/Makefile lib/libavl/Makefile lib/libefi/Makefile lib/libnvpair/Makefile lib/libunicode/Makefile lib/libuutil/Makefile lib/libzpool/Makefile lib/libzfs/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 contrib/Makefile contrib/bash_completion.d/Makefile contrib/dracut/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 include/Makefile include/linux/Makefile include/sys/Makefile include/sys/fs/Makefile include/sys/fm/Makefile include/sys/fm/fs/Makefile scripts/Makefile scripts/zpios-profile/Makefile scripts/zpios-test/Makefile scripts/zpool-config/Makefile scripts/common.sh 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"
41114 cat >confcache
<<\_ACEOF
41115 # This file is a shell script that caches the results of configure
41116 # tests run on this system so they can be shared between configure
41117 # scripts and configure runs, see configure's option --config-cache.
41118 # It is not useful on other systems. If it contains results you don't
41119 # want to keep, you may remove or edit it.
41121 # config.status only pays attention to the cache file if you give it
41122 # the --recheck option to rerun configure.
41124 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41125 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41126 # following values.
41130 # The following way of writing the cache mishandles newlines in values,
41131 # but we know of no workaround that is simple, portable, and efficient.
41132 # So, we kill variables containing newlines.
41133 # Ultrix sh set writes to stderr and can't be redirected directly,
41134 # and sets the high bit in the cache file unless we assign to the vars.
41136 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41137 eval ac_val
=\$
$ac_var
41141 *_cv_
*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
41142 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
41145 _ | IFS | as_nl
) ;; #(
41146 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
41147 *) $as_unset $ac_var ;;
41153 case $as_nl`(ac_space=' '; set) 2>&1` in #(
41154 *${as_nl}ac_space
=\
*)
41155 # `set' does not quote correctly, so add quotes (double-quote
41156 # substitution turns \\\\ into \\, and sed turns \\ into \).
41159 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41162 # `set' quotes correctly as required by POSIX, so do not add quotes.
41163 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41172 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41174 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41176 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
41177 if test -w "$cache_file"; then
41178 test "x$cache_file" != "x/dev/null" &&
41179 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
41180 $as_echo "$as_me: updating cache $cache_file" >&6;}
41181 cat confcache
>$cache_file
41183 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
41184 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41189 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
41190 # Let make expand exec_prefix.
41191 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
41193 DEFS
=-DHAVE_CONFIG_H
41197 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
41198 # 1. Remove the extension, and $U if already installed.
41199 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
41200 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
41201 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
41202 # will be set to the directory where LIBOBJS objects are built.
41203 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41204 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
41206 LIBOBJS
=$ac_libobjs
41208 LTLIBOBJS
=$ac_ltlibobjs
41211 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
41212 { { $as_echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
41213 Usually this means the macro was only invoked conditionally." >&5
41214 $as_echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
41215 Usually this means the macro was only invoked conditionally." >&2;}
41216 { (exit 1); exit 1; }; }
41218 if test -n "$EXEEXT"; then
41220 am__EXEEXT_FALSE
='#'
41222 am__EXEEXT_TRUE
='#'
41226 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
41227 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
41228 Usually this means the macro was only invoked conditionally." >&5
41229 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
41230 Usually this means the macro was only invoked conditionally." >&2;}
41231 { (exit 1); exit 1; }; }
41233 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
41234 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
41235 Usually this means the macro was only invoked conditionally." >&5
41236 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
41237 Usually this means the macro was only invoked conditionally." >&2;}
41238 { (exit 1); exit 1; }; }
41240 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
41241 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCCAS\" was never defined.
41242 Usually this means the macro was only invoked conditionally." >&5
41243 $as_echo "$as_me: error: conditional \"am__fastdepCCAS\" was never defined.
41244 Usually this means the macro was only invoked conditionally." >&2;}
41245 { (exit 1); exit 1; }; }
41247 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
41248 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_USER\" was never defined.
41249 Usually this means the macro was only invoked conditionally." >&5
41250 $as_echo "$as_me: error: conditional \"CONFIG_USER\" was never defined.
41251 Usually this means the macro was only invoked conditionally." >&2;}
41252 { (exit 1); exit 1; }; }
41254 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
41255 { { $as_echo "$as_me:$LINENO: error: conditional \"CONFIG_KERNEL\" was never defined.
41256 Usually this means the macro was only invoked conditionally." >&5
41257 $as_echo "$as_me: error: conditional \"CONFIG_KERNEL\" was never defined.
41258 Usually this means the macro was only invoked conditionally." >&2;}
41259 { (exit 1); exit 1; }; }
41262 : ${CONFIG_STATUS=./config.status}
41264 ac_clean_files_save
=$ac_clean_files
41265 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
41266 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
41267 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
41268 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41270 # Generated by $as_me.
41271 # Run this file to recreate the current configuration.
41272 # Compiler output produced by configure, useful for debugging
41273 # configure, is in config.log if it exists.
41276 ac_cs_recheck=false
41278 SHELL=\${CONFIG_SHELL-$SHELL}
41281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
41282 ## --------------------- ##
41283 ## M4sh Initialization. ##
41284 ## --------------------- ##
41286 # Be more Bourne compatible
41287 DUALCASE
=1; export DUALCASE
# for MKS sh
41288 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
41291 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
41292 # is contrary to our usage. Disable this feature.
41293 alias -g '${1+"$@"}'='"$@"'
41294 setopt NO_GLOB_SUBST
41296 case `(set -o) 2>/dev/null` in
41297 *posix
*) set -o posix
;;
41306 # Avoid depending upon Character Ranges.
41307 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
41308 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41309 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
41310 as_cr_digits
='0123456789'
41311 as_cr_alnum
=$as_cr_Letters$as_cr_digits
41316 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41317 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41318 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41319 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41320 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
41321 as_echo='printf %s
\n'
41322 as_echo_n='printf %s
'
41324 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
41325 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
41326 as_echo_n='/usr
/ucb
/echo -n'
41328 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
41329 as_echo_n_body='eval
41333 expr "X$arg" : "X\\(.*\\)$as_nl";
41334 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
41336 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
41338 export as_echo_n_body
41339 as_echo_n='sh
-c $as_echo_n_body as_echo
'
41341 export as_echo_body
41342 as_echo='sh
-c $as_echo_body as_echo
'
41345 # The user is always right.
41346 if test "${PATH_SEPARATOR+set}" != set; then
41348 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
41349 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
41354 # Support unset when possible.
41355 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
41363 # We need space, tab and new line, in precisely that order. Quoting is
41364 # there to prevent editors from complaining about space-tab.
41365 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
41366 # splitting by setting IFS to empty value.)
41369 # Find who we are. Look in the path if we contain no directory separator.
41371 *[\\/]* ) as_myself=$0 ;;
41372 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41373 for as_dir in $PATH
41376 test -z "$as_dir" && as_dir=.
41377 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41383 # We did not find ourselves, most probably we were run as `sh COMMAND'
41384 # in which case we are not to be found in the path.
41385 if test "x$as_myself" = x
; then
41388 if test ! -f "$as_myself"; then
41389 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41390 { (exit 1); exit 1; }
41393 # Work around bugs in pre-3.0 UWIN ksh.
41394 for as_var
in ENV MAIL MAILPATH
41395 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
41407 # Required to use basename.
41408 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
41409 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
41415 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
41416 as_basename
=basename
41422 # Name of the executable.
41423 as_me
=`$as_basename -- "$0" ||
41424 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41425 X"$0" : 'X\(//\)$' \| \
41426 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41428 sed '/^.*\/\([^/][^/]*\)\/*$/{
41447 as_lineno_1
=$LINENO
41448 as_lineno_2
=$LINENO
41449 test "x$as_lineno_1" != "x$as_lineno_2" &&
41450 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
41452 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
41453 # uniformly replaced by the line number. The first 'sed' inserts a
41454 # line-number line after each line using $LINENO; the second 'sed'
41455 # does the real work. The second script uses 'N' to pair each
41456 # line-number line with the line containing $LINENO, and appends
41457 # trailing '-' during substitution so that $LINENO is not a special
41458 # case at line end.
41459 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
41460 # scripts with optimization help from Paolo Bonzini. Blame Lee
41461 # E. McMahon (1931-1989) for sed's syntax. :-)
41473 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
41476 ' >$as_me.lineno
&&
41477 chmod +x
"$as_me.lineno" ||
41478 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
41479 { (exit 1); exit 1; }; }
41481 # Don't try to exec as it changes $[0], causing all sort of problems
41482 # (the dirname of $[0] is not the place where we might find the
41483 # original and so on. Autoconf is especially sensitive to this).
41484 .
"./$as_me.lineno"
41485 # Exit status is that of the last command.
41490 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
41496 ECHO_C
= ECHO_N
= ECHO_T
=
41497 case `echo -n x` in
41499 case `echo 'x\c'` in
41500 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
41506 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
41507 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
41513 rm -f conf$$ conf$$.exe conf$$.
file
41514 if test -d conf$$.dir
; then
41515 rm -f conf$$.dir
/conf$$.
file
41518 mkdir conf$$.dir
2>/dev
/null
41520 if (echo >conf$$.
file) 2>/dev
/null
; then
41521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
41523 # ... but there are two gotchas:
41524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
41525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
41526 # In both cases, we have to default to `cp -p'.
41527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
41529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
41537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
41538 rmdir conf$$.dir
2>/dev
/null
41540 if mkdir
-p .
2>/dev
/null
; then
41543 test -d .
/-p && rmdir .
/-p
41547 if test -x / >/dev
/null
2>&1; then
41548 as_test_x
='test -x'
41550 if ls -dL / >/dev
/null
2>&1; then
41557 if test -d "$1"; then
41563 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
41564 ???[sx]*):;;*)false;;esac;fi
41568 as_executable_p
=$as_test_x
41570 # Sed expression to map a string onto a valid CPP name.
41571 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41573 # Sed expression to map a string onto a valid variable name.
41574 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41579 # Save the log message, to keep $[0] and so on meaningful, and to
41580 # report actual input values of CONFIG_FILES etc. instead of their
41581 # values after options handling.
41583 This file was extended by zfs $as_me 0.6.5.11, which was
41584 generated by GNU Autoconf 2.63. Invocation command line was
41586 CONFIG_FILES = $CONFIG_FILES
41587 CONFIG_HEADERS = $CONFIG_HEADERS
41588 CONFIG_LINKS = $CONFIG_LINKS
41589 CONFIG_COMMANDS = $CONFIG_COMMANDS
41592 on `(hostname || uname -n) 2>/dev/null | sed 1q`
41597 case $ac_config_files in *"
41598 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
41601 case $ac_config_headers in *"
41602 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
41606 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41607 # Files that config.status was made for.
41608 config_files="$ac_config_files"
41609 config_headers="$ac_config_headers"
41610 config_commands="$ac_config_commands"
41614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
41616 \`$as_me' instantiates files from templates according to the
41617 current configuration.
41619 Usage: $0 [OPTION]... [FILE]...
41621 -h, --help print this help, then exit
41622 -V, --version print version number and configuration settings, then exit
41623 -q, --quiet, --silent
41624 do not print progress messages
41625 -d, --debug don't remove temporary files
41626 --recheck update $as_me by reconfiguring in the same conditions
41627 --file=FILE[:TEMPLATE]
41628 instantiate the configuration file FILE
41629 --header=FILE[:TEMPLATE]
41630 instantiate the configuration header FILE
41632 Configuration files:
41635 Configuration headers:
41638 Configuration commands:
41641 Report bugs to <bug-autoconf@gnu.org>."
41644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41646 zfs config.status 0.6.5.11
41647 configured by $0, generated by GNU Autoconf 2.63,
41648 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
41650 Copyright (C) 2008 Free Software Foundation, Inc.
41651 This config.status script is free software; the Free Software Foundation
41652 gives unlimited permission to copy, distribute and modify it."
41659 test -n "\$AWK" || AWK=awk
41662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
41663 # The default lists apply if the user does not specify any file.
41669 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
41670 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
41681 # Handling of the options.
41682 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
41684 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
41685 $as_echo "$ac_cs_version"; exit ;;
41686 --debug |
--debu |
--deb |
--de |
--d |
-d )
41688 --file |
--fil |
--fi |
--f )
41691 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41693 CONFIG_FILES
="$CONFIG_FILES '$ac_optarg'"
41694 ac_need_defaults
=false
;;
41695 --header |
--heade |
--head |
--hea )
41698 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41700 CONFIG_HEADERS
="$CONFIG_HEADERS '$ac_optarg'"
41701 ac_need_defaults
=false
;;
41703 # Conflict between --help and --header
41704 { $as_echo "$as_me: error: ambiguous option: $1
41705 Try \`$0 --help' for more information." >&2
41706 { (exit 1); exit 1; }; };;
41707 --help |
--hel |
-h )
41708 $as_echo "$ac_cs_usage"; exit ;;
41709 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
41710 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
41713 # This is an error.
41714 -*) { $as_echo "$as_me: error: unrecognized option: $1
41715 Try \`$0 --help' for more information." >&2
41716 { (exit 1); exit 1; }; } ;;
41718 *) ac_config_targets
="$ac_config_targets $1"
41719 ac_need_defaults
=false
;;
41725 ac_configure_extra_args
=
41727 if $ac_cs_silent; then
41729 ac_configure_extra_args
="$ac_configure_extra_args --silent"
41733 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41734 if \$ac_cs_recheck; then
41735 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41737 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
41738 CONFIG_SHELL='$SHELL'
41739 export CONFIG_SHELL
41744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
41748 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41749 ## Running $as_me. ##
41755 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41759 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41762 # The HP-UX ksh and POSIX shell print the target directory to stdout
41763 # if CDPATH is set.
41764 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41766 sed_quote_subst='$sed_quote_subst'
41767 double_quote_subst='$double_quote_subst'
41768 delay_variable_subst='$delay_variable_subst'
41769 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
41770 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
41771 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
41772 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
41773 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
41774 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
41775 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
41776 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
41777 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
41778 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
41779 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
41780 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
41781 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
41782 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
41783 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
41784 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
41785 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
41786 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
41787 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
41788 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
41789 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
41790 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
41791 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
41792 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
41793 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
41794 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
41795 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
41796 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41797 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
41798 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
41799 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
41800 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
41801 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
41802 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
41803 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
41804 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41805 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41806 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41807 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
41808 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
41809 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
41810 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
41811 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
41812 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
41813 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"`'
41814 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"`'
41815 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
41816 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
41817 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
41818 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
41819 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
41820 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
41821 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
41822 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
41823 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
41824 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
41825 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
41826 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
41827 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
41828 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
41829 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
41830 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
41831 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41832 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41833 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
41834 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
41835 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41836 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41837 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
41838 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41839 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41840 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41841 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41842 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41843 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41844 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
41845 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
41846 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
41847 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
41848 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
41849 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
41850 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
41851 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
41852 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
41853 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41854 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
41855 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
41856 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
41857 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
41858 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
41859 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41860 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
41861 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
41862 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41863 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
41864 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
41865 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
41866 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
41867 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
41868 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41869 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
41870 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
41871 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
41872 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
41873 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
41874 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41875 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41876 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
41877 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
41878 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
41879 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
41880 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
41881 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
41882 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
41883 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
41884 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
41885 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
41886 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
41889 LTCFLAGS='$LTCFLAGS'
41890 compiler='$compiler_DEFAULT'
41892 # Quote evaled strings.
41904 deplibs_check_method \
41913 lt_cv_sys_global_symbol_pipe \
41914 lt_cv_sys_global_symbol_to_cdecl \
41915 lt_cv_sys_global_symbol_to_c_name_address \
41916 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
41919 lt_prog_compiler_no_builtin_flag \
41920 lt_prog_compiler_wl \
41921 lt_prog_compiler_pic \
41922 lt_prog_compiler_static \
41923 lt_cv_prog_compiler_c_o \
41931 export_dynamic_flag_spec \
41932 whole_archive_flag_spec \
41933 compiler_needs_object \
41935 allow_undefined_flag \
41936 no_undefined_flag \
41937 hardcode_libdir_flag_spec \
41938 hardcode_libdir_flag_spec_ld \
41939 hardcode_libdir_separator \
41944 variables_saved_for_relink \
41946 library_names_spec \
41951 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
41952 *[\\\\\\\`\\"\\\$]*)
41953 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
41956 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
41961 # Double-quote double-evaled strings.
41962 for var in reload_cmds \
41963 old_postinstall_cmds \
41964 old_postuninstall_cmds \
41966 extract_expsyms_cmds \
41967 old_archive_from_new_cmds \
41968 old_archive_from_expsyms_cmds \
41970 archive_expsym_cmds \
41972 module_expsym_cmds \
41973 export_symbols_cmds \
41976 postuninstall_cmds \
41978 sys_lib_search_path_spec \
41979 sys_lib_dlsearch_path_spec; do
41980 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
41981 *[\\\\\\\`\\"\\\$]*)
41982 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
41985 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
41990 # Fix-up fallback echo if it was mangled by the above quoting rules.
41992 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
41996 ac_aux_dir='$ac_aux_dir'
41997 xsi_shell='$xsi_shell'
41998 lt_shell_append='$lt_shell_append'
42000 # See if we are running on zsh, and set the options which allow our
42001 # commands through without removal of \ escapes INIT.
42002 if test -n "\${ZSH_VERSION+set}" ; then
42003 setopt NO_GLOB_SUBST
42009 TIMESTAMP='$TIMESTAMP'
42018 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
42020 # Handling of arguments.
42021 for ac_config_target
in $ac_config_targets
42023 case $ac_config_target in
42024 "zfs_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS zfs_config.h" ;;
42025 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
42026 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
42027 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
42028 "udev/Makefile") CONFIG_FILES
="$CONFIG_FILES udev/Makefile" ;;
42029 "udev/rules.d/Makefile") CONFIG_FILES
="$CONFIG_FILES udev/rules.d/Makefile" ;;
42030 "etc/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/Makefile" ;;
42031 "etc/init.d/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/init.d/Makefile" ;;
42032 "etc/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/zfs/Makefile" ;;
42033 "etc/systemd/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/systemd/Makefile" ;;
42034 "etc/systemd/system/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/systemd/system/Makefile" ;;
42035 "etc/modules-load.d/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/modules-load.d/Makefile" ;;
42036 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
42037 "man/man1/Makefile") CONFIG_FILES
="$CONFIG_FILES man/man1/Makefile" ;;
42038 "man/man5/Makefile") CONFIG_FILES
="$CONFIG_FILES man/man5/Makefile" ;;
42039 "man/man8/Makefile") CONFIG_FILES
="$CONFIG_FILES man/man8/Makefile" ;;
42040 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
42041 "lib/libspl/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/Makefile" ;;
42042 "lib/libspl/asm-generic/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
42043 "lib/libspl/asm-i386/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
42044 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
42045 "lib/libspl/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/Makefile" ;;
42046 "lib/libspl/include/ia32/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
42047 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
42048 "lib/libspl/include/rpc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
42049 "lib/libspl/include/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
42050 "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
42051 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
42052 "lib/libspl/include/util/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
42053 "lib/libavl/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libavl/Makefile" ;;
42054 "lib/libefi/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libefi/Makefile" ;;
42055 "lib/libnvpair/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libnvpair/Makefile" ;;
42056 "lib/libunicode/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libunicode/Makefile" ;;
42057 "lib/libuutil/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libuutil/Makefile" ;;
42058 "lib/libzpool/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libzpool/Makefile" ;;
42059 "lib/libzfs/libzfs.pc") CONFIG_FILES
="$CONFIG_FILES lib/libzfs/libzfs.pc" ;;
42060 "lib/libzfs/libzfs_core.pc") CONFIG_FILES
="$CONFIG_FILES lib/libzfs/libzfs_core.pc" ;;
42061 "lib/libzfs/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libzfs/Makefile" ;;
42062 "lib/libzfs_core/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libzfs_core/Makefile" ;;
42063 "lib/libshare/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libshare/Makefile" ;;
42064 "cmd/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/Makefile" ;;
42065 "cmd/zdb/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zdb/Makefile" ;;
42066 "cmd/zhack/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zhack/Makefile" ;;
42067 "cmd/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zfs/Makefile" ;;
42068 "cmd/zinject/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zinject/Makefile" ;;
42069 "cmd/zpool/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpool/Makefile" ;;
42070 "cmd/zstreamdump/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zstreamdump/Makefile" ;;
42071 "cmd/ztest/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/ztest/Makefile" ;;
42072 "cmd/zpios/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpios/Makefile" ;;
42073 "cmd/mount_zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
42074 "cmd/fsck_zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/fsck_zfs/Makefile" ;;
42075 "cmd/zvol_id/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
42076 "cmd/vdev_id/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/vdev_id/Makefile" ;;
42077 "cmd/arcstat/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/arcstat/Makefile" ;;
42078 "cmd/dbufstat/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/dbufstat/Makefile" ;;
42079 "cmd/arc_summary/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/arc_summary/Makefile" ;;
42080 "cmd/zed/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zed/Makefile" ;;
42081 "contrib/Makefile") CONFIG_FILES
="$CONFIG_FILES contrib/Makefile" ;;
42082 "contrib/bash_completion.d/Makefile") CONFIG_FILES
="$CONFIG_FILES contrib/bash_completion.d/Makefile" ;;
42083 "contrib/dracut/Makefile") CONFIG_FILES
="$CONFIG_FILES contrib/dracut/Makefile" ;;
42084 "contrib/dracut/90zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES contrib/dracut/90zfs/Makefile" ;;
42085 "contrib/initramfs/Makefile") CONFIG_FILES
="$CONFIG_FILES contrib/initramfs/Makefile" ;;
42086 "module/Makefile") CONFIG_FILES
="$CONFIG_FILES module/Makefile" ;;
42087 "module/avl/Makefile") CONFIG_FILES
="$CONFIG_FILES module/avl/Makefile" ;;
42088 "module/nvpair/Makefile") CONFIG_FILES
="$CONFIG_FILES module/nvpair/Makefile" ;;
42089 "module/unicode/Makefile") CONFIG_FILES
="$CONFIG_FILES module/unicode/Makefile" ;;
42090 "module/zcommon/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zcommon/Makefile" ;;
42091 "module/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zfs/Makefile" ;;
42092 "module/zpios/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zpios/Makefile" ;;
42093 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
42094 "include/linux/Makefile") CONFIG_FILES
="$CONFIG_FILES include/linux/Makefile" ;;
42095 "include/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/Makefile" ;;
42096 "include/sys/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fs/Makefile" ;;
42097 "include/sys/fm/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/Makefile" ;;
42098 "include/sys/fm/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
42099 "scripts/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/Makefile" ;;
42100 "scripts/zpios-profile/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
42101 "scripts/zpios-test/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
42102 "scripts/zpool-config/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
42103 "scripts/common.sh") CONFIG_FILES
="$CONFIG_FILES scripts/common.sh" ;;
42104 "rpm/Makefile") CONFIG_FILES
="$CONFIG_FILES rpm/Makefile" ;;
42105 "rpm/redhat/Makefile") CONFIG_FILES
="$CONFIG_FILES rpm/redhat/Makefile" ;;
42106 "rpm/redhat/zfs.spec") CONFIG_FILES
="$CONFIG_FILES rpm/redhat/zfs.spec" ;;
42107 "rpm/redhat/zfs-kmod.spec") CONFIG_FILES
="$CONFIG_FILES rpm/redhat/zfs-kmod.spec" ;;
42108 "rpm/redhat/zfs-dkms.spec") CONFIG_FILES
="$CONFIG_FILES rpm/redhat/zfs-dkms.spec" ;;
42109 "rpm/generic/Makefile") CONFIG_FILES
="$CONFIG_FILES rpm/generic/Makefile" ;;
42110 "rpm/generic/zfs.spec") CONFIG_FILES
="$CONFIG_FILES rpm/generic/zfs.spec" ;;
42111 "rpm/generic/zfs-kmod.spec") CONFIG_FILES
="$CONFIG_FILES rpm/generic/zfs-kmod.spec" ;;
42112 "rpm/generic/zfs-dkms.spec") CONFIG_FILES
="$CONFIG_FILES rpm/generic/zfs-dkms.spec" ;;
42113 "zfs-script-config.sh") CONFIG_FILES
="$CONFIG_FILES zfs-script-config.sh" ;;
42114 "zfs.release") CONFIG_FILES
="$CONFIG_FILES zfs.release" ;;
42116 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
42117 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
42118 { (exit 1); exit 1; }; };;
42123 # If the user did not use the arguments to specify the items to instantiate,
42124 # then the envvar interface is used. Set only those that are not.
42125 # We use the long form for the default assignment because of an extremely
42126 # bizarre bug on SunOS 4.1.3.
42127 if $ac_need_defaults; then
42128 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
42129 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
42130 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
42133 # Have a temporary directory for convenience. Make it in the build tree
42134 # simply because there is no reason against having it here, and in addition,
42135 # creating and moving files from /tmp can sometimes cause problems.
42136 # Hook for its removal unless debugging.
42137 # Note that there is a small window in which the directory will not be cleaned:
42138 # after its creation but before its name has been assigned to `$tmp'.
42142 trap 'exit_status=$?
42143 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
42145 trap '{ (exit 1); exit 1; }' 1 2 13 15
42147 # Create a (secure) tmp directory for tmp files.
42150 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42151 test -n "$tmp" && test -d "$tmp"
42154 tmp
=.
/conf$$
-$RANDOM
42155 (umask 077 && mkdir
"$tmp")
42158 $as_echo "$as_me: cannot create a temporary directory in ." >&2
42159 { (exit 1); exit 1; }
42162 # Set up the scripts for CONFIG_FILES section.
42163 # No need to generate them if there are no CONFIG_FILES.
42164 # This happens for instance with `./config.status config.h'.
42165 if test -n "$CONFIG_FILES"; then
42169 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
42170 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
42173 ac_cs_awk_cr
=$ac_cr
42176 echo 'BEGIN {' >"$tmp/subs1.awk" &&
42181 echo "cat >conf$$subs.awk <<_ACEOF" &&
42182 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
42184 } >conf$$subs.sh ||
42185 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
42186 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
42187 { (exit 1); exit 1; }; }
42188 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
42190 for ac_last_try in false false false false false :; do
42191 . ./conf$$subs.sh ||
42192 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
42193 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
42194 { (exit 1); exit 1; }; }
42196 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
42197 if test $ac_delim_n = $ac_delim_num; then
42199 elif $ac_last_try; then
42200 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_STATUS" >&5
42201 $as_echo "$as_me: error
: could not
make $CONFIG_STATUS" >&2;}
42202 { (exit 1); exit 1; }; }
42204 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
42207 rm -f conf$$subs.sh
42209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42210 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
42214 s/^/S["/; s
/!.
*/"]=/
42224 s/\(.\{148\}\).*/\1/
42226 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
42231 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
42238 s/\(.\{148\}\).*/\1/
42240 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
42244 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
42249 ' <conf$$subs.awk | sed '
42254 ' >>$CONFIG_STATUS || ac_write_fail=1
42255 rm -f conf$$subs.awk
42256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42258 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
42259 for (key in S) S_is_set[key] = 1
42265 nfields = split(line, field, "@
")
42267 len = length(field[1])
42268 for (i = 2; i < nfields; i++) {
42270 keylen = length(key)
42271 if (S_is_set[key]) {
42273 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
42274 len += length(value) + length(field[++i])
42285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42286 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
42287 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
42290 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
42291 || { { $as_echo "$as_me:$LINENO: error
: could not setup config files machinery
" >&5
42292 $as_echo "$as_me: error
: could not setup config files machinery
" >&2;}
42293 { (exit 1); exit 1; }; }
42296 # VPATH may cause trouble with some makes, so we remove $(srcdir),
42297 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
42298 # trailing colons and then remove the whole line if VPATH becomes empty
42299 # (actually we leave an empty line to preserve line numbers).
42300 if test "x
$srcdir" = x.; then
42301 ac_vpsub='/^[ ]*VPATH[ ]*=/{
42302 s/:*\$(srcdir):*/:/
42303 s/:*\${srcdir}:*/:/
42305 s/^\([^=]*=[ ]*\):*/\1/
42311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42312 fi # test -n "$CONFIG_FILES"
42314 # Set up the scripts for CONFIG_HEADERS section.
42315 # No need to generate them if there are no CONFIG_HEADERS.
42316 # This happens for instance with `./config.status Makefile'.
42317 if test -n "$CONFIG_HEADERS"; then
42318 cat >"$tmp/defines.
awk" <<\_ACAWK ||
42322 # Transform confdefs.h into an awk script `defines.awk', embedded as
42323 # here-document in config.status, that substitutes the proper values into
42324 # config.h.in to produce config.h.
42326 # Create a delimiter string that does not exist in confdefs.h, to ease
42327 # handling of long lines.
42329 for ac_last_try in false false :; do
42330 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
42331 if test -z "$ac_t"; then
42333 elif $ac_last_try; then
42334 { { $as_echo "$as_me:$LINENO: error
: could not
make $CONFIG_HEADERS" >&5
42335 $as_echo "$as_me: error
: could not
make $CONFIG_HEADERS" >&2;}
42336 { (exit 1); exit 1; }; }
42338 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
42342 # For the awk script, D is an array of macro values keyed by name,
42343 # likewise P contains macro parameters if any. Preserve backslash
42344 # newline sequences.
42346 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
42348 s/.\{148\}/&'"$ac_delim"'/g
42351 s/^[ ]*#[ ]*define[ ][ ]*/ /
42358 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
42360 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
42364 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
42365 D["\
1"]=" \
3\\\\\\n
"\\/p
42367 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
42372 s/.\{148\}/&'"$ac_delim"'/g
42377 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
42380 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
42382 ' <confdefs.h | sed '
42383 s/'"$ac_delim"'/"\\\
42384 "/g' >>$CONFIG_STATUS || ac_write_fail=1
42386 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42387 for (key in D) D_is_set[key] = 1
42390 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
42392 split(line, arg, " ")
42393 if (arg[1] == "#") {
42397 defundef
= substr
(arg
[1], 2)
42400 split(mac1
, mac2
, "(") #)
42402 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
42403 if (D_is_set
[macro
]) {
42404 # Preserve the white space surrounding the "#".
42405 print prefix
"define", macro P
[macro
] D
[macro
]
42408 # Replace #undef with comments. This is necessary, for example,
42409 # in the case of _POSIX_SOURCE, which is predefined and required
42410 # on some systems where configure will not decide to define it.
42411 if (defundef
== "undef") {
42412 print
"/*", prefix defundef
, macro
, "*/"
42420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
42421 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
42422 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
42423 { (exit 1); exit 1; }; }
42424 fi # test -n "$CONFIG_HEADERS"
42427 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
42432 :[FHLC
]) ac_mode
=$ac_tag; continue;;
42434 case $ac_mode$ac_tag in
42436 :L
* |
:C
*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
42437 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
42438 { (exit 1); exit 1; }; };;
42439 :[FH
]-) ac_tag
=-:-;;
42440 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
42457 -) ac_f
="$tmp/stdin";;
42458 *) # Look for the file first in the build tree, then in the source tree
42459 # (if the path is not absolute). The absolute path cannot be DOS-style,
42460 # because $ac_f cannot contain `:'.
42464 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
42466 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
42467 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
42468 { (exit 1); exit 1; }; };;
42470 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
42471 ac_file_inputs
="$ac_file_inputs '$ac_f'"
42474 # Let's still pretend it is `configure' which instantiates (i.e., don't
42475 # use $as_me), people would be surprised to read:
42476 # /* config.h. Generated by config.status. */
42477 configure_input
='Generated from '`
42478 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
42480 if test x
"$ac_file" != x-
; then
42481 configure_input
="$ac_file. $configure_input"
42482 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
42483 $as_echo "$as_me: creating $ac_file" >&6;}
42485 # Neutralize special characters interpreted by sed in replacement strings.
42486 case $configure_input in #(
42487 *\
&* |
*\|
* |
*\\* )
42488 ac_sed_conf_input
=`$as_echo "$configure_input" |
42489 sed 's/[\\\\&|]/\\\\&/g'`;; #(
42490 *) ac_sed_conf_input
=$configure_input;;
42494 *:-:* |
*:-) cat >"$tmp/stdin" \
42495 ||
{ { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
42496 $as_echo "$as_me: error: could not create $ac_file" >&2;}
42497 { (exit 1); exit 1; }; } ;;
42502 ac_dir
=`$as_dirname -- "$ac_file" ||
42503 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42504 X"$ac_file" : 'X\(//\)[^/]' \| \
42505 X"$ac_file" : 'X\(//\)$' \| \
42506 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42507 $as_echo X"$ac_file" |
42508 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42512 /^X\(\/\/\)[^/].*/{
42527 -*) as_dir
=.
/$as_dir;;
42529 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
42533 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
42534 *) as_qdir
=$as_dir;;
42536 as_dirs
="'$as_qdir' $as_dirs"
42537 as_dir
=`$as_dirname -- "$as_dir" ||
42538 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42539 X"$as_dir" : 'X\(//\)[^/]' \| \
42540 X"$as_dir" : 'X\(//\)$' \| \
42541 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
42542 $as_echo X"$as_dir" |
42543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42547 /^X\(\/\/\)[^/].*/{
42560 test -d "$as_dir" && break
42562 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
42563 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
42564 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
42565 { (exit 1); exit 1; }; }; }
42569 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
42571 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
42572 # A ".." for each directory in $ac_dir_suffix.
42573 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
42574 case $ac_top_builddir_sub in
42575 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
42576 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
42579 ac_abs_top_builddir
=$ac_pwd
42580 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
42581 # for backward compatibility:
42582 ac_top_builddir
=$ac_top_build_prefix
42585 .
) # We are building in place.
42587 ac_top_srcdir
=$ac_top_builddir_sub
42588 ac_abs_top_srcdir
=$ac_pwd ;;
42589 [\\/]* | ?
:[\\/]* ) # Absolute name.
42590 ac_srcdir
=$srcdir$ac_dir_suffix;
42591 ac_top_srcdir
=$srcdir
42592 ac_abs_top_srcdir
=$srcdir ;;
42593 *) # Relative name.
42594 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
42595 ac_top_srcdir
=$ac_top_build_prefix$srcdir
42596 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
42598 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
42608 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
42609 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
42611 ac_MKDIR_P
=$MKDIR_P
42613 [\\/$
]* | ?
:[\\/]* ) ;;
42614 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
42618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
42619 # If the template does not know about datarootdir, expand it.
42620 # FIXME: This hack should be removed a few years after 2.60.
42621 ac_datarootdir_hack
=; ac_datarootdir_seen
=
42634 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
42635 *datarootdir
*) ac_datarootdir_seen
=yes;;
42636 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
42637 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
42638 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
42640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42641 ac_datarootdir_hack='
42642 s&@datadir@&$datadir&g
42643 s&@docdir@&$docdir&g
42644 s&@infodir@&$infodir&g
42645 s&@localedir@&$localedir&g
42646 s&@mandir@&$mandir&g
42647 s&\\\${datarootdir}&$datarootdir&g' ;;
42651 # Neutralize VPATH when `$srcdir' = `.'.
42652 # Shell code in configure.ac might set extrasub.
42653 # FIXME: do we really want to maintain this feature?
42654 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42655 ac_sed_extra="$ac_vpsub
42658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
42660 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
42661 s|@configure_input@|
$ac_sed_conf_input|
;t t
42662 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
42663 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
42664 s
&@srcdir@
&$ac_srcdir&;t t
42665 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
42666 s
&@top_srcdir@
&$ac_top_srcdir&;t t
42667 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
42668 s
&@builddir@
&$ac_builddir&;t t
42669 s
&@abs_builddir@
&$ac_abs_builddir&;t t
42670 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
42671 s
&@INSTALL@
&$ac_INSTALL&;t t
42672 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
42673 $ac_datarootdir_hack
42675 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
42676 || { { $as_echo "$as_me:$LINENO: error
: could not create
$ac_file" >&5
42677 $as_echo "$as_me: error
: could not create
$ac_file" >&2;}
42678 { (exit 1); exit 1; }; }
42680 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
42681 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
42682 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
42683 { $as_echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
42684 which seems to be undefined. Please make sure it is defined." >&5
42685 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
42686 which seems to be undefined. Please make sure it is defined." >&2;}
42690 -) cat "$tmp/out" && rm -f "$tmp/out";;
42691 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
42693 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
42694 $as_echo "$as_me: error: could not create $ac_file" >&2;}
42695 { (exit 1); exit 1; }; }
42701 if test x"$ac_file" != x-; then
42703 $as_echo "/* $configure_input */" \
42704 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
42705 } >"$tmp/config.h" \
42706 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
42707 $as_echo "$as_me: error: could not create $ac_file" >&2;}
42708 { (exit 1); exit 1; }; }
42709 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
42710 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
42711 $as_echo "$as_me: $ac_file is unchanged" >&6;}
42714 mv "$tmp/config.h" "$ac_file" \
42715 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
42716 $as_echo "$as_me: error: could not create $ac_file" >&2;}
42717 { (exit 1); exit 1; }; }
42720 $as_echo "/* $configure_input */" \
42721 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
42722 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
42723 $as_echo "$as_me: error: could not create -" >&2;}
42724 { (exit 1); exit 1; }; }
42726 # Compute "$ac_file"'s index
in $config_headers.
42729 for _am_header
in $config_headers :; do
42730 case $_am_header in
42731 $_am_arg |
$_am_arg:* )
42734 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
42737 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
42738 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42739 X"$_am_arg" : 'X\(//\)[^/]' \| \
42740 X"$_am_arg" : 'X\(//\)$' \| \
42741 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
42742 $as_echo X"$_am_arg" |
42743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42747 /^X\(\/\/\)[^/].*/{
42759 s/.*/./; q'`/stamp-h
$_am_stamp_count
42762 :C
) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
42763 $as_echo "$as_me: executing $ac_file commands" >&6;}
42768 case $ac_file$ac_mode in
42770 (mv zfs_config.h zfs_config.h.tmp
&&
42771 awk -f ${ac_srcdir}/config
/config.
awk zfs_config.h.tmp
>zfs_config.h
&&
42772 rm zfs_config.h.tmp
) ||
exit 1 ;;
42773 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
42774 # Autoconf 2.62 quotes --file arguments for eval, but not when files
42775 # are listed without --file. Let's play safe and only enable the eval
42776 # if we detect the quoting.
42777 case $CONFIG_FILES in
42778 *\'*) eval set x
"$CONFIG_FILES" ;;
42779 *) set x
$CONFIG_FILES ;;
42784 # Strip MF so we end up with the name of the file.
42785 mf
=`echo "$mf" | sed -e 's/:.*$//'`
42786 # Check whether this is an Automake generated Makefile or not.
42787 # We used to match only the files named `Makefile.in', but
42788 # some people rename them; so instead we look at the file content.
42789 # Grep'ing the first line is not enough: some people post-process
42790 # each Makefile.in and add a new line on top of each file to say so.
42791 # Grep'ing the whole file is not good either: AIX grep has a line
42792 # limit of 2048, but all sed's we know have understand at least 4000.
42793 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
42794 dirpart
=`$as_dirname -- "$mf" ||
42795 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42796 X"$mf" : 'X\(//\)[^/]' \| \
42797 X"$mf" : 'X\(//\)$' \| \
42798 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
42800 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42804 /^X\(\/\/\)[^/].*/{
42820 # Extract the definition of DEPDIR, am__include, and am__quote
42821 # from the Makefile without running `make'.
42822 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
42823 test -z "$DEPDIR" && continue
42824 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
42825 test -z "am__include" && continue
42826 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
42827 # When using ansi2knr, U may be empty or an underscore; expand it
42828 U
=`sed -n 's/^U = //p' < "$mf"`
42829 # Find all dependency output files, they are included files with
42830 # $(DEPDIR) in their names. We invoke sed twice because it is the
42831 # simplest approach to changing $(DEPDIR) to its actual value in the
42833 for file in `sed -n "
42834 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
42835 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
42836 # Make sure the directory exists.
42837 test -f "$dirpart/$file" && continue
42838 fdir
=`$as_dirname -- "$file" ||
42839 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42840 X"$file" : 'X\(//\)[^/]' \| \
42841 X"$file" : 'X\(//\)$' \| \
42842 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
42843 $as_echo X"$file" |
42844 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42848 /^X\(\/\/\)[^/].*/{
42861 { as_dir
=$dirpart/$fdir
42863 -*) as_dir
=.
/$as_dir;;
42865 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
42869 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
42870 *) as_qdir
=$as_dir;;
42872 as_dirs
="'$as_qdir' $as_dirs"
42873 as_dir
=`$as_dirname -- "$as_dir" ||
42874 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42875 X"$as_dir" : 'X\(//\)[^/]' \| \
42876 X"$as_dir" : 'X\(//\)$' \| \
42877 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
42878 $as_echo X"$as_dir" |
42879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42883 /^X\(\/\/\)[^/].*/{
42896 test -d "$as_dir" && break
42898 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
42899 } ||
test -d "$as_dir" ||
{ { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
42900 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
42901 { (exit 1); exit 1; }; }; }
42902 # echo "creating $dirpart/$file"
42903 echo '# dummy' > "$dirpart/$file"
42910 # See if we are running on zsh, and set the options which allow our
42911 # commands through without removal of \ escapes.
42912 if test -n "${ZSH_VERSION+set}" ; then
42913 setopt NO_GLOB_SUBST
42916 cfgfile
="${ofile}T"
42917 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
42920 cat <<_LT_EOF >> "$cfgfile"
42923 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
42924 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
42925 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
42926 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
42928 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
42929 # 2006, 2007, 2008 Free Software Foundation, Inc.
42930 # Written by Gordon Matzigkeit, 1996
42932 # This file is part of GNU Libtool.
42934 # GNU Libtool is free software; you can redistribute it and/or
42935 # modify it under the terms of the GNU General Public License as
42936 # published by the Free Software Foundation; either version 2 of
42937 # the License, or (at your option) any later version.
42939 # As a special exception to the GNU General Public License,
42940 # if you distribute this file as part of a program or library that
42941 # is built using GNU Libtool, you may include this file under the
42942 # same distribution terms that you use for the rest of that program.
42944 # GNU Libtool is distributed in the hope that it will be useful,
42945 # but WITHOUT ANY WARRANTY; without even the implied warranty of
42946 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
42947 # GNU General Public License for more details.
42949 # You should have received a copy of the GNU General Public License
42950 # along with GNU Libtool; see the file COPYING. If not, a copy
42951 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
42952 # obtained by writing to the Free Software Foundation, Inc.,
42953 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
42956 # The names of the tagged configurations supported by this script.
42959 # ### BEGIN LIBTOOL CONFIG
42961 # Which release of libtool.m4 was used?
42962 macro_version=$macro_version
42963 macro_revision=$macro_revision
42965 # Whether or not to build shared libraries.
42966 build_libtool_libs=$enable_shared
42968 # Whether or not to build static libraries.
42969 build_old_libs=$enable_static
42971 # What type of objects to build.
42974 # Whether or not to optimize for fast installation.
42975 fast_install=$enable_fast_install
42978 host_alias=$host_alias
42982 # The build system.
42983 build_alias=$build_alias
42987 # A sed program that does not truncate output.
42990 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
42991 Xsed="\$SED -e 1s/^X//"
42993 # A grep program that handles long lines.
42999 # A literal string matcher.
43002 # A BSD- or MS-compatible name lister.
43005 # Whether we need soft or hard links.
43008 # What is the maximum length of a command?
43009 max_cmd_len=$max_cmd_len
43011 # Object file suffix (normally "o").
43014 # Executable file suffix (normally "").
43017 # whether the shell understands "unset".
43020 # turn spaces into newlines.
43023 # turn newlines into spaces.
43026 # How to create reloadable object files.
43027 reload_flag=$lt_reload_flag
43028 reload_cmds=$lt_reload_cmds
43030 # An object symbol dumper.
43031 OBJDUMP=$lt_OBJDUMP
43033 # Method to check whether dependent libraries are shared objects.
43034 deplibs_check_method=$lt_deplibs_check_method
43036 # Command to use when deplibs_check_method == "file_magic".
43037 file_magic_cmd=$lt_file_magic_cmd
43041 AR_FLAGS=$lt_AR_FLAGS
43043 # A symbol stripping program.
43046 # Commands used to install an old-style archive.
43048 old_postinstall_cmds=$lt_old_postinstall_cmds
43049 old_postuninstall_cmds=$lt_old_postuninstall_cmds
43054 # LTCC compiler flags.
43055 LTCFLAGS=$lt_CFLAGS
43057 # Take the output of nm and produce a listing of raw symbols and C names.
43058 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43060 # Transform the output of nm in a proper C declaration.
43061 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43063 # Transform the output of nm in a C name address pair.
43064 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43066 # Transform the output of nm in a C name address pair when lib prefix is needed.
43067 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43069 # The name of the directory that contains temporary libtool files.
43072 # Shell to use when invoking shell scripts.
43075 # An echo program that does not interpret backslashes.
43078 # Used to examine libraries when file_magic_cmd begins with "file".
43079 MAGIC_CMD=$MAGIC_CMD
43081 # Must we lock files when doing compilation?
43082 need_locks=$lt_need_locks
43084 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43085 DSYMUTIL=$lt_DSYMUTIL
43087 # Tool to change global to local symbols on Mac OS X.
43090 # Tool to manipulate fat objects and archives on Mac OS X.
43093 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
43096 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43097 OTOOL64=$lt_OTOOL64
43099 # Old archive suffix (normally "a").
43102 # Shared library suffix (normally ".so").
43103 shrext_cmds=$lt_shrext_cmds
43105 # The commands to extract the exported symbol list from a shared archive.
43106 extract_expsyms_cmds=$lt_extract_expsyms_cmds
43108 # Variables whose values should be saved in libtool wrapper scripts and
43109 # restored at link time.
43110 variables_saved_for_relink=$lt_variables_saved_for_relink
43112 # Do we need the "lib" prefix for modules?
43113 need_lib_prefix=$need_lib_prefix
43115 # Do we need a version for libraries?
43116 need_version=$need_version
43118 # Library versioning type.
43119 version_type=$version_type
43121 # Shared library runtime path variable.
43122 runpath_var=$runpath_var
43124 # Shared library path variable.
43125 shlibpath_var=$shlibpath_var
43127 # Is shlibpath searched before the hard-coded library search path?
43128 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43130 # Format of library name prefix.
43131 libname_spec=$lt_libname_spec
43133 # List of archive names. First name is the real one, the rest are links.
43134 # The last name is the one that the linker finds with -lNAME
43135 library_names_spec=$lt_library_names_spec
43137 # The coded name of the library, if different from the real name.
43138 soname_spec=$lt_soname_spec
43140 # Command to use after installation of a shared archive.
43141 postinstall_cmds=$lt_postinstall_cmds
43143 # Command to use after uninstallation of a shared archive.
43144 postuninstall_cmds=$lt_postuninstall_cmds
43146 # Commands used to finish a libtool library installation in a directory.
43147 finish_cmds=$lt_finish_cmds
43149 # As "finish_cmds", except a single script fragment to be evaled but
43151 finish_eval=$lt_finish_eval
43153 # Whether we should hardcode library paths into libraries.
43154 hardcode_into_libs=$hardcode_into_libs
43156 # Compile-time system search path for libraries.
43157 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43159 # Run-time system search path for libraries.
43160 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
43162 # Whether dlopen is supported.
43163 dlopen_support=$enable_dlopen
43165 # Whether dlopen of programs is supported.
43166 dlopen_self=$enable_dlopen_self
43168 # Whether dlopen of statically linked programs is supported.
43169 dlopen_self_static=$enable_dlopen_self_static
43171 # Commands to strip libraries.
43172 old_striplib=$lt_old_striplib
43173 striplib=$lt_striplib
43176 # The linker used to build libraries.
43179 # Commands used to build an old-style archive.
43180 old_archive_cmds=$lt_old_archive_cmds
43182 # A language specific compiler.
43185 # Is the compiler the GNU compiler?
43188 # Compiler flag to turn off builtin functions.
43189 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43191 # How to pass a linker flag through the compiler.
43192 wl=$lt_lt_prog_compiler_wl
43194 # Additional compiler flags for building library objects.
43195 pic_flag=$lt_lt_prog_compiler_pic
43197 # Compiler flag to prevent dynamic linking.
43198 link_static_flag=$lt_lt_prog_compiler_static
43200 # Does compiler simultaneously support -c and -o options?
43201 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43203 # Whether or not to add -lc for building shared libraries.
43204 build_libtool_need_lc=$archive_cmds_need_lc
43206 # Whether or not to disallow shared libs when runtime libs are static.
43207 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43209 # Compiler flag to allow reflexive dlopens.
43210 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43212 # Compiler flag to generate shared objects directly from archives.
43213 whole_archive_flag_spec=$lt_whole_archive_flag_spec
43215 # Whether the compiler copes with passing no objects directly.
43216 compiler_needs_object=$lt_compiler_needs_object
43218 # Create an old-style archive from a shared archive.
43219 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43221 # Create a temporary old-style archive to link instead of a shared archive.
43222 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43224 # Commands used to build a shared archive.
43225 archive_cmds=$lt_archive_cmds
43226 archive_expsym_cmds=$lt_archive_expsym_cmds
43228 # Commands used to build a loadable module if different from building
43229 # a shared archive.
43230 module_cmds=$lt_module_cmds
43231 module_expsym_cmds=$lt_module_expsym_cmds
43233 # Whether we are building with GNU ld or not.
43234 with_gnu_ld=$lt_with_gnu_ld
43236 # Flag that allows shared libraries with undefined symbols to be built.
43237 allow_undefined_flag=$lt_allow_undefined_flag
43239 # Flag that enforces no undefined symbols.
43240 no_undefined_flag=$lt_no_undefined_flag
43242 # Flag to hardcode \$libdir into a binary during linking.
43243 # This must work even if \$libdir does not exist
43244 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43246 # If ld is used when linking, flag to hardcode \$libdir into a binary
43247 # during linking. This must work even if \$libdir does not exist.
43248 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
43250 # Whether we need a single "-rpath" flag with a separated argument.
43251 hardcode_libdir_separator=$lt_hardcode_libdir_separator
43253 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43254 # DIR into the resulting binary.
43255 hardcode_direct=$hardcode_direct
43257 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
43258 # DIR into the resulting binary and the resulting library dependency is
43259 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
43260 # library is relocated.
43261 hardcode_direct_absolute=$hardcode_direct_absolute
43263 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43264 # into the resulting binary.
43265 hardcode_minus_L=$hardcode_minus_L
43267 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43268 # into the resulting binary.
43269 hardcode_shlibpath_var=$hardcode_shlibpath_var
43271 # Set to "yes" if building a shared library automatically hardcodes DIR
43272 # into the library and all subsequent libraries and executables linked
43274 hardcode_automatic=$hardcode_automatic
43276 # Set to yes if linker adds runtime paths of dependent libraries
43277 # to runtime path list.
43278 inherit_rpath=$inherit_rpath
43280 # Whether libtool must link a program against all its dependency libraries.
43281 link_all_deplibs=$link_all_deplibs
43283 # Fix the shell variable \$srcfile for the compiler.
43284 fix_srcfile_path=$lt_fix_srcfile_path
43286 # Set to "yes" if exported symbols are required.
43287 always_export_symbols=$always_export_symbols
43289 # The commands to list exported symbols.
43290 export_symbols_cmds=$lt_export_symbols_cmds
43292 # Symbols that should not be listed in the preloaded symbols.
43293 exclude_expsyms=$lt_exclude_expsyms
43295 # Symbols that must always be exported.
43296 include_expsyms=$lt_include_expsyms
43298 # Commands necessary for linking programs (against libraries) with templates.
43299 prelink_cmds=$lt_prelink_cmds
43301 # Specify filename containing input files.
43302 file_list_spec=$lt_file_list_spec
43304 # How to hardcode a shared library path into an executable.
43305 hardcode_action=$hardcode_action
43307 # ### END LIBTOOL CONFIG
43313 cat <<\_LT_EOF
>> "$cfgfile"
43314 # AIX sometimes has problems with the GCC collect2 program. For some
43315 # reason, if we set the COLLECT_NAMES environment variable, the problems
43316 # vanish in a puff of smoke.
43317 if test "X${COLLECT_NAMES+set}" != Xset
; then
43319 export COLLECT_NAMES
43326 ltmain
="$ac_aux_dir/ltmain.sh"
43329 # We use sed instead of cat because bash on DJGPP gets confused if
43330 # if finds mixed CR/LF and LF-only lines. Since sed operates in
43331 # text mode, it properly converts lines to CR/LF. This bash problem
43332 # is reportedly fixed, but why not run on old versions too?
43333 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
43334 ||
(rm -f "$cfgfile"; exit 1)
43338 cat << \_LT_EOF
>> "$cfgfile"
43340 # func_dirname file append nondir_replacement
43341 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
43342 # otherwise set result to NONDIR_REPLACEMENT.
43346 */*) func_dirname_result
="${1%/*}${2}" ;;
43347 * ) func_dirname_result
="${3}" ;;
43351 # func_basename file
43354 func_basename_result
="${1##*/}"
43357 # func_dirname_and_basename file append nondir_replacement
43358 # perform func_basename and func_dirname in a single function
43360 # dirname: Compute the dirname of FILE. If nonempty,
43361 # add APPEND to the result, otherwise set result
43362 # to NONDIR_REPLACEMENT.
43363 # value returned in "$func_dirname_result"
43364 # basename: Compute filename of FILE.
43365 # value retuned in "$func_basename_result"
43366 # Implementation must be kept synchronized with func_dirname
43367 # and func_basename. For efficiency, we do not delegate to
43368 # those functions but instead duplicate the functionality here.
43369 func_dirname_and_basename
()
43372 */*) func_dirname_result
="${1%/*}${2}" ;;
43373 * ) func_dirname_result
="${3}" ;;
43375 func_basename_result
="${1##*/}"
43378 # func_stripname prefix suffix name
43379 # strip PREFIX and SUFFIX off of NAME.
43380 # PREFIX and SUFFIX must not contain globbing or regex special
43381 # characters, hashes, percent signs, but SUFFIX may contain a leading
43382 # dot (in which case that matches only a dot).
43385 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
43386 # positional parameters, so assign one to ordinary parameter first.
43387 func_stripname_result
=${3}
43388 func_stripname_result
=${func_stripname_result#"${1}"}
43389 func_stripname_result
=${func_stripname_result%"${2}"}
43395 func_opt_split_opt
=${1%%=*}
43396 func_opt_split_arg
=${1#*=}
43403 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
43404 *) func_lo2o_result
=${1} ;;
43408 # func_xform libobj-or-source
43411 func_xform_result
=${1%.*}.lo
43414 # func_arith arithmetic-term...
43417 func_arith_result
=$
(( $
* ))
43421 # STRING may not start with a hyphen.
43424 func_len_result
=${#1}
43429 *) # Bourne compatible functions.
43430 cat << \_LT_EOF
>> "$cfgfile"
43432 # func_dirname file append nondir_replacement
43433 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
43434 # otherwise set result to NONDIR_REPLACEMENT.
43437 # Extract subdirectory from the argument.
43438 func_dirname_result
=`$ECHO "X${1}" | $Xsed -e "$dirname"`
43439 if test "X$func_dirname_result" = "X${1}"; then
43440 func_dirname_result
="${3}"
43442 func_dirname_result
="$func_dirname_result${2}"
43446 # func_basename file
43449 func_basename_result
=`$ECHO "X${1}" | $Xsed -e "$basename"`
43453 # func_stripname prefix suffix name
43454 # strip PREFIX and SUFFIX off of NAME.
43455 # PREFIX and SUFFIX must not contain globbing or regex special
43456 # characters, hashes, percent signs, but SUFFIX may contain a leading
43457 # dot (in which case that matches only a dot).
43458 # func_strip_suffix prefix name
43462 .
*) func_stripname_result
=`$ECHO "X${3}" \
43463 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
43464 *) func_stripname_result
=`$ECHO "X${3}" \
43465 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
43470 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
43471 my_sed_long_arg
='1s/^-[^=]*=//'
43476 func_opt_split_opt
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
43477 func_opt_split_arg
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
43483 func_lo2o_result
=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
43486 # func_xform libobj-or-source
43489 func_xform_result
=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
43492 # func_arith arithmetic-term...
43495 func_arith_result
=`expr "$@"`
43499 # STRING may not start with a hyphen.
43502 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
43508 case $lt_shell_append in
43510 cat << \_LT_EOF
>> "$cfgfile"
43512 # func_append var value
43513 # Append VALUE to the end of shell variable VAR.
43521 cat << \_LT_EOF
>> "$cfgfile"
43523 # func_append var value
43524 # Append VALUE to the end of shell variable VAR.
43535 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
43536 ||
(rm -f "$cfgfile"; exit 1)
43538 mv -f "$cfgfile" "$ofile" ||
43539 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43548 { (exit 0); exit 0; }
43550 chmod +x
$CONFIG_STATUS
43551 ac_clean_files
=$ac_clean_files_save
43553 test $ac_write_fail = 0 ||
43554 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
43555 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
43556 { (exit 1); exit 1; }; }
43559 # configure is writing to config.log, and then calls config.status.
43560 # config.status does its own redirection, appending to config.log.
43561 # Unfortunately, on DOS this fails, as config.log is still kept open
43562 # by configure, so config.status won't be able to write to it; its
43563 # output is simply discarded. So we exec the FD to /dev/null,
43564 # effectively closing config.log, so it can be properly (re)opened and
43565 # appended to by config.status. When coming back to configure, we
43566 # need to make the FD available again.
43567 if test "$no_create" != yes; then
43569 ac_config_status_args
=
43570 test "$silent" = yes &&
43571 ac_config_status_args
="$ac_config_status_args --quiet"
43573 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
43575 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43576 # would make configure fail if this is the last instruction.
43577 $ac_cs_success ||
{ (exit 1); exit 1; }
43579 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
43580 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
43581 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}