2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for zfs 0.7.5.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (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 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev
/null
; then :
213 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
218 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
221 test -z "$as_dir" && as_dir
=.
225 for as_base
in sh bash ksh sh5
; do
226 # Try only shells that exist, to save several forks.
227 as_shell
=$as_dir/$as_base
228 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
230 CONFIG_SHELL
=$as_shell as_have_required
=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
239 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
241 CONFIG_SHELL
=$SHELL as_have_required
=yes
246 if test "x$CONFIG_SHELL" != x
; then :
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
254 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
256 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 if test x
$as_have_required = xno
; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x
${ZSH_VERSION+set} = xset
; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
284 SHELL
=${CONFIG_SHELL-/bin/sh}
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE
= GREP_OPTIONS
=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
295 # Portably unset VAR.
298 { eval $1=; unset $1;}
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322 # Create "$as_dir" as a directory, including parents if necessary.
327 -*) as_dir
=.
/$as_dir;;
329 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
333 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336 as_dirs
="'$as_qdir' $as_dirs"
337 as_dir
=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360 test -d "$as_dir" && break
362 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
363 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p
()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
382 eval 'as_fn_append ()
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
406 as_val
=`expr "$@" || test $? -eq 1`
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
418 as_status
=$1; test $as_status -eq 0 && as_status
=1
420 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit
$as_status
427 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
434 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
446 as_me
=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
465 # Avoid depending upon Character Ranges.
466 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits
='0123456789'
470 as_cr_alnum
=$as_cr_Letters$as_cr_digits
473 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
474 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 chmod +x
"$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec
=no
; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
504 # Exit status is that of the last command.
508 ECHO_C
= ECHO_N
= ECHO_T
=
509 case `echo -n x` in #(((((
511 case `echo 'xy\c'` in
512 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
521 rm -f conf$$ conf$$.exe conf$$.
file
522 if test -d conf$$.dir
; then
523 rm -f conf$$.dir
/conf$$.
file
526 mkdir conf$$.dir
2>/dev
/null
528 if (echo >conf$$.
file) 2>/dev
/null
; then
529 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
537 elif ln conf$$.
file conf$$
2>/dev
/null
; then
545 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
546 rmdir conf$$.dir
2>/dev
/null
548 if mkdir
-p .
2>/dev
/null
; then
549 as_mkdir_p
='mkdir -p "$as_dir"'
551 test -d .
/-p && rmdir .
/-p
556 as_executable_p
=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL
=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
578 ac_default_prefix
=/usr
/local
580 ac_config_libobj_dir
=.
587 # Identity of this package.
589 PACKAGE_TARNAME
='zfs'
590 PACKAGE_VERSION
='0.7.5'
591 PACKAGE_STRING
='zfs 0.7.5'
595 # Factoring default headers for most tests.
596 ac_includes_default
="\
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
608 # ifdef HAVE_STDLIB_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
631 ac_subst_vars
='am__EXEEXT_FALSE
640 WANT_DEVNAME2DEVID_FALSE
641 WANT_DEVNAME2DEVID_TRUE
680 TARGET_ASM_GENERIC_FALSE
681 TARGET_ASM_GENERIC_TRUE
682 TARGET_ASM_I386_FALSE
684 TARGET_ASM_X86_64_FALSE
685 TARGET_ASM_X86_64_TRUE
688 NO_UNUSED_BUT_SET_VARIABLE
720 am__fastdepCCAS_FALSE
772 INSTALL_STRIP_PROGRAM
792 MAINTAINER_MODE_FALSE
846 program_transform_name
859 enable_option_checking
860 enable_maintainer_mode
862 enable_dependency_tracking
886 with_systemdpresetdir
887 with_systemdmodulesloaddir
893 ac_precious_vars
='build_alias
907 # Initialize some variables set by options.
909 ac_init_version
=false
910 ac_unrecognized_opts
=
912 # The variables have the same names as the options, with
913 # dashes changed to underlines.
921 program_transform_name
=s
,x
,x
,
929 # Installation directory options.
930 # These are left unexpanded so users can "make install exec_prefix=/foo"
931 # and all the variables that are supposed to be based on exec_prefix
932 # by default will actually change.
933 # Use braces instead of parens because sh, perl, etc. also accept them.
934 # (The list follows the same order as the GNU Coding Standards.)
935 bindir
='${exec_prefix}/bin'
936 sbindir
='${exec_prefix}/sbin'
937 libexecdir
='${exec_prefix}/libexec'
938 datarootdir
='${prefix}/share'
939 datadir
='${datarootdir}'
940 sysconfdir
='${prefix}/etc'
941 sharedstatedir
='${prefix}/com'
942 localstatedir
='${prefix}/var'
943 runstatedir
='${localstatedir}/run'
944 includedir
='${prefix}/include'
945 oldincludedir
='/usr/include'
946 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
947 infodir
='${datarootdir}/info'
952 libdir
='${exec_prefix}/lib'
953 localedir
='${datarootdir}/locale'
954 mandir
='${datarootdir}/man'
960 # If the previous option needs an argument, assign it.
961 if test -n "$ac_prev"; then
962 eval $ac_prev=\
$ac_option
968 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
973 # Accept the important Cygnus configure options, so we can diagnose typos.
975 case $ac_dashdash$ac_option in
979 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
981 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
984 -build |
--build |
--buil |
--bui |
--bu)
985 ac_prev
=build_alias
;;
986 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
987 build_alias
=$ac_optarg ;;
989 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
990 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
991 ac_prev
=cache_file
;;
992 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
993 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
994 cache_file
=$ac_optarg ;;
997 cache_file
=config.cache
;;
999 -datadir |
--datadir |
--datadi |
--datad)
1001 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1002 datadir
=$ac_optarg ;;
1004 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1005 |
--dataroo |
--dataro |
--datar)
1006 ac_prev
=datarootdir
;;
1007 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1008 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1009 datarootdir
=$ac_optarg ;;
1011 -disable-* |
--disable-*)
1012 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1015 as_fn_error $?
"invalid feature name: $ac_useropt"
1016 ac_useropt_orig
=$ac_useropt
1017 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1020 "enable_
$ac_useropt"
1022 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1023 ac_unrecognized_sep
=', ';;
1025 eval enable_
$ac_useropt=no
;;
1027 -docdir |
--docdir |
--docdi |
--doc |
--do)
1029 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1030 docdir
=$ac_optarg ;;
1032 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1034 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1035 dvidir
=$ac_optarg ;;
1037 -enable-* |
--enable-*)
1038 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1041 as_fn_error $?
"invalid feature name: $ac_useropt"
1042 ac_useropt_orig
=$ac_useropt
1043 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1044 case $ac_user_opts in
1046 "enable_
$ac_useropt"
1048 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1049 ac_unrecognized_sep
=', ';;
1051 eval enable_
$ac_useropt=\
$ac_optarg ;;
1053 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1054 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1055 |
--exec |
--exe |
--ex)
1056 ac_prev
=exec_prefix
;;
1057 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1058 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1059 |
--exec=* |
--exe=* |
--ex=*)
1060 exec_prefix
=$ac_optarg ;;
1062 -gas |
--gas |
--ga |
--g)
1063 # Obsolete; use --with-gas.
1066 -help |
--help |
--hel |
--he |
-h)
1067 ac_init_help
=long
;;
1068 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1069 ac_init_help
=recursive
;;
1070 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1071 ac_init_help
=short
;;
1073 -host |
--host |
--hos |
--ho)
1074 ac_prev
=host_alias
;;
1075 -host=* |
--host=* |
--hos=* |
--ho=*)
1076 host_alias
=$ac_optarg ;;
1078 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1080 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1082 htmldir
=$ac_optarg ;;
1084 -includedir |
--includedir |
--includedi |
--included |
--include \
1085 |
--includ |
--inclu |
--incl |
--inc)
1086 ac_prev
=includedir
;;
1087 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1088 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1089 includedir
=$ac_optarg ;;
1091 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1093 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1094 infodir
=$ac_optarg ;;
1096 -libdir |
--libdir |
--libdi |
--libd)
1098 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1099 libdir
=$ac_optarg ;;
1101 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1102 |
--libexe |
--libex |
--libe)
1103 ac_prev
=libexecdir
;;
1104 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1105 |
--libexe=* |
--libex=* |
--libe=*)
1106 libexecdir
=$ac_optarg ;;
1108 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1109 ac_prev
=localedir
;;
1110 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1111 localedir
=$ac_optarg ;;
1113 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1114 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1115 ac_prev
=localstatedir
;;
1116 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1117 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1118 localstatedir
=$ac_optarg ;;
1120 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1122 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1123 mandir
=$ac_optarg ;;
1125 -nfp |
--nfp |
--nf)
1126 # Obsolete; use --without-fp.
1129 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1130 |
--no-cr |
--no-c |
-n)
1133 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1134 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1137 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1138 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1139 |
--oldin |
--oldi |
--old |
--ol |
--o)
1140 ac_prev
=oldincludedir
;;
1141 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1142 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1143 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1144 oldincludedir
=$ac_optarg ;;
1146 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1148 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1149 prefix
=$ac_optarg ;;
1151 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1152 |
--program-pre |
--program-pr |
--program-p)
1153 ac_prev
=program_prefix
;;
1154 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1155 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1156 program_prefix
=$ac_optarg ;;
1158 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1159 |
--program-suf |
--program-su |
--program-s)
1160 ac_prev
=program_suffix
;;
1161 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1162 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1163 program_suffix
=$ac_optarg ;;
1165 -program-transform-name |
--program-transform-name \
1166 |
--program-transform-nam |
--program-transform-na \
1167 |
--program-transform-n |
--program-transform- \
1168 |
--program-transform |
--program-transfor \
1169 |
--program-transfo |
--program-transf \
1170 |
--program-trans |
--program-tran \
1171 |
--progr-tra |
--program-tr |
--program-t)
1172 ac_prev
=program_transform_name
;;
1173 -program-transform-name=* |
--program-transform-name=* \
1174 |
--program-transform-nam=* |
--program-transform-na=* \
1175 |
--program-transform-n=* |
--program-transform-=* \
1176 |
--program-transform=* |
--program-transfor=* \
1177 |
--program-transfo=* |
--program-transf=* \
1178 |
--program-trans=* |
--program-tran=* \
1179 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1180 program_transform_name
=$ac_optarg ;;
1182 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1184 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1185 pdfdir
=$ac_optarg ;;
1187 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1189 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1192 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1193 |
-silent |
--silent |
--silen |
--sile |
--sil)
1196 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1197 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1198 |
--run |
--ru |
--r)
1199 ac_prev
=runstatedir
;;
1200 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1201 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1202 |
--run=* |
--ru=* |
--r=*)
1203 runstatedir
=$ac_optarg ;;
1205 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1207 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1209 sbindir
=$ac_optarg ;;
1211 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1212 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1213 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1215 ac_prev
=sharedstatedir
;;
1216 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1217 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1218 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1220 sharedstatedir
=$ac_optarg ;;
1222 -site |
--site |
--sit)
1224 -site=* |
--site=* |
--sit=*)
1227 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1229 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1230 srcdir
=$ac_optarg ;;
1232 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1233 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1234 ac_prev
=sysconfdir
;;
1235 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1236 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1237 sysconfdir
=$ac_optarg ;;
1239 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1240 ac_prev
=target_alias
;;
1241 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1242 target_alias
=$ac_optarg ;;
1244 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1247 -version |
--version |
--versio |
--versi |
--vers |
-V)
1248 ac_init_version
=: ;;
1251 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1254 as_fn_error $?
"invalid package name: $ac_useropt"
1255 ac_useropt_orig
=$ac_useropt
1256 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257 case $ac_user_opts in
1261 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1262 ac_unrecognized_sep
=', ';;
1264 eval with_
$ac_useropt=\
$ac_optarg ;;
1266 -without-* |
--without-*)
1267 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1268 # Reject names that are not valid shell variable names.
1269 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1270 as_fn_error $?
"invalid package name: $ac_useropt"
1271 ac_useropt_orig
=$ac_useropt
1272 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1273 case $ac_user_opts in
1277 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1278 ac_unrecognized_sep
=', ';;
1280 eval with_
$ac_useropt=no
;;
1283 # Obsolete; use --with-x.
1286 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1287 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1288 ac_prev
=x_includes
;;
1289 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1290 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1291 x_includes
=$ac_optarg ;;
1293 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1294 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1295 ac_prev
=x_libraries
;;
1296 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1297 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1298 x_libraries
=$ac_optarg ;;
1300 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1301 Try \`$0 --help' for more information"
1305 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1306 # Reject names that are not valid shell variable names.
1307 case $ac_envvar in #(
1308 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1309 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1311 eval $ac_envvar=\
$ac_optarg
1312 export $ac_envvar ;;
1315 # FIXME: should be removed in autoconf 3.0.
1316 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1317 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1318 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1319 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1325 if test -n "$ac_prev"; then
1326 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1327 as_fn_error $?
"missing argument to $ac_option"
1330 if test -n "$ac_unrecognized_opts"; then
1331 case $enable_option_checking in
1333 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1334 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1338 # Check all directory arguments for consistency.
1339 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1340 datadir sysconfdir sharedstatedir localstatedir includedir \
1341 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1342 libdir localedir mandir runstatedir
1344 eval ac_val
=\$
$ac_var
1345 # Remove trailing slashes.
1348 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1349 eval $ac_var=\
$ac_val;;
1351 # Be sure to have absolute directory names.
1353 [\\/$
]* | ?
:[\\/]* ) continue;;
1354 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1356 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1359 # There might be people who depend on the old broken behavior: `$host'
1360 # used to hold the argument of --host etc.
1361 # FIXME: To remove some day.
1364 target
=$target_alias
1366 # FIXME: To remove some day.
1367 if test "x$host_alias" != x
; then
1368 if test "x$build_alias" = x
; then
1369 cross_compiling
=maybe
1370 elif test "x$build_alias" != "x$host_alias"; then
1376 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1378 test "$silent" = yes && exec 6>/dev
/null
1381 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1382 ac_ls_di
=`ls -di .` &&
1383 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1384 as_fn_error $?
"working directory cannot be determined"
1385 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1386 as_fn_error $?
"pwd does not report name of working directory"
1389 # Find the source files, if location was not specified.
1390 if test -z "$srcdir"; then
1391 ac_srcdir_defaulted
=yes
1392 # Try the directory containing this script, then the parent directory.
1393 ac_confdir
=`$as_dirname -- "$as_myself" ||
1394 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1395 X"$as_myself" : 'X\(//\)[^/]' \| \
1396 X"$as_myself" : 'X\(//\)$' \| \
1397 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1398 $as_echo X"$as_myself" |
1399 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1417 if test ! -r "$srcdir/$ac_unique_file"; then
1421 ac_srcdir_defaulted
=no
1423 if test ! -r "$srcdir/$ac_unique_file"; then
1424 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1425 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1427 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1429 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1431 # When building in place, set srcdir=.
1432 if test "$ac_abs_confdir" = "$ac_pwd"; then
1435 # Remove unnecessary trailing slashes from srcdir.
1436 # Double slashes in file names in object file debugging info
1437 # mess up M-x gdb in Emacs.
1439 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1441 for ac_var
in $ac_precious_vars; do
1442 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1443 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1444 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1445 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1449 # Report the --help message.
1451 if test "$ac_init_help" = "long"; then
1452 # Omit some internal or obsolete options to make the list less imposing.
1453 # This message is too long to be a string in the A/UX 3.1 sh.
1455 \`configure' configures zfs 0.7.5 to adapt to many kinds of systems.
1457 Usage: $0 [OPTION]... [VAR=VALUE]...
1459 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1460 VAR=VALUE. See below for descriptions of some of the useful variables.
1462 Defaults for the options are specified in brackets.
1465 -h, --help display this help and exit
1466 --help=short display options specific to this package
1467 --help=recursive display the short help of all the included packages
1468 -V, --version display version information and exit
1469 -q, --quiet, --silent do not print \`checking ...' messages
1470 --cache-file=FILE cache test results in FILE [disabled]
1471 -C, --config-cache alias for \`--cache-file=config.cache'
1472 -n, --no-create do not create output files
1473 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1475 Installation directories:
1476 --prefix=PREFIX install architecture-independent files in PREFIX
1477 [$ac_default_prefix]
1478 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1481 By default, \`make install' will install all the files in
1482 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1483 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1484 for instance \`--prefix=\$HOME'.
1486 For better control, use the options below.
1488 Fine tuning of the installation directories:
1489 --bindir=DIR user executables [EPREFIX/bin]
1490 --sbindir=DIR system admin executables [EPREFIX/sbin]
1491 --libexecdir=DIR program executables [EPREFIX/libexec]
1492 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1493 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1494 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1495 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1496 --libdir=DIR object code libraries [EPREFIX/lib]
1497 --includedir=DIR C header files [PREFIX/include]
1498 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1499 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1500 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1501 --infodir=DIR info documentation [DATAROOTDIR/info]
1502 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1503 --mandir=DIR man documentation [DATAROOTDIR/man]
1504 --docdir=DIR documentation root [DATAROOTDIR/doc/zfs]
1505 --htmldir=DIR html documentation [DOCDIR]
1506 --dvidir=DIR dvi documentation [DOCDIR]
1507 --pdfdir=DIR pdf documentation [DOCDIR]
1508 --psdir=DIR ps documentation [DOCDIR]
1514 --program-prefix=PREFIX prepend PREFIX to installed program names
1515 --program-suffix=SUFFIX append SUFFIX to installed program names
1516 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1519 --build=BUILD configure
for building on BUILD
[guessed
]
1520 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1521 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1525 if test -n "$ac_init_help"; then
1526 case $ac_init_help in
1527 short | recursive
) echo "Configuration of zfs 0.7.5:";;
1532 --disable-option-checking ignore unrecognized
--enable/--with options
1533 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1534 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1535 --enable-maintainer-mode
1536 enable make rules and dependencies not useful
(and
1537 sometimes confusing
) to the casual installer
1538 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1539 --disable-silent-rules verbose build output
(undo
: "make V=0")
1540 --enable-dependency-tracking
1541 do not reject slow dependency extractors
1542 --disable-dependency-tracking
1543 speeds up one-time build
1544 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1545 --enable-static[=PKGS
] build static libraries
[default
=yes]
1546 --enable-fast-install[=PKGS
]
1547 optimize
for fast installation
[default
=yes]
1548 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1549 --enable-linux-builtin Configure
for builtin in-tree kernel modules
1551 --enable-systemd install systemd unit
/preset files
[[default
: yes]]
1552 --enable-sysvinit install SysV init scripts
[default
: yes]
1553 --enable-debug Enable generic debug support
[default
=no
]
1556 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1557 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1558 --with-pic[=PKGS
] try to use only PIC
/non-PIC objects
[default
=use
1560 --with-aix-soname=aix|svr4|both
1561 shared library versioning
(aka
"SONAME") variant to
1562 provide on AIX
, [default
=aix
].
1563 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1564 --with-sysroot[=DIR
] Search
for dependent libraries within DIR
(or the
1565 compiler
's sysroot if not specified).
1566 --with-spec=SPEC Spec files 'generic|redhat
'
1567 --with-config=CONFIG Config file 'kernel|user|all|srpm
'
1568 --with-linux=PATH Path to kernel source
1569 --with-linux-obj=PATH Path to kernel build objects
1570 --with-spl=PATH Path to spl source
1571 --with-spl-obj=PATH Path to spl build objects
1572 --with-spl-timeout=SECS Wait SECS for SPL header and symver file [default=0]
1573 --with-qat=PATH Path to qat source
1574 --with-qat-obj=PATH Path to qat build objects
1575 --with-mounthelperdir=DIR
1576 install mount.zfs in dir [[/sbin]]
1577 --with-udevdir=DIR install udev helpers [default=check]
1578 --with-udevruledir=DIR install udev rules [[UDEVDIR/rules.d]]
1579 --with-systemdunitdir=DIR
1580 install systemd unit files in dir
1581 [[/usr/lib/systemd/system]]
1582 --with-systemdpresetdir=DIR
1583 install systemd preset files in dir
1584 [[/usr/lib/systemd/system-preset]]
1585 --with-systemdmodulesloaddir=DIR
1586 install systemd module load files into dir
1587 [[/usr/lib/modules-load.d]]
1588 --with-dracutdir=DIR install dracut helpers [default=check]
1589 --with-tirpc use tirpc for xdr encoding [default=check]
1591 Some influential environment variables:
1592 CC C compiler command
1593 CFLAGS C compiler flags
1594 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1595 nonstandard directory <lib dir>
1596 LIBS libraries to pass to the linker, e.g. -l<library>
1597 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1598 you have headers in a nonstandard directory <include dir>
1600 User-defined run-time library search path.
1602 CCAS assembler compiler command (defaults to CC)
1603 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1605 Use these variables to override the choices made by `configure' or to
help
1606 it to
find libraries and programs with nonstandard names
/locations.
1608 Report bugs to the package provider.
1613 if test "$ac_init_help" = "recursive"; then
1614 # If there are subdirs, report their specific --help.
1615 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1616 test -d "$ac_dir" ||
1617 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1622 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1624 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1625 # A ".." for each directory in $ac_dir_suffix.
1626 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1627 case $ac_top_builddir_sub in
1628 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1629 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1632 ac_abs_top_builddir
=$ac_pwd
1633 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1634 # for backward compatibility:
1635 ac_top_builddir
=$ac_top_build_prefix
1638 .
) # We are building in place.
1640 ac_top_srcdir
=$ac_top_builddir_sub
1641 ac_abs_top_srcdir
=$ac_pwd ;;
1642 [\\/]* | ?
:[\\/]* ) # Absolute name.
1643 ac_srcdir
=$srcdir$ac_dir_suffix;
1644 ac_top_srcdir
=$srcdir
1645 ac_abs_top_srcdir
=$srcdir ;;
1647 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1648 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1649 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1651 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1653 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1654 # Check for guested configure.
1655 if test -f "$ac_srcdir/configure.gnu"; then
1657 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1658 elif test -f "$ac_srcdir/configure"; then
1660 $SHELL "$ac_srcdir/configure" --help=recursive
1662 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1664 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1668 test -n "$ac_init_help" && exit $ac_status
1669 if $ac_init_version; then
1672 generated by GNU Autoconf
2.69
1674 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1675 This configure
script is free software
; the Free Software Foundation
1676 gives unlimited permission to copy
, distribute and modify it.
1681 ## ------------------------ ##
1682 ## Autoconf initialization. ##
1683 ## ------------------------ ##
1685 # ac_fn_c_try_compile LINENO
1686 # --------------------------
1687 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1688 ac_fn_c_try_compile
()
1690 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1691 rm -f conftest.
$ac_objext
1692 if { { ac_try
="$ac_compile"
1694 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_compile") 2>conftest.err
1701 if test -s conftest.err; then
1702 grep -v '^ *+' conftest.err >conftest.er1
1703 cat conftest.er1 >&5
1704 mv -f conftest.er1 conftest.err
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } && {
1708 test -z "$ac_c_werror_flag" ||
1709 test ! -s conftest.err
1710 } && test -s conftest.$ac_objext; then :
1713 $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1719 as_fn_set_status $ac_retval
1721 } # ac_fn_c_try_compile
1723 # ac_fn_c_try_link LINENO
1724 # -----------------------
1725 # Try to link conftest.$ac_ext, and return whether this succeeded.
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 rm -f conftest.$ac_objext conftest$ac_exeext
1730 if { { ac_try="$ac_link"
1732 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1733 *) ac_try_echo
=$ac_try;;
1735 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_link") 2>conftest.err
1739 if test -s conftest.err
; then
1740 grep -v '^ *+' conftest.err
>conftest.er1
1741 cat conftest.er1
>&5
1742 mv -f conftest.er1 conftest.err
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } && {
1746 test -z "$ac_c_werror_flag" ||
1747 test ! -s conftest.err
1748 } && test -s conftest
$ac_exeext && {
1749 test "$cross_compiling" = yes ||
1750 test -x conftest
$ac_exeext
1754 $as_echo "$as_me: failed program was:" >&5
1755 sed 's/^/| /' conftest.
$ac_ext >&5
1759 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1760 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1761 # interfere with the next link command; also delete a directory that is
1762 # left behind by Apple's compiler. We do this before executing the actions.
1763 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765 as_fn_set_status
$ac_retval
1767 } # ac_fn_c_try_link
1769 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1770 # -------------------------------------------------------
1771 # Tests whether HEADER exists and can be compiled using the include files in
1772 # INCLUDES, setting the cache variable VAR accordingly.
1773 ac_fn_c_check_header_compile
()
1775 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1777 $as_echo_n "checking for $2... " >&6; }
1778 if eval \
${$3+:} false
; then :
1779 $as_echo_n "(cached) " >&6
1781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h. */
1786 if ac_fn_c_try_compile
"$LINENO"; then :
1791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1795 $as_echo "$ac_res" >&6; }
1796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1798 } # ac_fn_c_check_header_compile
1800 # ac_fn_c_try_cpp LINENO
1801 # ----------------------
1802 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1805 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1806 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1808 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1815 if test -s conftest.err; then
1816 grep -v '^ *+' conftest.err >conftest.er1
1817 cat conftest.er1 >&5
1818 mv -f conftest.er1 conftest.err
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } > conftest.i && {
1822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1823 test ! -s conftest.err
1827 $as_echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833 as_fn_set_status $ac_retval
1837 # ac_fn_c_try_run LINENO
1838 # ----------------------
1839 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1840 # that executables *can* be run.
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 if { { ac_try="$ac_link"
1846 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1847 *) ac_try_echo
=$ac_try;;
1849 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_link") 2>&5
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1855 { { case "(($ac_try" in
1856 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_try") 2>&5
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; }; }; then :
1867 $as_echo "$as_me: program exited with status $ac_status" >&5
1868 $as_echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1871 ac_retval=$ac_status
1873 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 as_fn_set_status $ac_retval
1879 # ac_fn_c_check_func LINENO FUNC VAR
1880 # ----------------------------------
1881 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1882 ac_fn_c_check_func ()
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886 $as_echo_n "checking for $2... " >&6; }
1887 if eval \${$3+:} false; then :
1888 $as_echo_n "(cached) " >&6
1890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1891 /* end confdefs.h. */
1892 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1894 #define $2 innocuous_$2
1896 /* System header to define __stub macros and hopefully few prototypes,
1897 which can conflict with char $2 (); below.
1898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1899 <limits.h> exists even on freestanding compilers. */
1902 # include <limits.h>
1904 # include <assert.h>
1909 /* Override any GCC internal prototype to avoid an error.
1910 Use char because int might match the return type of a GCC
1911 builtin and then its argument prototype would still apply. */
1916 /* The GNU C library defines this for functions which it implements
1917 to always fail with ENOSYS. Some functions are actually named
1918 something starting with __ and the normal name is an alias. */
1919 #if defined __stub_$2 || defined __stub___$2
1931 if ac_fn_c_try_link "$LINENO"; then :
1936 rm -f core conftest.err conftest.$ac_objext \
1937 conftest$ac_exeext conftest.$ac_ext
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944 } # ac_fn_c_check_func
1946 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1947 # -------------------------------------------------------
1948 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1949 # the include files in INCLUDES and setting the cache variable VAR
1951 ac_fn_c_check_header_mongrel ()
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 if eval \${$3+:} false; then :
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1956 $as_echo_n "checking for $2... " >&6; }
1957 if eval \${$3+:} false; then :
1958 $as_echo_n "(cached) " >&6
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1962 $as_echo "$ac_res" >&6; }
1964 # Is the header compilable?
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1966 $as_echo_n "checking $2 usability... " >&6; }
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h. */
1972 if ac_fn_c_try_compile "$LINENO"; then :
1973 ac_header_compiler=yes
1975 ac_header_compiler=no
1977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1979 $as_echo "$ac_header_compiler" >&6; }
1981 # Is the header present?
1982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1983 $as_echo_n "checking $2 presence... " >&6; }
1984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985 /* end confdefs.h. */
1988 if ac_fn_c_try_cpp "$LINENO"; then :
1989 ac_header_preproc=yes
1991 ac_header_preproc=no
1993 rm -f conftest.err conftest.i conftest.$ac_ext
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1995 $as_echo "$ac_header_preproc" >&6; }
1997 # So? What about this header?
1998 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2001 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2003 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2007 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2009 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2011 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2013 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2015 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2019 $as_echo_n "checking for $2... " >&6; }
2020 if eval \${$3+:} false; then :
2021 $as_echo_n "(cached) " >&6
2023 eval "$3=\$ac_header_compiler"
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2027 $as_echo "$ac_res" >&6; }
2029 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2031 } # ac_fn_c_check_header_mongrel
2032 cat >config.log <<_ACEOF
2033 This file contains any messages produced by compilers while
2034 running configure, to aid debugging if configure makes a mistake.
2036 It was created by zfs $as_me 0.7.5, which was
2037 generated by GNU Autoconf 2.69. Invocation command line was
2049 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2050 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2051 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2052 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2053 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2055 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2056 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2058 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2059 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2060 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2061 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2062 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2063 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2064 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2072 test -z "$as_dir" && as_dir=.
2073 $as_echo "PATH: $as_dir"
2089 # Keep a trace of the command line.
2090 # Strip out --no-create and --no-recursion so they do not pile up.
2091 # Strip out --silent because we don't want to record it for future runs.
2092 # Also quote any args containing shell meta-characters.
2093 # Make two passes to allow for proper duplicate-argument suppression.
2097 ac_must_keep_next=false
2103 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2104 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2105 | -silent | --silent | --silen | --sile | --sil)
2108 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2111 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2113 as_fn_append ac_configure_args1 " '$ac_arg'"
2114 if test $ac_must_keep_next = true; then
2115 ac_must_keep_next=false # Got value, back to normal.
2118 *=* | --config-cache | -C | -disable-* | --disable-* \
2119 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2120 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2121 | -with-* | --with-* | -without-* | --without-* | --x)
2122 case "$ac_configure_args0 " in
2123 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2126 -* ) ac_must_keep_next=true ;;
2129 as_fn_append ac_configure_args " '$ac_arg'"
2134 { ac_configure_args0=; unset ac_configure_args0;}
2135 { ac_configure_args1=; unset ac_configure_args1;}
2137 # When interrupted or exit'd, cleanup temporary files, and complete
2138 # config.log. We remove comments because anyway the quotes in there
2139 # would cause problems or look ugly.
2140 # WARNING: Use '\'' to represent an apostrophe within the trap.
2141 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2142 trap 'exit_status=$?
2143 # Save into config.log some information that might help in debugging.
2147 $as_echo "## ---------------- ##
2148 ## Cache variables. ##
2149 ## ---------------- ##"
2151 # The following way of writing the cache mishandles newlines in values,
2153 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2154 eval ac_val=\$$ac_var
2158 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2159 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2162 _ | IFS | as_nl) ;; #(
2163 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2164 *) { eval $ac_var=; unset $ac_var;} ;;
2169 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2170 *${as_nl}ac_space=\ *)
2172 "s/'\''/'\''\\\\'\'''\''/g;
2173 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2176 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2183 $as_echo "## ----------------- ##
2184 ## Output variables. ##
2185 ## ----------------- ##"
2187 for ac_var in $ac_subst_vars
2189 eval ac_val=\$$ac_var
2191 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2193 $as_echo "$ac_var='\''$ac_val'\''"
2197 if test -n "$ac_subst_files"; then
2198 $as_echo "## ------------------- ##
2199 ## File substitutions. ##
2200 ## ------------------- ##"
2202 for ac_var in $ac_subst_files
2204 eval ac_val=\$$ac_var
2206 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2208 $as_echo "$ac_var='\''$ac_val'\''"
2213 if test -s confdefs.h; then
2214 $as_echo "## ----------- ##
2221 test "$ac_signal" != 0 &&
2222 $as_echo "$as_me: caught signal $ac_signal"
2223 $as_echo "$as_me: exit $exit_status"
2225 rm -f core *.core core.conftest.* &&
2226 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2229 for ac_signal in 1 2 13 15; do
2230 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2234 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2235 rm -f -r conftest* confdefs.h
2237 $as_echo "/* confdefs.h */" > confdefs.h
2239 # Predefined preprocessor variables.
2241 cat >>confdefs.h <<_ACEOF
2242 #define PACKAGE_NAME "$PACKAGE_NAME"
2245 cat >>confdefs.h <<_ACEOF
2246 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2249 cat >>confdefs.h <<_ACEOF
2250 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2253 cat >>confdefs.h <<_ACEOF
2254 #define PACKAGE_STRING "$PACKAGE_STRING"
2257 cat >>confdefs.h <<_ACEOF
2258 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2261 cat >>confdefs.h <<_ACEOF
2262 #define PACKAGE_URL "$PACKAGE_URL"
2266 # Let the site file select an alternate cache file if it wants to.
2267 # Prefer an explicitly selected file to automatically selected ones.
2270 if test -n "$CONFIG_SITE"; then
2271 # We do not want a PATH search for config.site.
2272 case $CONFIG_SITE in #((
2273 -*) ac_site_file1=./$CONFIG_SITE;;
2274 */*) ac_site_file1=$CONFIG_SITE;;
2275 *) ac_site_file1=./$CONFIG_SITE;;
2277 elif test "x$prefix" != xNONE; then
2278 ac_site_file1=$prefix/share/config.site
2279 ac_site_file2=$prefix/etc/config.site
2281 ac_site_file1=$ac_default_prefix/share/config.site
2282 ac_site_file2=$ac_default_prefix/etc/config.site
2284 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2286 test "x$ac_site_file" = xNONE && continue
2287 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2289 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2290 sed 's/^/| /' "$ac_site_file" >&5
2292 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2293 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2294 as_fn_error $? "failed to load site
script $ac_site_file
2295 See \
`config.log' for more details" "$LINENO" 5; }
2299 if test -r "$cache_file"; then
2300 # Some versions of bash will fail to source /dev/null (special files
2301 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2302 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2304 $as_echo "$as_me: loading cache $cache_file" >&6;}
2306 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2307 *) . "./$cache_file";;
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2312 $as_echo "$as_me: creating cache $cache_file" >&6;}
2316 # Check that the precious variables saved in the cache have kept the same
2318 ac_cache_corrupted=false
2319 for ac_var in $ac_precious_vars; do
2320 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2321 eval ac_new_set=\$ac_env_${ac_var}_set
2322 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2323 eval ac_new_val=\$ac_env_${ac_var}_value
2324 case $ac_old_set,$ac_new_set in
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2327 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2328 ac_cache_corrupted=: ;;
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2331 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2332 ac_cache_corrupted=: ;;
2335 if test "x$ac_old_val" != "x$ac_new_val"; then
2336 # differences in whitespace do not lead to failure.
2337 ac_old_val_w=`echo x
$ac_old_val`
2338 ac_new_val_w=`echo x
$ac_new_val`
2339 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2341 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2342 ac_cache_corrupted=:
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2345 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2346 eval $ac_var=\$ac_old_val
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2349 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2350 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2351 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2354 # Pass precious variables to config.status.
2355 if test "$ac_new_set" = set; then
2357 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2358 *) ac_arg=$ac_var=$ac_new_val ;;
2360 case " $ac_configure_args " in
2361 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2362 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2366 if $ac_cache_corrupted; then
2367 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2370 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2371 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2373 ## -------------------- ##
2374 ## Main body of script. ##
2375 ## -------------------- ##
2378 ac_cpp='$CPP $CPPFLAGS'
2379 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2380 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2381 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2385 ac_cpp='$CPP $CPPFLAGS'
2386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2394 for ac_prog in gawk mawk nawk awk
2396 # Extract the first word of "$ac_prog", so it can be a program name with args.
2397 set dummy $ac_prog; ac_word=$2
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2399 $as_echo_n "checking for $ac_word... " >&6; }
2400 if ${ac_cv_prog_AWK+:} false; then :
2401 $as_echo_n "(cached) " >&6
2403 if test -n "$AWK"; then
2404 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 test -z "$as_dir" && as_dir=.
2411 for ac_exec_ext in '' $ac_executable_extensions; do
2412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2413 ac_cv_prog_AWK="$ac_prog"
2414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2424 if test -n "$AWK"; then
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2426 $as_echo "$AWK" >&6; }
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2429 $as_echo "no" >&6; }
2433 test -n "$AWK" && break
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking metadata" >&5
2437 $as_echo_n "checking metadata... " >&6; }
2440 _zfs_ac_meta_type="none"
2441 if test -f "$META"; then
2442 _zfs_ac_meta_type="META file"
2443 _dpkg_parsechangelog=$(dpkg-parsechangelog 2>/dev/null)
2445 ZFS_META_NAME=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`;
2446 if test -n "$ZFS_META_NAME"; then
2448 cat >>confdefs.h <<_ACEOF
2449 #define ZFS_META_NAME "$ZFS_META_NAME"
2455 ZFS_META_VERSION=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`;
2456 if test -n "$ZFS_META_VERSION"; then
2458 cat >>confdefs.h <<_ACEOF
2459 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2465 if test -n "${_dpkg_parsechangelog}"; then
2466 _dpkg_version=$(echo "${_dpkg_parsechangelog}" \
2467 | $AWK '$1 == "Version:" { print $2; }' \
2469 if test "${_dpkg_version}" != "$ZFS_META_VERSION"; then
2471 *** Version $ZFS_META_VERSION in the META file is different than
2472 *** version $_dpkg_version in the debian/changelog file. DKMS and DEB
2473 *** packaging require that these files have the same version.
2478 ZFS_META_RELEASE=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`;
2480 if test -n "${_dpkg_parsechangelog}"; then
2481 _dpkg_release=$(echo "${_dpkg_parsechangelog}" \
2482 | $AWK '$1 == "Version:" { print $2; }' \
2484 if test -n "${_dpkg_release}"; then
2485 ZFS_META_RELEASE=${_dpkg_release}
2486 _zfs_ac_meta_type="dpkg-parsechangelog"
2488 elif test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then
2489 _match="${ZFS_META_NAME}-${ZFS_META_VERSION}"
2490 _alias=$(git describe --match=${_match} 2>/dev/null)
2491 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2492 if test -n "${_release}"; then
2493 ZFS_META_RELEASE=${_release}
2494 _zfs_ac_meta_type="git describe"
2496 _match="${ZFS_META_NAME}-${ZFS_META_VERSION}-${ZFS_META_RELEASE}"
2497 _alias=$(git describe --match=${_match} 2>/dev/null)
2498 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2499 if test -n "${_release}"; then
2500 ZFS_META_RELEASE=${_release}
2501 _zfs_ac_meta_type="git describe"
2506 if test -n "$ZFS_META_RELEASE"; then
2508 cat >>confdefs.h <<_ACEOF
2509 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2514 RELEASE="$ZFS_META_RELEASE"
2518 ZFS_META_LICENSE=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`;
2519 if test -n "$ZFS_META_LICENSE"; then
2521 cat >>confdefs.h <<_ACEOF
2522 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2528 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2529 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2530 test -n "$ZFS_META_RELEASE" &&
2531 ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2533 cat >>confdefs.h <<_ACEOF
2534 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2540 ZFS_META_DATA=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`;
2541 if test -n "$ZFS_META_DATA"; then
2543 cat >>confdefs.h <<_ACEOF
2544 #define ZFS_META_DATA "$ZFS_META_DATA"
2550 ZFS_META_AUTHOR=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`;
2551 if test -n "$ZFS_META_AUTHOR"; then
2553 cat >>confdefs.h <<_ACEOF
2554 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2561 ZFS_META_LT_CURRENT=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`;
2562 ZFS_META_LT_REVISION=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`;
2563 ZFS_META_LT_AGE=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`;
2564 if test -n "$ZFS_META_LT_CURRENT" \
2565 -o -n "$ZFS_META_LT_REVISION" \
2566 -o -n "$ZFS_META_LT_AGE"; then
2567 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2568 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2569 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2571 cat >>confdefs.h <<_ACEOF
2572 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2576 cat >>confdefs.h <<_ACEOF
2577 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2581 cat >>confdefs.h <<_ACEOF
2582 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_zfs_ac_meta_type" >&5
2592 $as_echo "$_zfs_ac_meta_type" >&6; }
2596 for ac_dir in config "$srcdir"/config; do
2597 if test -f "$ac_dir/install-sh"; then
2599 ac_install_sh="$ac_aux_dir/install-sh -c"
2601 elif test -f "$ac_dir/install.sh"; then
2603 ac_install_sh="$ac_aux_dir/install.sh -c"
2605 elif test -f "$ac_dir/shtool"; then
2607 ac_install_sh="$ac_aux_dir/shtool install -c"
2611 if test -z "$ac_aux_dir"; then
2612 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2615 # These three variables are undocumented and unsupported,
2616 # and are intended to be withdrawn in a future Autoconf release.
2617 # They can cause serious problems if a builder's source tree is in a directory
2618 # whose full name contains unusual characters.
2619 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2620 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2621 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2625 # Make sure we can run config.sub.
2626 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2627 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2630 $as_echo_n "checking build system type... " >&6; }
2631 if ${ac_cv_build+:} false; then :
2632 $as_echo_n "(cached) " >&6
2634 ac_build_alias=$build_alias
2635 test "x$ac_build_alias" = x &&
2636 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2637 test "x$ac_build_alias" = x &&
2638 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2639 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2640 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2644 $as_echo "$ac_cv_build" >&6; }
2645 case $ac_cv_build in
2647 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2650 ac_save_IFS=$IFS; IFS='-'
2656 # Remember, the first character of IFS is used to create $*,
2657 # except with old shells:
2660 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2664 $as_echo_n "checking host system type... " >&6; }
2665 if ${ac_cv_host+:} false; then :
2666 $as_echo_n "(cached) " >&6
2668 if test "x$host_alias" = x; then
2669 ac_cv_host=$ac_cv_build
2671 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2672 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2677 $as_echo "$ac_cv_host" >&6; }
2680 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2683 ac_save_IFS=$IFS; IFS='-'
2689 # Remember, the first character of IFS is used to create $*,
2690 # except with old shells:
2693 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2697 $as_echo_n "checking target system type... " >&6; }
2698 if ${ac_cv_target+:} false; then :
2699 $as_echo_n "(cached) " >&6
2701 if test "x$target_alias" = x; then
2702 ac_cv_target=$ac_cv_host
2704 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2705 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2710 $as_echo "$ac_cv_target" >&6; }
2711 case $ac_cv_target in
2713 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2715 target=$ac_cv_target
2716 ac_save_IFS=$IFS; IFS='-'
2722 # Remember, the first character of IFS is used to create $*,
2723 # except with old shells:
2726 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2729 # The aliases save the names the user supplied, while $host etc.
2730 # will get canonicalized.
2731 test -n "$target_alias" &&
2732 test "$program_prefix$program_suffix$program_transform_name" = \
2734 program_prefix=${target_alias}-
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2738 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2739 # Check whether --enable-maintainer-mode was given.
2740 if test "${enable_maintainer_mode+set}" = set; then :
2741 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2743 USE_MAINTAINER_MODE=no
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2747 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2748 if test $USE_MAINTAINER_MODE = yes; then
2749 MAINTAINER_MODE_TRUE=
2750 MAINTAINER_MODE_FALSE='#'
2752 MAINTAINER_MODE_TRUE='#'
2753 MAINTAINER_MODE_FALSE=
2756 MAINT=$MAINTAINER_MODE_TRUE
2759 # Check whether --enable-silent-rules was given.
2760 if test "${enable_silent_rules+set}" = set; then :
2761 enableval=$enable_silent_rules;
2764 case $enable_silent_rules in # (((
2765 yes) AM_DEFAULT_VERBOSITY=0;;
2766 no) AM_DEFAULT_VERBOSITY=1;;
2767 *) AM_DEFAULT_VERBOSITY=0;;
2769 am_make=${MAKE-make}
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2771 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2772 if ${am_cv_make_support_nested_variables+:} false; then :
2773 $as_echo_n "(cached) " >&6
2775 if $as_echo 'TRUE=$(BAR$(V))
2781 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2782 am_cv_make_support_nested_variables=yes
2784 am_cv_make_support_nested_variables=no
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2788 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2789 if test $am_cv_make_support_nested_variables = yes; then
2791 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2793 AM_V=$AM_DEFAULT_VERBOSITY
2794 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2798 am__api_version='1.15'
2800 # Find a good install program. We prefer a C program (faster),
2801 # so one script is as good as another. But avoid the broken or
2802 # incompatible versions:
2803 # SysV /etc/install, /usr/sbin/install
2804 # SunOS /usr/etc/install
2805 # IRIX /sbin/install
2807 # AmigaOS /C/install, which installs bootblocks on floppy discs
2808 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2809 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2810 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2811 # OS/2's system install, which has a completely different semantic
2812 # ./install, which can be erroneously created by make from ./install.sh.
2813 # Reject install programs that cannot install multiple files.
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2815 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2816 if test -z "$INSTALL"; then
2817 if ${ac_cv_path_install+:} false; then :
2818 $as_echo_n "(cached) " >&6
2820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824 test -z "$as_dir" && as_dir=.
2825 # Account for people who put trailing slashes in PATH elements.
2826 case $as_dir/ in #((
2827 ./ | .// | /[cC]/* | \
2828 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2829 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2832 # OSF1 and SCO ODT 3.0 have their own names for install.
2833 # Don't use installbsd from OSF since it installs stuff as root
2835 for ac_prog in ginstall scoinst install; do
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2838 if test $ac_prog = install &&
2839 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2840 # AIX install. It has an incompatible calling convention.
2842 elif test $ac_prog = install &&
2843 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2844 # program-specific install script used by HP pwplus--don't use.
2847 rm -rf conftest.one conftest.two conftest.dir
2848 echo one > conftest.one
2849 echo two > conftest.two
2851 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2852 test -s conftest.one && test -s conftest.two &&
2853 test -s conftest.dir/conftest.one &&
2854 test -s conftest.dir/conftest.two
2856 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2869 rm -rf conftest.one conftest.two conftest.dir
2872 if test "${ac_cv_path_install+set}" = set; then
2873 INSTALL=$ac_cv_path_install
2875 # As a last resort, use the slow shell script. Don't cache a
2876 # value for INSTALL within a source directory, because that will
2877 # break other packages using the cache if that directory is
2878 # removed, or if the value is a relative name.
2879 INSTALL=$ac_install_sh
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2883 $as_echo "$INSTALL" >&6; }
2885 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2886 # It thinks the first close brace ends the variable substitution.
2887 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2889 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2891 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2894 $as_echo_n "checking whether build environment is sane... " >&6; }
2895 # Reject unsafe characters in $srcdir or the absolute working directory
2896 # name. Accept space and tab only in the latter.
2900 *[\\\"\#\$\&\'\`$am_lf]*)
2901 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2904 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2905 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2908 # Do 'set' in a subshell so we don't clobber the current shell's
2909 # arguments. Must try -L first in case configure is actually a
2910 # symlink; some systems play weird games with the mod time of symlinks
2911 # (eg FreeBSD returns the mod time of the symlink's containing
2915 for am_try
in 1 2; do
2916 echo "timestamp, slept: $am_has_slept" > conftest.
file
2917 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2918 if test "$*" = "X"; then
2920 set X
`ls -t "$srcdir/configure" conftest.file`
2922 if test "$*" != "X $srcdir/configure conftest.file" \
2923 && test "$*" != "X conftest.file $srcdir/configure"; then
2925 # If neither matched, then we have a broken ls. This can happen
2926 # if, for instance, CONFIG_SHELL is bash and it inherits a
2927 # broken ls alias from the environment. This has actually
2928 # happened. Such a system could not be considered "sane".
2929 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2930 alias in your environment" "$LINENO" 5
2932 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2939 test "$2" = conftest.
file
2945 as_fn_error $?
"newly created file is older than distributed files!
2946 Check your system clock" "$LINENO" 5
2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2949 $as_echo "yes" >&6; }
2950 # If we didn't sleep, we still need to ensure time stamps of config.status and
2951 # generated files are strictly newer.
2953 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2960 test "$program_prefix" != NONE
&&
2961 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2962 # Use a double $ so make ignores it.
2963 test "$program_suffix" != NONE
&&
2964 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2965 # Double any \ or $.
2966 # By default was `s,x,x', remove it if useless.
2967 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2968 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2970 # Expand $ac_aux_dir to an absolute path.
2971 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2973 if test x
"${MISSING+set}" != xset
; then
2976 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2978 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2981 # Use eval to expand $SHELL
2982 if eval "$MISSING --is-lightweight"; then
2983 am_missing_run
="$MISSING "
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2987 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2990 if test x
"${install_sh+set}" != xset
; then
2993 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2995 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2999 # Installed binaries are usually stripped using 'strip' when the user
3000 # run "make install-strip". However 'strip' might not be the right
3001 # tool to use in cross-compilation environments, therefore Automake
3002 # will honor the 'STRIP' environment variable to overrule this program.
3003 if test "$cross_compiling" != no
; then
3004 if test -n "$ac_tool_prefix"; then
3005 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3006 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008 $as_echo_n "checking for $ac_word... " >&6; }
3009 if ${ac_cv_prog_STRIP+:} false
; then :
3010 $as_echo_n "(cached) " >&6
3012 if test -n "$STRIP"; then
3013 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3015 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3019 test -z "$as_dir" && as_dir
=.
3020 for ac_exec_ext
in '' $ac_executable_extensions; do
3021 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3022 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032 STRIP
=$ac_cv_prog_STRIP
3033 if test -n "$STRIP"; then
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3035 $as_echo "$STRIP" >&6; }
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; }
3043 if test -z "$ac_cv_prog_STRIP"; then
3045 # Extract the first word of "strip", so it can be a program name with args.
3046 set dummy strip
; ac_word
=$2
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3048 $as_echo_n "checking for $ac_word... " >&6; }
3049 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3050 $as_echo_n "(cached) " >&6
3052 if test -n "$ac_ct_STRIP"; then
3053 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3055 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3059 test -z "$as_dir" && as_dir
=.
3060 for ac_exec_ext
in '' $ac_executable_extensions; do
3061 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3062 ac_cv_prog_ac_ct_STRIP
="strip"
3063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3073 if test -n "$ac_ct_STRIP"; then
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3075 $as_echo "$ac_ct_STRIP" >&6; }
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078 $as_echo "no" >&6; }
3081 if test "x$ac_ct_STRIP" = x
; then
3084 case $cross_compiling:$ac_tool_warned in
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3088 ac_tool_warned
=yes ;;
3093 STRIP
="$ac_cv_prog_STRIP"
3097 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3100 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3101 if test -z "$MKDIR_P"; then
3102 if ${ac_cv_path_mkdir+:} false
; then :
3103 $as_echo_n "(cached) " >&6
3105 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3106 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3109 test -z "$as_dir" && as_dir
=.
3110 for ac_prog
in mkdir gmkdir
; do
3111 for ac_exec_ext
in '' $ac_executable_extensions; do
3112 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3113 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3114 'mkdir (GNU coreutils) '* | \
3115 'mkdir (coreutils) '* | \
3116 'mkdir (fileutils) '4.1*)
3117 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3127 test -d .
/--version && rmdir .
/--version
3128 if test "${ac_cv_path_mkdir+set}" = set; then
3129 MKDIR_P
="$ac_cv_path_mkdir -p"
3131 # As a last resort, use the slow shell script. Don't cache a
3132 # value for MKDIR_P within a source directory, because that will
3133 # break other packages using the cache if that directory is
3134 # removed, or if the value is a relative name.
3135 MKDIR_P
="$ac_install_sh -d"
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3139 $as_echo "$MKDIR_P" >&6; }
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3142 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3144 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3145 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3146 $as_echo_n "(cached) " >&6
3148 cat >conftest.
make <<\_ACEOF
3151 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3153 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3154 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3156 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3158 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3162 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3164 $as_echo "yes" >&6; }
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3168 $as_echo "no" >&6; }
3169 SET_MAKE
="MAKE=${MAKE-make}"
3172 rm -rf .tst
2>/dev
/null
3173 mkdir .tst
2>/dev
/null
3174 if test -d .tst
; then
3179 rmdir .tst
2>/dev
/null
3181 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3182 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3183 # is not polluted with repeated "-I."
3184 am__isrc
=' -I$(srcdir)'
3185 # test to see if srcdir already configured
3186 if test -f $srcdir/config.status
; then
3187 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3191 # test whether we have cygpath
3192 if test -z "$CYGPATH_W"; then
3193 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3194 CYGPATH_W
='cygpath -w'
3201 # Define the identity of the package.
3206 cat >>confdefs.h
<<_ACEOF
3207 #define PACKAGE "$PACKAGE"
3211 cat >>confdefs.h
<<_ACEOF
3212 #define VERSION "$VERSION"
3215 # Some tools Automake needs.
3217 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3220 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3223 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3226 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3229 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3231 # For better backward compatibility. To be removed once Automake 1.9.x
3232 # dies out for good. For more background, see:
3233 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3234 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3235 mkdir_p
='$(MKDIR_P)'
3237 # We need awk for the "check" target (and possibly the TAP driver). The
3238 # system "awk" is bad on some platforms.
3239 # Always define AMTAR for backward compatibility. Yes, it's still used
3240 # in the wild :-( We should find a proper way to deprecate it ...
3244 # We'll loop over all known methods to create a tar archive until one works.
3245 _am_tools
='gnutar pax cpio none'
3247 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3254 # POSIX will say in a future version that running "rm -f" with no argument
3255 # is OK; and we want to be able to make that assumption in our Makefile
3256 # recipes. So use an aggressive probe to check that the usage we want is
3257 # actually supported "in the wild" to an acceptable degree.
3258 # See automake bug#10828.
3259 # To make any issue more visible, cause the running configure to be aborted
3260 # by default if the 'rm' program in use doesn't match our expectations; the
3261 # user can still override this though.
3262 if rm -f && rm -fr && rm -rf; then : OK
; else
3266 Your 'rm' program seems unable to run without file operands specified
3267 on the command line, even when the '-f' option is present. This is contrary
3268 to the behaviour of most rm programs out there, and not conforming with
3269 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3271 Please tell bug-automake@gnu.org about your system, including the value
3272 of your $PATH and any error possibly output before this message. This
3273 can help us improve future automake versions.
3276 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3277 echo 'Configuration will proceed anyway, since you have set the' >&2
3278 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3282 Aborting the configuration process, to ensure you take notice of the issue.
3284 You can download and install GNU coreutils to get an 'rm' implementation
3285 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3287 If you want to complete the configuration process using your problematic
3288 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3289 to "yes", and re-run configure.
3292 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3296 ac_config_headers
="$ac_config_headers zfs_config.h"
3301 ac_cpp
='$CPP $CPPFLAGS'
3302 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3303 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3304 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3305 if test -n "$ac_tool_prefix"; then
3306 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3307 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3309 $as_echo_n "checking for $ac_word... " >&6; }
3310 if ${ac_cv_prog_CC+:} false
; then :
3311 $as_echo_n "(cached) " >&6
3313 if test -n "$CC"; then
3314 ac_cv_prog_CC
="$CC" # Let the user override the test.
3316 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3320 test -z "$as_dir" && as_dir
=.
3321 for ac_exec_ext
in '' $ac_executable_extensions; do
3322 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3323 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 if test -n "$CC"; then
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3336 $as_echo "$CC" >&6; }
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 $as_echo "no" >&6; }
3344 if test -z "$ac_cv_prog_CC"; then
3346 # Extract the first word of "gcc", so it can be a program name with args.
3347 set dummy gcc
; ac_word
=$2
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3349 $as_echo_n "checking for $ac_word... " >&6; }
3350 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3351 $as_echo_n "(cached) " >&6
3353 if test -n "$ac_ct_CC"; then
3354 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3356 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3360 test -z "$as_dir" && as_dir
=.
3361 for ac_exec_ext
in '' $ac_executable_extensions; do
3362 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3363 ac_cv_prog_ac_ct_CC
="gcc"
3364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3373 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3374 if test -n "$ac_ct_CC"; then
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3376 $as_echo "$ac_ct_CC" >&6; }
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3379 $as_echo "no" >&6; }
3382 if test "x$ac_ct_CC" = x
; then
3385 case $cross_compiling:$ac_tool_warned in
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3389 ac_tool_warned
=yes ;;
3397 if test -z "$CC"; then
3398 if test -n "$ac_tool_prefix"; then
3399 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3400 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3402 $as_echo_n "checking for $ac_word... " >&6; }
3403 if ${ac_cv_prog_CC+:} false
; then :
3404 $as_echo_n "(cached) " >&6
3406 if test -n "$CC"; then
3407 ac_cv_prog_CC
="$CC" # Let the user override the test.
3409 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3413 test -z "$as_dir" && as_dir
=.
3414 for ac_exec_ext
in '' $ac_executable_extensions; do
3415 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3416 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3427 if test -n "$CC"; then
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3429 $as_echo "$CC" >&6; }
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3432 $as_echo "no" >&6; }
3438 if test -z "$CC"; then
3439 # Extract the first word of "cc", so it can be a program name with args.
3440 set dummy cc
; ac_word
=$2
3441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3442 $as_echo_n "checking for $ac_word... " >&6; }
3443 if ${ac_cv_prog_CC+:} false
; then :
3444 $as_echo_n "(cached) " >&6
3446 if test -n "$CC"; then
3447 ac_cv_prog_CC
="$CC" # Let the user override the test.
3450 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3454 test -z "$as_dir" && as_dir
=.
3455 for ac_exec_ext
in '' $ac_executable_extensions; do
3456 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3457 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3458 ac_prog_rejected
=yes
3462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3469 if test $ac_prog_rejected = yes; then
3470 # We found a bogon in the path, so make sure we never use it.
3471 set dummy
$ac_cv_prog_CC
3473 if test $# != 0; then
3474 # We chose a different compiler from the bogus one.
3475 # However, it has the same basename, so the bogon will be chosen
3476 # first if we set CC to just the basename; use the full file name.
3478 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3484 if test -n "$CC"; then
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3486 $as_echo "$CC" >&6; }
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3489 $as_echo "no" >&6; }
3494 if test -z "$CC"; then
3495 if test -n "$ac_tool_prefix"; then
3496 for ac_prog
in cl.exe
3498 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3499 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3501 $as_echo_n "checking for $ac_word... " >&6; }
3502 if ${ac_cv_prog_CC+:} false
; then :
3503 $as_echo_n "(cached) " >&6
3505 if test -n "$CC"; then
3506 ac_cv_prog_CC
="$CC" # Let the user override the test.
3508 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3512 test -z "$as_dir" && as_dir
=.
3513 for ac_exec_ext
in '' $ac_executable_extensions; do
3514 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3515 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3526 if test -n "$CC"; then
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3528 $as_echo "$CC" >&6; }
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3531 $as_echo "no" >&6; }
3535 test -n "$CC" && break
3538 if test -z "$CC"; then
3540 for ac_prog
in cl.exe
3542 # Extract the first word of "$ac_prog", so it can be a program name with args.
3543 set dummy
$ac_prog; ac_word
=$2
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3545 $as_echo_n "checking for $ac_word... " >&6; }
3546 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3547 $as_echo_n "(cached) " >&6
3549 if test -n "$ac_ct_CC"; then
3550 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3552 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3556 test -z "$as_dir" && as_dir
=.
3557 for ac_exec_ext
in '' $ac_executable_extensions; do
3558 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3559 ac_cv_prog_ac_ct_CC
="$ac_prog"
3560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3569 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3570 if test -n "$ac_ct_CC"; then
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3572 $as_echo "$ac_ct_CC" >&6; }
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 $as_echo "no" >&6; }
3579 test -n "$ac_ct_CC" && break
3582 if test "x$ac_ct_CC" = x
; then
3585 case $cross_compiling:$ac_tool_warned in
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3589 ac_tool_warned
=yes ;;
3598 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3599 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3600 as_fn_error $?
"no acceptable C compiler found in \$PATH
3601 See \`config.log' for more details" "$LINENO" 5; }
3603 # Provide some information about the compiler.
3604 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3607 for ac_option
in --version -v -V -qversion; do
3608 { { ac_try
="$ac_compiler $ac_option >&5"
3610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3614 $as_echo "$ac_try_echo"; } >&5
3615 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3617 if test -s conftest.err; then
3619 ... rest of stderr output deleted ...
3620 10q' conftest.err >conftest.er1
3621 cat conftest.er1 >&5
3623 rm -f conftest.er1 conftest.err
3624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3625 test $ac_status = 0; }
3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h. */
3639 ac_clean_files_save=$ac_clean_files
3640 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3641 # Try to create an executable without -o first, disregard a.out.
3642 # It will help us diagnose broken compilers, and finding out an intuition
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3645 $as_echo_n "checking whether the C compiler works... " >&6; }
3646 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3648 # The possible output files:
3649 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3652 for ac_file in $ac_files
3655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3656 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3661 if { { ac_try="$ac_link_default"
3663 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3664 *) ac_try_echo
=$ac_try;;
3666 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3667 $as_echo "$ac_try_echo"; } >&5
3668 (eval "$ac_link_default") 2>&5
3670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3671 test $ac_status = 0; }; then :
3672 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3673 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3674 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3675 # so that the user can short-circuit this test for compilers unknown to
3677 for ac_file
in $ac_files ''
3679 test -f "$ac_file" ||
continue
3681 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3684 # We found the default executable, but exeext='' is most
3688 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3690 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3692 # We set ac_cv_exeext here because the later test for it is not
3693 # safe: cross compilers may not add the suffix if given an `-o'
3694 # argument, so we may need to know it at that point already.
3695 # Even if this section looks crufty: it has the advantage of
3702 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3707 if test -z "$ac_file"; then :
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3709 $as_echo "no" >&6; }
3710 $as_echo "$as_me: failed program was:" >&5
3711 sed 's/^/| /' conftest.
$ac_ext >&5
3713 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3715 as_fn_error
77 "C compiler cannot create executables
3716 See \`config.log' for more details" "$LINENO" 5; }
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3719 $as_echo "yes" >&6; }
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3722 $as_echo_n "checking for C compiler default output file name... " >&6; }
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3724 $as_echo "$ac_file" >&6; }
3725 ac_exeext
=$ac_cv_exeext
3727 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3728 ac_clean_files
=$ac_clean_files_save
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3730 $as_echo_n "checking for suffix of executables... " >&6; }
3731 if { { ac_try
="$ac_link"
3733 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3734 *) ac_try_echo=$ac_try;;
3736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3737 $as_echo "$ac_try_echo"; } >&5
3738 (eval "$ac_link") 2>&5
3740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3741 test $ac_status = 0; }; then :
3742 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3743 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3744 # work properly (i.e., refer to `conftest.exe'), while it won't with
3746 for ac_file
in conftest.exe conftest conftest.
*; do
3747 test -f "$ac_file" ||
continue
3749 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3750 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3758 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3759 See \`config.log' for more details" "$LINENO" 5; }
3761 rm -f conftest conftest
$ac_cv_exeext
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3763 $as_echo "$ac_cv_exeext" >&6; }
3765 rm -f conftest.
$ac_ext
3766 EXEEXT
=$ac_cv_exeext
3768 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3769 /* end confdefs.h. */
3774 FILE *f = fopen ("conftest.out", "w");
3775 return ferror (f) || fclose (f) != 0;
3781 ac_clean_files
="$ac_clean_files conftest.out"
3782 # Check that the compiler produces executables we can run. If not, either
3783 # the compiler is broken, or we cross compile.
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3785 $as_echo_n "checking whether we are cross compiling... " >&6; }
3786 if test "$cross_compiling" != yes; then
3787 { { ac_try
="$ac_link"
3789 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3790 *) ac_try_echo=$ac_try;;
3792 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3793 $as_echo "$ac_try_echo"; } >&5
3794 (eval "$ac_link") 2>&5
3796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3797 test $ac_status = 0; }
3798 if { ac_try='./conftest$ac_cv_exeext'
3799 { { case "(($ac_try" in
3800 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3801 *) ac_try_echo
=$ac_try;;
3803 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3804 $as_echo "$ac_try_echo"; } >&5
3805 (eval "$ac_try") 2>&5
3807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3808 test $ac_status = 0; }; }; then
3811 if test "$cross_compiling" = maybe
; then
3814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3816 as_fn_error $?
"cannot run C compiled programs.
3817 If you meant to cross compile, use \`--host'.
3818 See \`config.log' for more details" "$LINENO" 5; }
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3823 $as_echo "$cross_compiling" >&6; }
3825 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3826 ac_clean_files
=$ac_clean_files_save
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3828 $as_echo_n "checking for suffix of object files... " >&6; }
3829 if ${ac_cv_objext+:} false
; then :
3830 $as_echo_n "(cached) " >&6
3832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h. */
3843 rm -f conftest.o conftest.obj
3844 if { { ac_try
="$ac_compile"
3846 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3850 $as_echo "$ac_try_echo"; } >&5
3851 (eval "$ac_compile") 2>&5
3853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3854 test $ac_status = 0; }; then :
3855 for ac_file in conftest.o conftest.obj conftest.*; do
3856 test -f "$ac_file" || continue;
3858 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3859 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3864 $as_echo "$as_me: failed program was:" >&5
3865 sed 's/^/| /' conftest.$ac_ext >&5
3867 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3869 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3870 See \
`config.log' for more details" "$LINENO" 5; }
3872 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3875 $as_echo "$ac_cv_objext" >&6; }
3876 OBJEXT=$ac_cv_objext
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3879 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3880 if ${ac_cv_c_compiler_gnu+:} false; then :
3881 $as_echo_n "(cached) " >&6
3883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3884 /* end confdefs.h. */
3897 if ac_fn_c_try_compile "$LINENO"; then :
3902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3907 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3908 if test $ac_compiler_gnu = yes; then
3913 ac_test_CFLAGS=${CFLAGS+set}
3914 ac_save_CFLAGS=$CFLAGS
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3916 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3917 if ${ac_cv_prog_cc_g+:} false; then :
3918 $as_echo_n "(cached) " >&6
3920 ac_save_c_werror_flag=$ac_c_werror_flag
3921 ac_c_werror_flag=yes
3924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3935 if ac_fn_c_try_compile "$LINENO"; then :
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h. */
3950 if ac_fn_c_try_compile "$LINENO"; then :
3953 ac_c_werror_flag=$ac_save_c_werror_flag
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h. */
3966 if ac_fn_c_try_compile "$LINENO"; then :
3969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974 ac_c_werror_flag=$ac_save_c_werror_flag
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3977 $as_echo "$ac_cv_prog_cc_g" >&6; }
3978 if test "$ac_test_CFLAGS" = set; then
3979 CFLAGS=$ac_save_CFLAGS
3980 elif test $ac_cv_prog_cc_g = yes; then
3981 if test "$GCC" = yes; then
3987 if test "$GCC" = yes; then
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3994 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3995 if ${ac_cv_prog_cc_c89+:} false; then :
3996 $as_echo_n "(cached) " >&6
3998 ac_cv_prog_cc_c89=no
4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h. */
4005 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4006 struct buf { int x; };
4007 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4008 static char *e (p, i)
4014 static char *f (char * (*g) (char **, int), char **p, ...)
4019 s = g (p, va_arg (v,int));
4024 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4025 function prototypes and stuff, but not '\xHH' hex character constants.
4026 These don't provoke an error unfortunately, instead are silently treated
4027 as 'x'. The following induces an error, until -std is added to get
4028 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4029 array size at least. It's necessary to write '\x00'==0 to get something
4030 that's true only with -std. */
4031 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4033 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4034 inside strings and character constants. */
4036 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4038 int test (int i, double x);
4039 struct s1 {int (*f) (int a);};
4040 struct s2 {int (*f) (double a);};
4041 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4047 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4052 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4053 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4055 CC="$ac_save_CC $ac_arg"
4056 if ac_fn_c_try_compile "$LINENO"; then :
4057 ac_cv_prog_cc_c89=$ac_arg
4059 rm -f core conftest.err conftest.$ac_objext
4060 test "x$ac_cv_prog_cc_c89" != "xno" && break
4062 rm -f conftest.$ac_ext
4067 case "x$ac_cv_prog_cc_c89" in
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4070 $as_echo "none needed" >&6; } ;;
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4073 $as_echo "unsupported" >&6; } ;;
4075 CC="$CC $ac_cv_prog_cc_c89"
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4077 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4079 if test "x$ac_cv_prog_cc_c89" != xno; then :
4084 ac_cpp='$CPP $CPPFLAGS'
4085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4090 ac_cpp='$CPP $CPPFLAGS'
4091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4095 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4096 if ${am_cv_prog_cc_c_o+:} false; then :
4097 $as_echo_n "(cached) " >&6
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4110 # Make sure it works both with $CC and with simple cc.
4111 # Following AC_PROG_CC_C_O, we do the test twice because some
4112 # compilers refuse to overwrite an existing .o file with -o,
4113 # though they will create one.
4114 am_cv_prog_cc_c_o=yes
4116 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4117 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4120 (exit $ac_status); } \
4121 && test -f conftest2.$ac_objext; then
4124 am_cv_prog_cc_c_o=no
4128 rm -f core conftest*
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4132 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4133 if test "$am_cv_prog_cc_c_o" != yes; then
4134 # Losing compiler, so override with the script.
4135 # FIXME: It is wrong to rewrite CC.
4136 # But if we don't then we get into trouble of one sort or another.
4137 # A longer-term fix would be to have automake use am__CC in this case,
4138 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4139 CC="$am_aux_dir/compile $CC"
4142 ac_cpp='$CPP $CPPFLAGS'
4143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4147 DEPDIR="${am__leading_dot}deps"
4149 ac_config_commands="$ac_config_commands depfiles"
4152 am_make=${MAKE-make}
4153 cat > confinc << 'END'
4155 @echo this is the am__doit target
4158 # If we don't find an include directive, just comment out the code.
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4160 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4164 # First try GNU make style include.
4165 echo "include confinc" > confmf
4166 # Ignore all kinds of additional output from 'make'.
4167 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4168 *the\ am__doit\ target*)
4174 # Now try BSD make style include.
4175 if test "$am__include" = "#"; then
4176 echo '.include "confinc"' > confmf
4177 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4178 *the\ am__doit\ target*)
4179 am__include=.include
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4188 $as_echo "$_am_result" >&6; }
4189 rm -f confinc confmf
4191 # Check whether --enable-dependency-tracking was given.
4192 if test "${enable_dependency_tracking+set}" = set; then :
4193 enableval=$enable_dependency_tracking;
4196 if test "x$enable_dependency_tracking" != xno; then
4197 am_depcomp="$ac_aux_dir/depcomp"
4201 if test "x$enable_dependency_tracking" != xno; then
4211 depcc="$CC" am_compiler_list=
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4214 $as_echo_n "checking dependency style of $depcc... " >&6; }
4215 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4216 $as_echo_n "(cached) " >&6
4218 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4219 # We make a subdir and do the tests there. Otherwise we can end up
4220 # making bogus files that we don't know about and never remove. For
4221 # instance it was reported that on HP-UX the gcc test will end up
4222 # making a dummy file named 'D' -- because '-MD' means "put the output
4226 # Copy depcomp to subdir because otherwise we won't find it if we're
4227 # using a relative directory.
4228 cp "$am_depcomp" conftest.dir
4230 # We will build objects and dependencies in a subdirectory because
4231 # it helps to detect inapplicable dependency modes. For instance
4232 # both Tru64's cc and ICC support -MD to output dependencies as a
4233 # side effect of compilation, but ICC will put the dependencies in
4234 # the current directory while Tru64 will put them in the object
4238 am_cv_CC_dependencies_compiler_type=none
4239 if test "$am_compiler_list" = ""; then
4240 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4243 case " $depcc " in #(
4244 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4247 for depmode in $am_compiler_list; do
4248 # Setup a source with many dependencies, because some compilers
4249 # like to wrap large dependency lists on column 80 (with \), and
4250 # we should not choose a depcomp mode which is confused by this.
4252 # We need to recreate these files for each test, as the compiler may
4253 # overwrite some of them when testing with obscure command lines.
4254 # This happens at least with the AIX C compiler.
4256 for i in 1 2 3 4 5 6; do
4257 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4258 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4259 # Solaris 10 /bin/sh.
4260 echo '/* dummy */' > sub/conftst$i.h
4262 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4264 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4265 # mode. It turns out that the SunPro C++ compiler does not properly
4266 # handle '-M -o', and we need to detect this. Also, some Intel
4267 # versions had trouble with output in subdirs.
4268 am__obj=sub/conftest.${OBJEXT-o}
4269 am__minus_obj="-o $am__obj"
4272 # This depmode causes a compiler race in universal mode.
4273 test "$am__universal" = false || continue
4276 # After this tag, mechanisms are not by side-effect, so they'll
4277 # only be used when explicitly requested.
4278 if test "x$enable_dependency_tracking" = xyes; then
4284 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4285 # This compiler won't grok '-c -o', but also, the minuso test has
4286 # not run yet. These depmodes are late enough in the game, and
4287 # so weak that their functioning should not be impacted.
4288 am__obj=conftest.${OBJEXT-o}
4293 if depmode=$depmode \
4294 source=sub/conftest.c object=$am__obj \
4295 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4296 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4297 >/dev/null 2>conftest.err &&
4298 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4299 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4300 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4301 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4302 # icc doesn't choke on unknown options, it will just issue warnings
4303 # or remarks (even with -Werror). So we grep stderr for any message
4304 # that says an option was ignored or not supported.
4305 # When given -MP, icc 7.0 and 7.1 complain thusly:
4306 # icc: Command line warning: ignoring option '-M'; no argument required
4307 # The diagnosis changed in icc 8.0:
4308 # icc: Command line remark: option '-MP' not supported
4309 if (grep 'ignoring option' conftest.err ||
4310 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4311 am_cv_CC_dependencies_compiler_type=$depmode
4320 am_cv_CC_dependencies_compiler_type=none
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4325 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4326 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4329 test "x$enable_dependency_tracking" != xno \
4330 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4332 am__fastdepCC_FALSE='#'
4334 am__fastdepCC_TRUE='#'
4335 am__fastdepCC_FALSE=
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&5
4342 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&2;} ;;
4347 macro_version='2.4.6'
4348 macro_revision='2.4.6'
4362 ltmain=$ac_aux_dir/ltmain.sh
4364 # Backslashify metacharacters that are still active within
4365 # double-quoted strings.
4366 sed_quote_subst='s/\(["`$
\\]\
)/\\\
1/g
'
4368 # Same as above, but do not quote variable references.
4369 double_quote_subst='s
/\
(["`\\]\)/\\\1/g'
4371 # Sed substitution to delay expansion of an escaped shell variable in a
4372 # double_quote_subst'ed string.
4373 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4375 # Sed substitution to delay expansion of an escaped single quote.
4376 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4378 # Sed substitution to avoid accidental globbing in evaled expressions
4379 no_glob_subst='s/\*/\\\*/g'
4381 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4382 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4383 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print
strings" >&5
4386 $as_echo_n "checking how to print
strings...
" >&6; }
4387 # Test print first, because it will be a builtin if present.
4388 if test "X
`( print -r -- -n ) 2>/dev/null`" = X-n && \
4389 test "X
`print -r -- $ECHO 2>/dev/null`" = "X
$ECHO"; then
4391 elif test "X
`printf %s $ECHO 2>/dev/null`" = "X
$ECHO"; then
4394 # Use this function as a fallback that always works.
4395 func_fallback_echo ()
4397 eval 'cat <<_LTECHO_EOF
4401 ECHO='func_fallback_echo'
4404 # func_echo_all arg...
4405 # Invoke $ECHO with all args, space-separated.
4412 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: printf" >&5
4413 $as_echo "printf" >&6; } ;;
4414 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: print
-r" >&5
4415 $as_echo "print
-r" >&6; } ;;
4416 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: cat" >&5
4417 $as_echo "cat" >&6; } ;;
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a
sed that does not truncate output
" >&5
4434 $as_echo_n "checking
for a
sed that does not truncate output...
" >&6; }
4435 if ${ac_cv_path_SED+:} false; then :
4436 $as_echo_n "(cached
) " >&6
4438 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4439 for ac_i in 1 2 3 4 5 6 7; do
4440 ac_script="$ac_script$as_nl$ac_script"
4442 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4443 { ac_script=; unset ac_script;}
4444 if test -z "$SED"; then
4445 ac_path_SED_found=false
4446 # Loop through the user's path and test for each of PROGNAME-LIST
4447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 test -z "$as_dir" && as_dir=.
4452 for ac_prog in sed gsed; do
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4455 as_fn_executable_p "$ac_path_SED" || continue
4456 # Check for GNU ac_path_SED and select it if it is found.
4457 # Check for GNU $ac_path_SED
4458 case `"$ac_path_SED" --version 2>&1` in
4460 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4463 $as_echo_n 0123456789 >"conftest.
in"
4466 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4467 mv "conftest.tmp
" "conftest.
in"
4468 cp "conftest.
in" "conftest.
nl"
4469 $as_echo '' >> "conftest.
nl"
4470 "$ac_path_SED" -f conftest.sed < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4471 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4472 as_fn_arith $ac_count + 1 && ac_count=$as_val
4473 if test $ac_count -gt ${ac_path_SED_max-0}; then
4474 # Best one so far, save it but keep looking for a better one
4475 ac_cv_path_SED="$ac_path_SED"
4476 ac_path_SED_max=$ac_count
4478 # 10*(2^10) chars as input seems more than enough
4479 test $ac_count -gt 10 && break
4481 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4484 $ac_path_SED_found && break 3
4489 if test -z "$ac_cv_path_SED"; then
4490 as_fn_error $? "no acceptable
sed could be found
in \
$PATH" "$LINENO" 5
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_SED" >&5
4498 $as_echo "$ac_cv_path_SED" >&6; }
4499 SED="$ac_cv_path_SED"
4502 test -z "$SED" && SED=sed
4503 Xsed="$SED -e 1s
/^X
//"
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
4516 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
4517 if ${ac_cv_path_GREP+:} false; then :
4518 $as_echo_n "(cached
) " >&6
4520 if test -z "$GREP"; then
4521 ac_path_GREP_found=false
4522 # Loop through the user's path and test for each of PROGNAME-LIST
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4527 test -z "$as_dir" && as_dir=.
4528 for ac_prog in grep ggrep; do
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4531 as_fn_executable_p "$ac_path_GREP" || continue
4532 # Check for GNU ac_path_GREP and select it if it is found.
4533 # Check for GNU $ac_path_GREP
4534 case `"$ac_path_GREP" --version 2>&1` in
4536 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4539 $as_echo_n 0123456789 >"conftest.
in"
4542 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4543 mv "conftest.tmp
" "conftest.
in"
4544 cp "conftest.
in" "conftest.
nl"
4545 $as_echo 'GREP' >> "conftest.
nl"
4546 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4547 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4548 as_fn_arith $ac_count + 1 && ac_count=$as_val
4549 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4550 # Best one so far, save it but keep looking for a better one
4551 ac_cv_path_GREP="$ac_path_GREP"
4552 ac_path_GREP_max=$ac_count
4554 # 10*(2^10) chars as input seems more than enough
4555 test $ac_count -gt 10 && break
4557 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4560 $ac_path_GREP_found && break 3
4565 if test -z "$ac_cv_path_GREP"; then
4566 as_fn_error $? "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
4569 ac_cv_path_GREP=$GREP
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
4574 $as_echo "$ac_cv_path_GREP" >&6; }
4575 GREP="$ac_cv_path_GREP"
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
4579 $as_echo_n "checking
for egrep...
" >&6; }
4580 if ${ac_cv_path_EGREP+:} false; then :
4581 $as_echo_n "(cached
) " >&6
4583 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4584 then ac_cv_path_EGREP="$GREP -E"
4586 if test -z "$EGREP"; then
4587 ac_path_EGREP_found=false
4588 # Loop through the user's path and test for each of PROGNAME-LIST
4589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4593 test -z "$as_dir" && as_dir=.
4594 for ac_prog in egrep; do
4595 for ac_exec_ext in '' $ac_executable_extensions; do
4596 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4597 as_fn_executable_p "$ac_path_EGREP" || continue
4598 # Check for GNU ac_path_EGREP and select it if it is found.
4599 # Check for GNU $ac_path_EGREP
4600 case `"$ac_path_EGREP" --version 2>&1` in
4602 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4605 $as_echo_n 0123456789 >"conftest.
in"
4608 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4609 mv "conftest.tmp
" "conftest.
in"
4610 cp "conftest.
in" "conftest.
nl"
4611 $as_echo 'EGREP' >> "conftest.
nl"
4612 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4613 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4614 as_fn_arith $ac_count + 1 && ac_count=$as_val
4615 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4616 # Best one so far, save it but keep looking for a better one
4617 ac_cv_path_EGREP="$ac_path_EGREP"
4618 ac_path_EGREP_max=$ac_count
4620 # 10*(2^10) chars as input seems more than enough
4621 test $ac_count -gt 10 && break
4623 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4626 $ac_path_EGREP_found && break 3
4631 if test -z "$ac_cv_path_EGREP"; then
4632 as_fn_error $? "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
4635 ac_cv_path_EGREP=$EGREP
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
4641 $as_echo "$ac_cv_path_EGREP" >&6; }
4642 EGREP="$ac_cv_path_EGREP"
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for fgrep
" >&5
4646 $as_echo_n "checking
for fgrep...
" >&6; }
4647 if ${ac_cv_path_FGREP+:} false; then :
4648 $as_echo_n "(cached
) " >&6
4650 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4651 then ac_cv_path_FGREP="$GREP -F"
4653 if test -z "$FGREP"; then
4654 ac_path_FGREP_found=false
4655 # Loop through the user's path and test for each of PROGNAME-LIST
4656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4657 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4660 test -z "$as_dir" && as_dir=.
4661 for ac_prog in fgrep; do
4662 for ac_exec_ext in '' $ac_executable_extensions; do
4663 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4664 as_fn_executable_p "$ac_path_FGREP" || continue
4665 # Check for GNU ac_path_FGREP and select it if it is found.
4666 # Check for GNU $ac_path_FGREP
4667 case `"$ac_path_FGREP" --version 2>&1` in
4669 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4672 $as_echo_n 0123456789 >"conftest.
in"
4675 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4676 mv "conftest.tmp
" "conftest.
in"
4677 cp "conftest.
in" "conftest.
nl"
4678 $as_echo 'FGREP' >> "conftest.
nl"
4679 "$ac_path_FGREP" FGREP < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4680 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4681 as_fn_arith $ac_count + 1 && ac_count=$as_val
4682 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4683 # Best one so far, save it but keep looking for a better one
4684 ac_cv_path_FGREP="$ac_path_FGREP"
4685 ac_path_FGREP_max=$ac_count
4687 # 10*(2^10) chars as input seems more than enough
4688 test $ac_count -gt 10 && break
4690 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4693 $ac_path_FGREP_found && break 3
4698 if test -z "$ac_cv_path_FGREP"; then
4699 as_fn_error $? "no acceptable fgrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
4702 ac_cv_path_FGREP=$FGREP
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_FGREP" >&5
4708 $as_echo "$ac_cv_path_FGREP" >&6; }
4709 FGREP="$ac_cv_path_FGREP"
4712 test -z "$GREP" && GREP=grep
4732 # Check whether --with-gnu-ld was given.
4733 if test "${with_gnu_ld+set}" = set; then :
4734 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4740 if test yes = "$GCC"; then
4741 # Check if gcc -print-prog-name=ld gives a path.
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld used by
$CC" >&5
4743 $as_echo_n "checking
for ld used by
$CC...
" >&6; }
4746 # gcc leaves a trailing carriage return, which upsets mingw
4747 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4749 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4752 # Accept absolute paths.
4754 re_direlt='/[^/][^/]*/\.\./'
4755 # Canonicalize the pathname of ld
4756 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4757 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4758 ac_prog=`$ECHO $ac_prog| $SED "s
%$re_direlt%/%"`
4760 test -z "$LD" && LD=$ac_prog
4763 # If it fails, then pretend we aren't using GCC.
4767 # If it is relative, then search for the first ld in PATH.
4771 elif test yes = "$with_gnu_ld"; then
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for GNU ld
" >&5
4773 $as_echo_n "checking
for GNU ld...
" >&6; }
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for non-GNU ld
" >&5
4776 $as_echo_n "checking
for non-GNU ld...
" >&6; }
4778 if ${lt_cv_path_LD+:} false; then :
4779 $as_echo_n "(cached
) " >&6
4781 if test -z "$LD"; then
4782 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4783 for ac_dir in $PATH; do
4785 test -z "$ac_dir" && ac_dir=.
4786 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4787 lt_cv_path_LD=$ac_dir/$ac_prog
4788 # Check to see if the program is GNU ld. I'd rather use --version,
4789 # but apparently some variants of GNU ld only accept -v.
4790 # Break only if it was the GNU/non-GNU ld that we prefer.
4791 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4792 *GNU* | *'with BFD'*)
4793 test no != "$with_gnu_ld" && break
4796 test yes != "$with_gnu_ld" && break
4803 lt_cv_path_LD=$LD # Let the user override the test with a path.
4808 if test -n "$LD"; then
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
4810 $as_echo "$LD" >&6; }
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4813 $as_echo "no
" >&6; }
4815 test -z "$LD" && as_fn_error $? "no acceptable ld found
in \
$PATH" "$LINENO" 5
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if the linker
($LD) is GNU ld
" >&5
4817 $as_echo_n "checking
if the linker
($LD) is GNU ld...
" >&6; }
4818 if ${lt_cv_prog_gnu_ld+:} false; then :
4819 $as_echo_n "(cached
) " >&6
4821 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4822 case `$LD -v 2>&1 </dev/null` in
4823 *GNU* | *'with BFD'*)
4824 lt_cv_prog_gnu_ld=yes
4827 lt_cv_prog_gnu_ld=no
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_gnu_ld" >&5
4832 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4833 with_gnu_ld=$lt_cv_prog_gnu_ld
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for BSD- or MS-compatible name lister
(nm
)" >&5
4844 $as_echo_n "checking
for BSD- or MS-compatible name lister
(nm
)...
" >&6; }
4845 if ${lt_cv_path_NM+:} false; then :
4846 $as_echo_n "(cached
) " >&6
4848 if test -n "$NM"; then
4849 # Let the user override the test.
4852 lt_nm_to_check=${ac_tool_prefix}nm
4853 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4854 lt_nm_to_check="$lt_nm_to_check nm
"
4856 for lt_tmp_nm in $lt_nm_to_check; do
4857 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4858 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4860 test -z "$ac_dir" && ac_dir=.
4861 tmp_nm=$ac_dir/$lt_tmp_nm
4862 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4863 # Check to see if the nm accepts a BSD-compat flag.
4864 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4865 # nm: unknown option "B
" ignored
4866 # Tru64's nm complains that /dev/null is an invalid object file
4867 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4869 mingw*) lt_bad_file=conftest.nm/nofile ;;
4870 *) lt_bad_file=/dev/null ;;
4872 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4873 *$lt_bad_file* | *'Invalid file or object type'*)
4874 lt_cv_path_NM="$tmp_nm -B"
4878 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4880 lt_cv_path_NM="$tmp_nm -p"
4884 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4885 continue # so that we can try to find one that supports BSD flags
4894 : ${lt_cv_path_NM=no}
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_NM" >&5
4898 $as_echo "$lt_cv_path_NM" >&6; }
4899 if test no != "$lt_cv_path_NM"; then
4902 # Didn't find any BSD compatible name lister, look for dumpbin.
4903 if test -n "$DUMPBIN"; then :
4904 # Let the user override the test.
4906 if test -n "$ac_tool_prefix"; then
4907 for ac_prog in dumpbin "link
-dump"
4909 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4910 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
4912 $as_echo_n "checking
for $ac_word...
" >&6; }
4913 if ${ac_cv_prog_DUMPBIN+:} false; then :
4914 $as_echo_n "(cached
) " >&6
4916 if test -n "$DUMPBIN"; then
4917 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 test -z "$as_dir" && as_dir=.
4924 for ac_exec_ext in '' $ac_executable_extensions; do
4925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4926 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4927 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
4936 DUMPBIN=$ac_cv_prog_DUMPBIN
4937 if test -n "$DUMPBIN"; then
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DUMPBIN" >&5
4939 $as_echo "$DUMPBIN" >&6; }
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4942 $as_echo "no
" >&6; }
4946 test -n "$DUMPBIN" && break
4949 if test -z "$DUMPBIN"; then
4950 ac_ct_DUMPBIN=$DUMPBIN
4951 for ac_prog in dumpbin "link
-dump"
4953 # Extract the first word of "$ac_prog", so it can be a program name with args.
4954 set dummy $ac_prog; ac_word=$2
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
4956 $as_echo_n "checking
for $ac_word...
" >&6; }
4957 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4958 $as_echo_n "(cached
) " >&6
4960 if test -n "$ac_ct_DUMPBIN"; then
4961 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 test -z "$as_dir" && as_dir=.
4968 for ac_exec_ext in '' $ac_executable_extensions; do
4969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4970 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4971 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
4980 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4981 if test -n "$ac_ct_DUMPBIN"; then
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DUMPBIN" >&5
4983 $as_echo "$ac_ct_DUMPBIN" >&6; }
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4986 $as_echo "no
" >&6; }
4990 test -n "$ac_ct_DUMPBIN" && break
4993 if test "x
$ac_ct_DUMPBIN" = x; then
4996 case $cross_compiling:$ac_tool_warned in
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
4999 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5000 ac_tool_warned=yes ;;
5002 DUMPBIN=$ac_ct_DUMPBIN
5006 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5008 DUMPBIN="$DUMPBIN -symbols -headers"
5016 if test : != "$DUMPBIN"; then
5020 test -z "$NM" && NM=nm
5027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister
($NM) interface
" >&5
5028 $as_echo_n "checking the name lister
($NM) interface...
" >&6; }
5029 if ${lt_cv_nm_interface+:} false; then :
5030 $as_echo_n "(cached
) " >&6
5032 lt_cv_nm_interface="BSD nm
"
5033 echo "int some_variable
= 0;" > conftest.$ac_ext
5034 (eval echo "\"\
$as_me:$LINENO: $ac_compile\"" >&5)
5035 (eval "$ac_compile" 2>conftest.err)
5036 cat conftest.err >&5
5037 (eval echo "\"\
$as_me:$LINENO: $NM \\\"conftest.
$ac_objext\\\"\"" >&5)
5038 (eval "$NM \"conftest.
$ac_objext\"" 2>conftest.err > conftest.out)
5039 cat conftest.err >&5
5040 (eval echo "\"\
$as_me:$LINENO: output
\"" >&5)
5041 cat conftest.out >&5
5042 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5043 lt_cv_nm_interface="MS dumpbin
"
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_nm_interface" >&5
5048 $as_echo "$lt_cv_nm_interface" >&6; }
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
ln -s works
" >&5
5051 $as_echo_n "checking whether
ln -s works...
" >&6; }
5053 if test "$LN_S" = "ln -s"; then
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
5055 $as_echo "yes" >&6; }
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
, using
$LN_S" >&5
5058 $as_echo "no
, using
$LN_S" >&6; }
5061 # find the maximum length of command line arguments
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of
command line arguments
" >&5
5063 $as_echo_n "checking the maximum length of
command line arguments...
" >&6; }
5064 if ${lt_cv_sys_max_cmd_len+:} false; then :
5065 $as_echo_n "(cached
) " >&6
5072 # On DJGPP, this test can blow up pretty badly due to problems in libc
5073 # (any single argument exceeding 2000 bytes causes a buffer overrun
5074 # during glob expansion). Even if it were fixed, the result of this
5075 # check would be larger than it should be.
5076 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5080 # Under GNU Hurd, this test is not required because there is
5081 # no limit to the length of command line arguments.
5082 # Libtool will interpret -1 as no limit whatsoever
5083 lt_cv_sys_max_cmd_len=-1;
5086 cygwin* | mingw* | cegcc*)
5087 # On Win9x/ME, this test blows up -- it succeeds, but takes
5088 # about 5 minutes as the teststring grows exponentially.
5089 # Worse, since 9x/ME are not pre-emptively multitasking,
5090 # you end up with a "frozen
" computer, even though with patience
5091 # the test eventually succeeds (with a max line length of 256k).
5092 # Instead, let's just punt: use the minimum linelength reported by
5093 # all of the supported platforms: 8192 (on NT/2K/XP).
5094 lt_cv_sys_max_cmd_len=8192;
5098 # On MiNT this can take a long time and run out of memory.
5099 lt_cv_sys_max_cmd_len=8192;
5103 # On AmigaOS with pdksh, this test takes hours, literally.
5104 # So we just punt and use a minimum line length of 8192.
5105 lt_cv_sys_max_cmd_len=8192;
5108 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5109 # This has been around since 386BSD, at least. Likely further.
5110 if test -x /sbin/sysctl; then
5111 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5112 elif test -x /usr/sbin/sysctl; then
5113 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5115 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5117 # And add a safety zone
5118 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5119 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5123 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5124 lt_cv_sys_max_cmd_len=196608
5128 # The test takes a long time on OS/2.
5129 lt_cv_sys_max_cmd_len=8192
5133 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5134 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5135 # nice to cause kernel panics so lets avoid the loop below.
5136 # First set a reasonable default.
5137 lt_cv_sys_max_cmd_len=16384
5139 if test -x /sbin/sysconfig; then
5140 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5141 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5146 lt_cv_sys_max_cmd_len=102400
5148 sysv5* | sco5v6* | sysv4.2uw2*)
5149 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5150 if test -n "$kargmax"; then
5151 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5153 lt_cv_sys_max_cmd_len=32768
5157 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5158 if test -n "$lt_cv_sys_max_cmd_len" && \
5159 test undefined != "$lt_cv_sys_max_cmd_len"; then
5160 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5161 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5163 # Make teststring a little bigger before we do anything with it.
5164 # a 1K string should be a reasonable start.
5165 for i in 1 2 3 4 5 6 7 8; do
5166 teststring=$teststring$teststring
5168 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5169 # If test is not a shell built-in, we'll probably end up computing a
5170 # maximum length that is only half of the actual maximum length, but
5172 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5173 = "X
$teststring$teststring"; } >/dev/null 2>&1 &&
5174 test 17 != "$i" # 1/2 MB should be enough
5177 teststring=$teststring$teststring
5179 # Only check the string length outside the loop.
5180 lt_cv_sys_max_cmd_len=`expr "X
$teststring" : ".
*" 2>&1`
5182 # Add a significant safety factor because C++ compilers can tack on
5183 # massive amounts of additional arguments before passing them to the
5184 # linker. It appears as though 1/2 is a usable value.
5185 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5192 if test -n "$lt_cv_sys_max_cmd_len"; then
5193 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sys_max_cmd_len" >&5
5194 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none
" >&5
5197 $as_echo "none
" >&6; }
5199 max_cmd_len=$lt_cv_sys_max_cmd_len
5210 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5220 # test EBCDIC or ASCII
5221 case `echo X|tr X '\101'` in
5222 A) # ASCII based system
5223 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5224 lt_SP2NL='tr \040 \012'
5225 lt_NL2SP='tr \015\012 \040\040'
5227 *) # EBCDIC based system
5228 lt_SP2NL='tr \100 \n'
5229 lt_NL2SP='tr \r\n \100\100'
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to
$host format
" >&5
5242 $as_echo_n "checking how to convert
$build file names to
$host format...
" >&6; }
5243 if ${lt_cv_to_host_file_cmd+:} false; then :
5244 $as_echo_n "(cached
) " >&6
5249 *-*-mingw* ) # actually msys
5250 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5253 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5255 * ) # otherwise, assume *nix
5256 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5262 *-*-mingw* ) # actually msys
5263 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5266 lt_cv_to_host_file_cmd=func_convert_file_noop
5268 * ) # otherwise, assume *nix
5269 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5273 * ) # unhandled hosts (and "normal
" native builds)
5274 lt_cv_to_host_file_cmd=func_convert_file_noop
5280 to_host_file_cmd=$lt_cv_to_host_file_cmd
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_host_file_cmd" >&5
5282 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to toolchain format
" >&5
5289 $as_echo_n "checking how to convert
$build file names to toolchain format...
" >&6; }
5290 if ${lt_cv_to_tool_file_cmd+:} false; then :
5291 $as_echo_n "(cached
) " >&6
5293 #assume ordinary cross tools, or native build.
5294 lt_cv_to_tool_file_cmd=func_convert_file_noop
5298 *-*-mingw* ) # actually msys
5299 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5307 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_tool_file_cmd" >&5
5309 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
5316 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5317 if ${lt_cv_ld_reload_flag+:} false; then :
5318 $as_echo_n "(cached
) " >&6
5320 lt_cv_ld_reload_flag='-r'
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
5323 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5324 reload_flag=$lt_cv_ld_reload_flag
5325 case $reload_flag in
5327 *) reload_flag=" $reload_flag" ;;
5329 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5331 cygwin* | mingw* | pw32* | cegcc*)
5332 if test yes != "$GCC"; then
5337 if test yes = "$GCC"; then
5338 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5340 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5353 if test -n "$ac_tool_prefix"; then
5354 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5355 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5357 $as_echo_n "checking
for $ac_word...
" >&6; }
5358 if ${ac_cv_prog_OBJDUMP+:} false; then :
5359 $as_echo_n "(cached
) " >&6
5361 if test -n "$OBJDUMP"; then
5362 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5368 test -z "$as_dir" && as_dir=.
5369 for ac_exec_ext in '' $ac_executable_extensions; do
5370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5371 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5372 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5381 OBJDUMP=$ac_cv_prog_OBJDUMP
5382 if test -n "$OBJDUMP"; then
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
5384 $as_echo "$OBJDUMP" >&6; }
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5387 $as_echo "no
" >&6; }
5392 if test -z "$ac_cv_prog_OBJDUMP"; then
5393 ac_ct_OBJDUMP=$OBJDUMP
5394 # Extract the first word of "objdump
", so it can be a program name with args.
5395 set dummy objdump; ac_word=$2
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5397 $as_echo_n "checking
for $ac_word...
" >&6; }
5398 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5399 $as_echo_n "(cached
) " >&6
5401 if test -n "$ac_ct_OBJDUMP"; then
5402 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5408 test -z "$as_dir" && as_dir=.
5409 for ac_exec_ext in '' $ac_executable_extensions; do
5410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5411 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5412 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5421 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5422 if test -n "$ac_ct_OBJDUMP"; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
5424 $as_echo "$ac_ct_OBJDUMP" >&6; }
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5427 $as_echo "no
" >&6; }
5430 if test "x
$ac_ct_OBJDUMP" = x; then
5433 case $cross_compiling:$ac_tool_warned in
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5436 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5437 ac_tool_warned=yes ;;
5439 OBJDUMP=$ac_ct_OBJDUMP
5442 OBJDUMP="$ac_cv_prog_OBJDUMP"
5445 test -z "$OBJDUMP" && OBJDUMP=objdump
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
5456 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5457 if ${lt_cv_deplibs_check_method+:} false; then :
5458 $as_echo_n "(cached
) " >&6
5460 lt_cv_file_magic_cmd='$MAGIC_CMD'
5461 lt_cv_file_magic_test_file=
5462 lt_cv_deplibs_check_method='unknown'
5463 # Need to set the preceding variable on all platforms that support
5464 # interlibrary dependencies.
5465 # 'none' -- dependencies not supported.
5466 # 'unknown' -- same as none, but documents that we really don't know.
5467 # 'pass_all' -- all dependencies passed with no checks.
5468 # 'test_compile' -- check by making test program.
5469 # 'file_magic [[regex]]' -- check by looking for files in library path
5470 # that responds to the $file_magic_cmd with a given extended regex.
5471 # If you have 'file' or equivalent on your system and you're not sure
5472 # whether 'pass_all' will *always* work, you probably want this one.
5476 lt_cv_deplibs_check_method=pass_all
5480 lt_cv_deplibs_check_method=pass_all
5484 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5485 lt_cv_file_magic_cmd='/usr/bin/file -L'
5486 lt_cv_file_magic_test_file=/shlib/libc.so
5490 # func_win32_libid is a shell function defined in ltmain.sh
5491 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5492 lt_cv_file_magic_cmd='func_win32_libid'
5496 # Base MSYS/MinGW do not provide the 'file' command needed by
5497 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5498 # unless we find 'file', for example because we are cross-compiling.
5499 if ( file / ) >/dev/null 2>&1; then
5500 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5501 lt_cv_file_magic_cmd='func_win32_libid'
5503 # Keep this pattern in sync with the one in func_win32_libid.
5504 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5505 lt_cv_file_magic_cmd='$OBJDUMP -f'
5510 # use the weaker test based on 'objdump'. See mingw*.
5511 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5512 lt_cv_file_magic_cmd='$OBJDUMP -f'
5515 darwin* | rhapsody*)
5516 lt_cv_deplibs_check_method=pass_all
5519 freebsd* | dragonfly*)
5520 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5523 # Not sure whether the presence of OpenBSD here was a mistake.
5524 # Let's accept both of them until this is cleared up.
5525 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5526 lt_cv_file_magic_cmd=/usr/bin/file
5527 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5531 lt_cv_deplibs_check_method=pass_all
5536 lt_cv_deplibs_check_method=pass_all
5539 hpux10.20* | hpux11*)
5540 lt_cv_file_magic_cmd=/usr/bin/file
5543 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5544 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5547 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5548 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5551 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5552 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5558 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5559 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5562 irix5* | irix6* | nonstopux*)
5564 *-32|*"-32 ") libmagic=32-bit;;
5565 *-n32|*"-n32 ") libmagic=N32;;
5566 *-64|*"-64 ") libmagic=64-bit;;
5567 *) libmagic=never-match;;
5569 lt_cv_deplibs_check_method=pass_all
5572 # This must be glibc/ELF.
5573 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5574 lt_cv_deplibs_check_method=pass_all
5577 netbsd* | netbsdelf*-gnu)
5578 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5579 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5581 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5586 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5587 lt_cv_file_magic_cmd=/usr/bin/file
5588 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5592 lt_cv_deplibs_check_method=pass_all
5596 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5597 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5599 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5603 osf3* | osf4* | osf5*)
5604 lt_cv_deplibs_check_method=pass_all
5608 lt_cv_deplibs_check_method=pass_all
5612 lt_cv_deplibs_check_method=pass_all
5615 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5616 lt_cv_deplibs_check_method=pass_all
5620 case $host_vendor in
5622 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]'
5623 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5626 lt_cv_deplibs_check_method=pass_all
5629 lt_cv_file_magic_cmd='/bin/file'
5630 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5633 lt_cv_file_magic_cmd='/bin/file'
5634 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5635 lt_cv_file_magic_test_file=/lib/libc.so
5638 lt_cv_deplibs_check_method=pass_all
5641 lt_cv_deplibs_check_method=pass_all
5647 lt_cv_deplibs_check_method=pass_all
5650 lt_cv_deplibs_check_method=pass_all
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
5656 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5660 if test "$build" = "$host"; then
5663 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5666 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s
/\
(..\
)/s\
/[\
1]\
/[\
1]\
/g
;/g
"`
5672 file_magic_cmd=$lt_cv_file_magic_cmd
5673 deplibs_check_method=$lt_cv_deplibs_check_method
5674 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5697 if test -n "$ac_tool_prefix"; then
5698 # Extract the first word of "${ac_tool_prefix}dlltool
", so it can be a program name with args.
5699 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5701 $as_echo_n "checking
for $ac_word...
" >&6; }
5702 if ${ac_cv_prog_DLLTOOL+:} false; then :
5703 $as_echo_n "(cached
) " >&6
5705 if test -n "$DLLTOOL"; then
5706 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712 test -z "$as_dir" && as_dir=.
5713 for ac_exec_ext in '' $ac_executable_extensions; do
5714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5715 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool
"
5716 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5725 DLLTOOL=$ac_cv_prog_DLLTOOL
5726 if test -n "$DLLTOOL"; then
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
5728 $as_echo "$DLLTOOL" >&6; }
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5731 $as_echo "no
" >&6; }
5736 if test -z "$ac_cv_prog_DLLTOOL"; then
5737 ac_ct_DLLTOOL=$DLLTOOL
5738 # Extract the first word of "dlltool
", so it can be a program name with args.
5739 set dummy dlltool; ac_word=$2
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5741 $as_echo_n "checking
for $ac_word...
" >&6; }
5742 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5743 $as_echo_n "(cached
) " >&6
5745 if test -n "$ac_ct_DLLTOOL"; then
5746 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5752 test -z "$as_dir" && as_dir=.
5753 for ac_exec_ext in '' $ac_executable_extensions; do
5754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5755 ac_cv_prog_ac_ct_DLLTOOL="dlltool
"
5756 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5765 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5766 if test -n "$ac_ct_DLLTOOL"; then
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DLLTOOL" >&5
5768 $as_echo "$ac_ct_DLLTOOL" >&6; }
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5771 $as_echo "no
" >&6; }
5774 if test "x
$ac_ct_DLLTOOL" = x; then
5777 case $cross_compiling:$ac_tool_warned in
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5780 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5781 ac_tool_warned=yes ;;
5783 DLLTOOL=$ac_ct_DLLTOOL
5786 DLLTOOL="$ac_cv_prog_DLLTOOL"
5789 test -z "$DLLTOOL" && DLLTOOL=dlltool
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries
" >&5
5801 $as_echo_n "checking how to associate runtime and link libraries...
" >&6; }
5802 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5803 $as_echo_n "(cached
) " >&6
5805 lt_cv_sharedlib_from_linklib_cmd='unknown'
5808 cygwin* | mingw* | pw32* | cegcc*)
5809 # two different shell functions defined in ltmain.sh;
5810 # decide which one to use based on capabilities of $DLLTOOL
5811 case `$DLLTOOL --help 2>&1` in
5812 *--identify-strict*)
5813 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5816 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5821 # fallback: assume linklib IS sharedlib
5822 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sharedlib_from_linklib_cmd" >&5
5828 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5829 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5830 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5839 if test -n "$ac_tool_prefix"; then
5842 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5843 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5845 $as_echo_n "checking
for $ac_word...
" >&6; }
5846 if ${ac_cv_prog_AR+:} false; then :
5847 $as_echo_n "(cached
) " >&6
5849 if test -n "$AR"; then
5850 ac_cv_prog_AR="$AR" # Let the user override the test.
5852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5856 test -z "$as_dir" && as_dir=.
5857 for ac_exec_ext in '' $ac_executable_extensions; do
5858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5859 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5860 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5870 if test -n "$AR"; then
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
5872 $as_echo "$AR" >&6; }
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5875 $as_echo "no
" >&6; }
5879 test -n "$AR" && break
5882 if test -z "$AR"; then
5886 # Extract the first word of "$ac_prog", so it can be a program name with args.
5887 set dummy $ac_prog; ac_word=$2
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5889 $as_echo_n "checking
for $ac_word...
" >&6; }
5890 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5891 $as_echo_n "(cached
) " >&6
5893 if test -n "$ac_ct_AR"; then
5894 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5903 ac_cv_prog_ac_ct_AR="$ac_prog"
5904 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5913 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5914 if test -n "$ac_ct_AR"; then
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
5916 $as_echo "$ac_ct_AR" >&6; }
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5919 $as_echo "no
" >&6; }
5923 test -n "$ac_ct_AR" && break
5926 if test "x
$ac_ct_AR" = x; then
5929 case $cross_compiling:$ac_tool_warned in
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5932 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5933 ac_tool_warned=yes ;;
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for archiver @FILE support
" >&5
5953 $as_echo_n "checking
for archiver @FILE support...
" >&6; }
5954 if ${lt_cv_ar_at_file+:} false; then :
5955 $as_echo_n "(cached
) " >&6
5958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5959 /* end confdefs.h. */
5969 if ac_fn_c_try_compile "$LINENO"; then :
5970 echo conftest.$ac_objext > conftest.lst
5971 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5972 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5973 (eval $lt_ar_try) 2>&5
5975 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5976 test $ac_status = 0; }
5977 if test 0 -eq "$ac_status"; then
5978 # Ensure the archiver fails upon bogus file names.
5979 rm -f conftest.$ac_objext libconftest.a
5980 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5981 (eval $lt_ar_try) 2>&5
5983 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5984 test $ac_status = 0; }
5985 if test 0 -ne "$ac_status"; then
5989 rm -f conftest.* libconftest.a
5992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ar_at_file" >&5
5996 $as_echo "$lt_cv_ar_at_file" >&6; }
5998 if test no = "$lt_cv_ar_at_file"; then
6001 archiver_list_spec=$lt_cv_ar_at_file
6010 if test -n "$ac_tool_prefix"; then
6011 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
6012 set dummy ${ac_tool_prefix}strip; ac_word=$2
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6014 $as_echo_n "checking
for $ac_word...
" >&6; }
6015 if ${ac_cv_prog_STRIP+:} false; then :
6016 $as_echo_n "(cached
) " >&6
6018 if test -n "$STRIP"; then
6019 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6025 test -z "$as_dir" && as_dir=.
6026 for ac_exec_ext in '' $ac_executable_extensions; do
6027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6028 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6029 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6038 STRIP=$ac_cv_prog_STRIP
6039 if test -n "$STRIP"; then
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
6041 $as_echo "$STRIP" >&6; }
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6044 $as_echo "no
" >&6; }
6049 if test -z "$ac_cv_prog_STRIP"; then
6051 # Extract the first word of "strip
", so it can be a program name with args.
6052 set dummy strip; ac_word=$2
6053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6054 $as_echo_n "checking
for $ac_word...
" >&6; }
6055 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6056 $as_echo_n "(cached
) " >&6
6058 if test -n "$ac_ct_STRIP"; then
6059 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6065 test -z "$as_dir" && as_dir=.
6066 for ac_exec_ext in '' $ac_executable_extensions; do
6067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6068 ac_cv_prog_ac_ct_STRIP="strip
"
6069 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6078 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6079 if test -n "$ac_ct_STRIP"; then
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6081 $as_echo "$ac_ct_STRIP" >&6; }
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6084 $as_echo "no
" >&6; }
6087 if test "x
$ac_ct_STRIP" = x; then
6090 case $cross_compiling:$ac_tool_warned in
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6093 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6094 ac_tool_warned=yes ;;
6099 STRIP="$ac_cv_prog_STRIP"
6102 test -z "$STRIP" && STRIP=:
6109 if test -n "$ac_tool_prefix"; then
6110 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6111 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6113 $as_echo_n "checking
for $ac_word...
" >&6; }
6114 if ${ac_cv_prog_RANLIB+:} false; then :
6115 $as_echo_n "(cached
) " >&6
6117 if test -n "$RANLIB"; then
6118 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 test -z "$as_dir" && as_dir=.
6125 for ac_exec_ext in '' $ac_executable_extensions; do
6126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6127 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6128 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6137 RANLIB=$ac_cv_prog_RANLIB
6138 if test -n "$RANLIB"; then
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
6140 $as_echo "$RANLIB" >&6; }
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6143 $as_echo "no
" >&6; }
6148 if test -z "$ac_cv_prog_RANLIB"; then
6149 ac_ct_RANLIB=$RANLIB
6150 # Extract the first word of "ranlib
", so it can be a program name with args.
6151 set dummy ranlib; ac_word=$2
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6153 $as_echo_n "checking
for $ac_word...
" >&6; }
6154 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6155 $as_echo_n "(cached
) " >&6
6157 if test -n "$ac_ct_RANLIB"; then
6158 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164 test -z "$as_dir" && as_dir=.
6165 for ac_exec_ext in '' $ac_executable_extensions; do
6166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6167 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6168 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6177 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6178 if test -n "$ac_ct_RANLIB"; then
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
6180 $as_echo "$ac_ct_RANLIB" >&6; }
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6183 $as_echo "no
" >&6; }
6186 if test "x
$ac_ct_RANLIB" = x; then
6189 case $cross_compiling:$ac_tool_warned in
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6192 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6193 ac_tool_warned=yes ;;
6195 RANLIB=$ac_ct_RANLIB
6198 RANLIB="$ac_cv_prog_RANLIB"
6201 test -z "$RANLIB" && RANLIB=:
6208 # Determine commands to create old-style static archives.
6209 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6210 old_postinstall_cmds='chmod 644 $oldlib'
6211 old_postuninstall_cmds=
6213 if test -n "$RANLIB"; then
6216 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$tool_oldlib"
6219 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$tool_oldlib"
6222 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$tool_oldlib"
6227 lock_old_archive_extraction=yes ;;
6229 lock_old_archive_extraction=no ;;
6270 # If no C compiler was specified, use CC.
6273 # If no C compiler flags were specified, use CFLAGS.
6274 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6276 # Allow CC to be a program name with arguments.
6280 # Check for command to grab the raw symbol name followed by C symbol from nm.
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
6282 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
6283 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6284 $as_echo_n "(cached
) " >&6
6287 # These are sane defaults that work on at least a few old systems.
6288 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6290 # Character class describing NM global symbol codes.
6291 symcode='[BCDEGRST]'
6293 # Regexp to match symbols that can be accessed directly from C.
6294 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6296 # Define system-specific variables.
6301 cygwin* | mingw* | pw32* | cegcc*)
6302 symcode='[ABCDGISTW]'
6305 if test ia64 = "$host_cpu"; then
6306 symcode='[ABCDEGRST]'
6310 symcode='[BCDEGRST]'
6313 symcode='[BCDEGQRST]'
6324 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6332 # If we're using GNU nm, then use its standard symbol codes.
6333 case `$NM -V 2>&1` in
6334 *GNU* | *'with BFD'*)
6335 symcode='[ABCDGIRSTW]' ;;
6338 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6339 # Gets list of data symbols to import.
6340 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6341 # Adjust the below global symbol transforms to fixup imported variables.
6342 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6343 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6344 lt_c_name_lib_hook="\
6345 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6346 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6348 # Disable hooks by default.
6349 lt_cv_sys_global_symbol_to_import=
6355 # Transform an extracted symbol line into a proper C declaration.
6356 # Some systems (esp. on ia64) link data and code symbols differently,
6357 # so use this general approach.
6358 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6360 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6361 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6363 # Transform an extracted symbol line into symbol name and symbol address
6364 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6366 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6367 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6369 # Transform an extracted symbol line into symbol name with lib prefix and
6371 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6372 $lt_c_name_lib_hook\
6373 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6374 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6375 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6377 # Handle CRLF in mingw tool chain
6381 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6385 # Try without a prefix underscore, then with it.
6386 for ac_symprfx in "" "_
"; do
6388 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6389 symxfrm="\\1 $ac_symprfx\\2 \\2"
6391 # Write the raw and C identifiers.
6392 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6393 # Fake it for dumpbin and say T for any non-static function,
6394 # D for any global variable and I for any imported variable.
6395 # Also find C++ and __fastcall symbols from MSVC++,
6396 # which start with @ or ?.
6397 lt_cv_sys_global_symbol_pipe="$AWK '"\
6398 " {last_section=section; section=\$ 3};"\
6399 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6400 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6401 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6402 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6403 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6404 " \$ 0!~/External *\|/{next};"\
6405 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6406 " {if(hide[section]) next};"\
6407 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6408 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6409 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6410 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6411 " ' prfx
=^
$ac_symprfx"
6413 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6415 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe |
sed '/ __gnu_lto/d'"
6417 # Check to see that the pipe works correctly.
6421 cat > conftest.$ac_ext <<_LT_EOF
6426 void nm_test_func(void);
6427 void nm_test_func(void){}
6431 int main(){nm_test_var='a';nm_test_func();return(0);}
6434 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6435 (eval $ac_compile) 2>&5
6437 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6438 test $ac_status = 0; }; then
6439 # Now try to grab the symbols.
6441 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
6442 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6444 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6445 test $ac_status = 0; } && test -s "$nlist"; then
6446 # Try sorting and uniquifying the output.
6447 if sort "$nlist" | uniq > "$nlist"T; then
6448 mv -f "$nlist"T "$nlist"
6453 # Make sure that we snagged all the symbols we need.
6454 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6455 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6456 cat <<_LT_EOF > conftest.$ac_ext
6457 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6458 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6459 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6460 relocations are performed -- see ld's documentation on pseudo-relocs. */
6461 # define LT_DLSYM_CONST
6462 #elif defined __osf__
6463 /* This system does not cope well with relocations in const data. */
6464 # define LT_DLSYM_CONST
6466 # define LT_DLSYM_CONST const
6474 # Now generate the symbol file.
6475 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6477 cat <<_LT_EOF >> conftest.$ac_ext
6479 /* The mapping between symbol names and symbols. */
6480 LT_DLSYM_CONST struct {
6484 lt__PROGRAM__LTX_preloaded_symbols[] =
6486 { "@PROGRAM@
", (void *) 0 },
6488 $SED "s
/^
$symcode$symcode* .
* \
(.
*\
)$
/ {\"\
1\", (void
*) \
&\
1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6489 cat <<\_LT_EOF >> conftest.$ac_ext
6493 /* This works around a problem in FreeBSD linker */
6494 #ifdef FREEBSD_WORKAROUND
6495 static const void *lt_preloaded_setup() {
6496 return lt__PROGRAM__LTX_preloaded_symbols;
6504 # Now try linking the two files.
6505 mv conftest.$ac_objext conftstm.$ac_objext
6506 lt_globsym_save_LIBS=$LIBS
6507 lt_globsym_save_CFLAGS=$CFLAGS
6508 LIBS=conftstm.$ac_objext
6509 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6510 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6511 (eval $ac_link) 2>&5
6513 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6514 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6517 LIBS=$lt_globsym_save_LIBS
6518 CFLAGS=$lt_globsym_save_CFLAGS
6520 echo "cannot
find nm_test_func
in $nlist" >&5
6523 echo "cannot
find nm_test_var
in $nlist" >&5
6526 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
6529 echo "$progname: failed program was
:" >&5
6530 cat conftest.$ac_ext >&5
6532 rm -rf conftest* conftst*
6534 # Do not use the global_symbol_pipe unless it works.
6535 if test yes = "$pipe_works"; then
6538 lt_cv_sys_global_symbol_pipe=
6544 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6545 lt_cv_sys_global_symbol_to_cdecl=
6547 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
6549 $as_echo "failed
" >&6; }
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
6552 $as_echo "ok
" >&6; }
6555 # Response file support.
6556 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6557 nm_file_list_spec='@'
6558 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6559 nm_file_list_spec='@'
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for sysroot
" >&5
6599 $as_echo_n "checking
for sysroot...
" >&6; }
6601 # Check whether --with-sysroot was given.
6602 if test "${with_sysroot+set}" = set; then :
6603 withval=$with_sysroot;
6610 case $with_sysroot in #(
6612 if test yes = "$GCC"; then
6613 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6617 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $with_sysroot" >&5
6623 $as_echo "$with_sysroot" >&6; }
6624 as_fn_error $? "The sysroot must be an absolute path.
" "$LINENO" 5
6628 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${lt_sysroot:-no}" >&5
6629 $as_echo "${lt_sysroot:-no}" >&6; }
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a working
dd" >&5
6636 $as_echo_n "checking
for a working
dd...
" >&6; }
6637 if ${ac_cv_path_lt_DD+:} false; then :
6638 $as_echo_n "(cached
) " >&6
6640 printf 0123456789abcdef0123456789abcdef >conftest.i
6641 cat conftest.i conftest.i >conftest2.i
6643 if test -z "$lt_DD"; then
6644 ac_path_lt_DD_found=false
6645 # Loop through the user's path and test for each of PROGNAME-LIST
6646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 test -z "$as_dir" && as_dir=.
6651 for ac_prog in dd; do
6652 for ac_exec_ext in '' $ac_executable_extensions; do
6653 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6654 as_fn_executable_p "$ac_path_lt_DD" || continue
6655 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6656 cmp -s conftest.i conftest.out \
6657 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6659 $ac_path_lt_DD_found && break 3
6664 if test -z "$ac_cv_path_lt_DD"; then
6668 ac_cv_path_lt_DD=$lt_DD
6671 rm -f conftest.i conftest2.i conftest.out
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_lt_DD" >&5
6674 $as_echo "$ac_cv_path_lt_DD" >&6; }
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes
" >&5
6678 $as_echo_n "checking how to truncate binary pipes...
" >&6; }
6679 if ${lt_cv_truncate_bin+:} false; then :
6680 $as_echo_n "(cached
) " >&6
6682 printf 0123456789abcdef0123456789abcdef >conftest.i
6683 cat conftest.i conftest.i >conftest2.i
6685 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6686 cmp -s conftest.i conftest.out \
6687 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs
=4096 count
=1"
6689 rm -f conftest.i conftest2.i conftest.out
6690 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q
"
6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_truncate_bin" >&5
6693 $as_echo "$lt_cv_truncate_bin" >&6; }
6701 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6704 for cc_temp in $*""; do
6706 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6707 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6712 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
6715 # Check whether --enable-libtool-lock was given.
6716 if test "${enable_libtool_lock+set}" = set; then :
6717 enableval=$enable_libtool_lock;
6720 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6722 # Some flags need to be propagated to the compiler or linker for good
6726 # Find out what ABI is being produced by ac_compile, and set mode
6727 # options accordingly.
6728 echo 'int i;' > conftest.$ac_ext
6729 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6730 (eval $ac_compile) 2>&5
6732 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6733 test $ac_status = 0; }; then
6734 case `/usr/bin/file conftest.$ac_objext` in
6746 # Find out what ABI is being produced by ac_compile, and set linker
6747 # options accordingly.
6748 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6749 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6750 (eval $ac_compile) 2>&5
6752 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6753 test $ac_status = 0; }; then
6754 if test yes = "$lt_cv_prog_gnu_ld"; then
6755 case `/usr/bin/file conftest.$ac_objext` in
6757 LD="${LD-ld} -melf32bsmip"
6760 LD="${LD-ld} -melf32bmipn32"
6763 LD="${LD-ld} -melf64bmip"
6767 case `/usr/bin/file conftest.$ac_objext` in
6784 # Find out what ABI is being produced by ac_compile, and set linker
6785 # options accordingly.
6786 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6787 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6788 (eval $ac_compile) 2>&5
6790 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6791 test $ac_status = 0; }; then
6793 case `/usr/bin/file conftest.$ac_objext` in
6801 case `/usr/bin/file conftest.$ac_objext` in
6803 emul="${emul}btsmip
"
6806 emul="${emul}ltsmip
"
6809 case `/usr/bin/file conftest.$ac_objext` in
6814 LD="${LD-ld} -m $emul"
6819 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6820 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6821 # Find out what ABI is being produced by ac_compile, and set linker
6822 # options accordingly. Note that the listed cases only cover the
6823 # situations where additional linker options are needed (such as when
6824 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6825 # vice versa); the common cases where no linker options are needed do
6826 # not appear in the list.
6827 echo 'int i;' > conftest.$ac_ext
6828 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6829 (eval $ac_compile) 2>&5
6831 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6832 test $ac_status = 0; }; then
6833 case `/usr/bin/file conftest.o` in
6836 x86_64-*kfreebsd*-gnu)
6837 LD="${LD-ld} -m elf_i386_fbsd
"
6840 case `/usr/bin/file conftest.o` in
6842 LD="${LD-ld} -m elf32_x86_64
"
6845 LD="${LD-ld} -m elf_i386
"
6849 powerpc64le-*linux*)
6850 LD="${LD-ld} -m elf32lppclinux
"
6853 LD="${LD-ld} -m elf32ppclinux
"
6856 LD="${LD-ld} -m elf_s390
"
6859 LD="${LD-ld} -m elf32_sparc
"
6865 x86_64-*kfreebsd*-gnu)
6866 LD="${LD-ld} -m elf_x86_64_fbsd
"
6869 LD="${LD-ld} -m elf_x86_64
"
6872 LD="${LD-ld} -m elf64lppc
"
6875 LD="${LD-ld} -m elf64ppc
"
6877 s390*-*linux*|s390*-*tpf*)
6878 LD="${LD-ld} -m elf64_s390
"
6881 LD="${LD-ld} -m elf64_sparc
"
6891 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6893 CFLAGS="$CFLAGS -belf"
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
6895 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6896 if ${lt_cv_cc_needs_belf+:} false; then :
6897 $as_echo_n "(cached
) " >&6
6900 ac_cpp='$CPP $CPPFLAGS'
6901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6906 /* end confdefs.h. */
6916 if ac_fn_c_try_link "$LINENO"; then :
6917 lt_cv_cc_needs_belf=yes
6919 lt_cv_cc_needs_belf=no
6921 rm -f core conftest.err conftest.$ac_objext \
6922 conftest$ac_exeext conftest.$ac_ext
6924 ac_cpp='$CPP $CPPFLAGS'
6925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
6931 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6932 if test yes != "$lt_cv_cc_needs_belf"; then
6933 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6938 # Find out what ABI is being produced by ac_compile, and set linker
6939 # options accordingly.
6940 echo 'int i;' > conftest.$ac_ext
6941 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6942 (eval $ac_compile) 2>&5
6944 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6945 test $ac_status = 0; }; then
6946 case `/usr/bin/file conftest.o` in
6948 case $lt_cv_prog_gnu_ld in
6951 i?86-*-solaris*|x86_64-*-solaris*)
6952 LD="${LD-ld} -m elf_x86_64
"
6955 LD="${LD-ld} -m elf64_sparc
"
6958 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6959 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6964 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6976 need_locks=$enable_libtool_lock
6978 if test -n "$ac_tool_prefix"; then
6979 # Extract the first word of "${ac_tool_prefix}mt
", so it can be a program name with args.
6980 set dummy ${ac_tool_prefix}mt; ac_word=$2
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6982 $as_echo_n "checking
for $ac_word...
" >&6; }
6983 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6984 $as_echo_n "(cached
) " >&6
6986 if test -n "$MANIFEST_TOOL"; then
6987 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 test -z "$as_dir" && as_dir=.
6994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6996 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt
"
6997 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7006 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7007 if test -n "$MANIFEST_TOOL"; then
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MANIFEST_TOOL" >&5
7009 $as_echo "$MANIFEST_TOOL" >&6; }
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7012 $as_echo "no
" >&6; }
7017 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7018 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7019 # Extract the first word of "mt
", so it can be a program name with args.
7020 set dummy mt; ac_word=$2
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7022 $as_echo_n "checking
for $ac_word...
" >&6; }
7023 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7024 $as_echo_n "(cached
) " >&6
7026 if test -n "$ac_ct_MANIFEST_TOOL"; then
7027 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 test -z "$as_dir" && as_dir=.
7034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7036 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt
"
7037 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7046 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7047 if test -n "$ac_ct_MANIFEST_TOOL"; then
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_MANIFEST_TOOL" >&5
7049 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7052 $as_echo "no
" >&6; }
7055 if test "x
$ac_ct_MANIFEST_TOOL" = x; then
7058 case $cross_compiling:$ac_tool_warned in
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7061 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7062 ac_tool_warned=yes ;;
7064 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7067 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7070 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $MANIFEST_TOOL is a manifest tool
" >&5
7072 $as_echo_n "checking
if $MANIFEST_TOOL is a manifest tool...
" >&6; }
7073 if ${lt_cv_path_mainfest_tool+:} false; then :
7074 $as_echo_n "(cached
) " >&6
7076 lt_cv_path_mainfest_tool=no
7077 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7078 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7079 cat conftest.err >&5
7080 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7081 lt_cv_path_mainfest_tool=yes
7085 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_mainfest_tool" >&5
7086 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7087 if test yes != "$lt_cv_path_mainfest_tool"; then
7097 rhapsody* | darwin*)
7098 if test -n "$ac_tool_prefix"; then
7099 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7100 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7102 $as_echo_n "checking
for $ac_word...
" >&6; }
7103 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7104 $as_echo_n "(cached
) " >&6
7106 if test -n "$DSYMUTIL"; then
7107 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7113 test -z "$as_dir" && as_dir=.
7114 for ac_exec_ext in '' $ac_executable_extensions; do
7115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7116 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7117 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7126 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7127 if test -n "$DSYMUTIL"; then
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7129 $as_echo "$DSYMUTIL" >&6; }
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7132 $as_echo "no
" >&6; }
7137 if test -z "$ac_cv_prog_DSYMUTIL"; then
7138 ac_ct_DSYMUTIL=$DSYMUTIL
7139 # Extract the first word of "dsymutil
", so it can be a program name with args.
7140 set dummy dsymutil; ac_word=$2
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7142 $as_echo_n "checking
for $ac_word...
" >&6; }
7143 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7144 $as_echo_n "(cached
) " >&6
7146 if test -n "$ac_ct_DSYMUTIL"; then
7147 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153 test -z "$as_dir" && as_dir=.
7154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7156 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7157 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7166 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7167 if test -n "$ac_ct_DSYMUTIL"; then
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7169 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7172 $as_echo "no
" >&6; }
7175 if test "x
$ac_ct_DSYMUTIL" = x; then
7178 case $cross_compiling:$ac_tool_warned in
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7181 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7182 ac_tool_warned=yes ;;
7184 DSYMUTIL=$ac_ct_DSYMUTIL
7187 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7190 if test -n "$ac_tool_prefix"; then
7191 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7192 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7194 $as_echo_n "checking
for $ac_word...
" >&6; }
7195 if ${ac_cv_prog_NMEDIT+:} false; then :
7196 $as_echo_n "(cached
) " >&6
7198 if test -n "$NMEDIT"; then
7199 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7205 test -z "$as_dir" && as_dir=.
7206 for ac_exec_ext in '' $ac_executable_extensions; do
7207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7208 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7209 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7218 NMEDIT=$ac_cv_prog_NMEDIT
7219 if test -n "$NMEDIT"; then
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7221 $as_echo "$NMEDIT" >&6; }
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7224 $as_echo "no
" >&6; }
7229 if test -z "$ac_cv_prog_NMEDIT"; then
7230 ac_ct_NMEDIT=$NMEDIT
7231 # Extract the first word of "nmedit
", so it can be a program name with args.
7232 set dummy nmedit; ac_word=$2
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7234 $as_echo_n "checking
for $ac_word...
" >&6; }
7235 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7236 $as_echo_n "(cached
) " >&6
7238 if test -n "$ac_ct_NMEDIT"; then
7239 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 test -z "$as_dir" && as_dir=.
7246 for ac_exec_ext in '' $ac_executable_extensions; do
7247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7248 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7249 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7258 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7259 if test -n "$ac_ct_NMEDIT"; then
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
7261 $as_echo "$ac_ct_NMEDIT" >&6; }
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7264 $as_echo "no
" >&6; }
7267 if test "x
$ac_ct_NMEDIT" = x; then
7270 case $cross_compiling:$ac_tool_warned in
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7273 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7274 ac_tool_warned=yes ;;
7276 NMEDIT=$ac_ct_NMEDIT
7279 NMEDIT="$ac_cv_prog_NMEDIT"
7282 if test -n "$ac_tool_prefix"; then
7283 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
7284 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7286 $as_echo_n "checking
for $ac_word...
" >&6; }
7287 if ${ac_cv_prog_LIPO+:} false; then :
7288 $as_echo_n "(cached
) " >&6
7290 if test -n "$LIPO"; then
7291 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297 test -z "$as_dir" && as_dir=.
7298 for ac_exec_ext in '' $ac_executable_extensions; do
7299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7300 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
7301 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7310 LIPO=$ac_cv_prog_LIPO
7311 if test -n "$LIPO"; then
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
7313 $as_echo "$LIPO" >&6; }
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7316 $as_echo "no
" >&6; }
7321 if test -z "$ac_cv_prog_LIPO"; then
7323 # Extract the first word of "lipo
", so it can be a program name with args.
7324 set dummy lipo; ac_word=$2
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7326 $as_echo_n "checking
for $ac_word...
" >&6; }
7327 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7328 $as_echo_n "(cached
) " >&6
7330 if test -n "$ac_ct_LIPO"; then
7331 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337 test -z "$as_dir" && as_dir=.
7338 for ac_exec_ext in '' $ac_executable_extensions; do
7339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7340 ac_cv_prog_ac_ct_LIPO="lipo
"
7341 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7350 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7351 if test -n "$ac_ct_LIPO"; then
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
7353 $as_echo "$ac_ct_LIPO" >&6; }
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7356 $as_echo "no
" >&6; }
7359 if test "x
$ac_ct_LIPO" = x; then
7362 case $cross_compiling:$ac_tool_warned in
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7365 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7366 ac_tool_warned=yes ;;
7371 LIPO="$ac_cv_prog_LIPO"
7374 if test -n "$ac_tool_prefix"; then
7375 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7376 set dummy ${ac_tool_prefix}otool; ac_word=$2
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7378 $as_echo_n "checking
for $ac_word...
" >&6; }
7379 if ${ac_cv_prog_OTOOL+:} false; then :
7380 $as_echo_n "(cached
) " >&6
7382 if test -n "$OTOOL"; then
7383 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389 test -z "$as_dir" && as_dir=.
7390 for ac_exec_ext in '' $ac_executable_extensions; do
7391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7392 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7393 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7402 OTOOL=$ac_cv_prog_OTOOL
7403 if test -n "$OTOOL"; then
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7405 $as_echo "$OTOOL" >&6; }
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7408 $as_echo "no
" >&6; }
7413 if test -z "$ac_cv_prog_OTOOL"; then
7415 # Extract the first word of "otool
", so it can be a program name with args.
7416 set dummy otool; ac_word=$2
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7418 $as_echo_n "checking
for $ac_word...
" >&6; }
7419 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7420 $as_echo_n "(cached
) " >&6
7422 if test -n "$ac_ct_OTOOL"; then
7423 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429 test -z "$as_dir" && as_dir=.
7430 for ac_exec_ext in '' $ac_executable_extensions; do
7431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7432 ac_cv_prog_ac_ct_OTOOL="otool
"
7433 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7442 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7443 if test -n "$ac_ct_OTOOL"; then
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7445 $as_echo "$ac_ct_OTOOL" >&6; }
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7448 $as_echo "no
" >&6; }
7451 if test "x
$ac_ct_OTOOL" = x; then
7454 case $cross_compiling:$ac_tool_warned in
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7457 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7458 ac_tool_warned=yes ;;
7463 OTOOL="$ac_cv_prog_OTOOL"
7466 if test -n "$ac_tool_prefix"; then
7467 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7468 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7470 $as_echo_n "checking
for $ac_word...
" >&6; }
7471 if ${ac_cv_prog_OTOOL64+:} false; then :
7472 $as_echo_n "(cached
) " >&6
7474 if test -n "$OTOOL64"; then
7475 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7481 test -z "$as_dir" && as_dir=.
7482 for ac_exec_ext in '' $ac_executable_extensions; do
7483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7484 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7485 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7494 OTOOL64=$ac_cv_prog_OTOOL64
7495 if test -n "$OTOOL64"; then
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7497 $as_echo "$OTOOL64" >&6; }
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7500 $as_echo "no
" >&6; }
7505 if test -z "$ac_cv_prog_OTOOL64"; then
7506 ac_ct_OTOOL64=$OTOOL64
7507 # Extract the first word of "otool64
", so it can be a program name with args.
7508 set dummy otool64; ac_word=$2
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7510 $as_echo_n "checking
for $ac_word...
" >&6; }
7511 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7512 $as_echo_n "(cached
) " >&6
7514 if test -n "$ac_ct_OTOOL64"; then
7515 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7521 test -z "$as_dir" && as_dir=.
7522 for ac_exec_ext in '' $ac_executable_extensions; do
7523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7524 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7525 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7534 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7535 if test -n "$ac_ct_OTOOL64"; then
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7537 $as_echo "$ac_ct_OTOOL64" >&6; }
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7540 $as_echo "no
" >&6; }
7543 if test "x
$ac_ct_OTOOL64" = x; then
7546 case $cross_compiling:$ac_tool_warned in
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7549 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7550 ac_tool_warned=yes ;;
7552 OTOOL64=$ac_ct_OTOOL64
7555 OTOOL64="$ac_cv_prog_OTOOL64"
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
7585 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
7586 if ${lt_cv_apple_cc_single_mod+:} false; then :
7587 $as_echo_n "(cached
) " >&6
7589 lt_cv_apple_cc_single_mod=no
7590 if test -z "$LT_MULTI_MODULE"; then
7591 # By default we will add the -single_module flag. You can override
7592 # by either setting the environment variable LT_MULTI_MODULE
7593 # non-empty at configure time, or by adding -multi_module to the
7595 rm -rf libconftest.dylib*
7596 echo "int foo
(void
){return 1;}" > conftest.c
7597 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7598 -dynamiclib -Wl,-single_module conftest.c
" >&5
7599 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7600 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7602 # If there is a non-empty error log, and "single_module
"
7603 # appears in it, assume the flag caused a linker warning
7604 if test -s conftest.err && $GREP single_module conftest.err; then
7605 cat conftest.err >&5
7606 # Otherwise, if the output was created with a 0 exit code from
7607 # the compiler, it worked.
7608 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7609 lt_cv_apple_cc_single_mod=yes
7611 cat conftest.err >&5
7613 rm -rf libconftest.dylib*
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
7618 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
7621 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
7622 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7623 $as_echo_n "(cached
) " >&6
7625 lt_cv_ld_exported_symbols_list=no
7626 save_LDFLAGS=$LDFLAGS
7627 echo "_main
" > conftest.sym
7628 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
7629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7630 /* end confdefs.h. */
7640 if ac_fn_c_try_link "$LINENO"; then :
7641 lt_cv_ld_exported_symbols_list=yes
7643 lt_cv_ld_exported_symbols_list=no
7645 rm -f core conftest.err conftest.$ac_objext \
7646 conftest$ac_exeext conftest.$ac_ext
7647 LDFLAGS=$save_LDFLAGS
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
7651 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
7654 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
7655 if ${lt_cv_ld_force_load+:} false; then :
7656 $as_echo_n "(cached
) " >&6
7658 lt_cv_ld_force_load=no
7659 cat > conftest.c << _LT_EOF
7660 int forced_loaded() { return 2;}
7662 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
7663 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7664 echo "$AR cru libconftest.a conftest.o
" >&5
7665 $AR cru libconftest.a conftest.o 2>&5
7666 echo "$RANLIB libconftest.a
" >&5
7667 $RANLIB libconftest.a 2>&5
7668 cat > conftest.c << _LT_EOF
7669 int main() { return 0;}
7671 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
7672 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7674 if test -s conftest.err && $GREP force_load conftest.err; then
7675 cat conftest.err >&5
7676 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7677 lt_cv_ld_force_load=yes
7679 cat conftest.err >&5
7681 rm -f conftest.err libconftest.a conftest conftest.c
7682 rm -rf conftest.dSYM
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
7686 $as_echo "$lt_cv_ld_force_load" >&6; }
7688 rhapsody* | darwin1.[012])
7689 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7691 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7692 darwin*) # darwin 5.x on
7693 # if running on 10.5 or later, the deployment target defaults
7694 # to the OS version, if on x86, and 10.4, the deployment
7695 # target defaults to 10.4. Don't you love it?
7696 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7697 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7698 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7700 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7702 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7706 if test yes = "$lt_cv_apple_cc_single_mod"; then
7707 _lt_dar_single_mod='$single_module'
7709 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7710 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7712 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7714 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7715 _lt_dsymutil='~$DSYMUTIL $lib || :'
7722 # func_munge_path_list VARIABLE PATH
7723 # -----------------------------------
7724 # VARIABLE is name of variable containing _space_ separated list of
7725 # directories to be munged by the contents of PATH, which is string
7728 # string "DIR
[ DIR
]" will be prepended to VARIABLE
7730 # string "DIR
[ DIR
]" will be appended to VARIABLE
7731 # "DIRP
[:DIRP
]::[DIRA
:]DIRA
"
7732 # string "DIRP
[ DIRP
]" will be prepended to VARIABLE and string
7733 # "DIRA
[ DIRA
]" will be appended to VARIABLE
7735 # VARIABLE will be replaced by "DIR
[ DIR
]"
7736 func_munge_path_list ()
7742 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7745 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7748 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7749 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7752 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7758 ac_cpp='$CPP $CPPFLAGS'
7759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
7763 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
7764 # On Suns, sometimes $CPP names a directory.
7765 if test -n "$CPP" && test -d "$CPP"; then
7768 if test -z "$CPP"; then
7769 if ${ac_cv_prog_CPP+:} false; then :
7770 $as_echo_n "(cached
) " >&6
7772 # Double quotes because CPP needs to be expanded
7773 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
7776 for ac_c_preproc_warn_flag in '' yes
7778 # Use a header file that comes with gcc, so configuring glibc
7779 # with a fresh cross-compiler works.
7780 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7781 # <limits.h> exists even on freestanding compilers.
7782 # On the NeXT, cc -E runs the code through the compiler's parser,
7783 # not just through cpp. "Syntax error
" is here to catch this case.
7784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7785 /* end confdefs.h. */
7787 # include <limits.h>
7789 # include <assert.h>
7793 if ac_fn_c_try_cpp "$LINENO"; then :
7796 # Broken: fails on valid input.
7799 rm -f conftest.err conftest.i conftest.$ac_ext
7801 # OK, works on sane cases. Now check whether nonexistent headers
7802 # can be detected and how.
7803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804 /* end confdefs.h. */
7805 #include <ac_nonexistent.h>
7807 if ac_fn_c_try_cpp "$LINENO"; then :
7808 # Broken: success on invalid input.
7811 # Passes both tests.
7815 rm -f conftest.err conftest.i conftest.$ac_ext
7818 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7819 rm -f conftest.i conftest.err conftest.$ac_ext
7820 if $ac_preproc_ok; then :
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
7833 $as_echo "$CPP" >&6; }
7835 for ac_c_preproc_warn_flag in '' yes
7837 # Use a header file that comes with gcc, so configuring glibc
7838 # with a fresh cross-compiler works.
7839 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7840 # <limits.h> exists even on freestanding compilers.
7841 # On the NeXT, cc -E runs the code through the compiler's parser,
7842 # not just through cpp. "Syntax error
" is here to catch this case.
7843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844 /* end confdefs.h. */
7846 # include <limits.h>
7848 # include <assert.h>
7852 if ac_fn_c_try_cpp "$LINENO"; then :
7855 # Broken: fails on valid input.
7858 rm -f conftest.err conftest.i conftest.$ac_ext
7860 # OK, works on sane cases. Now check whether nonexistent headers
7861 # can be detected and how.
7862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7863 /* end confdefs.h. */
7864 #include <ac_nonexistent.h>
7866 if ac_fn_c_try_cpp "$LINENO"; then :
7867 # Broken: success on invalid input.
7870 # Passes both tests.
7874 rm -f conftest.err conftest.i conftest.$ac_ext
7877 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7878 rm -f conftest.i conftest.err conftest.$ac_ext
7879 if $ac_preproc_ok; then :
7882 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
7883 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7884 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7885 See \`config.log' for more details
" "$LINENO" 5; }
7889 ac_cpp='$CPP $CPPFLAGS'
7890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
7896 $as_echo_n "checking
for ANSI C header files...
" >&6; }
7897 if ${ac_cv_header_stdc+:} false; then :
7898 $as_echo_n "(cached
) " >&6
7900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901 /* end confdefs.h. */
7915 if ac_fn_c_try_compile "$LINENO"; then :
7916 ac_cv_header_stdc=yes
7918 ac_cv_header_stdc=no
7920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7922 if test $ac_cv_header_stdc = yes; then
7923 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h. */
7929 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7930 $EGREP "memchr
" >/dev/null 2>&1; then :
7933 ac_cv_header_stdc=no
7939 if test $ac_cv_header_stdc = yes; then
7940 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7942 /* end confdefs.h. */
7946 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7947 $EGREP "free
" >/dev/null 2>&1; then :
7950 ac_cv_header_stdc=no
7956 if test $ac_cv_header_stdc = yes; then
7957 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7958 if test "$cross_compiling" = yes; then :
7961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7962 /* end confdefs.h. */
7965 #if ((' ' & 0x0FF) == 0x020)
7966 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7967 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7969 # define ISLOWER(c) \
7970 (('a' <= (c) && (c) <= 'i') \
7971 || ('j' <= (c) && (c) <= 'r') \
7972 || ('s' <= (c) && (c) <= 'z'))
7973 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7976 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7981 for (i = 0; i < 256; i++)
7982 if (XOR (islower (i), ISLOWER (i))
7983 || toupper (i) != TOUPPER (i))
7988 if ac_fn_c_try_run "$LINENO"; then :
7991 ac_cv_header_stdc=no
7993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7994 conftest.$ac_objext conftest.beam conftest.$ac_ext
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
8000 $as_echo "$ac_cv_header_stdc" >&6; }
8001 if test $ac_cv_header_stdc = yes; then
8003 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8007 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8008 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
8009 inttypes.h stdint.h unistd.h
8011 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8012 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8014 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8015 cat >>confdefs.h
<<_ACEOF
8016 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8024 for ac_header
in dlfcn.h
8026 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8028 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
8029 cat >>confdefs.h
<<_ACEOF
8030 #define HAVE_DLFCN_H 1
8051 # Check whether --enable-shared was given.
8052 if test "${enable_shared+set}" = set; then :
8053 enableval
=$enable_shared; p
=${PACKAGE-default}
8055 yes) enable_shared
=yes ;;
8056 no
) enable_shared
=no
;;
8059 # Look at the argument we got. We use all the common list separators.
8060 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8061 for pkg
in $enableval; do
8063 if test "X$pkg" = "X$p"; then
8082 # Check whether --enable-static was given.
8083 if test "${enable_static+set}" = set; then :
8084 enableval
=$enable_static; p
=${PACKAGE-default}
8086 yes) enable_static
=yes ;;
8087 no
) enable_static
=no
;;
8090 # Look at the argument we got. We use all the common list separators.
8091 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8092 for pkg
in $enableval; do
8094 if test "X$pkg" = "X$p"; then
8114 # Check whether --with-pic was given.
8115 if test "${with_pic+set}" = set; then :
8116 withval
=$with_pic; lt_p
=${PACKAGE-default}
8118 yes|no
) pic_mode
=$withval ;;
8121 # Look at the argument we got. We use all the common list separators.
8122 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8123 for lt_pkg
in $withval; do
8125 if test "X$lt_pkg" = "X$lt_p"; then
8143 # Check whether --enable-fast-install was given.
8144 if test "${enable_fast_install+set}" = set; then :
8145 enableval
=$enable_fast_install; p
=${PACKAGE-default}
8147 yes) enable_fast_install
=yes ;;
8148 no
) enable_fast_install
=no
;;
8150 enable_fast_install
=no
8151 # Look at the argument we got. We use all the common list separators.
8152 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8153 for pkg
in $enableval; do
8155 if test "X$pkg" = "X$p"; then
8156 enable_fast_install
=yes
8163 enable_fast_install
=yes
8173 shared_archive_member_spec
=
8174 case $host,$enable_shared in
8175 power
*-*-aix[5-9]*,yes)
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8177 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8179 # Check whether --with-aix-soname was given.
8180 if test "${with_aix_soname+set}" = set; then :
8181 withval
=$with_aix_soname; case $withval in
8185 as_fn_error $?
"Unknown argument to --with-aix-soname" "$LINENO" 5
8188 lt_cv_with_aix_soname
=$with_aix_soname
8190 if ${lt_cv_with_aix_soname+:} false
; then :
8191 $as_echo_n "(cached) " >&6
8193 lt_cv_with_aix_soname
=aix
8196 with_aix_soname
=$lt_cv_with_aix_soname
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8200 $as_echo "$with_aix_soname" >&6; }
8201 if test aix
!= "$with_aix_soname"; then
8202 # For the AIX way of multilib, we name the shared archive member
8203 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8204 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8205 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8206 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8207 if test 64 = "${OBJECT_MODE-32}"; then
8208 shared_archive_member_spec
=shr_64
8210 shared_archive_member_spec
=shr
8228 # This can be used to rebuild libtool when needed
8229 LIBTOOL_DEPS
=$ltmain
8231 # Always use our own libtool.
8232 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
8263 test -z "$LN_S" && LN_S
="ln -s"
8278 if test -n "${ZSH_VERSION+set}"; then
8279 setopt NO_GLOB_SUBST
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8283 $as_echo_n "checking for objdir... " >&6; }
8284 if ${lt_cv_objdir+:} false
; then :
8285 $as_echo_n "(cached) " >&6
8287 rm -f .libs
2>/dev
/null
8288 mkdir .libs
2>/dev
/null
8289 if test -d .libs
; then
8292 # MS-DOS does not allow filenames that begin with a dot.
8295 rmdir .libs
2>/dev
/null
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8298 $as_echo "$lt_cv_objdir" >&6; }
8299 objdir
=$lt_cv_objdir
8305 cat >>confdefs.h
<<_ACEOF
8306 #define LT_OBJDIR "$lt_cv_objdir/"
8314 # AIX sometimes has problems with the GCC collect2 program. For some
8315 # reason, if we set the COLLECT_NAMES environment variable, the problems
8316 # vanish in a puff of smoke.
8317 if test set != "${COLLECT_NAMES+set}"; then
8319 export COLLECT_NAMES
8326 can_build_shared
=yes
8328 # All known linkers require a '.a' archive for static linking (except MSVC,
8329 # which needs '.lib').
8332 with_gnu_ld
=$lt_cv_prog_gnu_ld
8337 # Set sane defaults for various variables
8338 test -z "$CC" && CC
=cc
8339 test -z "$LTCC" && LTCC
=$CC
8340 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8341 test -z "$LD" && LD
=ld
8342 test -z "$ac_objext" && ac_objext
=o
8344 func_cc_basename
$compiler
8345 cc_basename
=$func_cc_basename_result
8348 # Only perform the check for file, if the check method requires it
8349 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8350 case $deplibs_check_method in
8352 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8354 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8355 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8356 $as_echo_n "(cached) " >&6
8360 lt_cv_path_MAGIC_CMD
=$MAGIC_CMD # Let the user override the test with a path.
8363 lt_save_MAGIC_CMD
=$MAGIC_CMD
8364 lt_save_ifs
=$IFS; IFS
=$PATH_SEPARATOR
8365 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8366 for ac_dir
in $ac_dummy; do
8368 test -z "$ac_dir" && ac_dir
=.
8369 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8370 lt_cv_path_MAGIC_CMD
=$ac_dir/"${ac_tool_prefix}file"
8371 if test -n "$file_magic_test_file"; then
8372 case $deplibs_check_method in
8374 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8375 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8376 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8377 $EGREP "$file_magic_regex" > /dev
/null
; then
8382 *** Warning: the command libtool uses to detect shared libraries,
8383 *** $file_magic_cmd, produces output that libtool cannot recognize.
8384 *** The result is that libtool may fail to recognize shared libraries
8385 *** as such. This will affect the creation of libtool libraries that
8386 *** depend on shared libraries, but programs linked with such libtool
8387 *** libraries will work regardless of this problem. Nevertheless, you
8388 *** may want to report the problem to your system manager and/or to
8389 *** bug-libtool@gnu.org
8399 MAGIC_CMD
=$lt_save_MAGIC_CMD
8404 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8405 if test -n "$MAGIC_CMD"; then
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8407 $as_echo "$MAGIC_CMD" >&6; }
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410 $as_echo "no" >&6; }
8417 if test -z "$lt_cv_path_MAGIC_CMD"; then
8418 if test -n "$ac_tool_prefix"; then
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8420 $as_echo_n "checking for file... " >&6; }
8421 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8422 $as_echo_n "(cached) " >&6
8426 lt_cv_path_MAGIC_CMD
=$MAGIC_CMD # Let the user override the test with a path.
8429 lt_save_MAGIC_CMD
=$MAGIC_CMD
8430 lt_save_ifs
=$IFS; IFS
=$PATH_SEPARATOR
8431 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8432 for ac_dir
in $ac_dummy; do
8434 test -z "$ac_dir" && ac_dir
=.
8435 if test -f "$ac_dir/file"; then
8436 lt_cv_path_MAGIC_CMD
=$ac_dir/"file"
8437 if test -n "$file_magic_test_file"; then
8438 case $deplibs_check_method in
8440 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8441 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8442 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8443 $EGREP "$file_magic_regex" > /dev
/null
; then
8448 *** Warning: the command libtool uses to detect shared libraries,
8449 *** $file_magic_cmd, produces output that libtool cannot recognize.
8450 *** The result is that libtool may fail to recognize shared libraries
8451 *** as such. This will affect the creation of libtool libraries that
8452 *** depend on shared libraries, but programs linked with such libtool
8453 *** libraries will work regardless of this problem. Nevertheless, you
8454 *** may want to report the problem to your system manager and/or to
8455 *** bug-libtool@gnu.org
8465 MAGIC_CMD
=$lt_save_MAGIC_CMD
8470 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8471 if test -n "$MAGIC_CMD"; then
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8473 $as_echo "$MAGIC_CMD" >&6; }
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8476 $as_echo "no" >&6; }
8489 # Use C for the default configuration in the libtool script
8493 ac_cpp
='$CPP $CPPFLAGS'
8494 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8495 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8496 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8499 # Source file extension for C test sources.
8502 # Object file extension for compiled C test sources.
8506 # Code to be used in simple compile tests
8507 lt_simple_compile_test_code
="int some_variable = 0;"
8509 # Code to be used in simple link tests
8510 lt_simple_link_test_code
='int main(){return(0);}'
8518 # If no C compiler was specified, use CC.
8521 # If no C compiler flags were specified, use CFLAGS.
8522 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8524 # Allow CC to be a program name with arguments.
8527 # Save the default compiler, since it gets overwritten when the other
8528 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8529 compiler_DEFAULT
=$CC
8531 # save warnings/boilerplate of simple test code
8532 ac_outfile
=conftest.
$ac_objext
8533 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8534 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8535 _lt_compiler_boilerplate
=`cat conftest.err`
8538 ac_outfile
=conftest.
$ac_objext
8539 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8540 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8541 _lt_linker_boilerplate
=`cat conftest.err`
8546 ## There is no encapsulation within the following macros, do not change
8547 ## the running order or otherwise move them around unless you know exactly
8548 ## what you are doing...
8549 if test -n "$compiler"; then
8551 lt_prog_compiler_no_builtin_flag
=
8553 if test yes = "$GCC"; then
8554 case $cc_basename in
8556 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8558 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8562 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8563 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
8564 $as_echo_n "(cached) " >&6
8566 lt_cv_prog_compiler_rtti_exceptions
=no
8567 ac_outfile
=conftest.
$ac_objext
8568 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8569 lt_compiler_flag
="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8570 # Insert the option either (1) after the last *FLAGS variable, or
8571 # (2) before a word containing "conftest.", or (3) at the end.
8572 # Note that $ac_compile itself does not contain backslashes and begins
8573 # with a dollar sign (not a hyphen), so the echo should work correctly.
8574 # The option is referenced via a variable to avoid confusing sed.
8575 lt_compile
=`echo "$ac_compile" | $SED \
8576 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8577 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8578 -e 's:$: $lt_compiler_flag:'`
8579 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8580 (eval "$lt_compile" 2>conftest.err
)
8582 cat conftest.err
>&5
8583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8584 if (exit $ac_status) && test -s "$ac_outfile"; then
8585 # The compiler can only warn and ignore the option if not recognized
8586 # So say no if there are warnings other than the usual output.
8587 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8588 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8589 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8590 lt_cv_prog_compiler_rtti_exceptions
=yes
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8597 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8599 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8600 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8612 lt_prog_compiler_wl
=
8613 lt_prog_compiler_pic
=
8614 lt_prog_compiler_static
=
8617 if test yes = "$GCC"; then
8618 lt_prog_compiler_wl
='-Wl,'
8619 lt_prog_compiler_static
='-static'
8623 # All AIX code is PIC.
8624 if test ia64
= "$host_cpu"; then
8625 # AIX 5 now supports IA64 processor
8626 lt_prog_compiler_static
='-Bstatic'
8628 lt_prog_compiler_pic
='-fPIC'
8634 # see comment about AmigaOS4 .so support
8635 lt_prog_compiler_pic
='-fPIC'
8638 # FIXME: we need at least 68020 code to build shared libraries, but
8639 # adding the '-m68020' flag to GCC prevents building anything better,
8641 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8646 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8647 # PIC is the default for these OSes.
8650 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8651 # This hack is so that the source file can tell whether it is being
8652 # built for inclusion in a dll (and should export symbols for example).
8653 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8654 # (--disable-auto-import) libraries
8655 lt_prog_compiler_pic
='-DDLL_EXPORT'
8658 lt_prog_compiler_static
='$wl-static'
8663 darwin
* | rhapsody
*)
8664 # PIC is the default on this platform
8665 # Common symbols not allowed in MH_DYLIB files
8666 lt_prog_compiler_pic
='-fno-common'
8670 # PIC is the default for Haiku.
8671 # The "-static" flag exists, but is broken.
8672 lt_prog_compiler_static
=
8676 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8677 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8678 # sets the default TLS model and affects inlining.
8684 lt_prog_compiler_pic
='-fPIC'
8690 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8691 # Instead, we relocate shared libraries at runtime.
8695 # Just because we use GCC doesn't mean we suddenly get shared libraries
8696 # on systems that don't support them.
8697 lt_prog_compiler_can_build_shared
=no
8702 # QNX uses GNU C++, but need to define -shared option too, otherwise
8704 lt_prog_compiler_pic
='-fPIC -shared'
8708 if test -d /usr
/nec
; then
8709 lt_prog_compiler_pic
=-Kconform_pic
8714 lt_prog_compiler_pic
='-fPIC'
8718 case $cc_basename in
8719 nvcc
*) # Cuda Compiler Driver 2.2
8720 lt_prog_compiler_wl
='-Xlinker '
8721 if test -n "$lt_prog_compiler_pic"; then
8722 lt_prog_compiler_pic
="-Xcompiler $lt_prog_compiler_pic"
8727 # PORTME Check for flag to pass linker flags through the system compiler.
8730 lt_prog_compiler_wl
='-Wl,'
8731 if test ia64
= "$host_cpu"; then
8732 # AIX 5 now supports IA64 processor
8733 lt_prog_compiler_static
='-Bstatic'
8735 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8739 darwin
* | rhapsody
*)
8740 # PIC is the default on this platform
8741 # Common symbols not allowed in MH_DYLIB files
8742 lt_prog_compiler_pic
='-fno-common'
8743 case $cc_basename in
8745 # NAG Fortran compiler
8746 lt_prog_compiler_wl
='-Wl,-Wl,,'
8747 lt_prog_compiler_pic
='-PIC'
8748 lt_prog_compiler_static
='-Bstatic'
8753 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8754 # This hack is so that the source file can tell whether it is being
8755 # built for inclusion in a dll (and should export symbols for example).
8756 lt_prog_compiler_pic
='-DDLL_EXPORT'
8759 lt_prog_compiler_static
='$wl-static'
8764 hpux9
* | hpux10
* | hpux11
*)
8765 lt_prog_compiler_wl
='-Wl,'
8766 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8773 lt_prog_compiler_pic
='+Z'
8776 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8777 lt_prog_compiler_static
='$wl-a ${wl}archive'
8780 irix5
* | irix6
* | nonstopux
*)
8781 lt_prog_compiler_wl
='-Wl,'
8782 # PIC (with -KPIC) is the default.
8783 lt_prog_compiler_static
='-non_shared'
8786 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
8787 case $cc_basename in
8788 # old Intel for x86_64, which still supported -KPIC.
8790 lt_prog_compiler_wl
='-Wl,'
8791 lt_prog_compiler_pic
='-KPIC'
8792 lt_prog_compiler_static
='-static'
8794 # icc used to be incompatible with GCC.
8795 # ICC 10 doesn't accept -KPIC any more.
8797 lt_prog_compiler_wl
='-Wl,'
8798 lt_prog_compiler_pic
='-fPIC'
8799 lt_prog_compiler_static
='-static'
8801 # Lahey Fortran 8.1.
8803 lt_prog_compiler_wl
='-Wl,'
8804 lt_prog_compiler_pic
='--shared'
8805 lt_prog_compiler_static
='--static'
8808 # NAG Fortran compiler
8809 lt_prog_compiler_wl
='-Wl,-Wl,,'
8810 lt_prog_compiler_pic
='-PIC'
8811 lt_prog_compiler_static
='-Bstatic'
8814 # Fabrice Bellard et al's Tiny C Compiler
8815 lt_prog_compiler_wl
='-Wl,'
8816 lt_prog_compiler_pic
='-fPIC'
8817 lt_prog_compiler_static
='-static'
8819 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8820 # Portland Group compilers (*not* the Pentium gcc compiler,
8821 # which looks to be a dead project)
8822 lt_prog_compiler_wl
='-Wl,'
8823 lt_prog_compiler_pic
='-fpic'
8824 lt_prog_compiler_static
='-Bstatic'
8827 lt_prog_compiler_wl
='-Wl,'
8828 # All Alpha code is PIC.
8829 lt_prog_compiler_static
='-non_shared'
8831 xl
* | bgxl
* | bgf
* | mpixl
*)
8832 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8833 lt_prog_compiler_wl
='-Wl,'
8834 lt_prog_compiler_pic
='-qpic'
8835 lt_prog_compiler_static
='-qstaticlink'
8838 case `$CC -V 2>&1 | sed 5q` in
8839 *Sun\ Ceres\ Fortran
* |
*Sun
*Fortran
*\
[1-7].
* |
*Sun
*Fortran
*\
8.
[0-3]*)
8840 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8841 lt_prog_compiler_pic
='-KPIC'
8842 lt_prog_compiler_static
='-Bstatic'
8843 lt_prog_compiler_wl
=''
8845 *Sun\ F
* |
*Sun
*Fortran
*)
8846 lt_prog_compiler_pic
='-KPIC'
8847 lt_prog_compiler_static
='-Bstatic'
8848 lt_prog_compiler_wl
='-Qoption ld '
8852 lt_prog_compiler_pic
='-KPIC'
8853 lt_prog_compiler_static
='-Bstatic'
8854 lt_prog_compiler_wl
='-Wl,'
8856 *Intel
*\
[CF
]*Compiler
*)
8857 lt_prog_compiler_wl
='-Wl,'
8858 lt_prog_compiler_pic
='-fPIC'
8859 lt_prog_compiler_static
='-static'
8862 lt_prog_compiler_wl
='-Wl,'
8863 lt_prog_compiler_pic
='-fpic'
8864 lt_prog_compiler_static
='-Bstatic'
8872 lt_prog_compiler_pic
='-KPIC'
8873 lt_prog_compiler_static
='-Bstatic'
8877 # QNX uses GNU C++, but need to define -shared option too, otherwise
8879 lt_prog_compiler_pic
='-fPIC -shared'
8882 osf3
* | osf4
* | osf5
*)
8883 lt_prog_compiler_wl
='-Wl,'
8884 # All OSF/1 code is PIC.
8885 lt_prog_compiler_static
='-non_shared'
8889 lt_prog_compiler_static
='-non_shared'
8893 lt_prog_compiler_pic
='-KPIC'
8894 lt_prog_compiler_static
='-Bstatic'
8895 case $cc_basename in
8896 f77
* | f90
* | f95
* | sunf77
* | sunf90
* | sunf95
*)
8897 lt_prog_compiler_wl
='-Qoption ld ';;
8899 lt_prog_compiler_wl
='-Wl,';;
8904 lt_prog_compiler_wl
='-Qoption ld '
8905 lt_prog_compiler_pic
='-PIC'
8906 lt_prog_compiler_static
='-Bstatic'
8909 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8910 lt_prog_compiler_wl
='-Wl,'
8911 lt_prog_compiler_pic
='-KPIC'
8912 lt_prog_compiler_static
='-Bstatic'
8916 if test -d /usr
/nec
; then
8917 lt_prog_compiler_pic
='-Kconform_pic'
8918 lt_prog_compiler_static
='-Bstatic'
8922 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8923 lt_prog_compiler_wl
='-Wl,'
8924 lt_prog_compiler_pic
='-KPIC'
8925 lt_prog_compiler_static
='-Bstatic'
8929 lt_prog_compiler_wl
='-Wl,'
8930 lt_prog_compiler_can_build_shared
=no
8934 lt_prog_compiler_pic
='-pic'
8935 lt_prog_compiler_static
='-Bstatic'
8939 lt_prog_compiler_can_build_shared
=no
8945 # For platforms that do not support PIC, -DPIC is meaningless:
8947 lt_prog_compiler_pic
=
8950 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8955 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8956 if ${lt_cv_prog_compiler_pic+:} false
; then :
8957 $as_echo_n "(cached) " >&6
8959 lt_cv_prog_compiler_pic
=$lt_prog_compiler_pic
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8962 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8963 lt_prog_compiler_pic
=$lt_cv_prog_compiler_pic
8966 # Check to make sure the PIC flag actually works.
8968 if test -n "$lt_prog_compiler_pic"; then
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8970 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8971 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
8972 $as_echo_n "(cached) " >&6
8974 lt_cv_prog_compiler_pic_works
=no
8975 ac_outfile
=conftest.
$ac_objext
8976 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8977 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8978 # Insert the option either (1) after the last *FLAGS variable, or
8979 # (2) before a word containing "conftest.", or (3) at the end.
8980 # Note that $ac_compile itself does not contain backslashes and begins
8981 # with a dollar sign (not a hyphen), so the echo should work correctly.
8982 # The option is referenced via a variable to avoid confusing sed.
8983 lt_compile
=`echo "$ac_compile" | $SED \
8984 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8985 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8986 -e 's:$: $lt_compiler_flag:'`
8987 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8988 (eval "$lt_compile" 2>conftest.err
)
8990 cat conftest.err
>&5
8991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992 if (exit $ac_status) && test -s "$ac_outfile"; then
8993 # The compiler can only warn and ignore the option if not recognized
8994 # So say no if there are warnings other than the usual output.
8995 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8996 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8997 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8998 lt_cv_prog_compiler_pic_works
=yes
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9005 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9007 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9008 case $lt_prog_compiler_pic in
9010 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
9013 lt_prog_compiler_pic
=
9014 lt_prog_compiler_can_build_shared
=no
9030 # Check to make sure the static flag actually works.
9032 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9034 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9035 if ${lt_cv_prog_compiler_static_works+:} false
; then :
9036 $as_echo_n "(cached) " >&6
9038 lt_cv_prog_compiler_static_works
=no
9039 save_LDFLAGS
=$LDFLAGS
9040 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
9041 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9042 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9043 # The linker can only warn and ignore the option if not recognized
9044 # So say no if there are warnings
9045 if test -s conftest.err
; then
9046 # Append any errors to the config.log.
9047 cat conftest.err
1>&5
9048 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9049 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9050 if diff conftest.exp conftest.er2
>/dev
/null
; then
9051 lt_cv_prog_compiler_static_works
=yes
9054 lt_cv_prog_compiler_static_works
=yes
9058 LDFLAGS
=$save_LDFLAGS
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9062 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9064 if test yes = "$lt_cv_prog_compiler_static_works"; then
9067 lt_prog_compiler_static
=
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9077 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9078 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9079 $as_echo_n "(cached) " >&6
9081 lt_cv_prog_compiler_c_o
=no
9082 $RM -r conftest
2>/dev
/null
9086 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9088 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9089 # Insert the option either (1) after the last *FLAGS variable, or
9090 # (2) before a word containing "conftest.", or (3) at the end.
9091 # Note that $ac_compile itself does not contain backslashes and begins
9092 # with a dollar sign (not a hyphen), so the echo should work correctly.
9093 lt_compile
=`echo "$ac_compile" | $SED \
9094 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9095 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9096 -e 's:$: $lt_compiler_flag:'`
9097 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9098 (eval "$lt_compile" 2>out
/conftest.err
)
9100 cat out
/conftest.err
>&5
9101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9102 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9104 # The compiler can only warn and ignore the option if not recognized
9105 # So say no if there are warnings
9106 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
9107 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9108 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9109 lt_cv_prog_compiler_c_o
=yes
9114 # SGI C++ compiler will create directory out/ii_files/ for
9115 # template instantiation
9116 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9117 $RM out
/* && rmdir out
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9124 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9132 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9133 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9134 $as_echo_n "(cached) " >&6
9136 lt_cv_prog_compiler_c_o
=no
9137 $RM -r conftest
2>/dev
/null
9141 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9143 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9144 # Insert the option either (1) after the last *FLAGS variable, or
9145 # (2) before a word containing "conftest.", or (3) at the end.
9146 # Note that $ac_compile itself does not contain backslashes and begins
9147 # with a dollar sign (not a hyphen), so the echo should work correctly.
9148 lt_compile
=`echo "$ac_compile" | $SED \
9149 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9150 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9151 -e 's:$: $lt_compiler_flag:'`
9152 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9153 (eval "$lt_compile" 2>out
/conftest.err
)
9155 cat out
/conftest.err
>&5
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9159 # The compiler can only warn and ignore the option if not recognized
9160 # So say no if there are warnings
9161 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
9162 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9163 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9164 lt_cv_prog_compiler_c_o
=yes
9169 # SGI C++ compiler will create directory out/ii_files/ for
9170 # template instantiation
9171 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9172 $RM out
/* && rmdir out
9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9179 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9184 hard_links
=nottested
9185 if test no
= "$lt_cv_prog_compiler_c_o" && test no
!= "$need_locks"; then
9186 # do not overwrite the value of need_locks provided by the user
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9188 $as_echo_n "checking if we can lock with hard links... " >&6; }
9191 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9193 ln conftest.a conftest.b
2>&5 || hard_links
=no
9194 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9196 $as_echo "$hard_links" >&6; }
9197 if test no
= "$hard_links"; then
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9199 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9212 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9215 allow_undefined_flag
=
9216 always_export_symbols
=no
9218 archive_expsym_cmds
=
9219 compiler_needs_object
=no
9220 enable_shared_with_static_runtimes
=no
9221 export_dynamic_flag_spec
=
9222 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9223 hardcode_automatic
=no
9225 hardcode_direct_absolute
=no
9226 hardcode_libdir_flag_spec
=
9227 hardcode_libdir_separator
=
9229 hardcode_shlibpath_var
=unsupported
9231 link_all_deplibs
=unknown
9234 old_archive_from_new_cmds
=
9235 old_archive_from_expsyms_cmds
=
9236 thread_safe_flag_spec
=
9237 whole_archive_flag_spec
=
9238 # include_expsyms should be a list of space-separated symbols to be *always*
9239 # included in the symbol list
9241 # exclude_expsyms can be an extended regexp of symbols to exclude
9242 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9243 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9244 # as well as any symbol that contains 'd'.
9245 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9246 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9247 # platforms (ab)use it in PIC code, but their linkers get confused if
9248 # the symbol is explicitly referenced. Since portable code cannot
9249 # rely on this symbol name, it's probably fine to never include it in
9250 # preloaded symbol tables.
9251 # Exclude shared library initialization/finalization symbols.
9252 extract_expsyms_cmds
=
9255 cygwin
* | mingw
* | pw32
* | cegcc
*)
9256 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9257 # When not using gcc, we currently assume that we are using
9258 # Microsoft Visual C++.
9259 if test yes != "$GCC"; then
9264 # we just hope/assume this is gcc and not c89 (= MSVC++)
9270 linux
* | k
*bsd
*-gnu | gnu
*)
9277 # On some targets, GNU ld is compatible enough with the native linker
9278 # that we're better off using the native interface for both.
9279 lt_use_gnu_ld_interface
=no
9280 if test yes = "$with_gnu_ld"; then
9283 # The AIX port of GNU ld has always aspired to compatibility
9284 # with the native linker. However, as the warning in the GNU ld
9285 # block says, versions before 2.19.5* couldn't really create working
9286 # shared libraries, regardless of the interface used.
9287 case `$LD -v 2>&1` in
9288 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
9289 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
9290 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
9292 lt_use_gnu_ld_interface
=yes
9297 lt_use_gnu_ld_interface
=yes
9302 if test yes = "$lt_use_gnu_ld_interface"; then
9303 # If archive_cmds runs LD, not CC, wlarc should be empty
9306 # Set some defaults for GNU ld with shared library support. These
9307 # are reset later if shared libraries are not supported. Putting them
9308 # here allows them to be overridden if necessary.
9309 runpath_var
=LD_RUN_PATH
9310 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
9311 export_dynamic_flag_spec
='$wl--export-dynamic'
9312 # ancient GNU ld didn't support --whole-archive et. al.
9313 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
9314 whole_archive_flag_spec
=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9316 whole_archive_flag_spec
=
9318 supports_anon_versioning
=no
9319 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9320 *GNU\ gold
*) supports_anon_versioning
=yes ;;
9321 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
9322 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9323 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9324 *\
2.11.
*) ;; # other 2.11 versions
9325 *) supports_anon_versioning
=yes ;;
9328 # See if GNU ld supports shared libraries.
9331 # On AIX/PPC, the GNU linker is very broken
9332 if test ia64
!= "$host_cpu"; then
9336 *** Warning: the GNU linker, at least up to release 2.19, is reported
9337 *** to be unable to reliably create shared libraries on AIX.
9338 *** Therefore, libtool is disabling shared libraries support. If you
9339 *** really care for shared libraries, you may want to install binutils
9340 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9341 *** You will then need to restart the configuration process.
9350 # see comment about AmigaOS4 .so support
9351 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9352 archive_expsym_cmds
=''
9355 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)'
9356 hardcode_libdir_flag_spec
='-L$libdir'
9357 hardcode_minus_L
=yes
9363 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9364 allow_undefined_flag
=unsupported
9365 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9366 # support --undefined. This deserves some investigation. FIXME
9367 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9373 cygwin
* | mingw
* | pw32
* | cegcc
*)
9374 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9375 # as there is no search path for DLLs.
9376 hardcode_libdir_flag_spec
='-L$libdir'
9377 export_dynamic_flag_spec
='$wl--export-all-symbols'
9378 allow_undefined_flag
=unsupported
9379 always_export_symbols
=no
9380 enable_shared_with_static_runtimes
=yes
9381 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9382 exclude_expsyms
='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9384 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9385 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9386 # If the export-symbols file already is a .def file, use it as
9387 # is; otherwise, prepend EXPORTS...
9388 archive_expsym_cmds
='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9389 cp $export_symbols $output_objdir/$soname.def;
9391 echo EXPORTS > $output_objdir/$soname.def;
9392 cat $export_symbols >> $output_objdir/$soname.def;
9394 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9401 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9402 link_all_deplibs
=yes
9406 hardcode_libdir_flag_spec
='-L$libdir'
9407 hardcode_minus_L
=yes
9408 allow_undefined_flag
=unsupported
9410 archive_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9411 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9412 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9413 $ECHO EXPORTS >> $output_objdir/$libname.def~
9414 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9415 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9416 emximp -o $lib $output_objdir/$libname.def'
9417 archive_expsym_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9418 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9419 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9420 $ECHO EXPORTS >> $output_objdir/$libname.def~
9422 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9423 prefix_cmds="$prefix_cmds -e 1d";
9425 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9426 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9427 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9428 emximp -o $lib $output_objdir/$libname.def'
9429 old_archive_From_new_cmds
='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9430 enable_shared_with_static_runtimes
=yes
9435 hardcode_shlibpath_var
=no
9436 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
9437 export_dynamic_flag_spec
='$wl-E'
9438 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9439 # Instead, shared libraries are loaded at an image base (0x10000000 by
9440 # default) and relocated if they conflict, which is a slow very memory
9441 # consuming and fragmenting process. To avoid this, we pick a random,
9442 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9443 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9444 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9445 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'
9448 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9450 if test linux-dietlibc
= "$host_os"; then
9451 case $cc_basename in
9452 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9455 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9456 && test no
= "$tmp_diet"
9458 tmp_addflag
=' $pic_flag'
9459 tmp_sharedflag
='-shared'
9460 case $cc_basename,$host_cpu in
9461 pgcc
*) # Portland Group C compiler
9462 whole_archive_flag_spec
='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9463 tmp_addflag
=' $pic_flag'
9465 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9466 # Portland Group f77 and f90 compilers
9467 whole_archive_flag_spec
='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9468 tmp_addflag
=' $pic_flag -Mnomain' ;;
9469 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9470 tmp_addflag
=' -i_dynamic' ;;
9471 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9472 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9473 ifc
* | ifort
*) # Intel Fortran compiler
9474 tmp_addflag
=' -nofor_main' ;;
9475 lf95
*) # Lahey Fortran 8.1
9476 whole_archive_flag_spec
=
9477 tmp_sharedflag
='--shared' ;;
9478 nagfor
*) # NAGFOR 5.3
9479 tmp_sharedflag
='-Wl,-shared' ;;
9480 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9481 tmp_sharedflag
='-qmkshrobj'
9483 nvcc
*) # Cuda Compiler Driver 2.2
9484 whole_archive_flag_spec
='$wl--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9485 compiler_needs_object
=yes
9488 case `$CC -V 2>&1 | sed 5q` in
9489 *Sun\ C
*) # Sun C 5.9
9490 whole_archive_flag_spec
='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive'
9491 compiler_needs_object
=yes
9492 tmp_sharedflag
='-G' ;;
9493 *Sun\ F
*) # Sun Fortran 8.3
9494 tmp_sharedflag
='-G' ;;
9496 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9498 if test yes = "$supports_anon_versioning"; then
9499 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9500 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9501 echo "local: *; };" >> $output_objdir/$libname.ver~
9502 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9505 case $cc_basename in
9507 export_dynamic_flag_spec
='-rdynamic'
9509 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9510 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9511 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9512 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
9513 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9514 if test yes = "$supports_anon_versioning"; then
9515 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9516 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9517 echo "local: *; };" >> $output_objdir/$libname.ver~
9518 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9527 netbsd
* | netbsdelf
*-gnu)
9528 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9529 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9532 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9533 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9538 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9542 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9543 *** create shared libraries on Solaris systems. Therefore, libtool
9544 *** is disabling shared libraries support. We urge you to upgrade GNU
9545 *** binutils to release 2.9.1 or newer. Another option is to modify
9546 *** your PATH or compiler configuration so that the native linker is
9547 *** used, and then restart.
9550 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9551 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9552 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9558 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9559 case `$LD -v 2>&1` in
9560 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9564 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9565 *** reliably create shared libraries on SCO systems. Therefore, libtool
9566 *** is disabling shared libraries support. We urge you to upgrade GNU
9567 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9568 *** your PATH or compiler configuration so that the native linker is
9569 *** used, and then restart.
9574 # For security reasons, it is highly recommended that you always
9575 # use absolute paths for naming shared libraries, and exclude the
9576 # DT_RUNPATH tag from executables and libraries. But doing so
9577 # requires that you compile everything twice, which is a pain.
9578 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9579 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
9580 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9581 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9590 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9593 hardcode_shlibpath_var
=no
9597 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9598 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9599 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9606 if test no
= "$ld_shlibs"; then
9608 hardcode_libdir_flag_spec
=
9609 export_dynamic_flag_spec
=
9610 whole_archive_flag_spec
=
9613 # PORTME fill in a description of your system's linker (not GNU ld)
9616 allow_undefined_flag
=unsupported
9617 always_export_symbols
=yes
9618 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'
9619 # Note: this linker hardcodes the directories in LIBPATH if there
9620 # are no directories specified by -L.
9621 hardcode_minus_L
=yes
9622 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9623 # Neither direct hardcoding nor static linking is supported with a
9625 hardcode_direct
=unsupported
9630 if test ia64
= "$host_cpu"; then
9631 # On IA64, the linker does run time linking by default, so we don't
9632 # have to do anything special.
9633 aix_use_runtimelinking
=no
9634 exp_sym_flag
='-Bexport'
9637 # If we're using GNU nm, then we don't want the "-C" option.
9638 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9639 # Without the "-l" option, or with the "-B" option, AIX nm treats
9640 # weak defined symbols like other global defined symbols, whereas
9641 # GNU nm marks them as "W".
9642 # While the 'weak' keyword is ignored in the Export File, we need
9643 # it in the Import File for the 'aix-soname' feature, so we have
9644 # to replace the "-B" option with "-P" for AIX nm.
9645 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9646 export_symbols_cmds
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
9648 export_symbols_cmds
='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
9650 aix_use_runtimelinking
=no
9652 # Test if we are trying to use run time linking or normal
9653 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9654 # have runtime linking enabled, and use it for executables.
9655 # For shared libraries, we enable/disable runtime linking
9656 # depending on the kind of the shared library created -
9657 # when "with_aix_soname,aix_use_runtimelinking" is:
9658 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9659 # "aix,yes" lib.so shared, rtl:yes, for executables
9660 # lib.a static archive
9661 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9662 # lib.a(lib.so.V) shared, rtl:no, for executables
9663 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9664 # lib.a(lib.so.V) shared, rtl:no
9665 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9666 # lib.a static archive
9667 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9668 for ld_flag
in $LDFLAGS; do
9669 if (test x-brtl
= "x$ld_flag" ||
test x-Wl
,-brtl = "x$ld_flag"); then
9670 aix_use_runtimelinking
=yes
9674 if test svr4
,no
= "$with_aix_soname,$aix_use_runtimelinking"; then
9675 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9676 # so we don't have lib.a shared libs to link our executables.
9677 # We have to force runtime linking in this case.
9678 aix_use_runtimelinking
=yes
9679 LDFLAGS
="$LDFLAGS -Wl,-brtl"
9684 exp_sym_flag
='-bexport'
9685 no_entry_flag
='-bnoentry'
9688 # When large executables or shared objects are built, AIX ld can
9689 # have problems creating the table of contents. If linking a library
9690 # or program results in "error TOC overflow" add -mminimal-toc to
9691 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9692 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9696 hardcode_direct_absolute
=yes
9697 hardcode_libdir_separator
=':'
9698 link_all_deplibs
=yes
9699 file_list_spec
='$wl-f,'
9700 case $with_aix_soname,$aix_use_runtimelinking in
9701 aix
,*) ;; # traditional, no import file
9702 svr4
,* |
*,yes) # use import file
9703 # The Import File defines what to hardcode.
9705 hardcode_direct_absolute
=no
9709 if test yes = "$GCC"; then
9710 case $host_os in aix4.
[012]|aix4.
[012].
*)
9711 # We only want to do this on AIX 4.2 and lower, the check
9712 # below for broken collect2 doesn't work under 4.3+
9713 collect2name
=`$CC -print-prog-name=collect2`
9714 if test -f "$collect2name" &&
9715 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9717 # We have reworked collect2
9720 # We have old collect2
9721 hardcode_direct
=unsupported
9722 # It fails to find uninstalled libraries when the uninstalled
9723 # path is not listed in the libpath. Setting hardcode_minus_L
9724 # to unsupported forces relinking
9725 hardcode_minus_L
=yes
9726 hardcode_libdir_flag_spec
='-L$libdir'
9727 hardcode_libdir_separator
=
9731 shared_flag
='-shared'
9732 if test yes = "$aix_use_runtimelinking"; then
9733 shared_flag
="$shared_flag "'$wl-G'
9735 # Need to ensure runtime linking is disabled for the traditional
9736 # shared library, or the linker may eventually find shared libraries
9737 # /with/ Import File - we do not want to mix them.
9738 shared_flag_aix
='-shared'
9739 shared_flag_svr4
='-shared $wl-G'
9742 if test ia64
= "$host_cpu"; then
9743 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9744 # chokes on -Wl,-G. The following line is correct:
9747 if test yes = "$aix_use_runtimelinking"; then
9750 shared_flag
='$wl-bM:SRE'
9752 shared_flag_aix
='$wl-bM:SRE'
9753 shared_flag_svr4
='$wl-G'
9757 export_dynamic_flag_spec
='$wl-bexpall'
9758 # It seems that -bexpall does not export symbols beginning with
9759 # underscore (_), so it is better to generate a list of symbols to export.
9760 always_export_symbols
=yes
9761 if test aix
,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9762 # Warning - without using the other runtime loading flags (-brtl),
9763 # -berok will link without error, but may produce a broken library.
9764 allow_undefined_flag
='-berok'
9765 # Determine the default libpath from the value encoded in an
9767 if test set = "${lt_cv_aix_libpath+set}"; then
9768 aix_libpath
=$lt_cv_aix_libpath
9770 if ${lt_cv_aix_libpath_+:} false
; then :
9771 $as_echo_n "(cached) " >&6
9773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9774 /* end confdefs.h. */
9784 if ac_fn_c_try_link
"$LINENO"; then :
9786 lt_aix_libpath_sed
='
9787 /Import File Strings/,/^$/ {
9789 s/^0 *\([^ ]*\) *$/\1/
9793 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9794 # Check for a 64-bit object if we didn't find anything.
9795 if test -z "$lt_cv_aix_libpath_"; then
9796 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9799 rm -f core conftest.err conftest.
$ac_objext \
9800 conftest
$ac_exeext conftest.
$ac_ext
9801 if test -z "$lt_cv_aix_libpath_"; then
9802 lt_cv_aix_libpath_
=/usr
/lib
:/lib
9807 aix_libpath
=$lt_cv_aix_libpath_
9810 hardcode_libdir_flag_spec
='$wl-blibpath:$libdir:'"$aix_libpath"
9811 archive_expsym_cmds
='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\
$export_symbols' '$shared_flag
9813 if test ia64
= "$host_cpu"; then
9814 hardcode_libdir_flag_spec
='$wl-R $libdir:/usr/lib:/lib'
9815 allow_undefined_flag
="-z nodefs"
9816 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"
9818 # Determine the default libpath from the value encoded in an
9820 if test set = "${lt_cv_aix_libpath+set}"; then
9821 aix_libpath
=$lt_cv_aix_libpath
9823 if ${lt_cv_aix_libpath_+:} false
; then :
9824 $as_echo_n "(cached) " >&6
9826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9827 /* end confdefs.h. */
9837 if ac_fn_c_try_link
"$LINENO"; then :
9839 lt_aix_libpath_sed
='
9840 /Import File Strings/,/^$/ {
9842 s/^0 *\([^ ]*\) *$/\1/
9846 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9847 # Check for a 64-bit object if we didn't find anything.
9848 if test -z "$lt_cv_aix_libpath_"; then
9849 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9852 rm -f core conftest.err conftest.
$ac_objext \
9853 conftest
$ac_exeext conftest.
$ac_ext
9854 if test -z "$lt_cv_aix_libpath_"; then
9855 lt_cv_aix_libpath_
=/usr
/lib
:/lib
9860 aix_libpath
=$lt_cv_aix_libpath_
9863 hardcode_libdir_flag_spec
='$wl-blibpath:$libdir:'"$aix_libpath"
9864 # Warning - without using the other run time loading flags,
9865 # -berok will link without error, but may produce a broken library.
9866 no_undefined_flag
=' $wl-bernotok'
9867 allow_undefined_flag
=' $wl-berok'
9868 if test yes = "$with_gnu_ld"; then
9869 # We only use this code for GNU lds that support --whole-archive.
9870 whole_archive_flag_spec
='$wl--whole-archive$convenience $wl--no-whole-archive'
9872 # Exported symbols can be pulled into shared objects from archives
9873 whole_archive_flag_spec
='$convenience'
9875 archive_cmds_need_lc
=yes
9876 archive_expsym_cmds
='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9877 # -brtl affects multiple linker settings, -berok does not and is overridden later
9878 compiler_flags_filtered
='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9879 if test svr4
!= "$with_aix_soname"; then
9880 # This is similar to how AIX traditionally builds its shared libraries.
9881 archive_expsym_cmds
="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
9883 if test aix
!= "$with_aix_soname"; then
9884 archive_expsym_cmds
="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
9886 # used by -dlpreopen to get the symbols
9887 archive_expsym_cmds
="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9889 archive_expsym_cmds
="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9897 # see comment about AmigaOS4 .so support
9898 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9899 archive_expsym_cmds
=''
9902 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)'
9903 hardcode_libdir_flag_spec
='-L$libdir'
9904 hardcode_minus_L
=yes
9910 export_dynamic_flag_spec
=-rdynamic
9913 cygwin
* | mingw
* | pw32
* | cegcc
*)
9914 # When not using gcc, we currently assume that we are using
9915 # Microsoft Visual C++.
9916 # hardcode_libdir_flag_spec is actually meaningless, as there is
9917 # no search path for DLLs.
9918 case $cc_basename in
9921 hardcode_libdir_flag_spec
=' '
9922 allow_undefined_flag
=unsupported
9923 always_export_symbols
=yes
9925 # Tell ltmain to make .lib files, not .a files.
9927 # Tell ltmain to make .dll files, not .so files.
9929 # FIXME: Setting linknames here is a bad hack.
9930 archive_cmds
='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9931 archive_expsym_cmds
='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9932 cp "$export_symbols" "$output_objdir/$soname.def";
9933 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9935 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9937 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9939 # The linker will not automatically build a static lib if we build a DLL.
9940 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9941 enable_shared_with_static_runtimes
=yes
9942 exclude_expsyms
='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9943 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9945 old_postinstall_cmds
='chmod 644 $oldlib'
9946 postlink_cmds
='lt_outputfile="@OUTPUT@"~
9947 lt_tool_outputfile="@TOOL_OUTPUT@"~
9948 case $lt_outputfile in
9951 lt_outputfile=$lt_outputfile.exe
9952 lt_tool_outputfile=$lt_tool_outputfile.exe
9955 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9956 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9957 $RM "$lt_outputfile.manifest";
9961 # Assume MSVC wrapper
9962 hardcode_libdir_flag_spec
=' '
9963 allow_undefined_flag
=unsupported
9964 # Tell ltmain to make .lib files, not .a files.
9966 # Tell ltmain to make .dll files, not .so files.
9968 # FIXME: Setting linknames here is a bad hack.
9969 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9970 # The linker will automatically build a .lib file if we build a DLL.
9971 old_archive_from_new_cmds
='true'
9972 # FIXME: Should let the user specify the lib program.
9973 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9974 enable_shared_with_static_runtimes
=yes
9979 darwin
* | rhapsody
*)
9982 archive_cmds_need_lc
=no
9984 hardcode_automatic
=yes
9985 hardcode_shlibpath_var
=unsupported
9986 if test yes = "$lt_cv_ld_force_load"; then
9987 whole_archive_flag_spec
='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9990 whole_archive_flag_spec
=''
9992 link_all_deplibs
=yes
9993 allow_undefined_flag
=$_lt_dar_allow_undefined
9994 case $cc_basename in
9995 ifort
*|nagfor
*) _lt_dar_can_shared
=yes ;;
9996 *) _lt_dar_can_shared
=$GCC ;;
9998 if test yes = "$_lt_dar_can_shared"; then
9999 output_verbose_link_cmd
=func_echo_all
10000 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10001 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10002 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"
10003 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"
10012 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10013 hardcode_libdir_flag_spec
='-L$libdir'
10014 hardcode_shlibpath_var
=no
10017 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10018 # support. Future versions do this automatically, but an explicit c++rt0.o
10019 # does not break anything, and helps significantly (at the cost of a little
10022 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10023 hardcode_libdir_flag_spec
='-R$libdir'
10024 hardcode_direct
=yes
10025 hardcode_shlibpath_var
=no
10028 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10030 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10031 hardcode_direct
=yes
10032 hardcode_minus_L
=yes
10033 hardcode_shlibpath_var
=no
10036 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10037 freebsd
* | dragonfly
*)
10038 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10039 hardcode_libdir_flag_spec
='-R$libdir'
10040 hardcode_direct
=yes
10041 hardcode_shlibpath_var
=no
10045 if test yes = "$GCC"; then
10046 archive_cmds
='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10048 archive_cmds
='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
10050 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
10051 hardcode_libdir_separator
=:
10052 hardcode_direct
=yes
10054 # hardcode_minus_L: Not really in the search PATH,
10055 # but as the default location of the library.
10056 hardcode_minus_L
=yes
10057 export_dynamic_flag_spec
='$wl-E'
10061 if test yes,no
= "$GCC,$with_gnu_ld"; then
10062 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10064 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10066 if test no
= "$with_gnu_ld"; then
10067 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
10068 hardcode_libdir_separator
=:
10069 hardcode_direct
=yes
10070 hardcode_direct_absolute
=yes
10071 export_dynamic_flag_spec
='$wl-E'
10072 # hardcode_minus_L: Not really in the search PATH,
10073 # but as the default location of the library.
10074 hardcode_minus_L
=yes
10079 if test yes,no
= "$GCC,$with_gnu_ld"; then
10082 archive_cmds
='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10085 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10088 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10094 archive_cmds
='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10097 archive_cmds
='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10101 # Older versions of the 11.00 compiler do not understand -b yet
10102 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10104 $as_echo_n "checking if $CC understands -b... " >&6; }
10105 if ${lt_cv_prog_compiler__b+:} false
; then :
10106 $as_echo_n "(cached) " >&6
10108 lt_cv_prog_compiler__b
=no
10109 save_LDFLAGS
=$LDFLAGS
10110 LDFLAGS
="$LDFLAGS -b"
10111 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
10112 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
10113 # The linker can only warn and ignore the option if not recognized
10114 # So say no if there are warnings
10115 if test -s conftest.err
; then
10116 # Append any errors to the config.log.
10117 cat conftest.err
1>&5
10118 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
10119 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10120 if diff conftest.exp conftest.er2
>/dev
/null
; then
10121 lt_cv_prog_compiler__b
=yes
10124 lt_cv_prog_compiler__b
=yes
10128 LDFLAGS
=$save_LDFLAGS
10131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10132 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10134 if test yes = "$lt_cv_prog_compiler__b"; then
10135 archive_cmds
='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10137 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10143 if test no
= "$with_gnu_ld"; then
10144 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
10145 hardcode_libdir_separator
=:
10150 hardcode_shlibpath_var
=no
10153 hardcode_direct
=yes
10154 hardcode_direct_absolute
=yes
10155 export_dynamic_flag_spec
='$wl-E'
10157 # hardcode_minus_L: Not really in the search PATH,
10158 # but as the default location of the library.
10159 hardcode_minus_L
=yes
10165 irix5
* | irix6
* | nonstopux
*)
10166 if test yes = "$GCC"; then
10167 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10168 # Try to use the -exported_symbol ld option, if it does not
10169 # work, assume that -exports_file does not work either and
10170 # implicitly export all symbols.
10171 # This should be the same for all languages, so no per-tag cache variable.
10172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10173 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10174 if ${lt_cv_irix_exported_symbol+:} false
; then :
10175 $as_echo_n "(cached) " >&6
10177 save_LDFLAGS
=$LDFLAGS
10178 LDFLAGS
="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10179 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10180 /* end confdefs.h. */
10181 int foo (void) { return 0; }
10183 if ac_fn_c_try_link
"$LINENO"; then :
10184 lt_cv_irix_exported_symbol
=yes
10186 lt_cv_irix_exported_symbol
=no
10188 rm -f core conftest.err conftest.
$ac_objext \
10189 conftest
$ac_exeext conftest.
$ac_ext
10190 LDFLAGS
=$save_LDFLAGS
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10193 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10194 if test yes = "$lt_cv_irix_exported_symbol"; then
10195 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
10197 link_all_deplibs
=no
10199 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10200 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
10202 archive_cmds_need_lc
='no'
10203 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10204 hardcode_libdir_separator
=:
10206 link_all_deplibs
=yes
10210 case $cc_basename in
10212 # Fabrice Bellard et al's Tiny C Compiler
10214 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10219 netbsd
* | netbsdelf
*-gnu)
10220 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10221 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10223 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10225 hardcode_libdir_flag_spec
='-R$libdir'
10226 hardcode_direct
=yes
10227 hardcode_shlibpath_var
=no
10231 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10232 hardcode_direct
=yes
10233 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10234 hardcode_libdir_separator
=:
10235 hardcode_shlibpath_var
=no
10241 openbsd
* | bitrig
*)
10242 if test -f /usr
/libexec
/ld.so
; then
10243 hardcode_direct
=yes
10244 hardcode_shlibpath_var
=no
10245 hardcode_direct_absolute
=yes
10246 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10247 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10248 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10249 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
10250 export_dynamic_flag_spec
='$wl-E'
10252 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10253 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
10261 hardcode_libdir_flag_spec
='-L$libdir'
10262 hardcode_minus_L
=yes
10263 allow_undefined_flag
=unsupported
10265 archive_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10266 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10267 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10268 $ECHO EXPORTS >> $output_objdir/$libname.def~
10269 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10270 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10271 emximp -o $lib $output_objdir/$libname.def'
10272 archive_expsym_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10273 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10274 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10275 $ECHO EXPORTS >> $output_objdir/$libname.def~
10276 prefix_cmds="$SED"~
10277 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10278 prefix_cmds="$prefix_cmds -e 1d";
10280 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10281 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10282 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10283 emximp -o $lib $output_objdir/$libname.def'
10284 old_archive_From_new_cmds
='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10285 enable_shared_with_static_runtimes
=yes
10289 if test yes = "$GCC"; then
10290 allow_undefined_flag
=' $wl-expect_unresolved $wl\*'
10291 archive_cmds
='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10293 allow_undefined_flag
=' -expect_unresolved \*'
10294 archive_cmds
='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10296 archive_cmds_need_lc
='no'
10297 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10298 hardcode_libdir_separator
=:
10301 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
10302 if test yes = "$GCC"; then
10303 allow_undefined_flag
=' $wl-expect_unresolved $wl\*'
10304 archive_cmds
='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib'
10305 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10307 allow_undefined_flag
=' -expect_unresolved \*'
10308 archive_cmds
='$CC -shared$allow_undefined_flag $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
10309 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~
10310 $CC -shared$allow_undefined_flag $wl-input $wl$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~$RM $lib.exp'
10312 # Both c and cxx compiler support -rpath directly
10313 hardcode_libdir_flag_spec
='-rpath $libdir'
10315 archive_cmds_need_lc
='no'
10316 hardcode_libdir_separator
=:
10320 no_undefined_flag
=' -z defs'
10321 if test yes = "$GCC"; then
10323 archive_cmds
='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10324 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10325 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10327 case `$CC -V 2>&1` in
10330 archive_cmds
='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10331 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10332 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10336 archive_cmds
='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10337 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10338 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10342 hardcode_libdir_flag_spec
='-R$libdir'
10343 hardcode_shlibpath_var
=no
10345 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10347 # The compiler driver will combine and reorder linker options,
10348 # but understands '-z linker_flag'. GCC discards it without '$wl',
10349 # but is careful enough not to reorder.
10350 # Supported since Solaris 2.6 (maybe 2.5.1?)
10351 if test yes = "$GCC"; then
10352 whole_archive_flag_spec
='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10354 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10358 link_all_deplibs
=yes
10362 if test sequent
= "$host_vendor"; then
10363 # Use $CC to link under sequent, because it throws in some extra .o
10364 # files that make .init and .fini sections work.
10365 archive_cmds
='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10367 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10369 hardcode_libdir_flag_spec
='-L$libdir'
10370 hardcode_direct
=yes
10371 hardcode_minus_L
=yes
10372 hardcode_shlibpath_var
=no
10376 case $host_vendor in
10378 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10379 hardcode_direct
=yes # is this really true???
10382 ## LD is ld it makes a PLAMLIB
10383 ## CC just makes a GrossModule.
10384 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10385 reload_cmds
='$CC -r -o $output$reload_objs'
10389 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10390 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10393 runpath_var
='LD_RUN_PATH'
10394 hardcode_shlibpath_var
=no
10398 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10399 hardcode_shlibpath_var
=no
10400 export_dynamic_flag_spec
='-Bexport'
10404 if test -d /usr
/nec
; then
10405 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10406 hardcode_shlibpath_var
=no
10407 runpath_var
=LD_RUN_PATH
10408 hardcode_runpath_var
=yes
10413 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10414 no_undefined_flag
='$wl-z,text'
10415 archive_cmds_need_lc
=no
10416 hardcode_shlibpath_var
=no
10417 runpath_var
='LD_RUN_PATH'
10419 if test yes = "$GCC"; then
10420 archive_cmds
='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10421 archive_expsym_cmds
='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10423 archive_cmds
='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10424 archive_expsym_cmds
='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10428 sysv5
* | sco3.2v5
* | sco5v6
*)
10429 # Note: We CANNOT use -z defs as we might desire, because we do not
10430 # link with -lc, and that would cause any symbols used from libc to
10431 # always be unresolved, which means just about no library would
10432 # ever link correctly. If we're not using GNU ld we use -z text
10433 # though, which does catch some bad symbols but isn't as heavy-handed
10435 no_undefined_flag
='$wl-z,text'
10436 allow_undefined_flag
='$wl-z,nodefs'
10437 archive_cmds_need_lc
=no
10438 hardcode_shlibpath_var
=no
10439 hardcode_libdir_flag_spec
='$wl-R,$libdir'
10440 hardcode_libdir_separator
=':'
10441 link_all_deplibs
=yes
10442 export_dynamic_flag_spec
='$wl-Bexport'
10443 runpath_var
='LD_RUN_PATH'
10445 if test yes = "$GCC"; then
10446 archive_cmds
='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10447 archive_expsym_cmds
='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10449 archive_cmds
='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10450 archive_expsym_cmds
='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10455 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10456 hardcode_libdir_flag_spec
='-L$libdir'
10457 hardcode_shlibpath_var
=no
10465 if test sni
= "$host_vendor"; then
10467 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10468 export_dynamic_flag_spec
='$wl-Blargedynsym'
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10475 $as_echo "$ld_shlibs" >&6; }
10476 test no
= "$ld_shlibs" && can_build_shared
=no
10478 with_gnu_ld
=$with_gnu_ld
10495 # Do we need to explicitly link libc?
10497 case "x$archive_cmds_need_lc" in
10499 # Assume -lc should be added
10500 archive_cmds_need_lc
=yes
10502 if test yes,yes = "$GCC,$enable_shared"; then
10503 case $archive_cmds in
10505 # FIXME: we may have to deal with multi-command sequences.
10508 # Test whether the compiler implicitly links with -lc since on some
10509 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10510 # to ld, don't add -lc before -lgcc.
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10512 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10513 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10514 $as_echo_n "(cached) " >&6
10517 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10519 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10520 (eval $ac_compile) 2>&5
10522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10523 test $ac_status = 0; } 2>conftest.err
; then
10526 libobjs
=conftest.
$ac_objext
10528 wl
=$lt_prog_compiler_wl
10529 pic_flag
=$lt_prog_compiler_pic
10535 lt_save_allow_undefined_flag
=$allow_undefined_flag
10536 allow_undefined_flag
=
10537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10538 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10541 test $ac_status = 0; }
10543 lt_cv_archive_cmds_need_lc
=no
10545 lt_cv_archive_cmds_need_lc
=yes
10547 allow_undefined_flag
=$lt_save_allow_undefined_flag
10549 cat conftest.err
1>&5
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10555 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10556 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10715 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10717 if test yes = "$GCC"; then
10719 darwin
*) lt_awk_arg
='/^libraries:/,/LR/' ;;
10720 *) lt_awk_arg
='/^libraries:/' ;;
10723 mingw
* | cegcc
*) lt_sed_strip_eq
='s|=\([A-Za-z]:\)|\1|g' ;;
10724 *) lt_sed_strip_eq
='s|=/|/|g' ;;
10726 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10727 case $lt_search_path_spec in
10729 # if the path contains ";" then we assume it to be the separator
10730 # otherwise default to the standard path separator (i.e. ":") - it is
10731 # assumed that no part of a normal pathname contains ";" but that should
10732 # okay in the real world where ";" in dirpaths is itself problematic.
10733 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10736 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10739 # Ok, now we have the path, separated by spaces, we can step through it
10740 # and add multilib dir if necessary...
10741 lt_tmp_lt_search_path_spec
=
10742 lt_multi_os_dir
=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10743 # ...but if some path component already ends with the multilib dir we assume
10744 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10745 case "$lt_multi_os_dir; $lt_search_path_spec " in
10746 "/; "* |
"/.; "* |
"/./; "* |
*"$lt_multi_os_dir "* |
*"$lt_multi_os_dir/ "*)
10750 for lt_sys_path
in $lt_search_path_spec; do
10751 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10752 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10753 elif test -n "$lt_multi_os_dir"; then
10754 test -d "$lt_sys_path" && \
10755 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10758 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10759 BEGIN {RS = " "; FS = "/|\n";} {
10762 for (lt_i = NF; lt_i > 0; lt_i--) {
10763 if ($lt_i != "" && $lt_i != ".") {
10764 if ($lt_i == "..") {
10767 if (lt_count == 0) {
10768 lt_foo = "/" $lt_i lt_foo;
10775 if (lt_foo != "") { lt_freq[lt_foo]++; }
10776 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10778 # AWK program above erroneously prepends '/' to C:/dos/paths
10781 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10782 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10784 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10786 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10788 library_names_spec
=
10789 libname_spec
='lib$name'
10793 postuninstall_cmds
=
10797 shlibpath_overrides_runpath
=unknown
10799 dynamic_linker
="$host_os ld.so"
10800 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10801 need_lib_prefix
=unknown
10802 hardcode_into_libs
=no
10804 # when you set need_version to no, make sure it does not cause -set_version
10805 # flags to be left without arguments
10806 need_version
=unknown
10812 version_type
=linux
# correct to gnu/linux during the next big refactor
10813 library_names_spec
='$libname$release$shared_ext$versuffix $libname.a'
10814 shlibpath_var
=LIBPATH
10816 # AIX 3 has no versioning support, so we append a major version to the name.
10817 soname_spec
='$libname$release$shared_ext$major'
10821 version_type
=linux
# correct to gnu/linux during the next big refactor
10824 hardcode_into_libs
=yes
10825 if test ia64
= "$host_cpu"; then
10826 # AIX 5 supports IA64
10827 library_names_spec
='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10828 shlibpath_var
=LD_LIBRARY_PATH
10830 # With GCC up to 2.95.x, collect2 would create an import file
10831 # for dependence libraries. The import file would start with
10832 # the line '#! .'. This would cause the generated library to
10833 # depend on '.', always an invalid library. This was fixed in
10834 # development snapshots of GCC prior to 3.0.
10836 aix4 | aix4.
[01] | aix4.
[01].
*)
10837 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10839 echo '#endif'; } |
$CC -E - |
$GREP yes > /dev
/null
; then
10842 can_build_shared
=no
10846 # Using Import Files as archive members, it is possible to support
10847 # filename-based versioning of shared library archives on AIX. While
10848 # this would work for both with and without runtime linking, it will
10849 # prevent static linking of such archives. So we do filename-based
10850 # shared library versioning with .so extension only, which is used
10851 # when both runtime linking and shared linking is enabled.
10852 # Unfortunately, runtime linking may impact performance, so we do
10853 # not want this to be the default eventually. Also, we use the
10854 # versioned .so libs for executables only if there is the -brtl
10855 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10856 # To allow for filename-based versioning support, we need to create
10857 # libNAME.so.V as an archive file, containing:
10858 # *) an Import File, referring to the versioned filename of the
10859 # archive as well as the shared archive member, telling the
10860 # bitwidth (32 or 64) of that shared object, and providing the
10861 # list of exported symbols of that shared object, eventually
10862 # decorated with the 'weak' keyword
10863 # *) the shared object with the F_LOADONLY flag set, to really avoid
10864 # it being seen by the linker.
10865 # At run time we better use the real file rather than another symlink,
10866 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10868 case $with_aix_soname,$aix_use_runtimelinking in
10869 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10870 # soname into executable. Probably we can add versioning support to
10871 # collect2, so additional links can be useful in future.
10872 aix
,yes) # traditional libtool
10873 dynamic_linker
='AIX unversionable lib.so'
10874 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10875 # instead of lib<name>.a to let people know that these are not
10876 # typical AIX shared libraries.
10877 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10879 aix
,no
) # traditional AIX only
10880 dynamic_linker
='AIX lib.a(lib.so.V)'
10881 # We preserve .a as extension for shared libraries through AIX4.2
10882 # and later when we are not doing run time linking.
10883 library_names_spec
='$libname$release.a $libname.a'
10884 soname_spec
='$libname$release$shared_ext$major'
10886 svr4
,*) # full svr4 only
10887 dynamic_linker
="AIX lib.so.V($shared_archive_member_spec.o)"
10888 library_names_spec
='$libname$release$shared_ext$major $libname$shared_ext'
10889 # We do not specify a path in Import Files, so LIBPATH fires.
10890 shlibpath_overrides_runpath
=yes
10892 *,yes) # both, prefer svr4
10893 dynamic_linker
="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10894 library_names_spec
='$libname$release$shared_ext$major $libname$shared_ext'
10895 # unpreferred sharedlib libNAME.a needs extra handling
10896 postinstall_cmds
='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
10897 postuninstall_cmds
='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
10898 # We do not specify a path in Import Files, so LIBPATH fires.
10899 shlibpath_overrides_runpath
=yes
10901 *,no
) # both, prefer aix
10902 dynamic_linker
="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10903 library_names_spec
='$libname$release.a $libname.a'
10904 soname_spec
='$libname$release$shared_ext$major'
10905 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10906 postinstall_cmds
='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
10907 postuninstall_cmds
='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
10910 shlibpath_var
=LIBPATH
10917 # Since July 2007 AmigaOS4 officially supports .so libraries.
10918 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10919 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10922 library_names_spec
='$libname.ixlibrary $libname.a'
10923 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10924 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
10930 library_names_spec
='$libname$shared_ext'
10931 dynamic_linker
="$host_os ld.so"
10932 shlibpath_var
=LIBRARY_PATH
10936 version_type
=linux
# correct to gnu/linux during the next big refactor
10938 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10939 soname_spec
='$libname$release$shared_ext$major'
10940 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10941 shlibpath_var
=LD_LIBRARY_PATH
10942 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10943 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10944 # the default ld.so.conf also contains /usr/contrib/lib and
10945 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10946 # libtool to hard-code these into programs
10949 cygwin
* | mingw
* | pw32
* | cegcc
*)
10950 version_type
=windows
10955 case $GCC,$cc_basename in
10958 library_names_spec
='$libname.dll.a'
10959 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10960 postinstall_cmds
='base_file=`basename \$file`~
10961 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10962 dldir=$destdir/`dirname \$dlpath`~
10963 test -d \$dldir || mkdir -p \$dldir~
10964 $install_prog $dir/$dlname \$dldir/$dlname~
10965 chmod a+x \$dldir/$dlname~
10966 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10967 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10969 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10970 dlpath=$dir/\$dldll~
10972 shlibpath_overrides_runpath
=yes
10976 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10977 soname_spec
='`echo $libname | sed -e 's
/^lib
/cyg
/'``echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
10979 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10982 # MinGW DLLs use traditional 'lib' prefix
10983 soname_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
10986 # pw32 DLLs use 'pw' prefix rather than 'lib'
10987 library_names_spec
='`echo $libname | sed -e 's
/^lib
/pw
/'``echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
10990 dynamic_linker
='Win32 ld.exe'
10995 libname_spec
='$name'
10996 soname_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
10997 library_names_spec
='$libname.dll.lib'
11001 sys_lib_search_path_spec
=
11004 for lt_path
in $LIB
11007 # Let DOS variable expansion print the short 8.3 style file name.
11008 lt_path
=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11009 sys_lib_search_path_spec
="$sys_lib_search_path_spec $lt_path"
11012 # Convert to MSYS style.
11013 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11016 # Convert to unix form, then to dos form, then back to unix form
11017 # but this time dos style (no spaces!) so that the unix form looks
11018 # like /cygdrive/c/PROGRA~1:/cygdr...
11019 sys_lib_search_path_spec
=`cygpath --path --unix "$LIB"`
11020 sys_lib_search_path_spec
=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11021 sys_lib_search_path_spec
=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11024 sys_lib_search_path_spec
=$LIB
11025 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
11026 # It is most probably a Windows format PATH.
11027 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11029 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11031 # FIXME: find the short name or the path components, as spaces are
11032 # common. (e.g. "Program Files" -> "PROGRA~1")
11036 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11037 postinstall_cmds
='base_file=`basename \$file`~
11038 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11039 dldir=$destdir/`dirname \$dlpath`~
11040 test -d \$dldir || mkdir -p \$dldir~
11041 $install_prog $dir/$dlname \$dldir/$dlname'
11042 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11043 dlpath=$dir/\$dldll~
11045 shlibpath_overrides_runpath
=yes
11046 dynamic_linker
='Win32 link.exe'
11050 # Assume MSVC wrapper
11051 library_names_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext $libname.lib'
11052 dynamic_linker
='Win32 ld.exe'
11055 # FIXME: first we should search . and the directory the executable is in
11059 darwin
* | rhapsody
*)
11060 dynamic_linker
="$host_os dyld"
11061 version_type
=darwin
11064 library_names_spec
='$libname$release$major$shared_ext $libname$shared_ext'
11065 soname_spec
='$libname$release$major$shared_ext'
11066 shlibpath_overrides_runpath
=yes
11067 shlibpath_var
=DYLD_LIBRARY_PATH
11068 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
11070 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
11071 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
11075 version_type
=linux
# correct to gnu/linux during the next big refactor
11078 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11079 soname_spec
='$libname$release$shared_ext$major'
11080 shlibpath_var
=LD_LIBRARY_PATH
11083 freebsd
* | dragonfly
*)
11084 # DragonFly does not have aout. When/if they implement a new
11085 # versioning mechanism, adjust this.
11086 if test -x /usr
/bin
/objformat
; then
11087 objformat
=`/usr/bin/objformat`
11090 freebsd
[23].
*) objformat
=aout
;;
11091 *) objformat
=elf
;;
11094 version_type
=freebsd-
$objformat
11095 case $version_type in
11097 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11098 soname_spec
='$libname$release$shared_ext$major'
11103 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11107 shlibpath_var
=LD_LIBRARY_PATH
11110 shlibpath_overrides_runpath
=yes
11112 freebsd3.
[01]* | freebsdelf3.
[01]*)
11113 shlibpath_overrides_runpath
=yes
11114 hardcode_into_libs
=yes
11116 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
11117 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
11118 shlibpath_overrides_runpath
=no
11119 hardcode_into_libs
=yes
11121 *) # from 4.6 on, and DragonFly
11122 shlibpath_overrides_runpath
=yes
11123 hardcode_into_libs
=yes
11129 version_type
=linux
# correct to gnu/linux during the next big refactor
11132 dynamic_linker
="$host_os runtime_loader"
11133 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11134 soname_spec
='$libname$release$shared_ext$major'
11135 shlibpath_var
=LIBRARY_PATH
11136 shlibpath_overrides_runpath
=no
11137 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11138 hardcode_into_libs
=yes
11141 hpux9
* | hpux10
* | hpux11
*)
11142 # Give a soname corresponding to the major version so that dld.sl refuses to
11143 # link against other versions.
11150 hardcode_into_libs
=yes
11151 dynamic_linker
="$host_os dld.so"
11152 shlibpath_var
=LD_LIBRARY_PATH
11153 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11154 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11155 soname_spec
='$libname$release$shared_ext$major'
11156 if test 32 = "$HPUX_IA64_MODE"; then
11157 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11158 sys_lib_dlsearch_path_spec
=/usr
/lib
/hpux32
11160 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
11161 sys_lib_dlsearch_path_spec
=/usr
/lib
/hpux64
11166 hardcode_into_libs
=yes
11167 dynamic_linker
="$host_os dld.sl"
11168 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
11169 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11170 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11171 soname_spec
='$libname$release$shared_ext$major'
11172 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11173 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11177 dynamic_linker
="$host_os dld.sl"
11178 shlibpath_var
=SHLIB_PATH
11179 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
11180 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11181 soname_spec
='$libname$release$shared_ext$major'
11184 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11185 postinstall_cmds
='chmod 555 $lib'
11186 # or fails outright, so override atomically:
11187 install_override_mode
=555
11191 version_type
=linux
# correct to gnu/linux during the next big refactor
11194 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11195 soname_spec
='$libname$release$shared_ext$major'
11196 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
11197 shlibpath_var
=LD_LIBRARY_PATH
11198 shlibpath_overrides_runpath
=no
11199 hardcode_into_libs
=yes
11202 irix5
* | irix6
* | nonstopux
*)
11204 nonstopux
*) version_type
=nonstopux
;;
11206 if test yes = "$lt_cv_prog_gnu_ld"; then
11207 version_type
=linux
# correct to gnu/linux during the next big refactor
11214 soname_spec
='$libname$release$shared_ext$major'
11215 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11217 irix5
* | nonstopux
*)
11218 libsuff
= shlibsuff
=
11221 case $LD in # libtool.m4 will add one of these switches to LD
11222 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
11223 libsuff
= shlibsuff
= libmagic
=32-bit;;
11224 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
11225 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
11226 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
11227 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
11228 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
11232 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
11233 shlibpath_overrides_runpath
=no
11234 sys_lib_search_path_spec
="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11235 sys_lib_dlsearch_path_spec
="/usr/lib$libsuff /lib$libsuff"
11236 hardcode_into_libs
=yes
11239 # No shared lib support for Linux oldld, aout, or coff.
11240 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
11245 version_type
=none
# Android doesn't support versioned libraries.
11248 library_names_spec
='$libname$release$shared_ext'
11249 soname_spec
='$libname$release$shared_ext'
11251 shlibpath_var
=LD_LIBRARY_PATH
11252 shlibpath_overrides_runpath
=yes
11254 # This implies no fast_install, which is unacceptable.
11255 # Some rework will be needed to allow for fast_install
11256 # before this can be enabled.
11257 hardcode_into_libs
=yes
11259 dynamic_linker
='Android linker'
11260 # Don't embed -rpath directories since the linker doesn't support them.
11261 hardcode_libdir_flag_spec
='-L$libdir'
11264 # This must be glibc/ELF.
11265 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
11266 version_type
=linux
# correct to gnu/linux during the next big refactor
11269 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11270 soname_spec
='$libname$release$shared_ext$major'
11271 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11272 shlibpath_var
=LD_LIBRARY_PATH
11273 shlibpath_overrides_runpath
=no
11275 # Some binutils ld are patched to set DT_RUNPATH
11276 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
11277 $as_echo_n "(cached) " >&6
11279 lt_cv_shlibpath_overrides_runpath
=no
11280 save_LDFLAGS
=$LDFLAGS
11281 save_libdir
=$libdir
11282 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11283 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11285 /* end confdefs.h. */
11295 if ac_fn_c_try_link
"$LINENO"; then :
11296 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
11297 lt_cv_shlibpath_overrides_runpath
=yes
11300 rm -f core conftest.err conftest.
$ac_objext \
11301 conftest
$ac_exeext conftest.
$ac_ext
11302 LDFLAGS
=$save_LDFLAGS
11303 libdir
=$save_libdir
11307 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
11309 # This implies no fast_install, which is unacceptable.
11310 # Some rework will be needed to allow for fast_install
11311 # before this can be enabled.
11312 hardcode_into_libs
=yes
11314 # Ideally, we could use ldconfig to report *all* directores which are
11315 # searched for libraries, however this is still not possible. Aside from not
11316 # being certain /sbin/ldconfig is available, command
11317 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11318 # even though it is searched at run-time. Try to do the best guess by
11319 # appending ld.so.conf contents (and includes) to the search path.
11320 if test -f /etc
/ld.so.conf
; then
11321 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;s/"//g;/^$/d' | tr '\n' ' '`
11322 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
11325 # We used to test for /lib/ld.so.1 and disable shared libraries on
11326 # powerpc, because MkLinux only supported shared libraries with the
11327 # GNU dynamic linker. Since this was broken with cross compilers,
11328 # most powerpc-linux boxes support dynamic linking these days and
11329 # people can always --disable-shared, the test was removed, and we
11330 # assume the GNU/Linux dynamic linker is in use.
11331 dynamic_linker
='GNU/Linux ld.so'
11338 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11339 soname_spec
='${libname}${release}${shared_ext}$major'
11340 shlibpath_var
=LD_LIBRARY_PATH
11341 shlibpath_overrides_runpath
=no
11342 hardcode_into_libs
=yes
11343 dynamic_linker
='NetBSD ld.elf_so'
11350 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11351 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11352 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11353 dynamic_linker
='NetBSD (a.out) ld.so'
11355 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11356 soname_spec
='$libname$release$shared_ext$major'
11357 dynamic_linker
='NetBSD ld.elf_so'
11359 shlibpath_var
=LD_LIBRARY_PATH
11360 shlibpath_overrides_runpath
=yes
11361 hardcode_into_libs
=yes
11365 version_type
=linux
# correct to gnu/linux during the next big refactor
11366 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11367 shlibpath_var
=LD_LIBRARY_PATH
11368 shlibpath_overrides_runpath
=yes
11375 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11376 soname_spec
='$libname$release$shared_ext$major'
11377 shlibpath_var
=LD_LIBRARY_PATH
11378 shlibpath_overrides_runpath
=no
11379 hardcode_into_libs
=yes
11380 dynamic_linker
='ldqnx.so'
11383 openbsd
* | bitrig
*)
11385 sys_lib_dlsearch_path_spec
=/usr
/lib
11387 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11392 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11393 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11394 shlibpath_var
=LD_LIBRARY_PATH
11395 shlibpath_overrides_runpath
=yes
11399 libname_spec
='$name'
11400 version_type
=windows
11404 # OS/2 can only load a DLL with a base name of 8 characters or less.
11405 soname_spec
='`test -n "$os2dllname" && libname="$os2dllname";
11406 v=$($ECHO $release$versuffix | tr -d .-);
11407 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11408 $ECHO $n$v`$shared_ext'
11409 library_names_spec
='${libname}_dll.$libext'
11410 dynamic_linker
='OS/2 ld.exe'
11411 shlibpath_var
=BEGINLIBPATH
11412 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
11413 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11414 postinstall_cmds
='base_file=`basename \$file`~
11415 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11416 dldir=$destdir/`dirname \$dlpath`~
11417 test -d \$dldir || mkdir -p \$dldir~
11418 $install_prog $dir/$dlname \$dldir/$dlname~
11419 chmod a+x \$dldir/$dlname~
11420 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11421 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11423 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11424 dlpath=$dir/\$dldll~
11428 osf3
* | osf4
* | osf5
*)
11432 soname_spec
='$libname$release$shared_ext$major'
11433 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11434 shlibpath_var
=LD_LIBRARY_PATH
11435 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11436 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11444 version_type
=linux
# correct to gnu/linux during the next big refactor
11447 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11448 soname_spec
='$libname$release$shared_ext$major'
11449 shlibpath_var
=LD_LIBRARY_PATH
11450 shlibpath_overrides_runpath
=yes
11451 hardcode_into_libs
=yes
11452 # ldd complains unless libraries are executable
11453 postinstall_cmds
='chmod +x $lib'
11458 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11459 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11460 shlibpath_var
=LD_LIBRARY_PATH
11461 shlibpath_overrides_runpath
=yes
11462 if test yes = "$with_gnu_ld"; then
11469 version_type
=linux
# correct to gnu/linux during the next big refactor
11470 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11471 soname_spec
='$libname$release$shared_ext$major'
11472 shlibpath_var
=LD_LIBRARY_PATH
11473 case $host_vendor in
11475 shlibpath_overrides_runpath
=no
11477 runpath_var
=LD_RUN_PATH
11485 shlibpath_overrides_runpath
=no
11486 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11492 if test -d /usr
/nec
; then
11493 version_type
=linux
# correct to gnu/linux during the next big refactor
11494 library_names_spec
='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11495 soname_spec
='$libname$shared_ext.$major'
11496 shlibpath_var
=LD_LIBRARY_PATH
11500 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11504 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11505 soname_spec
='$libname$release$shared_ext$major'
11506 shlibpath_var
=LD_LIBRARY_PATH
11507 shlibpath_overrides_runpath
=yes
11508 hardcode_into_libs
=yes
11509 if test yes = "$with_gnu_ld"; then
11510 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11512 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11515 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11519 sys_lib_dlsearch_path_spec
='/usr/lib'
11523 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11524 version_type
=linux
# correct to gnu/linux during the next big refactor
11527 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11528 shlibpath_var
=LD_LIBRARY_PATH
11529 shlibpath_overrides_runpath
=no
11530 hardcode_into_libs
=yes
11534 version_type
=linux
# correct to gnu/linux during the next big refactor
11535 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11536 soname_spec
='$libname$release$shared_ext$major'
11537 shlibpath_var
=LD_LIBRARY_PATH
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11545 $as_echo "$dynamic_linker" >&6; }
11546 test no
= "$dynamic_linker" && can_build_shared
=no
11548 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11549 if test yes = "$GCC"; then
11550 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11553 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11554 sys_lib_search_path_spec
=$lt_cv_sys_lib_search_path_spec
11557 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11558 sys_lib_dlsearch_path_spec
=$lt_cv_sys_lib_dlsearch_path_spec
11561 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11562 configure_time_dlsearch_path
=$sys_lib_dlsearch_path_spec
11564 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11565 func_munge_path_list sys_lib_dlsearch_path_spec
"$LT_SYS_LIBRARY_PATH"
11567 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11568 configure_time_lt_sys_library_path
=$LT_SYS_LIBRARY_PATH
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11667 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11669 if test -n "$hardcode_libdir_flag_spec" ||
11670 test -n "$runpath_var" ||
11671 test yes = "$hardcode_automatic"; then
11673 # We can hardcode non-existent directories.
11674 if test no
!= "$hardcode_direct" &&
11675 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11676 # have to relink, otherwise we might link with an installed library
11677 # when we should be linking with a yet-to-be-installed one
11678 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11679 test no
!= "$hardcode_minus_L"; then
11680 # Linking always hardcodes the temporary library directory.
11681 hardcode_action
=relink
11683 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11684 hardcode_action
=immediate
11687 # We cannot hardcode anything, or else we can only hardcode existing
11689 hardcode_action
=unsupported
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11692 $as_echo "$hardcode_action" >&6; }
11694 if test relink
= "$hardcode_action" ||
11695 test yes = "$inherit_rpath"; then
11696 # Fast installation is not supported
11697 enable_fast_install
=no
11698 elif test yes = "$shlibpath_overrides_runpath" ||
11699 test no
= "$enable_shared"; then
11700 # Fast installation is not necessary
11701 enable_fast_install
=needless
11709 if test yes != "$enable_dlopen"; then
11710 enable_dlopen
=unknown
11711 enable_dlopen_self
=unknown
11712 enable_dlopen_self_static
=unknown
11719 lt_cv_dlopen
=load_add_on
11721 lt_cv_dlopen_self
=yes
11724 mingw
* | pw32
* | cegcc
*)
11725 lt_cv_dlopen
=LoadLibrary
11730 lt_cv_dlopen
=dlopen
11735 # if libdl is installed we need to link against it
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11737 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11738 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11739 $as_echo_n "(cached) " >&6
11741 ac_check_lib_save_LIBS
=$LIBS
11743 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11744 /* end confdefs.h. */
11746 /* Override any GCC internal prototype to avoid an error.
11747 Use char because int might match the return type of a GCC
11748 builtin and then its argument prototype would still apply. */
11761 if ac_fn_c_try_link
"$LINENO"; then :
11762 ac_cv_lib_dl_dlopen
=yes
11764 ac_cv_lib_dl_dlopen
=no
11766 rm -f core conftest.err conftest.
$ac_objext \
11767 conftest
$ac_exeext conftest.
$ac_ext
11768 LIBS
=$ac_check_lib_save_LIBS
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11771 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11772 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11773 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-ldl
11778 lt_cv_dlopen_self
=yes
11785 # Don't try to run any link tests for TPF. We know it's impossible
11786 # because TPF is a cross-compiler, and we know how we open DSOs.
11787 lt_cv_dlopen
=dlopen
11789 lt_cv_dlopen_self
=no
11793 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11794 if test "x$ac_cv_func_shl_load" = xyes
; then :
11795 lt_cv_dlopen
=shl_load
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11798 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11799 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11800 $as_echo_n "(cached) " >&6
11802 ac_check_lib_save_LIBS
=$LIBS
11804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11805 /* end confdefs.h. */
11807 /* Override any GCC internal prototype to avoid an error.
11808 Use char because int might match the return type of a GCC
11809 builtin and then its argument prototype would still apply. */
11817 return shl_load ();
11822 if ac_fn_c_try_link
"$LINENO"; then :
11823 ac_cv_lib_dld_shl_load
=yes
11825 ac_cv_lib_dld_shl_load
=no
11827 rm -f core conftest.err conftest.
$ac_objext \
11828 conftest
$ac_exeext conftest.
$ac_ext
11829 LIBS
=$ac_check_lib_save_LIBS
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11832 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11833 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11834 lt_cv_dlopen
=shl_load lt_cv_dlopen_libs
=-ldld
11836 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11837 if test "x$ac_cv_func_dlopen" = xyes
; then :
11838 lt_cv_dlopen
=dlopen
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11841 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11842 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11843 $as_echo_n "(cached) " >&6
11845 ac_check_lib_save_LIBS
=$LIBS
11847 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11848 /* end confdefs.h. */
11850 /* Override any GCC internal prototype to avoid an error.
11851 Use char because int might match the return type of a GCC
11852 builtin and then its argument prototype would still apply. */
11865 if ac_fn_c_try_link
"$LINENO"; then :
11866 ac_cv_lib_dl_dlopen
=yes
11868 ac_cv_lib_dl_dlopen
=no
11870 rm -f core conftest.err conftest.
$ac_objext \
11871 conftest
$ac_exeext conftest.
$ac_ext
11872 LIBS
=$ac_check_lib_save_LIBS
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11875 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11876 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11877 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-ldl
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11880 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11881 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11882 $as_echo_n "(cached) " >&6
11884 ac_check_lib_save_LIBS
=$LIBS
11885 LIBS
="-lsvld $LIBS"
11886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11887 /* end confdefs.h. */
11889 /* Override any GCC internal prototype to avoid an error.
11890 Use char because int might match the return type of a GCC
11891 builtin and then its argument prototype would still apply. */
11904 if ac_fn_c_try_link
"$LINENO"; then :
11905 ac_cv_lib_svld_dlopen
=yes
11907 ac_cv_lib_svld_dlopen
=no
11909 rm -f core conftest.err conftest.
$ac_objext \
11910 conftest
$ac_exeext conftest.
$ac_ext
11911 LIBS
=$ac_check_lib_save_LIBS
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11914 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11915 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11916 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-lsvld
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11919 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11920 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11921 $as_echo_n "(cached) " >&6
11923 ac_check_lib_save_LIBS
=$LIBS
11925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11926 /* end confdefs.h. */
11928 /* Override any GCC internal prototype to avoid an error.
11929 Use char because int might match the return type of a GCC
11930 builtin and then its argument prototype would still apply. */
11938 return dld_link ();
11943 if ac_fn_c_try_link
"$LINENO"; then :
11944 ac_cv_lib_dld_dld_link
=yes
11946 ac_cv_lib_dld_dld_link
=no
11948 rm -f core conftest.err conftest.
$ac_objext \
11949 conftest
$ac_exeext conftest.
$ac_ext
11950 LIBS
=$ac_check_lib_save_LIBS
11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11953 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11954 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11955 lt_cv_dlopen
=dld_link lt_cv_dlopen_libs
=-ldld
11976 if test no
= "$lt_cv_dlopen"; then
11982 case $lt_cv_dlopen in
11984 save_CPPFLAGS
=$CPPFLAGS
11985 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11987 save_LDFLAGS
=$LDFLAGS
11988 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11991 LIBS
="$lt_cv_dlopen_libs $LIBS"
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11994 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11995 if ${lt_cv_dlopen_self+:} false
; then :
11996 $as_echo_n "(cached) " >&6
11998 if test yes = "$cross_compiling"; then :
11999 lt_cv_dlopen_self
=cross
12001 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12002 lt_status
=$lt_dlunknown
12003 cat > conftest.
$ac_ext <<_LT_EOF
12004 #line $LINENO "configure"
12005 #include "confdefs.h"
12014 # define LT_DLGLOBAL RTLD_GLOBAL
12017 # define LT_DLGLOBAL DL_GLOBAL
12019 # define LT_DLGLOBAL 0
12023 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12024 find out it does not work in some platform. */
12025 #ifndef LT_DLLAZY_OR_NOW
12027 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12030 # define LT_DLLAZY_OR_NOW DL_LAZY
12033 # define LT_DLLAZY_OR_NOW RTLD_NOW
12036 # define LT_DLLAZY_OR_NOW DL_NOW
12038 # define LT_DLLAZY_OR_NOW 0
12045 /* When -fvisibility=hidden is used, assume the code has been annotated
12046 correspondingly for the symbols needed. */
12047 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12048 int fnord () __attribute__((visibility("default")));
12051 int fnord () { return 42; }
12054 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12055 int status = $lt_dlunknown;
12059 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12062 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12063 else puts (dlerror ());
12065 /* dlclose (self); */
12073 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12074 (eval $ac_link) 2>&5
12076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12077 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev
/null
; then
12078 (.
/conftest
; exit; ) >&5 2>/dev
/null
12080 case x
$lt_status in
12081 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
12082 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
12083 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
12086 # compilation failed
12087 lt_cv_dlopen_self
=no
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12095 $as_echo "$lt_cv_dlopen_self" >&6; }
12097 if test yes = "$lt_cv_dlopen_self"; then
12098 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12100 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12101 if ${lt_cv_dlopen_self_static+:} false
; then :
12102 $as_echo_n "(cached) " >&6
12104 if test yes = "$cross_compiling"; then :
12105 lt_cv_dlopen_self_static
=cross
12107 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12108 lt_status
=$lt_dlunknown
12109 cat > conftest.
$ac_ext <<_LT_EOF
12110 #line $LINENO "configure"
12111 #include "confdefs.h"
12120 # define LT_DLGLOBAL RTLD_GLOBAL
12123 # define LT_DLGLOBAL DL_GLOBAL
12125 # define LT_DLGLOBAL 0
12129 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12130 find out it does not work in some platform. */
12131 #ifndef LT_DLLAZY_OR_NOW
12133 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12136 # define LT_DLLAZY_OR_NOW DL_LAZY
12139 # define LT_DLLAZY_OR_NOW RTLD_NOW
12142 # define LT_DLLAZY_OR_NOW DL_NOW
12144 # define LT_DLLAZY_OR_NOW 0
12151 /* When -fvisibility=hidden is used, assume the code has been annotated
12152 correspondingly for the symbols needed. */
12153 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12154 int fnord () __attribute__((visibility("default")));
12157 int fnord () { return 42; }
12160 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12161 int status = $lt_dlunknown;
12165 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12168 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12169 else puts (dlerror ());
12171 /* dlclose (self); */
12179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12180 (eval $ac_link) 2>&5
12182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12183 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev
/null
; then
12184 (.
/conftest
; exit; ) >&5 2>/dev
/null
12186 case x
$lt_status in
12187 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
12188 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
12189 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
12192 # compilation failed
12193 lt_cv_dlopen_self_static
=no
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12201 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12204 CPPFLAGS
=$save_CPPFLAGS
12205 LDFLAGS
=$save_LDFLAGS
12210 case $lt_cv_dlopen_self in
12211 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
12212 *) enable_dlopen_self
=unknown
;;
12215 case $lt_cv_dlopen_self_static in
12216 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
12217 *) enable_dlopen_self_static
=unknown
;;
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12240 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12241 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
12242 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
12243 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12245 $as_echo "yes" >&6; }
12247 # FIXME - insert some real tests, host_os isn't really good enough
12250 if test -n "$STRIP"; then
12251 striplib
="$STRIP -x"
12252 old_striplib
="$STRIP -S"
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12254 $as_echo "yes" >&6; }
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12257 $as_echo "no" >&6; }
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12262 $as_echo "no" >&6; }
12278 # Report what library types will actually be built
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12280 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12282 $as_echo "$can_build_shared" >&6; }
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12285 $as_echo_n "checking whether to build shared libraries... " >&6; }
12286 test no
= "$can_build_shared" && enable_shared
=no
12288 # On AIX, shared libraries and static libraries use the same namespace, and
12289 # are all built from PIC.
12292 test yes = "$enable_shared" && enable_static
=no
12293 if test -n "$RANLIB"; then
12294 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12295 postinstall_cmds
='$RANLIB $lib'
12300 if test ia64
!= "$host_cpu"; then
12301 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12302 yes,aix
,yes) ;; # shared object as lib.so file only
12303 yes,svr4
,*) ;; # shared object as lib.so archive member only
12304 yes,*) enable_static
=no
;; # shared object in lib.a archive as well
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12310 $as_echo "$enable_shared" >&6; }
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12313 $as_echo_n "checking whether to build static libraries... " >&6; }
12314 # Make sure either enable_shared or enable_static is yes.
12315 test yes = "$enable_shared" || enable_static
=yes
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12317 $as_echo "$enable_static" >&6; }
12324 ac_cpp
='$CPP $CPPFLAGS'
12325 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12326 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12327 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12345 ac_config_commands
="$ac_config_commands libtool"
12350 # Only expand once:
12353 # By default we simply use the C compiler to build assembly code.
12355 test "${CCAS+set}" = set || CCAS
=$CC
12356 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
12360 depcc
="$CCAS" am_compiler_list
=
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12363 $as_echo_n "checking dependency style of $depcc... " >&6; }
12364 if ${am_cv_CCAS_dependencies_compiler_type+:} false
; then :
12365 $as_echo_n "(cached) " >&6
12367 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12368 # We make a subdir and do the tests there. Otherwise we can end up
12369 # making bogus files that we don't know about and never remove. For
12370 # instance it was reported that on HP-UX the gcc test will end up
12371 # making a dummy file named 'D' -- because '-MD' means "put the output
12373 rm -rf conftest.dir
12375 # Copy depcomp to subdir because otherwise we won't find it if we're
12376 # using a relative directory.
12377 cp "$am_depcomp" conftest.dir
12379 # We will build objects and dependencies in a subdirectory because
12380 # it helps to detect inapplicable dependency modes. For instance
12381 # both Tru64's cc and ICC support -MD to output dependencies as a
12382 # side effect of compilation, but ICC will put the dependencies in
12383 # the current directory while Tru64 will put them in the object
12387 am_cv_CCAS_dependencies_compiler_type
=none
12388 if test "$am_compiler_list" = ""; then
12389 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12391 am__universal
=false
12394 for depmode
in $am_compiler_list; do
12395 # Setup a source with many dependencies, because some compilers
12396 # like to wrap large dependency lists on column 80 (with \), and
12397 # we should not choose a depcomp mode which is confused by this.
12399 # We need to recreate these files for each test, as the compiler may
12400 # overwrite some of them when testing with obscure command lines.
12401 # This happens at least with the AIX C compiler.
12403 for i
in 1 2 3 4 5 6; do
12404 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
12405 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12406 # Solaris 10 /bin/sh.
12407 echo '/* dummy */' > sub
/conftst
$i.h
12409 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12411 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12412 # mode. It turns out that the SunPro C++ compiler does not properly
12413 # handle '-M -o', and we need to detect this. Also, some Intel
12414 # versions had trouble with output in subdirs.
12415 am__obj
=sub
/conftest.
${OBJEXT-o}
12416 am__minus_obj
="-o $am__obj"
12419 # This depmode causes a compiler race in universal mode.
12420 test "$am__universal" = false ||
continue
12423 # After this tag, mechanisms are not by side-effect, so they'll
12424 # only be used when explicitly requested.
12425 if test "x$enable_dependency_tracking" = xyes
; then
12431 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
12432 # This compiler won't grok '-c -o', but also, the minuso test has
12433 # not run yet. These depmodes are late enough in the game, and
12434 # so weak that their functioning should not be impacted.
12435 am__obj
=conftest.
${OBJEXT-o}
12440 if depmode
=$depmode \
12441 source=sub
/conftest.c object
=$am__obj \
12442 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
12443 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
12444 >/dev
/null
2>conftest.err
&&
12445 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
12446 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
12447 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
12448 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
12449 # icc doesn't choke on unknown options, it will just issue warnings
12450 # or remarks (even with -Werror). So we grep stderr for any message
12451 # that says an option was ignored or not supported.
12452 # When given -MP, icc 7.0 and 7.1 complain thusly:
12453 # icc: Command line warning: ignoring option '-M'; no argument required
12454 # The diagnosis changed in icc 8.0:
12455 # icc: Command line remark: option '-MP' not supported
12456 if (grep 'ignoring option' conftest.err ||
12457 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
12458 am_cv_CCAS_dependencies_compiler_type
=$depmode
12465 rm -rf conftest.dir
12467 am_cv_CCAS_dependencies_compiler_type
=none
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
12472 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
12473 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
12476 test "x$enable_dependency_tracking" != xno \
12477 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
12478 am__fastdepCCAS_TRUE
=
12479 am__fastdepCCAS_FALSE
='#'
12481 am__fastdepCCAS_TRUE
='#'
12482 am__fastdepCCAS_FALSE
=
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs author" >&5
12490 $as_echo_n "checking zfs author... " >&6; }
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_AUTHOR" >&5
12492 $as_echo "$ZFS_META_AUTHOR" >&6; }
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs license" >&5
12495 $as_echo_n "checking zfs license... " >&6; }
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_LICENSE" >&5
12497 $as_echo "$ZFS_META_LICENSE" >&6; }
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linux distribution" >&5
12502 $as_echo_n "checking linux distribution... " >&6; }
12503 if test -f /etc
/toss-release
; then
12505 elif test -f /etc
/fedora-release
; then
12507 elif test -f /etc
/redhat-release
; then
12509 elif test -f /etc
/gentoo-release
; then
12511 elif test -f /etc
/arch-release
; then
12513 elif test -f /etc
/SuSE-release
; then
12515 elif test -f /etc
/slackware-version
; then
12517 elif test -f /etc
/lunar.release
; then
12519 elif test -f /etc
/lsb-release
; then
12521 elif test -f /etc
/debian_version
; then
12523 elif test -f /etc
/alpine-release
; then
12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VENDOR" >&5
12529 $as_echo "$VENDOR" >&6; }
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default package type" >&5
12533 $as_echo_n "checking default package type... " >&6; }
12535 toss
) DEFAULT_PACKAGE
=rpm
;;
12536 redhat
) DEFAULT_PACKAGE
=rpm
;;
12537 fedora
) DEFAULT_PACKAGE
=rpm
;;
12538 gentoo
) DEFAULT_PACKAGE
=tgz
;;
12539 alpine
) DEFAULT_PACKAGE
=tgz
;;
12540 arch
) DEFAULT_PACKAGE
=tgz
;;
12541 sles
) DEFAULT_PACKAGE
=rpm
;;
12542 slackware
) DEFAULT_PACKAGE
=tgz
;;
12543 lunar
) DEFAULT_PACKAGE
=tgz
;;
12544 ubuntu
) DEFAULT_PACKAGE
=deb
;;
12545 debian
) DEFAULT_PACKAGE
=deb
;;
12546 *) DEFAULT_PACKAGE
=rpm
;;
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_PACKAGE" >&5
12549 $as_echo "$DEFAULT_PACKAGE" >&6; }
12552 DEFAULT_INIT_DIR
=$sysconfdir/init.d
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init directory" >&5
12554 $as_echo_n "checking default init directory... " >&6; }
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_DIR" >&5
12556 $as_echo "$DEFAULT_INIT_DIR" >&6; }
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init script type" >&5
12560 $as_echo_n "checking default init script type... " >&6; }
12562 toss
) DEFAULT_INIT_SCRIPT
=redhat
;;
12563 redhat
) DEFAULT_INIT_SCRIPT
=redhat
;;
12564 fedora
) DEFAULT_INIT_SCRIPT
=fedora
;;
12565 gentoo
) DEFAULT_INIT_SCRIPT
=openrc
;;
12566 alpine
) DEFAULT_INIT_SCRIPT
=openrc
;;
12567 arch
) DEFAULT_INIT_SCRIPT
=lsb
;;
12568 sles
) DEFAULT_INIT_SCRIPT
=lsb
;;
12569 slackware
) DEFAULT_INIT_SCRIPT
=lsb
;;
12570 lunar
) DEFAULT_INIT_SCRIPT
=lunar
;;
12571 ubuntu
) DEFAULT_INIT_SCRIPT
=lsb
;;
12572 debian
) DEFAULT_INIT_SCRIPT
=lsb
;;
12573 *) DEFAULT_INIT_SCRIPT
=lsb
;;
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_SCRIPT" >&5
12576 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init config direectory" >&5
12580 $as_echo_n "checking default init config direectory... " >&6; }
12582 alpine
) DEFAULT_INITCONF_DIR
=/etc
/conf.d
;;
12583 gentoo
) DEFAULT_INITCONF_DIR
=/etc
/conf.d
;;
12584 toss
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12585 redhat
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12586 fedora
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12587 sles
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12588 ubuntu
) DEFAULT_INITCONF_DIR
=/etc
/default
;;
12589 debian
) DEFAULT_INITCONF_DIR
=/etc
/default
;;
12590 *) DEFAULT_INITCONF_DIR
=/etc
/default
;;
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INITCONF_DIR" >&5
12593 $as_echo "$DEFAULT_INITCONF_DIR" >&6; }
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether initramfs-tools is available" >&5
12597 $as_echo_n "checking whether initramfs-tools is available... " >&6; }
12598 if test -d /usr
/share
/initramfs-tools
; then
12599 DEFINE_INITRAMFS
='--define "_initramfs 1"'
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12601 $as_echo "yes" >&6; }
12603 DEFINE_INITRAMFS
=''
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12605 $as_echo "no" >&6; }
12613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPM is available" >&5
12614 $as_echo_n "checking whether $RPM is available... " >&6; }
12615 if tmp
=$
($RPM --version 2>/dev
/null
); then :
12617 RPM_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM ($RPM_VERSION)" >&5
12620 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM" >&5
12626 $as_echo "$HAVE_RPM" >&6; }
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPMBUILD is available" >&5
12631 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
12632 if tmp
=$
($RPMBUILD --version 2>/dev
/null
); then :
12634 RPMBUILD_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
12636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
12637 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD" >&5
12643 $as_echo "$HAVE_RPMBUILD" >&6; }
12647 RPM_DEFINE_COMMON
='--define "$(DEBUG_ZFS) 1"'
12648 RPM_DEFINE_UTIL
='--define "_dracutdir $(dracutdir)" --define "_udevdir $(udevdir)" --define "_udevruledir $(udevruledir)" --define "_initconfdir $(DEFAULT_INITCONF_DIR)" $(DEFINE_INITRAMFS)'
12649 RPM_DEFINE_KMOD
='--define "kernels $(LINUX_VERSION)" --define "require_spldir $(SPL)" --define "require_splobj $(SPL_OBJ)" --define "ksrc $(LINUX)" --define "kobj $(LINUX_OBJ)"'
12652 SRPM_DEFINE_COMMON
='--define "build_src_rpm 1"'
12657 RPM_SPEC_DIR
="rpm/generic"
12659 # Check whether --with-spec was given.
12660 if test "${with_spec+set}" = set; then :
12661 withval
=$with_spec; RPM_SPEC_DIR
="rpm/$withval"
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spec files are available" >&5
12666 $as_echo_n "checking whether spec files are available... " >&6; }
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
12668 $as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
12690 DPKGBUILD
=dpkg-buildpackage
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKG is available" >&5
12693 $as_echo_n "checking whether $DPKG is available... " >&6; }
12694 if tmp
=$
($DPKG --version 2>/dev
/null
); then :
12696 DPKG_VERSION
=$
(echo $tmp |
$AWK '/Debian/ { print $7 }')
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
12699 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG" >&5
12705 $as_echo "$HAVE_DPKG" >&6; }
12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKGBUILD is available" >&5
12710 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
12711 if tmp
=$
($DPKGBUILD --version 2>/dev
/null
); then :
12713 DPKGBUILD_VERSION
=$
(echo $tmp | \
12714 $AWK '/Debian/ { print $4 }' | cut
-f-4 -d'.')
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
12717 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD" >&5
12723 $as_echo "$HAVE_DPKGBUILD" >&6; }
12738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ALIEN is available" >&5
12739 $as_echo_n "checking whether $ALIEN is available... " >&6; }
12740 if tmp
=$
($ALIEN --version 2>/dev
/null
); then :
12742 ALIEN_VERSION
=$
(echo $tmp |
$AWK '{ print $3 }')
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
12745 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN" >&5
12751 $as_echo "$HAVE_ALIEN" >&6; }
12763 # Check whether --with-config was given.
12764 if test "${with_config+set}" = set; then :
12765 withval
=$with_config; ZFS_CONFIG
="$withval"
12768 # Check whether --enable-linux-builtin was given.
12769 if test "${enable_linux_builtin+set}" = set; then :
12770 enableval
=$enable_linux_builtin;
12772 enable_linux_builtin
=no
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs config" >&5
12777 $as_echo_n "checking zfs config... " >&6; }
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_CONFIG" >&5
12779 $as_echo "$ZFS_CONFIG" >&6; };
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-unused-but-set-variable support" >&5
12785 $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
12787 saved_flags
="$CFLAGS"
12788 CFLAGS
="$CFLAGS -Wunused-but-set-variable"
12790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12791 /* end confdefs.h. */
12801 if ac_fn_c_try_compile
"$LINENO"; then :
12803 NO_UNUSED_BUT_SET_VARIABLE
=-Wno-unused-but-set-variable
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12805 $as_echo "yes" >&6; }
12809 NO_UNUSED_BUT_SET_VARIABLE
=
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12811 $as_echo "no" >&6; }
12814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12816 CFLAGS
="$saved_flags"
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-bool-compare support" >&5
12821 $as_echo_n "checking for -Wno-bool-compare support... " >&6; }
12823 saved_flags
="$CFLAGS"
12824 CFLAGS
="$CFLAGS -Wbool-compare"
12826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12827 /* end confdefs.h. */
12837 if ac_fn_c_try_compile
"$LINENO"; then :
12839 NO_BOOL_COMPARE
=-Wno-bool-compare
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12841 $as_echo "yes" >&6; }
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12847 $as_echo "no" >&6; }
12850 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12852 CFLAGS
="$saved_flags"
12856 case "$host_cpu" in
12857 x86_64 | x86 | i686
)
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSE" >&5
12860 $as_echo_n "checking whether host toolchain supports SSE... " >&6; }
12862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12863 /* end confdefs.h. */
12867 __asm__ __volatile__("xorps %xmm0, %xmm1");
12871 if ac_fn_c_try_link
"$LINENO"; then :
12874 $as_echo "#define HAVE_SSE 1" >>confdefs.h
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12877 $as_echo "yes" >&6; }
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12882 $as_echo "no" >&6; }
12885 rm -f core conftest.err conftest.
$ac_objext \
12886 conftest
$ac_exeext conftest.
$ac_ext
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSE2" >&5
12890 $as_echo_n "checking whether host toolchain supports SSE2... " >&6; }
12892 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12893 /* end confdefs.h. */
12897 __asm__ __volatile__("pxor %xmm0, %xmm1");
12901 if ac_fn_c_try_link
"$LINENO"; then :
12904 $as_echo "#define HAVE_SSE2 1" >>confdefs.h
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12907 $as_echo "yes" >&6; }
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12912 $as_echo "no" >&6; }
12915 rm -f core conftest.err conftest.
$ac_objext \
12916 conftest
$ac_exeext conftest.
$ac_ext
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSE3" >&5
12920 $as_echo_n "checking whether host toolchain supports SSE3... " >&6; }
12922 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12923 /* end confdefs.h. */
12928 __asm__ __volatile__("lddqu %0,%%xmm0" :: "m"(v[0]));
12932 if ac_fn_c_try_link
"$LINENO"; then :
12935 $as_echo "#define HAVE_SSE3 1" >>confdefs.h
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12938 $as_echo "yes" >&6; }
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12943 $as_echo "no" >&6; }
12946 rm -f core conftest.err conftest.
$ac_objext \
12947 conftest
$ac_exeext conftest.
$ac_ext
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSSE3" >&5
12951 $as_echo_n "checking whether host toolchain supports SSSE3... " >&6; }
12953 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12954 /* end confdefs.h. */
12958 __asm__ __volatile__("pshufb %xmm0,%xmm1");
12962 if ac_fn_c_try_link
"$LINENO"; then :
12965 $as_echo "#define HAVE_SSSE3 1" >>confdefs.h
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12968 $as_echo "yes" >&6; }
12972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12973 $as_echo "no" >&6; }
12976 rm -f core conftest.err conftest.
$ac_objext \
12977 conftest
$ac_exeext conftest.
$ac_ext
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSE4.1" >&5
12981 $as_echo_n "checking whether host toolchain supports SSE4.1... " >&6; }
12983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12984 /* end confdefs.h. */
12988 __asm__ __volatile__("pmaxsb %xmm0,%xmm1");
12992 if ac_fn_c_try_link
"$LINENO"; then :
12995 $as_echo "#define HAVE_SSE4_1 1" >>confdefs.h
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12998 $as_echo "yes" >&6; }
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13003 $as_echo "no" >&6; }
13006 rm -f core conftest.err conftest.
$ac_objext \
13007 conftest
$ac_exeext conftest.
$ac_ext
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSE4.2" >&5
13011 $as_echo_n "checking whether host toolchain supports SSE4.2... " >&6; }
13013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13014 /* end confdefs.h. */
13018 __asm__ __volatile__("pcmpgtq %xmm0, %xmm1");
13022 if ac_fn_c_try_link
"$LINENO"; then :
13025 $as_echo "#define HAVE_SSE4_2 1" >>confdefs.h
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13028 $as_echo "yes" >&6; }
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13033 $as_echo "no" >&6; }
13036 rm -f core conftest.err conftest.
$ac_objext \
13037 conftest
$ac_exeext conftest.
$ac_ext
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX" >&5
13041 $as_echo_n "checking whether host toolchain supports AVX... " >&6; }
13043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13044 /* end confdefs.h. */
13049 __asm__ __volatile__("vmovdqa %0,%%ymm0" :: "m"(v[0]));
13053 if ac_fn_c_try_link
"$LINENO"; then :
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13056 $as_echo "yes" >&6; }
13058 $as_echo "#define HAVE_AVX 1" >>confdefs.h
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13064 $as_echo "no" >&6; }
13067 rm -f core conftest.err conftest.
$ac_objext \
13068 conftest
$ac_exeext conftest.
$ac_ext
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX2" >&5
13072 $as_echo_n "checking whether host toolchain supports AVX2... " >&6; }
13074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13075 /* end confdefs.h. */
13080 __asm__ __volatile__("vpshufb %ymm0,%ymm1,%ymm2");
13084 if ac_fn_c_try_link
"$LINENO"; then :
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13087 $as_echo "yes" >&6; }
13089 $as_echo "#define HAVE_AVX2 1" >>confdefs.h
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13095 $as_echo "no" >&6; }
13098 rm -f core conftest.err conftest.
$ac_objext \
13099 conftest
$ac_exeext conftest.
$ac_ext
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512F" >&5
13103 $as_echo_n "checking whether host toolchain supports AVX512F... " >&6; }
13105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13106 /* end confdefs.h. */
13111 __asm__ __volatile__("vpandd %zmm0,%zmm1,%zmm2");
13115 if ac_fn_c_try_link
"$LINENO"; then :
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13118 $as_echo "yes" >&6; }
13120 $as_echo "#define HAVE_AVX512F 1" >>confdefs.h
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13126 $as_echo "no" >&6; }
13129 rm -f core conftest.err conftest.
$ac_objext \
13130 conftest
$ac_exeext conftest.
$ac_ext
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512CD" >&5
13134 $as_echo_n "checking whether host toolchain supports AVX512CD... " >&6; }
13136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13137 /* end confdefs.h. */
13142 __asm__ __volatile__("vplzcntd %zmm0,%zmm1");
13146 if ac_fn_c_try_link
"$LINENO"; then :
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13149 $as_echo "yes" >&6; }
13151 $as_echo "#define HAVE_AVX512CD 1" >>confdefs.h
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13157 $as_echo "no" >&6; }
13160 rm -f core conftest.err conftest.
$ac_objext \
13161 conftest
$ac_exeext conftest.
$ac_ext
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512DQ" >&5
13165 $as_echo_n "checking whether host toolchain supports AVX512DQ... " >&6; }
13167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13168 /* end confdefs.h. */
13173 __asm__ __volatile__("vandpd %zmm0,%zmm1,%zmm2");
13177 if ac_fn_c_try_link
"$LINENO"; then :
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13180 $as_echo "yes" >&6; }
13182 $as_echo "#define HAVE_AVX512DQ 1" >>confdefs.h
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13188 $as_echo "no" >&6; }
13191 rm -f core conftest.err conftest.
$ac_objext \
13192 conftest
$ac_exeext conftest.
$ac_ext
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512BW" >&5
13196 $as_echo_n "checking whether host toolchain supports AVX512BW... " >&6; }
13198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13199 /* end confdefs.h. */
13204 __asm__ __volatile__("vpshufb %zmm0,%zmm1,%zmm2");
13208 if ac_fn_c_try_link
"$LINENO"; then :
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13211 $as_echo "yes" >&6; }
13213 $as_echo "#define HAVE_AVX512BW 1" >>confdefs.h
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13219 $as_echo "no" >&6; }
13222 rm -f core conftest.err conftest.
$ac_objext \
13223 conftest
$ac_exeext conftest.
$ac_ext
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512IFMA" >&5
13227 $as_echo_n "checking whether host toolchain supports AVX512IFMA... " >&6; }
13229 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13230 /* end confdefs.h. */
13235 __asm__ __volatile__("vpmadd52luq %zmm0,%zmm1,%zmm2");
13239 if ac_fn_c_try_link
"$LINENO"; then :
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13242 $as_echo "yes" >&6; }
13244 $as_echo "#define HAVE_AVX512IFMA 1" >>confdefs.h
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13250 $as_echo "no" >&6; }
13253 rm -f core conftest.err conftest.
$ac_objext \
13254 conftest
$ac_exeext conftest.
$ac_ext
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512VBMI" >&5
13258 $as_echo_n "checking whether host toolchain supports AVX512VBMI... " >&6; }
13260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13261 /* end confdefs.h. */
13266 __asm__ __volatile__("vpermb %zmm0,%zmm1,%zmm2");
13270 if ac_fn_c_try_link
"$LINENO"; then :
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13273 $as_echo "yes" >&6; }
13275 $as_echo "#define HAVE_AVX512VBMI 1" >>confdefs.h
13280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13281 $as_echo "no" >&6; }
13284 rm -f core conftest.err conftest.
$ac_objext \
13285 conftest
$ac_exeext conftest.
$ac_ext
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512PF" >&5
13289 $as_echo_n "checking whether host toolchain supports AVX512PF... " >&6; }
13291 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13292 /* end confdefs.h. */
13297 __asm__ __volatile__("vgatherpf0dps (%rsi,%zmm0,4){%k1}");
13301 if ac_fn_c_try_link
"$LINENO"; then :
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13304 $as_echo "yes" >&6; }
13306 $as_echo "#define HAVE_AVX512PF 1" >>confdefs.h
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13312 $as_echo "no" >&6; }
13315 rm -f core conftest.err conftest.
$ac_objext \
13316 conftest
$ac_exeext conftest.
$ac_ext
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512ER" >&5
13320 $as_echo_n "checking whether host toolchain supports AVX512ER... " >&6; }
13322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13323 /* end confdefs.h. */
13328 __asm__ __volatile__("vexp2pd %zmm0,%zmm1");
13332 if ac_fn_c_try_link
"$LINENO"; then :
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13335 $as_echo "yes" >&6; }
13337 $as_echo "#define HAVE_AVX512ER 1" >>confdefs.h
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13343 $as_echo "no" >&6; }
13346 rm -f core conftest.err conftest.
$ac_objext \
13347 conftest
$ac_exeext conftest.
$ac_ext
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512VL" >&5
13351 $as_echo_n "checking whether host toolchain supports AVX512VL... " >&6; }
13353 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13354 /* end confdefs.h. */
13359 __asm__ __volatile__("vpabsq %zmm0,%zmm1");
13363 if ac_fn_c_try_link
"$LINENO"; then :
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13366 $as_echo "yes" >&6; }
13368 $as_echo "#define HAVE_AVX512VL 1" >>confdefs.h
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13374 $as_echo "no" >&6; }
13377 rm -f core conftest.err conftest.
$ac_objext \
13378 conftest
$ac_exeext conftest.
$ac_ext
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
13385 $as_echo_n "checking for target asm dir... " >&6; }
13386 TARGET_ARCH
=`echo ${target_cpu} | sed -e s/i.86/i386/`
13388 case $TARGET_ARCH in
13390 TARGET_ASM_DIR
=asm-
${TARGET_ARCH}
13393 TARGET_ASM_DIR
=asm-generic
13398 if test $TARGET_ASM_DIR = asm-x86_64
; then
13399 TARGET_ASM_X86_64_TRUE
=
13400 TARGET_ASM_X86_64_FALSE
='#'
13402 TARGET_ASM_X86_64_TRUE
='#'
13403 TARGET_ASM_X86_64_FALSE
=
13406 if test $TARGET_ASM_DIR = asm-i386
; then
13407 TARGET_ASM_I386_TRUE
=
13408 TARGET_ASM_I386_FALSE
='#'
13410 TARGET_ASM_I386_TRUE
='#'
13411 TARGET_ASM_I386_FALSE
=
13414 if test $TARGET_ASM_DIR = asm-generic
; then
13415 TARGET_ASM_GENERIC_TRUE
=
13416 TARGET_ASM_GENERIC_FALSE
='#'
13418 TARGET_ASM_GENERIC_TRUE
='#'
13419 TARGET_ASM_GENERIC_FALSE
=
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
13423 $as_echo "$TARGET_ASM_DIR" >&6; }
13427 case "$ZFS_CONFIG" in
13431 # Check whether --with-linux was given.
13432 if test "${with_linux+set}" = set; then :
13433 withval
=$with_linux; kernelsrc
="$withval"
13438 # Check whether --with-linux-obj was given.
13439 if test "${with_linux_obj+set}" = set; then :
13440 withval
=$with_linux_obj; kernelbuild
="$withval"
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
13445 $as_echo_n "checking kernel source directory... " >&6; }
13446 if test -z "$kernelsrc"; then :
13448 if test -e "/lib/modules/$(uname -r)/source"; then :
13450 headersdir
="/lib/modules/$(uname -r)/source"
13451 sourcelink
=$
(readlink
-f "$headersdir")
13453 elif test -e "/lib/modules/$(uname -r)/build"; then :
13455 headersdir
="/lib/modules/$(uname -r)/build"
13456 sourcelink
=$
(readlink
-f "$headersdir")
13460 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
13462 2>/dev
/null |
grep -v obj |
tail -1)
13466 if test -n "$sourcelink" && test -e ${sourcelink}; then :
13468 kernelsrc
=`readlink -f ${sourcelink}`
13472 kernelsrc
="Not found"
13478 if test "$kernelsrc" = "NONE"; then :
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
13488 $as_echo "$kernelsrc" >&6; }
13489 if test ! -d "$kernelsrc"; then :
13492 *** Please make sure the kernel devel package for your distribution
13493 *** is installed and then try again. If that fails, you can specify the
13494 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
13499 $as_echo_n "checking kernel build directory... " >&6; }
13500 if test -z "$kernelbuild"; then :
13502 if test x
$withlinux != xyes
-a -e "/lib/modules/$(uname -r)/build"; then :
13504 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
13506 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
13508 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
13510 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then :
13512 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
13514 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then :
13516 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
13520 kernelbuild
=${kernelsrc}
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
13526 $as_echo "$kernelbuild" >&6; }
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
13529 $as_echo_n "checking kernel source version... " >&6; }
13530 utsrelease1
=$kernelbuild/include
/linux
/version.h
13531 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
13532 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
13533 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then :
13535 utsrelease
=linux
/version.h
13537 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then :
13539 utsrelease
=linux
/utsrelease.h
13541 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then :
13543 utsrelease
=generated
/utsrelease.h
13547 if test "$utsrelease"; then :
13549 kernsrcver
=`(echo "#include <$utsrelease>";
13550 echo "kernsrcver=UTS_RELEASE") |
13551 cpp -I $kernelbuild/include |
13552 grep "^kernsrcver=" | cut -d \" -f 2`
13554 if test -z "$kernsrcver"; then :
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13557 $as_echo "Not found" >&6; }
13558 as_fn_error $?
"*** Cannot determine kernel version." "$LINENO" 5
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13565 $as_echo "Not found" >&6; }
13566 if test "x$enable_linux_builtin" != xyes
; then
13567 as_fn_error $?
"*** Cannot find UTS_RELEASE definition." "$LINENO" 5
13570 *** Cannot find UTS_RELEASE definition.
13571 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
13577 $as_echo "$kernsrcver" >&6; }
13580 LINUX_OBJ
=${kernelbuild}
13581 LINUX_VERSION
=${kernsrcver}
13588 modpost
=$LINUX/scripts
/Makefile.modpost
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
13590 $as_echo_n "checking kernel file name for module symbols... " >&6; }
13591 if test "x$enable_linux_builtin" != xyes
-a -f "$modpost"; then :
13593 if grep -q Modules.symvers
$modpost; then :
13595 LINUX_SYMBOLS
=Modules.symvers
13599 LINUX_SYMBOLS
=Module.symvers
13603 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
13606 *** Please make sure the kernel devel package for your distribution
13607 *** is installed. If you are building with a custom kernel, make sure the
13608 *** kernel is configured, built, and the '--with-linux=PATH' configure
13609 *** option refers to the location of the kernel source." "$LINENO" 5
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
13619 $as_echo "$LINUX_SYMBOLS" >&6; }
13625 # Check whether --with-spl was given.
13626 if test "${with_spl+set}" = set; then :
13627 withval
=$with_spl; if test "$withval" = "yes"; then :
13628 as_fn_error $?
"--with-spl=PATH requires a PATH" "$LINENO" 5
13636 # Check whether --with-spl-obj was given.
13637 if test "${with_spl_obj+set}" = set; then :
13638 withval
=$with_spl_obj; splbuild
="$withval"
13643 # Check whether --with-spl-timeout was given.
13644 if test "${with_spl_timeout+set}" = set; then :
13645 withval
=$with_spl_timeout; timeout
="$withval"
13651 splsrc0
="/var/lib/dkms/spl/${VERSION}/build"
13652 splsrc1
="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
13653 splsrc2
="/usr/local/src/spl-${VERSION}"
13654 splsrc3
="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
13655 splsrc4
="/usr/src/spl-${VERSION}"
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
13660 $as_echo_n "checking spl source directory... " >&6; }
13661 if test -z "${splsrc}"; then :
13671 if test -e "${splsrc0}/spl.release.in"; then :
13675 elif test -e "${splsrc1}/spl.release.in"; then :
13679 elif test -e "${splsrc2}/spl.release.in"; then :
13683 elif test -e "${splsrc3}/spl.release.in"; then :
13685 splsrc
=$
(readlink
-f "${splsrc3}")
13687 elif test -e "${splsrc4}/spl.release.in" ; then :
13691 elif test -e "${splsrc5}/spl.release.in"; then :
13693 splsrc
=$
(readlink
-f "${splsrc5}")
13695 elif test -e "${splsrc6}/spl.release.in" ; then :
13707 all_spl_sources
="$withval",
13708 if test "$splsrc" = "NONE"; then :
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
13718 $as_echo "$splsrc" >&6; }
13719 if test ! -e "$splsrc/spl.release.in"; then :
13722 *** Please make sure the kmod spl devel package for your distribution
13723 *** is installed then try again. If that fails you can specify the
13724 *** location of the spl source with the '--with-spl=PATH' option.
13725 *** The spl version must match the version of ZFS you are building,
13726 *** ${VERSION}. Failed to find spl.release.in in the following:
13727 $all_spl_sources" "$LINENO" 5
13731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
13732 $as_echo_n "checking spl build directory... " >&6; }
13734 all_spl_config_locs
="${splsrc}/${LINUX_VERSION}
13738 if test -z "$splbuild"; then :
13740 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
13742 splbuild
="${splsrc}/${LINUX_VERSION}"
13744 elif test -e "${splsrc}/spl_config.h" ; then :
13746 splbuild
="${splsrc}"
13748 elif find -L "${splsrc}" -name spl_config.h
2> /dev
/null |
grep -wq spl_config.h
; then :
13750 splbuild
=$
(find -L "${splsrc}" -name spl_config.h |
sed 's,/spl_config.h,,')
13754 splbuild
="Not found"
13759 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
13766 timeout
=$
((timeout-1
))
13771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
13772 $as_echo "$splbuild" >&6; }
13773 if ! test -e "$splbuild/spl_config.h"; then :
13776 *** Please make sure the kmod spl devel <kernel> package for your
13777 *** distribution is installed then try again. If that fails you
13778 *** can specify the location of the spl objects with the
13779 *** '--with-spl-obj=PATH' option. Failed to find spl_config.h in
13780 *** any of the following:
13781 $all_spl_config_locs" "$LINENO" 5
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
13786 $as_echo_n "checking spl source version... " >&6; }
13787 if test -r $splbuild/spl_config.h
&&
13788 fgrep
-q SPL_META_VERSION
$splbuild/spl_config.h
; then :
13791 splsrcver
=`(echo "#include <spl_config.h>";
13792 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
13794 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
13798 if test -z "$splsrcver"; then :
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13801 $as_echo "Not found" >&6; }
13803 *** Cannot determine the version of the spl source.
13804 *** Please prepare the spl source before running this script" "$LINENO" 5
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
13809 $as_echo "$splsrcver" >&6; }
13812 SPL_OBJ
=${splbuild}
13813 SPL_VERSION
=${splsrcver}
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
13820 $as_echo_n "checking spl file name for module symbols... " >&6; }
13824 if test -r $SPL_OBJ/Module.symvers
; then :
13826 SPL_SYMBOLS
=Module.symvers
13828 elif test -r $SPL_OBJ/Modules.symvers
; then :
13830 SPL_SYMBOLS
=Modules.symvers
13832 elif test -r $SPL_OBJ/module
/Module.symvers
; then :
13834 SPL_SYMBOLS
=Module.symvers
13836 elif test -r $SPL_OBJ/module
/Modules.symvers
; then :
13838 SPL_SYMBOLS
=Modules.symvers
13842 if test $SPL_SYMBOLS != NONE
-o $timeout -le 0; then :
13849 timeout
=$
((timeout-1
))
13854 if test "$SPL_SYMBOLS" = NONE
; then :
13856 SPL_SYMBOLS
=$LINUX_SYMBOLS
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
13861 $as_echo "$SPL_SYMBOLS" >&6; }
13866 # Check whether --with-qat was given.
13867 if test "${with_qat+set}" = set; then :
13868 withval
=$with_qat; if test "$withval" = "yes"; then :
13869 as_fn_error $?
"--with-qat=PATH requires a PATH" "$LINENO" 5
13877 # Check whether --with-qat-obj was given.
13878 if test "${with_qat_obj+set}" = set; then :
13879 withval
=$with_qat_obj; qatbuild
="$withval"
13883 if test ! -z "${qatsrc}"; then :
13885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat source directory" >&5
13886 $as_echo_n "checking qat source directory... " >&6; }
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qatsrc" >&5
13888 $as_echo "$qatsrc" >&6; }
13889 QAT_SRC
="${qatsrc}/quickassist"
13890 if test ! -e "$QAT_SRC/include/cpa.h"; then :
13893 *** Please make sure the qat driver package is installed
13894 *** and specify the location of the qat source with the
13895 *** '--with-qat=PATH' option then try again. Failed to
13897 ${QAT_SRC}/include" "$LINENO" 5
13903 if test ! -z "${qatsrc}"; then :
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat build directory" >&5
13906 $as_echo_n "checking qat build directory... " >&6; }
13907 if test -z "$qatbuild"; then :
13909 qatbuild
="${qatsrc}/build"
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qatbuild" >&5
13914 $as_echo "$qatbuild" >&6; }
13915 QAT_OBJ
=${qatbuild}
13916 if ! test -e "$QAT_OBJ/icp_qa_al.ko" && ! test -e "$QAT_OBJ/qat_api.ko"; then :
13919 *** Please make sure the qat driver is installed then try again.
13920 *** Failed to find icp_qa_al.ko or qat_api.ko in:
13921 $QAT_OBJ" "$LINENO" 5
13929 $as_echo "#define HAVE_QAT 1" >>confdefs.h
13934 if test ! -z "${qatsrc}"; then :
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat file for module symbols" >&5
13937 $as_echo_n "checking qat file for module symbols... " >&6; }
13938 QAT_SYMBOLS
=$QAT_SRC/lookaside
/access_layer
/src
/Module.symvers
13940 if test -r $QAT_SYMBOLS; then :
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QAT_SYMBOLS" >&5
13943 $as_echo "$QAT_SYMBOLS" >&6; }
13949 *** Please make sure the qat driver is installed then try again.
13950 *** Failed to find Module.symvers in:
13951 $QAT_SYMBOLS" "$LINENO" 5
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
13959 $as_echo_n "checking whether modules can be built... " >&6; }
13962 cat confdefs.h
- <<_ACEOF >conftest.c
13977 cat - <<_ACEOF >conftest.h
13982 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13983 echo "obj-m := conftest.o" >build
/Makefile
13985 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13986 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13988 (eval $ac_try) 2>&5
13990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13991 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13993 (eval $ac_try) 2>&5
13995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13996 test $ac_status = 0; }; }; then :
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13999 $as_echo "yes" >&6; }
14002 $as_echo "$as_me: failed program was:" >&5
14003 sed 's/^/| /' conftest.
$ac_ext >&5
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14006 $as_echo "no" >&6; }
14007 if test "x$enable_linux_builtin" != xyes
; then
14008 as_fn_error $?
"*** Unable to build an empty module." "$LINENO" 5
14011 *** Unable to build an empty module.
14012 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile-time stack validation (objtool)" >&5
14024 $as_echo_n "checking for compile-time stack validation (objtool)... " >&6; }
14027 cat confdefs.h
- <<_ACEOF >conftest.c
14030 #undef __ASSEMBLY__
14031 #include <asm/frame.h>
14037 #if !defined(FRAME_BEGIN)
14049 cat - <<_ACEOF >conftest.h
14054 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14055 echo "obj-m := conftest.o" >build
/Makefile
14057 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14058 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14060 (eval $ac_try) 2>&5
14062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14063 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14065 (eval $ac_try) 2>&5
14067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14068 test $ac_status = 0; }; }; then :
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14071 $as_echo "yes" >&6; }
14073 $as_echo "#define HAVE_KERNEL_OBJTOOL 1" >>confdefs.h
14077 $as_echo "$as_me: failed program was:" >&5
14078 sed 's/^/| /' conftest.
$ac_ext >&5
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14081 $as_echo "no" >&6; }
14091 if test "x$cross_compiling" != xyes
; then :
14093 if test "$cross_compiling" = yes; then :
14094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14096 as_fn_error $?
"cannot run test program while cross compiling
14097 See \`config.log' for more details" "$LINENO" 5; }
14099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14100 /* end confdefs.h. */
14103 #include "$LINUX/include/linux/license.h"
14109 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
14116 if ac_fn_c_try_run
"$LINENO"; then :
14119 $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
14123 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14124 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with 16K or larger stacks" >&5
14132 $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
14135 cat confdefs.h
- <<_ACEOF >conftest.c
14138 #include <linux/module.h>
14144 #if (THREAD_SIZE < 16384)
14145 #error "THREAD_SIZE is less than 16K"
14156 cat - <<_ACEOF >conftest.h
14161 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14162 echo "obj-m := conftest.o" >build
/Makefile
14164 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14165 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14167 (eval $ac_try) 2>&5
14169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14170 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14172 (eval $ac_try) 2>&5
14174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14175 test $ac_status = 0; }; }; then :
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14178 $as_echo "yes" >&6; }
14180 $as_echo "#define HAVE_LARGE_STACKS 1" >>confdefs.h
14184 $as_echo "$as_me: failed program was:" >&5
14185 sed 's/^/| /' conftest.
$ac_ext >&5
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14188 $as_echo "no" >&6; }
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
14200 $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
14203 cat confdefs.h
- <<_ACEOF >conftest.c
14206 #include <linux/module.h>
14212 #ifndef CONFIG_DEBUG_LOCK_ALLOC
14213 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
14224 cat - <<_ACEOF >conftest.h
14229 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14230 echo "obj-m := conftest.o" >build
/Makefile
14232 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14233 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14235 (eval $ac_try) 2>&5
14237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14238 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14240 (eval $ac_try) 2>&5
14242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14243 test $ac_status = 0; }; }; then :
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14246 $as_echo "yes" >&6; }
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
14249 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
14250 tmp_flags
="$EXTRA_KCFLAGS"
14253 cat confdefs.h
- <<_ACEOF >conftest.c
14256 #include <linux/module.h>
14257 #include <linux/mutex.h>
14259 MODULE_LICENSE("$ZFS_META_LICENSE");
14269 mutex_unlock(&lock);
14279 cat - <<_ACEOF >conftest.h
14284 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14285 echo "obj-m := conftest.o" >build
/Makefile
14287 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14288 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14290 (eval $ac_try) 2>&5
14292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14293 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14295 (eval $ac_try) 2>&5
14297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14298 test $ac_status = 0; }; }; then :
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14301 $as_echo "no" >&6; }
14304 $as_echo "$as_me: failed program was:" >&5
14305 sed 's/^/| /' conftest.
$ac_ext >&5
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14308 $as_echo "yes" >&6; }
14310 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
14311 *** with the CDDL license and will prevent the module linking stage
14312 *** from succeeding. You must rebuild your kernel without this
14313 *** option enabled." "$LINENO" 5
14321 EXTRA_KCFLAGS
="$tmp_flags"
14325 $as_echo "$as_me: failed program was:" >&5
14326 sed 's/^/| /' conftest.
$ac_ext >&5
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14329 $as_echo "no" >&6; }
14342 tmp_flags
="$EXTRA_KCFLAGS"
14343 EXTRA_KCFLAGS
="-I\$(src)"
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
14346 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
14349 cat confdefs.h
- <<_ACEOF >conftest.c
14352 #include <linux/module.h>
14353 MODULE_LICENSE(ZFS_META_LICENSE);
14355 #define CREATE_TRACE_POINTS
14356 #include "conftest.h"
14362 trace_zfs_autoconf_event_one(1UL);
14363 trace_zfs_autoconf_event_two(2UL);
14373 cat - <<_ACEOF >conftest.h
14375 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
14376 #define _CONFTEST_H
14378 #undef TRACE_SYSTEM
14379 #define TRACE_SYSTEM zfs
14380 #include <linux/tracepoint.h>
14382 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
14383 TP_PROTO(unsigned long i),
14386 __field(unsigned long, i)
14391 TP_printk("i = %lu", __entry->i)
14394 #define DEFINE_AUTOCONF_EVENT(name) \
14395 DEFINE_EVENT(zfs_autoconf_event_class, name, \
14396 TP_PROTO(unsigned long i), \
14398 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
14399 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
14401 #endif /* _CONFTEST_H */
14403 #undef TRACE_INCLUDE_PATH
14404 #define TRACE_INCLUDE_PATH .
14405 #define TRACE_INCLUDE_FILE conftest
14406 #include <trace/define_trace.h>
14411 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14412 echo "obj-m := conftest.o" >build
/Makefile
14414 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14415 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14417 (eval $ac_try) 2>&5
14419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14420 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14422 (eval $ac_try) 2>&5
14424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14425 test $ac_status = 0; }; }; then :
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14428 $as_echo "yes" >&6; }
14430 $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
14434 $as_echo "$as_me: failed program was:" >&5
14435 sed 's/^/| /' conftest.
$ac_ext >&5
14437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14438 $as_echo "no" >&6; }
14446 EXTRA_KCFLAGS
="$tmp_flags"
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5
14450 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
14453 cat confdefs.h
- <<_ACEOF >conftest.c
14456 #include <linux/sched.h>
14462 current->bio_tail = (struct bio **) NULL;
14472 cat - <<_ACEOF >conftest.h
14477 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14478 echo "obj-m := conftest.o" >build
/Makefile
14480 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14481 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14483 (eval $ac_try) 2>&5
14485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14486 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14488 (eval $ac_try) 2>&5
14490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14491 test $ac_status = 0; }; }; then :
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14494 $as_echo "yes" >&6; }
14496 $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h
14500 $as_echo "$as_me: failed program was:" >&5
14501 sed 's/^/| /' conftest.
$ac_ext >&5
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14504 $as_echo "no" >&6; }
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5
14506 $as_echo_n "checking whether current->bio_list exists... " >&6; }
14509 cat confdefs.h
- <<_ACEOF >conftest.c
14512 #include <linux/sched.h>
14518 current->bio_list = (struct bio_list *) NULL;
14528 cat - <<_ACEOF >conftest.h
14533 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14534 echo "obj-m := conftest.o" >build
/Makefile
14536 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14537 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14539 (eval $ac_try) 2>&5
14541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14542 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14544 (eval $ac_try) 2>&5
14546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14547 test $ac_status = 0; }; }; then :
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14550 $as_echo "yes" >&6; }
14552 $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h
14556 $as_echo "$as_me: failed program was:" >&5
14557 sed 's/^/| /' conftest.
$ac_ext >&5
14559 as_fn_error $?
"no - Please file a bug report at
14560 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block->s_user_ns exists" >&5
14578 $as_echo_n "checking whether super_block->s_user_ns exists... " >&6; }
14581 cat confdefs.h
- <<_ACEOF >conftest.c
14584 #include <linux/fs.h>
14585 #include <linux/user_namespace.h>
14591 struct super_block super;
14592 super.s_user_ns = (struct user_namespace *)NULL;
14602 cat - <<_ACEOF >conftest.h
14607 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14608 echo "obj-m := conftest.o" >build
/Makefile
14610 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14611 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14613 (eval $ac_try) 2>&5
14615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14616 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14618 (eval $ac_try) 2>&5
14620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14621 test $ac_status = 0; }; }; then :
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14624 $as_echo "yes" >&6; }
14626 $as_echo "#define HAVE_SUPER_USER_NS 1" >>confdefs.h
14630 $as_echo "$as_me: failed program was:" >&5
14631 sed 's/^/| /' conftest.
$ac_ext >&5
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14634 $as_echo "no" >&6; }
14644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether submit_bio() wants 1 arg" >&5
14645 $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
14648 cat confdefs.h
- <<_ACEOF >conftest.c
14651 #include <linux/bio.h>
14658 struct bio *bio = NULL;
14659 blk_qc = submit_bio(bio);
14669 cat - <<_ACEOF >conftest.h
14674 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14675 echo "obj-m := conftest.o" >build
/Makefile
14677 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14678 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14680 (eval $ac_try) 2>&5
14682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14683 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14685 (eval $ac_try) 2>&5
14687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14688 test $ac_status = 0; }; }; then :
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14691 $as_echo "yes" >&6; }
14693 $as_echo "#define HAVE_1ARG_SUBMIT_BIO 1" >>confdefs.h
14697 $as_echo "$as_me: failed program was:" >&5
14698 sed 's/^/| /' conftest.
$ac_ext >&5
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14701 $as_echo "no" >&6; }
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
14712 $as_echo_n "checking block device operation prototypes... " >&6; }
14713 tmp_flags
="$EXTRA_KCFLAGS"
14714 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14717 cat confdefs.h
- <<_ACEOF >conftest.c
14720 #include <linux/blkdev.h>
14722 int blk_open(struct block_device *bdev, fmode_t mode)
14724 int blk_ioctl(struct block_device *bdev, fmode_t mode,
14725 unsigned x, unsigned long y) { return 0; }
14726 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
14727 unsigned x, unsigned long y) { return 0; }
14729 static const struct block_device_operations
14730 bops __attribute__ ((unused)) = {
14733 .ioctl = blk_ioctl,
14734 .compat_ioctl = blk_compat_ioctl,
14750 cat - <<_ACEOF >conftest.h
14755 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14756 echo "obj-m := conftest.o" >build
/Makefile
14758 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14759 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14761 (eval $ac_try) 2>&5
14763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14764 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14766 (eval $ac_try) 2>&5
14768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14769 test $ac_status = 0; }; }; then :
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
14772 $as_echo "struct block_device" >&6; }
14774 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
14778 $as_echo "$as_me: failed program was:" >&5
14779 sed 's/^/| /' conftest.
$ac_ext >&5
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
14782 $as_echo "struct inode" >&6; }
14790 EXTRA_KCFLAGS
="$tmp_flags"
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
14794 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
14795 tmp_flags
="$EXTRA_KCFLAGS"
14796 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14799 cat confdefs.h
- <<_ACEOF >conftest.c
14802 #include <linux/blkdev.h>
14804 void blk_release(struct gendisk *g, fmode_t mode) { return; }
14806 static const struct block_device_operations
14807 bops __attribute__ ((unused)) = {
14809 .release = blk_release,
14811 .compat_ioctl = NULL,
14827 cat - <<_ACEOF >conftest.h
14832 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14833 echo "obj-m := conftest.o" >build
/Makefile
14835 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14836 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14838 (eval $ac_try) 2>&5
14840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14841 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14843 (eval $ac_try) 2>&5
14845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14846 test $ac_status = 0; }; }; then :
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
14849 $as_echo "void" >&6; }
14851 $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
14855 $as_echo "$as_me: failed program was:" >&5
14856 sed 's/^/| /' conftest.
$ac_ext >&5
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
14859 $as_echo "int" >&6; }
14867 EXTRA_KCFLAGS
="$tmp_flags"
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
14870 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
14873 cat confdefs.h
- <<_ACEOF >conftest.c
14876 #include <linux/types.h>
14882 fmode_t *ptr __attribute__ ((unused));
14892 cat - <<_ACEOF >conftest.h
14897 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14898 echo "obj-m := conftest.o" >build
/Makefile
14900 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14901 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14903 (eval $ac_try) 2>&5
14905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14906 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14907 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14908 (eval $ac_try) 2>&5
14910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14911 test $ac_status = 0; }; }; then :
14913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14914 $as_echo "yes" >&6; }
14916 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
14920 $as_echo "$as_me: failed program was:" >&5
14921 sed 's/^/| /' conftest.
$ac_ext >&5
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14924 $as_echo "no" >&6; }
14934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
14935 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
14938 cat confdefs.h
- <<_ACEOF >conftest.c
14941 #include <linux/fs.h>
14947 struct block_device *bdev = NULL;
14948 (void) blkdev_get(bdev, 0, NULL);
14958 cat - <<_ACEOF >conftest.h
14963 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14964 echo "obj-m := conftest.o" >build
/Makefile
14966 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14967 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14969 (eval $ac_try) 2>&5
14971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14972 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14974 (eval $ac_try) 2>&5
14976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14977 test $ac_status = 0; }; }; then :
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14980 $as_echo "yes" >&6; }
14982 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
14986 $as_echo "$as_me: failed program was:" >&5
14987 sed 's/^/| /' conftest.
$ac_ext >&5
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14990 $as_echo "no" >&6; }
14999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
15000 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
15004 cat confdefs.h
- <<_ACEOF >conftest.c
15007 #include <linux/fs.h>
15013 blkdev_get_by_path(NULL, 0, NULL);
15023 cat - <<_ACEOF >conftest.h
15028 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15029 echo "obj-m := conftest.o" >build
/Makefile
15031 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15032 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15034 (eval $ac_try) 2>&5
15036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15037 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15039 (eval $ac_try) 2>&5
15041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15042 test $ac_status = 0; }; }; then :
15045 $as_echo "$as_me: failed program was:" >&5
15046 sed 's/^/| /' conftest.
$ac_ext >&5
15054 if test $rc -ne 0; then :
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15057 $as_echo "no" >&6; }
15060 if test "x$enable_linux_builtin" != xyes
; then
15062 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
15063 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15065 if test $rc -ne 0; then
15067 for file in fs
/block_dev.c
; do
15068 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
15069 "$LINUX/$file" 2>/dev
/null
15071 if test $rc -eq 0; then
15076 if test $export -eq 0; then :
15086 if test $rc -ne 0; then :
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15089 $as_echo "no" >&6; }
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15094 $as_echo "yes" >&6; }
15096 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
15104 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
15108 cat confdefs.h
- <<_ACEOF >conftest.c
15111 #include <linux/fs.h>
15117 open_bdev_exclusive(NULL, 0, NULL);
15127 cat - <<_ACEOF >conftest.h
15132 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15133 echo "obj-m := conftest.o" >build
/Makefile
15135 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15136 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15138 (eval $ac_try) 2>&5
15140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15141 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15143 (eval $ac_try) 2>&5
15145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15146 test $ac_status = 0; }; }; then :
15149 $as_echo "$as_me: failed program was:" >&5
15150 sed 's/^/| /' conftest.
$ac_ext >&5
15158 if test $rc -ne 0; then :
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15161 $as_echo "no" >&6; }
15164 if test "x$enable_linux_builtin" != xyes
; then
15166 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
15167 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15169 if test $rc -ne 0; then
15171 for file in fs
/block_dev.c
; do
15172 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
15173 "$LINUX/$file" 2>/dev
/null
15175 if test $rc -eq 0; then
15180 if test $export -eq 0; then :
15190 if test $rc -ne 0; then :
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15193 $as_echo "no" >&6; }
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15198 $as_echo "yes" >&6; }
15200 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 1 arg" >&5
15208 $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
15212 cat confdefs.h
- <<_ACEOF >conftest.c
15215 #include <linux/fs.h>
15231 cat - <<_ACEOF >conftest.h
15236 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15237 echo "obj-m := conftest.o" >build
/Makefile
15239 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15240 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15242 (eval $ac_try) 2>&5
15244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15245 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15247 (eval $ac_try) 2>&5
15249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15250 test $ac_status = 0; }; }; then :
15253 $as_echo "$as_me: failed program was:" >&5
15254 sed 's/^/| /' conftest.
$ac_ext >&5
15262 if test $rc -ne 0; then :
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15265 $as_echo "no" >&6; }
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
15267 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
15271 cat confdefs.h
- <<_ACEOF >conftest.c
15274 #include <linux/fs.h>
15280 lookup_bdev(NULL, FMODE_READ);
15290 cat - <<_ACEOF >conftest.h
15295 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15296 echo "obj-m := conftest.o" >build
/Makefile
15298 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15299 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15301 (eval $ac_try) 2>&5
15303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15304 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15306 (eval $ac_try) 2>&5
15308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15309 test $ac_status = 0; }; }; then :
15312 $as_echo "$as_me: failed program was:" >&5
15313 sed 's/^/| /' conftest.
$ac_ext >&5
15321 if test $rc -ne 0; then :
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15324 $as_echo "no" >&6; }
15327 if test "x$enable_linux_builtin" != xyes
; then
15329 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15330 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15332 if test $rc -ne 0; then
15334 for file in fs
/block_dev.c
; do
15335 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15336 "$LINUX/$file" 2>/dev
/null
15338 if test $rc -eq 0; then
15343 if test $export -eq 0; then :
15353 if test $rc -ne 0; then :
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15356 $as_echo "no" >&6; }
15360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15361 $as_echo "yes" >&6; }
15363 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
15371 if test "x$enable_linux_builtin" != xyes
; then
15373 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15374 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15376 if test $rc -ne 0; then
15378 for file in fs
/block_dev.c
; do
15379 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15380 "$LINUX/$file" 2>/dev
/null
15382 if test $rc -eq 0; then
15387 if test $export -eq 0; then :
15397 if test $rc -ne 0; then :
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15400 $as_echo "no" >&6; }
15401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
15402 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
15406 cat confdefs.h
- <<_ACEOF >conftest.c
15409 #include <linux/fs.h>
15415 lookup_bdev(NULL, FMODE_READ);
15425 cat - <<_ACEOF >conftest.h
15430 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15431 echo "obj-m := conftest.o" >build
/Makefile
15433 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15434 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15435 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15436 (eval $ac_try) 2>&5
15438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15439 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15441 (eval $ac_try) 2>&5
15443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15444 test $ac_status = 0; }; }; then :
15447 $as_echo "$as_me: failed program was:" >&5
15448 sed 's/^/| /' conftest.
$ac_ext >&5
15456 if test $rc -ne 0; then :
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15459 $as_echo "no" >&6; }
15462 if test "x$enable_linux_builtin" != xyes
; then
15464 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15465 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15467 if test $rc -ne 0; then
15469 for file in fs
/block_dev.c
; do
15470 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15471 "$LINUX/$file" 2>/dev
/null
15473 if test $rc -eq 0; then
15478 if test $export -eq 0; then :
15488 if test $rc -ne 0; then :
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15491 $as_echo "no" >&6; }
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15496 $as_echo "yes" >&6; }
15498 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15508 $as_echo "yes" >&6; }
15510 $as_echo "#define HAVE_1ARG_LOOKUP_BDEV 1" >>confdefs.h
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
15519 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
15522 cat confdefs.h
- <<_ACEOF >conftest.c
15525 #include <linux/buffer_head.h>
15531 struct block_device *bdev = NULL;
15532 invalidate_bdev(bdev);
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\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15553 (eval $ac_try) 2>&5
15555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15556 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15558 (eval $ac_try) 2>&5
15560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15561 test $ac_status = 0; }; }; then :
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15564 $as_echo "yes" >&6; }
15566 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
15570 $as_echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.
$ac_ext >&5
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15574 $as_echo "no" >&6; }
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
15585 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
15586 tmp_flags
="$EXTRA_KCFLAGS"
15587 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15590 cat confdefs.h
- <<_ACEOF >conftest.c
15593 #include <linux/blkdev.h>
15599 struct block_device *bdev = NULL;
15600 bdev_logical_block_size(bdev);
15610 cat - <<_ACEOF >conftest.h
15615 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15616 echo "obj-m := conftest.o" >build
/Makefile
15618 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15619 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15621 (eval $ac_try) 2>&5
15623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15624 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15626 (eval $ac_try) 2>&5
15628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15629 test $ac_status = 0; }; }; then :
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15632 $as_echo "yes" >&6; }
15634 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
15638 $as_echo "$as_me: failed program was:" >&5
15639 sed 's/^/| /' conftest.
$ac_ext >&5
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15642 $as_echo "no" >&6; }
15650 EXTRA_KCFLAGS
="$tmp_flags"
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
15654 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
15655 tmp_flags
="$EXTRA_KCFLAGS"
15656 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15659 cat confdefs.h
- <<_ACEOF >conftest.c
15662 #include <linux/blkdev.h>
15668 struct block_device *bdev = NULL;
15669 bdev_physical_block_size(bdev);
15679 cat - <<_ACEOF >conftest.h
15684 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15685 echo "obj-m := conftest.o" >build
/Makefile
15687 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15688 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15690 (eval $ac_try) 2>&5
15692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15693 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15695 (eval $ac_try) 2>&5
15697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15698 test $ac_status = 0; }; }; then :
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15701 $as_echo "yes" >&6; }
15703 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
15707 $as_echo "$as_me: failed program was:" >&5
15708 sed 's/^/| /' conftest.
$ac_ext >&5
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15711 $as_echo "no" >&6; }
15719 EXTRA_KCFLAGS
="$tmp_flags"
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
15723 $as_echo_n "checking whether bio has bi_iter... " >&6; }
15726 cat confdefs.h
- <<_ACEOF >conftest.c
15729 #include <linux/bio.h>
15736 bio.bi_iter.bi_sector = 0;
15746 cat - <<_ACEOF >conftest.h
15751 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15752 echo "obj-m := conftest.o" >build
/Makefile
15754 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15755 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15757 (eval $ac_try) 2>&5
15759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15760 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15762 (eval $ac_try) 2>&5
15764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15765 test $ac_status = 0; }; }; then :
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15768 $as_echo "yes" >&6; }
15770 $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
15774 $as_echo "$as_me: failed program was:" >&5
15775 sed 's/^/| /' conftest.
$ac_ext >&5
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15778 $as_echo "no" >&6; }
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
15789 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
15792 cat confdefs.h
- <<_ACEOF >conftest.c
15795 #include <linux/bio.h>
15801 int flags __attribute__ ((unused));
15802 flags = ((1 << BIO_RW_FAILFAST_DEV) |
15803 (1 << BIO_RW_FAILFAST_TRANSPORT) |
15804 (1 << BIO_RW_FAILFAST_DRIVER));
15814 cat - <<_ACEOF >conftest.h
15819 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15820 echo "obj-m := conftest.o" >build
/Makefile
15822 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15823 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15825 (eval $ac_try) 2>&5
15827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15828 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15830 (eval $ac_try) 2>&5
15832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15833 test $ac_status = 0; }; }; then :
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15836 $as_echo "yes" >&6; }
15838 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
15842 $as_echo "$as_me: failed program was:" >&5
15843 sed 's/^/| /' conftest.
$ac_ext >&5
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15846 $as_echo "no" >&6; }
15856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_dev() exists" >&5
15857 $as_echo_n "checking whether bio_set_dev() exists... " >&6; }
15860 cat confdefs.h
- <<_ACEOF >conftest.c
15863 #include <linux/bio.h>
15864 #include <linux/fs.h>
15870 struct block_device *bdev = NULL;
15871 struct bio *bio = NULL;
15872 bio_set_dev(bio, bdev);
15882 cat - <<_ACEOF >conftest.h
15887 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15888 echo "obj-m := conftest.o" >build
/Makefile
15890 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15891 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15893 (eval $ac_try) 2>&5
15895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15896 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15898 (eval $ac_try) 2>&5
15900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15901 test $ac_status = 0; }; }; then :
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15904 $as_echo "yes" >&6; }
15906 $as_echo "#define HAVE_BIO_SET_DEV 1" >>confdefs.h
15910 $as_echo "$as_me: failed program was:" >&5
15911 sed 's/^/| /' conftest.
$ac_ext >&5
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15914 $as_echo "no" >&6; }
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
15925 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
15928 cat confdefs.h
- <<_ACEOF >conftest.c
15931 #include <linux/bio.h>
15937 int flags __attribute__ ((unused));
15938 flags = REQ_FAILFAST_MASK;
15948 cat - <<_ACEOF >conftest.h
15953 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15954 echo "obj-m := conftest.o" >build
/Makefile
15956 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15957 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15959 (eval $ac_try) 2>&5
15961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15962 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15964 (eval $ac_try) 2>&5
15966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15967 test $ac_status = 0; }; }; then :
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15970 $as_echo "yes" >&6; }
15972 $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h
15976 $as_echo "$as_me: failed program was:" >&5
15977 sed 's/^/| /' conftest.
$ac_ext >&5
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15980 $as_echo "no" >&6; }
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_DISCARD is defined" >&5
15991 $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
15994 cat confdefs.h
- <<_ACEOF >conftest.c
15997 #include <linux/blk_types.h>
16003 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
16013 cat - <<_ACEOF >conftest.h
16018 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16019 echo "obj-m := conftest.o" >build
/Makefile
16021 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16022 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16024 (eval $ac_try) 2>&5
16026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16027 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16029 (eval $ac_try) 2>&5
16031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16032 test $ac_status = 0; }; }; then :
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16035 $as_echo "yes" >&6; }
16037 $as_echo "#define HAVE_REQ_OP_DISCARD 1" >>confdefs.h
16041 $as_echo "$as_me: failed program was:" >&5
16042 sed 's/^/| /' conftest.
$ac_ext >&5
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16045 $as_echo "no" >&6; }
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_SECURE_ERASE is defined" >&5
16056 $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
16059 cat confdefs.h
- <<_ACEOF >conftest.c
16062 #include <linux/blk_types.h>
16068 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
16078 cat - <<_ACEOF >conftest.h
16083 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16084 echo "obj-m := conftest.o" >build
/Makefile
16086 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16087 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16089 (eval $ac_try) 2>&5
16091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16092 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16094 (eval $ac_try) 2>&5
16096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16097 test $ac_status = 0; }; }; then :
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16100 $as_echo "yes" >&6; }
16102 $as_echo "#define HAVE_REQ_OP_SECURE_ERASE 1" >>confdefs.h
16106 $as_echo "$as_me: failed program was:" >&5
16107 sed 's/^/| /' conftest.
$ac_ext >&5
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16110 $as_echo "no" >&6; }
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_FLUSH is defined" >&5
16121 $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
16124 cat confdefs.h
- <<_ACEOF >conftest.c
16127 #include <linux/blk_types.h>
16133 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
16143 cat - <<_ACEOF >conftest.h
16148 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16149 echo "obj-m := conftest.o" >build
/Makefile
16151 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16152 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16154 (eval $ac_try) 2>&5
16156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16157 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16159 (eval $ac_try) 2>&5
16161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16162 test $ac_status = 0; }; }; then :
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16165 $as_echo "yes" >&6; }
16167 $as_echo "#define HAVE_REQ_OP_FLUSH 1" >>confdefs.h
16171 $as_echo "$as_me: failed program was:" >&5
16172 sed 's/^/| /' conftest.
$ac_ext >&5
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16175 $as_echo "no" >&6; }
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_opf is defined" >&5
16186 $as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
16189 cat confdefs.h
- <<_ACEOF >conftest.c
16192 #include <linux/bio.h>
16198 struct bio bio __attribute__ ((unused));
16209 cat - <<_ACEOF >conftest.h
16214 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16215 echo "obj-m := conftest.o" >build
/Makefile
16217 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16218 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16220 (eval $ac_try) 2>&5
16222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16223 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16224 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16225 (eval $ac_try) 2>&5
16227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16228 test $ac_status = 0; }; }; then :
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16231 $as_echo "yes" >&6; }
16233 $as_echo "#define HAVE_BIO_BI_OPF 1" >>confdefs.h
16237 $as_echo "$as_me: failed program was:" >&5
16238 sed 's/^/| /' conftest.
$ac_ext >&5
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16241 $as_echo "no" >&6; }
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5
16252 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
16255 cat confdefs.h
- <<_ACEOF >conftest.c
16258 #include <linux/bio.h>
16260 void wanted_end_io(struct bio *bio) { return; }
16262 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
16277 cat - <<_ACEOF >conftest.h
16282 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16283 echo "obj-m := conftest.o" >build
/Makefile
16285 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16286 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16288 (eval $ac_try) 2>&5
16290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16291 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16293 (eval $ac_try) 2>&5
16295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16296 test $ac_status = 0; }; }; then :
16298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16299 $as_echo "yes" >&6; }
16301 $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h
16305 $as_echo "$as_me: failed program was:" >&5
16306 sed 's/^/| /' conftest.
$ac_ext >&5
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16309 $as_echo "no" >&6; }
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_status exists" >&5
16320 $as_echo_n "checking whether bio->bi_status exists... " >&6; }
16323 cat confdefs.h
- <<_ACEOF >conftest.c
16326 #include <linux/bio.h>
16332 struct bio bio __attribute__ ((unused));
16333 blk_status_t status __attribute__ ((unused)) = BLK_STS_OK;
16335 bio.bi_status = status;
16345 cat - <<_ACEOF >conftest.h
16350 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16351 echo "obj-m := conftest.o" >build
/Makefile
16353 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16354 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16356 (eval $ac_try) 2>&5
16358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16359 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16360 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16361 (eval $ac_try) 2>&5
16363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16364 test $ac_status = 0; }; }; then :
16366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16367 $as_echo "yes" >&6; }
16369 $as_echo "#define HAVE_BIO_BI_STATUS 1" >>confdefs.h
16373 $as_echo "$as_me: failed program was:" >&5
16374 sed 's/^/| /' conftest.
$ac_ext >&5
16376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16377 $as_echo "no" >&6; }
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5
16388 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
16391 cat confdefs.h
- <<_ACEOF >conftest.c
16394 #include <linux/bio.h>
16400 int flags __attribute__ ((unused));
16401 flags = BIO_RW_BARRIER;
16411 cat - <<_ACEOF >conftest.h
16416 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16417 echo "obj-m := conftest.o" >build
/Makefile
16419 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16420 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16422 (eval $ac_try) 2>&5
16424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16425 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16427 (eval $ac_try) 2>&5
16429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16430 test $ac_status = 0; }; }; then :
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16433 $as_echo "yes" >&6; }
16435 $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h
16439 $as_echo "$as_me: failed program was:" >&5
16440 sed 's/^/| /' conftest.
$ac_ext >&5
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16443 $as_echo "no" >&6; }
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5
16454 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
16457 cat confdefs.h
- <<_ACEOF >conftest.c
16460 #include <linux/bio.h>
16466 int flags __attribute__ ((unused));
16467 flags = BIO_RW_DISCARD;
16477 cat - <<_ACEOF >conftest.h
16482 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16483 echo "obj-m := conftest.o" >build
/Makefile
16485 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16486 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16488 (eval $ac_try) 2>&5
16490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16491 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16493 (eval $ac_try) 2>&5
16495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16496 test $ac_status = 0; }; }; then :
16498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16499 $as_echo "yes" >&6; }
16501 $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h
16505 $as_echo "$as_me: failed program was:" >&5
16506 sed 's/^/| /' conftest.
$ac_ext >&5
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16509 $as_echo "no" >&6; }
16519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue bdi is dynamic" >&5
16520 $as_echo_n "checking whether blk_queue bdi is dynamic... " >&6; }
16523 cat confdefs.h
- <<_ACEOF >conftest.c
16526 #include <linux/blkdev.h>
16532 struct request_queue q;
16533 struct backing_dev_info bdi;
16534 q.backing_dev_info = &bdi;
16544 cat - <<_ACEOF >conftest.h
16549 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16550 echo "obj-m := conftest.o" >build
/Makefile
16552 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16553 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16555 (eval $ac_try) 2>&5
16557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16558 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16560 (eval $ac_try) 2>&5
16562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16563 test $ac_status = 0; }; }; then :
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16566 $as_echo "yes" >&6; }
16568 $as_echo "#define HAVE_BLK_QUEUE_BDI_DYNAMIC 1" >>confdefs.h
16572 $as_echo "$as_me: failed program was:" >&5
16573 sed 's/^/| /' conftest.
$ac_ext >&5
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16576 $as_echo "no" >&6; }
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
16587 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
16588 tmp_flags
="$EXTRA_KCFLAGS"
16589 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16592 cat confdefs.h
- <<_ACEOF >conftest.c
16595 #include <linux/blkdev.h>
16601 struct request_queue *q = NULL;
16602 (void) blk_queue_flush(q, REQ_FLUSH);
16612 cat - <<_ACEOF >conftest.h
16617 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16618 echo "obj-m := conftest.o" >build
/Makefile
16620 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16621 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16623 (eval $ac_try) 2>&5
16625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16626 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16628 (eval $ac_try) 2>&5
16630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16631 test $ac_status = 0; }; }; then :
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16634 $as_echo "yes" >&6; }
16636 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
16640 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
16643 cat confdefs.h
- <<_ACEOF >conftest.c
16646 #include <linux/module.h>
16647 #include <linux/blkdev.h>
16649 MODULE_LICENSE("$ZFS_META_LICENSE");
16655 struct request_queue *q = NULL;
16656 (void) blk_queue_flush(q, REQ_FLUSH);
16666 cat - <<_ACEOF >conftest.h
16671 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16672 echo "obj-m := conftest.o" >build
/Makefile
16674 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16675 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16676 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16677 (eval $ac_try) 2>&5
16679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16680 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16681 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16682 (eval $ac_try) 2>&5
16684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16685 test $ac_status = 0; }; }; then :
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16688 $as_echo "no" >&6; }
16691 $as_echo "$as_me: failed program was:" >&5
16692 sed 's/^/| /' conftest.
$ac_ext >&5
16694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16695 $as_echo "yes" >&6; }
16697 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
16708 $as_echo "$as_me: failed program was:" >&5
16709 sed 's/^/| /' conftest.
$ac_ext >&5
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16712 $as_echo "no" >&6; }
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() exists" >&5
16722 $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
16725 cat confdefs.h
- <<_ACEOF >conftest.c
16728 #include <linux/kernel.h>
16729 #include <linux/blkdev.h>
16736 struct request_queue *q = NULL;
16737 blk_queue_write_cache(q, true, true);
16747 cat - <<_ACEOF >conftest.h
16752 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16753 echo "obj-m := conftest.o" >build
/Makefile
16755 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16756 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16758 (eval $ac_try) 2>&5
16760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16761 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16763 (eval $ac_try) 2>&5
16765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16766 test $ac_status = 0; }; }; then :
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16769 $as_echo "yes" >&6; }
16771 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE 1" >>confdefs.h
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() is GPL-only" >&5
16775 $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
16778 cat confdefs.h
- <<_ACEOF >conftest.c
16781 #include <linux/kernel.h>
16782 #include <linux/module.h>
16783 #include <linux/blkdev.h>
16785 MODULE_LICENSE("$ZFS_META_LICENSE");
16791 struct request_queue *q = NULL;
16792 blk_queue_write_cache(q, true, true);
16802 cat - <<_ACEOF >conftest.h
16807 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16808 echo "obj-m := conftest.o" >build
/Makefile
16810 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16811 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16813 (eval $ac_try) 2>&5
16815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16816 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16818 (eval $ac_try) 2>&5
16820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16821 test $ac_status = 0; }; }; then :
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16824 $as_echo "no" >&6; }
16827 $as_echo "$as_me: failed program was:" >&5
16828 sed 's/^/| /' conftest.
$ac_ext >&5
16830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16831 $as_echo "yes" >&6; }
16833 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1" >>confdefs.h
16844 $as_echo "$as_me: failed program was:" >&5
16845 sed 's/^/| /' conftest.
$ac_ext >&5
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16848 $as_echo "no" >&6; }
16857 EXTRA_KCFLAGS
="$tmp_flags"
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
16861 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
16862 tmp_flags
="$EXTRA_KCFLAGS"
16863 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16866 cat confdefs.h
- <<_ACEOF >conftest.c
16869 #include <linux/blkdev.h>
16875 struct request_queue *q = NULL;
16876 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
16886 cat - <<_ACEOF >conftest.h
16891 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16892 echo "obj-m := conftest.o" >build
/Makefile
16894 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16895 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16897 (eval $ac_try) 2>&5
16899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16900 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16902 (eval $ac_try) 2>&5
16904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16905 test $ac_status = 0; }; }; then :
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16908 $as_echo "yes" >&6; }
16910 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
16914 $as_echo "$as_me: failed program was:" >&5
16915 sed 's/^/| /' conftest.
$ac_ext >&5
16917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16918 $as_echo "no" >&6; }
16926 EXTRA_KCFLAGS
="$tmp_flags"
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
16930 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
16931 tmp_flags
="$EXTRA_KCFLAGS"
16932 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16935 cat confdefs.h
- <<_ACEOF >conftest.c
16938 #include <linux/blkdev.h>
16944 struct request_queue *q = NULL;
16945 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
16955 cat - <<_ACEOF >conftest.h
16960 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16961 echo "obj-m := conftest.o" >build
/Makefile
16963 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16964 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16966 (eval $ac_try) 2>&5
16968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16969 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16970 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16971 (eval $ac_try) 2>&5
16973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16974 test $ac_status = 0; }; }; then :
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16977 $as_echo "yes" >&6; }
16979 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
16983 $as_echo "$as_me: failed program was:" >&5
16984 sed 's/^/| /' conftest.
$ac_ext >&5
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16987 $as_echo "no" >&6; }
16995 EXTRA_KCFLAGS
="$tmp_flags"
16998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the BIO_RW_UNPLUG enum is available" >&5
16999 $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
17000 tmp_flags
="$EXTRA_KCFLAGS"
17001 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
17004 cat confdefs.h
- <<_ACEOF >conftest.c
17007 #include <linux/blkdev.h>
17013 extern enum bio_rw_flags rw;
17015 rw = BIO_RW_UNPLUG;
17025 cat - <<_ACEOF >conftest.h
17030 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17031 echo "obj-m := conftest.o" >build
/Makefile
17033 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17034 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17036 (eval $ac_try) 2>&5
17038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17039 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17041 (eval $ac_try) 2>&5
17043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17044 test $ac_status = 0; }; }; then :
17046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17047 $as_echo "yes" >&6; }
17049 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1" >>confdefs.h
17053 $as_echo "$as_me: failed program was:" >&5
17054 sed 's/^/| /' conftest.
$ac_ext >&5
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17057 $as_echo "no" >&6; }
17065 EXTRA_KCFLAGS
="$tmp_flags"
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct blk_plug is available" >&5
17069 $as_echo_n "checking whether struct blk_plug is available... " >&6; }
17070 tmp_flags
="$EXTRA_KCFLAGS"
17071 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
17074 cat confdefs.h
- <<_ACEOF >conftest.c
17077 #include <linux/blkdev.h>
17083 struct blk_plug plug;
17085 blk_start_plug(&plug);
17086 blk_finish_plug(&plug);
17096 cat - <<_ACEOF >conftest.h
17101 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17102 echo "obj-m := conftest.o" >build
/Makefile
17104 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17105 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17106 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17107 (eval $ac_try) 2>&5
17109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17110 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17111 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17112 (eval $ac_try) 2>&5
17114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17115 test $ac_status = 0; }; }; then :
17117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17118 $as_echo "yes" >&6; }
17120 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1" >>confdefs.h
17124 $as_echo "$as_me: failed program was:" >&5
17125 sed 's/^/| /' conftest.
$ac_ext >&5
17127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17128 $as_echo "no" >&6; }
17136 EXTRA_KCFLAGS
="$tmp_flags"
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
17140 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
17141 tmp_flags
="$EXTRA_KCFLAGS"
17142 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
17145 cat confdefs.h
- <<_ACEOF >conftest.c
17148 #include <linux/blkdev.h>
17154 struct gendisk *disk = NULL;
17155 (void) get_disk_ro(disk);
17165 cat - <<_ACEOF >conftest.h
17170 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17171 echo "obj-m := conftest.o" >build
/Makefile
17173 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17174 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17176 (eval $ac_try) 2>&5
17178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17179 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17181 (eval $ac_try) 2>&5
17183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17184 test $ac_status = 0; }; }; then :
17186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17187 $as_echo "yes" >&6; }
17189 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
17193 $as_echo "$as_me: failed program was:" >&5
17194 sed 's/^/| /' conftest.
$ac_ext >&5
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17197 $as_echo "no" >&6; }
17205 EXTRA_KCFLAGS
="$tmp_flags"
17207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
17208 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
17212 cat confdefs.h
- <<_ACEOF >conftest.c
17215 #include <linux/genhd.h>
17221 get_gendisk(0, NULL);
17231 cat - <<_ACEOF >conftest.h
17236 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17237 echo "obj-m := conftest.o" >build
/Makefile
17239 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17240 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17242 (eval $ac_try) 2>&5
17244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17245 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17247 (eval $ac_try) 2>&5
17249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17250 test $ac_status = 0; }; }; then :
17253 $as_echo "$as_me: failed program was:" >&5
17254 sed 's/^/| /' conftest.
$ac_ext >&5
17262 if test $rc -ne 0; then :
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17265 $as_echo "no" >&6; }
17268 if test "x$enable_linux_builtin" != xyes
; then
17270 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
17271 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
17273 if test $rc -ne 0; then
17275 for file in block
/genhd.c
; do
17276 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
17277 "$LINUX/$file" 2>/dev
/null
17279 if test $rc -eq 0; then
17284 if test $export -eq 0; then :
17294 if test $rc -ne 0; then :
17296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17297 $as_echo "no" >&6; }
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17302 $as_echo "yes" >&6; }
17304 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_op_attrs is available" >&5
17313 $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
17316 cat confdefs.h
- <<_ACEOF >conftest.c
17319 #include <linux/bio.h>
17325 struct bio *bio __attribute__ ((unused)) = NULL;
17327 bio_set_op_attrs(bio, 0, 0);
17337 cat - <<_ACEOF >conftest.h
17342 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17343 echo "obj-m := conftest.o" >build
/Makefile
17345 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17346 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17348 (eval $ac_try) 2>&5
17350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17351 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17353 (eval $ac_try) 2>&5
17355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17356 test $ac_status = 0; }; }; then :
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17359 $as_echo "yes" >&6; }
17361 $as_echo "#define HAVE_BIO_SET_OP_ATTRS 1" >>confdefs.h
17365 $as_echo "$as_me: failed program was:" >&5
17366 sed 's/^/| /' conftest.
$ac_ext >&5
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17369 $as_echo "no" >&6; }
17379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_readlink is global" >&5
17380 $as_echo_n "checking whether generic_readlink is global... " >&6; }
17383 cat confdefs.h
- <<_ACEOF >conftest.c
17386 #include <linux/fs.h>
17392 int i __attribute__ ((unused));
17394 i = generic_readlink(NULL, NULL, 0);
17404 cat - <<_ACEOF >conftest.h
17409 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17410 echo "obj-m := conftest.o" >build
/Makefile
17412 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17413 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17414 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17415 (eval $ac_try) 2>&5
17417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17418 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17420 (eval $ac_try) 2>&5
17422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17423 test $ac_status = 0; }; }; then :
17425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17426 $as_echo "yes" >&6; }
17428 $as_echo "#define HAVE_GENERIC_READLINK 1" >>confdefs.h
17432 $as_echo "$as_me: failed program was:" >&5
17433 sed 's/^/| /' conftest.
$ac_ext >&5
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17436 $as_echo "no" >&6; }
17446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
17447 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
17450 cat confdefs.h
- <<_ACEOF >conftest.c
17453 #include <linux/blkdev.h>
17459 struct queue_limits ql __attribute__ ((unused));
17461 ql.discard_granularity = 0;
17471 cat - <<_ACEOF >conftest.h
17476 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17477 echo "obj-m := conftest.o" >build
/Makefile
17479 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17480 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17482 (eval $ac_try) 2>&5
17484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17485 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17487 (eval $ac_try) 2>&5
17489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17490 test $ac_status = 0; }; }; then :
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17493 $as_echo "yes" >&6; }
17495 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
17499 $as_echo "$as_me: failed program was:" >&5
17500 sed 's/^/| /' conftest.
$ac_ext >&5
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17503 $as_echo "no" >&6; }
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5
17514 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
17517 cat confdefs.h
- <<_ACEOF >conftest.c
17520 #include <linux/fs.h>
17521 #include <linux/xattr.h>
17523 const struct xattr_handler xattr_test_handler = {
17529 const struct xattr_handler *xattr_handlers[] = {
17530 &xattr_test_handler,
17533 const struct super_block sb __attribute__ ((unused)) = {
17534 .s_xattr = xattr_handlers,
17550 cat - <<_ACEOF >conftest.h
17555 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17556 echo "obj-m := conftest.o" >build
/Makefile
17558 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17559 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17561 (eval $ac_try) 2>&5
17563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17564 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17565 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17566 (eval $ac_try) 2>&5
17568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17569 test $ac_status = 0; }; }; then :
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17572 $as_echo "yes" >&6; }
17574 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
17578 $as_echo "$as_me: failed program was:" >&5
17579 sed 's/^/| /' conftest.
$ac_ext >&5
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17582 $as_echo "no" >&6; }
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler has name" >&5
17593 $as_echo_n "checking whether xattr_handler has name... " >&6; }
17596 cat confdefs.h
- <<_ACEOF >conftest.c
17599 #include <linux/xattr.h>
17601 static const struct xattr_handler
17602 xops __attribute__ ((unused)) = {
17603 .name = XATTR_NAME_POSIX_ACL_ACCESS,
17619 cat - <<_ACEOF >conftest.h
17624 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17625 echo "obj-m := conftest.o" >build
/Makefile
17627 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17628 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17630 (eval $ac_try) 2>&5
17632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17633 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17635 (eval $ac_try) 2>&5
17637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17638 test $ac_status = 0; }; }; then :
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17641 $as_echo "yes" >&6; }
17643 $as_echo "#define HAVE_XATTR_HANDLER_NAME 1" >>confdefs.h
17647 $as_echo "$as_me: failed program was:" >&5
17648 sed 's/^/| /' conftest.
$ac_ext >&5
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17651 $as_echo "no" >&6; }
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants both dentry and inode" >&5
17662 $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
17665 cat confdefs.h
- <<_ACEOF >conftest.c
17668 #include <linux/xattr.h>
17670 int get(const struct xattr_handler *handler,
17671 struct dentry *dentry, struct inode *inode,
17672 const char *name, void *buffer, size_t size) { return 0; }
17673 static const struct xattr_handler
17674 xops __attribute__ ((unused)) = {
17691 cat - <<_ACEOF >conftest.h
17696 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17697 echo "obj-m := conftest.o" >build
/Makefile
17699 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17700 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17702 (eval $ac_try) 2>&5
17704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17705 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17707 (eval $ac_try) 2>&5
17709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17710 test $ac_status = 0; }; }; then :
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17713 $as_echo "yes" >&6; }
17715 $as_echo "#define HAVE_XATTR_GET_DENTRY_INODE 1" >>confdefs.h
17719 $as_echo "$as_me: failed program was:" >&5
17720 sed 's/^/| /' conftest.
$ac_ext >&5
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17723 $as_echo "no" >&6; }
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5
17725 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
17728 cat confdefs.h
- <<_ACEOF >conftest.c
17731 #include <linux/xattr.h>
17733 int get(const struct xattr_handler *handler,
17734 struct dentry *dentry, const char *name,
17735 void *buffer, size_t size) { return 0; }
17736 static const struct xattr_handler
17737 xops __attribute__ ((unused)) = {
17754 cat - <<_ACEOF >conftest.h
17759 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17760 echo "obj-m := conftest.o" >build
/Makefile
17762 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17763 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17765 (eval $ac_try) 2>&5
17767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17768 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17770 (eval $ac_try) 2>&5
17772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17773 test $ac_status = 0; }; }; then :
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17776 $as_echo "yes" >&6; }
17778 $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h
17782 $as_echo "$as_me: failed program was:" >&5
17783 sed 's/^/| /' conftest.
$ac_ext >&5
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17786 $as_echo "no" >&6; }
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
17788 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
17791 cat confdefs.h
- <<_ACEOF >conftest.c
17794 #include <linux/xattr.h>
17796 int get(struct dentry *dentry, const char *name,
17797 void *buffer, size_t size, int handler_flags)
17799 static const struct xattr_handler
17800 xops __attribute__ ((unused)) = {
17817 cat - <<_ACEOF >conftest.h
17822 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17823 echo "obj-m := conftest.o" >build
/Makefile
17825 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17826 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17828 (eval $ac_try) 2>&5
17830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17831 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17833 (eval $ac_try) 2>&5
17835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17836 test $ac_status = 0; }; }; then :
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17839 $as_echo "yes" >&6; }
17841 $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h
17845 $as_echo "$as_me: failed program was:" >&5
17846 sed 's/^/| /' conftest.
$ac_ext >&5
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17849 $as_echo "no" >&6; }
17850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5
17851 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
17854 cat confdefs.h
- <<_ACEOF >conftest.c
17857 #include <linux/xattr.h>
17859 int get(struct inode *ip, const char *name,
17860 void *buffer, size_t size) { return 0; }
17861 static const struct xattr_handler
17862 xops __attribute__ ((unused)) = {
17879 cat - <<_ACEOF >conftest.h
17884 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17885 echo "obj-m := conftest.o" >build
/Makefile
17887 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17888 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17890 (eval $ac_try) 2>&5
17892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17893 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17895 (eval $ac_try) 2>&5
17897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17898 test $ac_status = 0; }; }; then :
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17901 $as_echo "yes" >&6; }
17903 $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h
17907 $as_echo "$as_me: failed program was:" >&5
17908 sed 's/^/| /' conftest.
$ac_ext >&5
17910 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants both dentry and inode" >&5
17942 $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
17945 cat confdefs.h
- <<_ACEOF >conftest.c
17948 #include <linux/xattr.h>
17950 int set(const struct xattr_handler *handler,
17951 struct dentry *dentry, struct inode *inode,
17952 const char *name, const void *buffer,
17953 size_t size, int flags)
17955 static const struct xattr_handler
17956 xops __attribute__ ((unused)) = {
17973 cat - <<_ACEOF >conftest.h
17978 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17979 echo "obj-m := conftest.o" >build
/Makefile
17981 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17982 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17984 (eval $ac_try) 2>&5
17986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17987 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17988 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17989 (eval $ac_try) 2>&5
17991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17992 test $ac_status = 0; }; }; then :
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17995 $as_echo "yes" >&6; }
17997 $as_echo "#define HAVE_XATTR_SET_DENTRY_INODE 1" >>confdefs.h
18001 $as_echo "$as_me: failed program was:" >&5
18002 sed 's/^/| /' conftest.
$ac_ext >&5
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18005 $as_echo "no" >&6; }
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5
18007 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
18010 cat confdefs.h
- <<_ACEOF >conftest.c
18013 #include <linux/xattr.h>
18015 int set(const struct xattr_handler *handler,
18016 struct dentry *dentry, const char *name,
18017 const void *buffer, size_t size, int flags)
18019 static const struct xattr_handler
18020 xops __attribute__ ((unused)) = {
18037 cat - <<_ACEOF >conftest.h
18042 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18043 echo "obj-m := conftest.o" >build
/Makefile
18045 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18046 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18048 (eval $ac_try) 2>&5
18050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18051 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18053 (eval $ac_try) 2>&5
18055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18056 test $ac_status = 0; }; }; then :
18058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18059 $as_echo "yes" >&6; }
18061 $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h
18065 $as_echo "$as_me: failed program was:" >&5
18066 sed 's/^/| /' conftest.
$ac_ext >&5
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18069 $as_echo "no" >&6; }
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
18071 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
18074 cat confdefs.h
- <<_ACEOF >conftest.c
18077 #include <linux/xattr.h>
18079 int set(struct dentry *dentry, const char *name,
18080 const void *buffer, size_t size, int flags,
18081 int handler_flags) { return 0; }
18082 static const struct xattr_handler
18083 xops __attribute__ ((unused)) = {
18100 cat - <<_ACEOF >conftest.h
18105 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18106 echo "obj-m := conftest.o" >build
/Makefile
18108 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18109 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18111 (eval $ac_try) 2>&5
18113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18114 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18116 (eval $ac_try) 2>&5
18118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18119 test $ac_status = 0; }; }; then :
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18122 $as_echo "yes" >&6; }
18124 $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h
18128 $as_echo "$as_me: failed program was:" >&5
18129 sed 's/^/| /' conftest.
$ac_ext >&5
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18132 $as_echo "no" >&6; }
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5
18134 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
18137 cat confdefs.h
- <<_ACEOF >conftest.c
18140 #include <linux/xattr.h>
18142 int set(struct inode *ip, const char *name,
18143 const void *buffer, size_t size, int flags)
18145 static const struct xattr_handler
18146 xops __attribute__ ((unused)) = {
18163 cat - <<_ACEOF >conftest.h
18168 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18169 echo "obj-m := conftest.o" >build
/Makefile
18171 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18172 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18173 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18174 (eval $ac_try) 2>&5
18176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18177 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18179 (eval $ac_try) 2>&5
18181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18182 test $ac_status = 0; }; }; then :
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18185 $as_echo "yes" >&6; }
18187 $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h
18191 $as_echo "$as_me: failed program was:" >&5
18192 sed 's/^/| /' conftest.
$ac_ext >&5
18194 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5
18226 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
18229 cat confdefs.h
- <<_ACEOF >conftest.c
18232 #include <linux/xattr.h>
18234 bool list(struct dentry *dentry) { return 0; }
18235 static const struct xattr_handler
18236 xops __attribute__ ((unused)) = {
18253 cat - <<_ACEOF >conftest.h
18258 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18259 echo "obj-m := conftest.o" >build
/Makefile
18261 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18262 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18264 (eval $ac_try) 2>&5
18266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18267 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18269 (eval $ac_try) 2>&5
18271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18272 test $ac_status = 0; }; }; then :
18274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18275 $as_echo "yes" >&6; }
18277 $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h
18281 $as_echo "$as_me: failed program was:" >&5
18282 sed 's/^/| /' conftest.
$ac_ext >&5
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18285 $as_echo "no" >&6; }
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5
18287 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
18290 cat confdefs.h
- <<_ACEOF >conftest.c
18293 #include <linux/xattr.h>
18295 size_t list(const struct xattr_handler *handler,
18296 struct dentry *dentry, char *list, size_t list_size,
18297 const char *name, size_t name_len) { return 0; }
18298 static const struct xattr_handler
18299 xops __attribute__ ((unused)) = {
18316 cat - <<_ACEOF >conftest.h
18321 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18322 echo "obj-m := conftest.o" >build
/Makefile
18324 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18325 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18327 (eval $ac_try) 2>&5
18329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18330 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18332 (eval $ac_try) 2>&5
18334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18335 test $ac_status = 0; }; }; then :
18337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18338 $as_echo "yes" >&6; }
18340 $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h
18344 $as_echo "$as_me: failed program was:" >&5
18345 sed 's/^/| /' conftest.
$ac_ext >&5
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18348 $as_echo "no" >&6; }
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
18350 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
18353 cat confdefs.h
- <<_ACEOF >conftest.c
18356 #include <linux/xattr.h>
18358 size_t list(struct dentry *dentry,
18359 char *list, size_t list_size,
18360 const char *name, size_t name_len,
18361 int handler_flags) { return 0; }
18362 static const struct xattr_handler
18363 xops __attribute__ ((unused)) = {
18380 cat - <<_ACEOF >conftest.h
18385 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18386 echo "obj-m := conftest.o" >build
/Makefile
18388 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18389 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18391 (eval $ac_try) 2>&5
18393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18394 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18396 (eval $ac_try) 2>&5
18398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18399 test $ac_status = 0; }; }; then :
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18402 $as_echo "yes" >&6; }
18404 $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h
18408 $as_echo "$as_me: failed program was:" >&5
18409 sed 's/^/| /' conftest.
$ac_ext >&5
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18412 $as_echo "no" >&6; }
18413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5
18414 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
18417 cat confdefs.h
- <<_ACEOF >conftest.c
18420 #include <linux/xattr.h>
18422 size_t list(struct inode *ip, char *lst,
18423 size_t list_size, const char *name,
18424 size_t name_len) { return 0; }
18425 static const struct xattr_handler
18426 xops __attribute__ ((unused)) = {
18443 cat - <<_ACEOF >conftest.h
18448 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18449 echo "obj-m := conftest.o" >build
/Makefile
18451 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18452 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18454 (eval $ac_try) 2>&5
18456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18457 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18458 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18459 (eval $ac_try) 2>&5
18461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18462 test $ac_status = 0; }; }; then :
18464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18465 $as_echo "yes" >&6; }
18467 $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h
18471 $as_echo "$as_me: failed program was:" >&5
18472 sed 's/^/| /' conftest.
$ac_ext >&5
18474 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
18505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
18506 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
18509 cat confdefs.h
- <<_ACEOF >conftest.c
18512 #include <linux/fs.h>
18518 struct inode *ip = NULL;
18519 (void) inode_owner_or_capable(ip);
18529 cat - <<_ACEOF >conftest.h
18534 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18535 echo "obj-m := conftest.o" >build
/Makefile
18537 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18538 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18540 (eval $ac_try) 2>&5
18542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18543 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18545 (eval $ac_try) 2>&5
18547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18548 test $ac_status = 0; }; }; then :
18550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18551 $as_echo "yes" >&6; }
18553 $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
18557 $as_echo "$as_me: failed program was:" >&5
18558 sed 's/^/| /' conftest.
$ac_ext >&5
18560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18561 $as_echo "no" >&6; }
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
18563 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
18566 cat confdefs.h
- <<_ACEOF >conftest.c
18569 #include <linux/fs.h>
18570 #include <linux/sched.h>
18576 struct inode *ip = NULL;
18577 (void) is_owner_or_cap(ip);
18587 cat - <<_ACEOF >conftest.h
18592 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18593 echo "obj-m := conftest.o" >build
/Makefile
18595 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18596 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18598 (eval $ac_try) 2>&5
18600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18601 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18602 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18603 (eval $ac_try) 2>&5
18605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18606 test $ac_status = 0; }; }; then :
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18609 $as_echo "yes" >&6; }
18611 $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
18615 $as_echo "$as_me: failed program was:" >&5
18616 sed 's/^/| /' conftest.
$ac_ext >&5
18618 as_fn_error $?
"no - Please file a bug report at
18619 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
18636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
18637 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
18640 cat confdefs.h
- <<_ACEOF >conftest.c
18643 #include <linux/cred.h>
18644 #include <linux/fs.h>
18645 #include <linux/posix_acl_xattr.h>
18651 posix_acl_from_xattr(&init_user_ns, NULL, 0);
18661 cat - <<_ACEOF >conftest.h
18666 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18667 echo "obj-m := conftest.o" >build
/Makefile
18669 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18670 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18672 (eval $ac_try) 2>&5
18674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18675 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18676 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18677 (eval $ac_try) 2>&5
18679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18680 test $ac_status = 0; }; }; then :
18682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18683 $as_echo "yes" >&6; }
18685 $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
18689 $as_echo "$as_me: failed program was:" >&5
18690 sed 's/^/| /' conftest.
$ac_ext >&5
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18693 $as_echo "no" >&6; }
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
18704 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
18707 cat confdefs.h
- <<_ACEOF >conftest.c
18710 #include <linux/cred.h>
18711 #include <linux/fs.h>
18712 #include <linux/posix_acl.h>
18718 struct posix_acl* tmp = posix_acl_alloc(1, 0);
18719 posix_acl_release(tmp);
18729 cat - <<_ACEOF >conftest.h
18734 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18735 echo "obj-m := conftest.o" >build
/Makefile
18737 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18738 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18739 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18740 (eval $ac_try) 2>&5
18742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18743 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18745 (eval $ac_try) 2>&5
18747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18748 test $ac_status = 0; }; }; then :
18750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18751 $as_echo "yes" >&6; }
18753 $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
18756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
18757 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
18760 cat confdefs.h
- <<_ACEOF >conftest.c
18763 #include <linux/module.h>
18764 #include <linux/cred.h>
18765 #include <linux/fs.h>
18766 #include <linux/posix_acl.h>
18768 MODULE_LICENSE("$ZFS_META_LICENSE");
18774 struct posix_acl* tmp = posix_acl_alloc(1, 0);
18775 posix_acl_release(tmp);
18785 cat - <<_ACEOF >conftest.h
18790 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18791 echo "obj-m := conftest.o" >build
/Makefile
18793 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18794 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18796 (eval $ac_try) 2>&5
18798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18799 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18801 (eval $ac_try) 2>&5
18803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18804 test $ac_status = 0; }; }; then :
18806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18807 $as_echo "no" >&6; }
18810 $as_echo "$as_me: failed program was:" >&5
18811 sed 's/^/| /' conftest.
$ac_ext >&5
18813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18814 $as_echo "yes" >&6; }
18816 $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
18827 $as_echo "$as_me: failed program was:" >&5
18828 sed 's/^/| /' conftest.
$ac_ext >&5
18830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18831 $as_echo "no" >&6; }
18841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_cached_acl() is usable" >&5
18842 $as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
18845 cat confdefs.h
- <<_ACEOF >conftest.c
18848 #include <linux/module.h>
18849 #include <linux/cred.h>
18850 #include <linux/fs.h>
18851 #include <linux/posix_acl.h>
18853 MODULE_LICENSE("$ZFS_META_LICENSE");
18859 struct inode *ip = NULL;
18860 struct posix_acl *acl = posix_acl_alloc(1, 0);
18861 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
18862 forget_cached_acl(ip, ACL_TYPE_ACCESS);
18872 cat - <<_ACEOF >conftest.h
18877 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18878 echo "obj-m := conftest.o" >build
/Makefile
18880 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18881 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18883 (eval $ac_try) 2>&5
18885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18886 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18888 (eval $ac_try) 2>&5
18890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18891 test $ac_status = 0; }; }; then :
18893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18894 $as_echo "yes" >&6; }
18896 $as_echo "#define HAVE_SET_CACHED_ACL_USABLE 1" >>confdefs.h
18900 $as_echo "$as_me: failed program was:" >&5
18901 sed 's/^/| /' conftest.
$ac_ext >&5
18903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18904 $as_echo "no" >&6; }
18914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
18915 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
18918 cat confdefs.h
- <<_ACEOF >conftest.c
18921 #include <linux/fs.h>
18922 #include <linux/posix_acl.h>
18928 posix_acl_chmod(NULL, 0, 0)
18938 cat - <<_ACEOF >conftest.h
18943 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18944 echo "obj-m := conftest.o" >build
/Makefile
18946 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18947 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18949 (eval $ac_try) 2>&5
18951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18952 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18954 (eval $ac_try) 2>&5
18956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18957 test $ac_status = 0; }; }; then :
18959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18960 $as_echo "yes" >&6; }
18962 $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
18966 $as_echo "$as_me: failed program was:" >&5
18967 sed 's/^/| /' conftest.
$ac_ext >&5
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18970 $as_echo "no" >&6; }
18979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
18980 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
18983 cat confdefs.h
- <<_ACEOF >conftest.c
18986 #include <linux/fs.h>
18987 #include <linux/posix_acl.h>
18993 __posix_acl_chmod(NULL, 0, 0)
19003 cat - <<_ACEOF >conftest.h
19008 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19009 echo "obj-m := conftest.o" >build
/Makefile
19011 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19012 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19013 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19014 (eval $ac_try) 2>&5
19016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19017 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19019 (eval $ac_try) 2>&5
19021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19022 test $ac_status = 0; }; }; then :
19024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19025 $as_echo "yes" >&6; }
19027 $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
19031 $as_echo "$as_me: failed program was:" >&5
19032 sed 's/^/| /' conftest.
$ac_ext >&5
19034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19035 $as_echo "no" >&6; }
19045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
19046 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
19049 cat confdefs.h
- <<_ACEOF >conftest.c
19052 #include <linux/fs.h>
19053 #include <linux/posix_acl.h>
19060 posix_acl_equiv_mode(NULL,&tmp);
19070 cat - <<_ACEOF >conftest.h
19075 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19076 echo "obj-m := conftest.o" >build
/Makefile
19078 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19079 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19081 (eval $ac_try) 2>&5
19083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19084 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19086 (eval $ac_try) 2>&5
19088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19089 test $ac_status = 0; }; }; then :
19091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19092 $as_echo "yes" >&6; }
19094 $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
19098 $as_echo "$as_me: failed program was:" >&5
19099 sed 's/^/| /' conftest.
$ac_ext >&5
19101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19102 $as_echo "no" >&6; }
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5
19113 $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
19116 cat confdefs.h
- <<_ACEOF >conftest.c
19119 #include <linux/fs.h>
19120 #include <linux/posix_acl.h>
19126 struct user_namespace *user_ns = NULL;
19127 const struct posix_acl *acl = NULL;
19130 error = posix_acl_valid(user_ns, acl);
19140 cat - <<_ACEOF >conftest.h
19145 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19146 echo "obj-m := conftest.o" >build
/Makefile
19148 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19149 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19151 (eval $ac_try) 2>&5
19153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19154 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19155 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19156 (eval $ac_try) 2>&5
19158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19159 test $ac_status = 0; }; }; then :
19161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19162 $as_echo "yes" >&6; }
19164 $as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h
19168 $as_echo "$as_me: failed program was:" >&5
19169 sed 's/^/| /' conftest.
$ac_ext >&5
19171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19172 $as_echo "no" >&6; }
19182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
19183 $as_echo_n "checking whether iops->permission() exists... " >&6; }
19186 cat confdefs.h
- <<_ACEOF >conftest.c
19189 #include <linux/fs.h>
19191 int permission_fn(struct inode *inode, int mask) { return 0; }
19193 static const struct inode_operations
19194 iops __attribute__ ((unused)) = {
19195 .permission = permission_fn,
19211 cat - <<_ACEOF >conftest.h
19216 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19217 echo "obj-m := conftest.o" >build
/Makefile
19219 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19220 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19222 (eval $ac_try) 2>&5
19224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19225 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19226 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19227 (eval $ac_try) 2>&5
19229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19230 test $ac_status = 0; }; }; then :
19232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19233 $as_echo "yes" >&6; }
19235 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
19239 $as_echo "$as_me: failed program was:" >&5
19240 sed 's/^/| /' conftest.
$ac_ext >&5
19242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19243 $as_echo "no" >&6; }
19253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
19254 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
19257 cat confdefs.h
- <<_ACEOF >conftest.c
19260 #include <linux/fs.h>
19262 int permission_fn(struct inode *inode, int mask,
19263 struct nameidata *nd) { return 0; }
19265 static const struct inode_operations
19266 iops __attribute__ ((unused)) = {
19267 .permission = permission_fn,
19283 cat - <<_ACEOF >conftest.h
19288 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19289 echo "obj-m := conftest.o" >build
/Makefile
19291 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19292 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19294 (eval $ac_try) 2>&5
19296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19297 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19299 (eval $ac_try) 2>&5
19301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19302 test $ac_status = 0; }; }; then :
19304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19305 $as_echo "yes" >&6; }
19307 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
19310 $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
19314 $as_echo "$as_me: failed program was:" >&5
19315 sed 's/^/| /' conftest.
$ac_ext >&5
19317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19318 $as_echo "no" >&6; }
19328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
19329 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
19332 cat confdefs.h
- <<_ACEOF >conftest.c
19335 #include <linux/fs.h>
19337 int check_acl_fn(struct inode *inode, int mask) { return 0; }
19339 static const struct inode_operations
19340 iops __attribute__ ((unused)) = {
19341 .check_acl = check_acl_fn,
19357 cat - <<_ACEOF >conftest.h
19362 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19363 echo "obj-m := conftest.o" >build
/Makefile
19365 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19366 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19368 (eval $ac_try) 2>&5
19370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19371 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19373 (eval $ac_try) 2>&5
19375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19376 test $ac_status = 0; }; }; then :
19378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19379 $as_echo "yes" >&6; }
19381 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
19385 $as_echo "$as_me: failed program was:" >&5
19386 sed 's/^/| /' conftest.
$ac_ext >&5
19388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19389 $as_echo "no" >&6; }
19399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
19400 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
19403 cat confdefs.h
- <<_ACEOF >conftest.c
19406 #include <linux/fs.h>
19408 int check_acl_fn(struct inode *inode, int mask,
19409 unsigned int flags) { return 0; }
19411 static const struct inode_operations
19412 iops __attribute__ ((unused)) = {
19413 .check_acl = check_acl_fn,
19429 cat - <<_ACEOF >conftest.h
19434 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19435 echo "obj-m := conftest.o" >build
/Makefile
19437 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19438 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19440 (eval $ac_try) 2>&5
19442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19443 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19445 (eval $ac_try) 2>&5
19447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19448 test $ac_status = 0; }; }; then :
19450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19451 $as_echo "yes" >&6; }
19453 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
19456 $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
19460 $as_echo "$as_me: failed program was:" >&5
19461 sed 's/^/| /' conftest.
$ac_ext >&5
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19464 $as_echo "no" >&6; }
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
19475 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
19478 cat confdefs.h
- <<_ACEOF >conftest.c
19481 #include <linux/fs.h>
19483 struct posix_acl *get_acl_fn(struct inode *inode, int type)
19486 static const struct inode_operations
19487 iops __attribute__ ((unused)) = {
19488 .get_acl = get_acl_fn,
19504 cat - <<_ACEOF >conftest.h
19509 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19510 echo "obj-m := conftest.o" >build
/Makefile
19512 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19513 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19515 (eval $ac_try) 2>&5
19517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19518 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19520 (eval $ac_try) 2>&5
19522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19523 test $ac_status = 0; }; }; then :
19525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19526 $as_echo "yes" >&6; }
19528 $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
19532 $as_echo "$as_me: failed program was:" >&5
19533 sed 's/^/| /' conftest.
$ac_ext >&5
19535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19536 $as_echo "no" >&6; }
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->set_acl() exists" >&5
19547 $as_echo_n "checking whether iops->set_acl() exists... " >&6; }
19550 cat confdefs.h
- <<_ACEOF >conftest.c
19553 #include <linux/fs.h>
19555 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
19558 static const struct inode_operations
19559 iops __attribute__ ((unused)) = {
19560 .set_acl = set_acl_fn,
19576 cat - <<_ACEOF >conftest.h
19581 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19582 echo "obj-m := conftest.o" >build
/Makefile
19584 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19585 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19587 (eval $ac_try) 2>&5
19589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19590 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19592 (eval $ac_try) 2>&5
19594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19595 test $ac_status = 0; }; }; then :
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19598 $as_echo "yes" >&6; }
19600 $as_echo "#define HAVE_SET_ACL 1" >>confdefs.h
19604 $as_echo "$as_me: failed program was:" >&5
19605 sed 's/^/| /' conftest.
$ac_ext >&5
19607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19608 $as_echo "no" >&6; }
19619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a path" >&5
19620 $as_echo_n "checking whether iops->getattr() takes a path... " >&6; }
19623 cat confdefs.h
- <<_ACEOF >conftest.c
19626 #include <linux/fs.h>
19629 const struct path *p, struct kstat *k,
19630 u32 request_mask, unsigned int query_flags)
19633 static const struct inode_operations
19634 iops __attribute__ ((unused)) = {
19635 .getattr = test_getattr,
19651 cat - <<_ACEOF >conftest.h
19656 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19657 echo "obj-m := conftest.o" >build
/Makefile
19659 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19660 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19662 (eval $ac_try) 2>&5
19664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19665 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19667 (eval $ac_try) 2>&5
19669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19670 test $ac_status = 0; }; }; then :
19672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19673 $as_echo "yes" >&6; }
19675 $as_echo "#define HAVE_PATH_IOPS_GETATTR 1" >>confdefs.h
19679 $as_echo "$as_me: failed program was:" >&5
19680 sed 's/^/| /' conftest.
$ac_ext >&5
19682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19683 $as_echo "no" >&6; }
19693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a vfsmount" >&5
19694 $as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; }
19697 cat confdefs.h
- <<_ACEOF >conftest.c
19700 #include <linux/fs.h>
19703 struct vfsmount *mnt, struct dentry *d,
19707 static const struct inode_operations
19708 iops __attribute__ ((unused)) = {
19709 .getattr = test_getattr,
19725 cat - <<_ACEOF >conftest.h
19730 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19731 echo "obj-m := conftest.o" >build
/Makefile
19733 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19734 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19736 (eval $ac_try) 2>&5
19738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19739 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19741 (eval $ac_try) 2>&5
19743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19744 test $ac_status = 0; }; }; then :
19746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19747 $as_echo "yes" >&6; }
19749 $as_echo "#define HAVE_VFSMOUNT_IOPS_GETATTR 1" >>confdefs.h
19753 $as_echo "$as_me: failed program was:" >&5
19754 sed 's/^/| /' conftest.
$ac_ext >&5
19756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19757 $as_echo "no" >&6; }
19768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_set_flags() exists" >&5
19769 $as_echo_n "checking whether inode_set_flags() exists... " >&6; }
19772 cat confdefs.h
- <<_ACEOF >conftest.c
19775 #include <linux/fs.h>
19781 struct inode inode;
19782 inode_set_flags(&inode, S_IMMUTABLE, S_IMMUTABLE);
19792 cat - <<_ACEOF >conftest.h
19797 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19798 echo "obj-m := conftest.o" >build
/Makefile
19800 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19801 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19803 (eval $ac_try) 2>&5
19805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19806 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19808 (eval $ac_try) 2>&5
19810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19811 test $ac_status = 0; }; }; then :
19813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19814 $as_echo "yes" >&6; }
19816 $as_echo "#define HAVE_INODE_SET_FLAGS 1" >>confdefs.h
19820 $as_echo "$as_me: failed program was:" >&5
19821 sed 's/^/| /' conftest.
$ac_ext >&5
19823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19824 $as_echo "no" >&6; }
19834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uncached_acl_sentinel() exists" >&5
19835 $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
19838 cat confdefs.h
- <<_ACEOF >conftest.c
19841 #include <linux/fs.h>
19847 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
19857 cat - <<_ACEOF >conftest.h
19862 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19863 echo "obj-m := conftest.o" >build
/Makefile
19865 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19866 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19868 (eval $ac_try) 2>&5
19870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19871 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19873 (eval $ac_try) 2>&5
19875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19876 test $ac_status = 0; }; }; then :
19878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19879 $as_echo "yes" >&6; }
19881 $as_echo "#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1" >>confdefs.h
19885 $as_echo "$as_me: failed program was:" >&5
19886 sed 's/^/| /' conftest.
$ac_ext >&5
19888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19889 $as_echo "no" >&6; }
19899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
19900 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
19904 cat confdefs.h
- <<_ACEOF >conftest.c
19907 #include <linux/fs.h>
19909 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
19910 static struct super_operations sops __attribute__ ((unused)) = {
19911 .show_options = show_options,
19927 cat - <<_ACEOF >conftest.h
19932 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19933 echo "obj-m := conftest.o" >build
/Makefile
19935 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19936 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19938 (eval $ac_try) 2>&5
19940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19941 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19942 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19943 (eval $ac_try) 2>&5
19945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19946 test $ac_status = 0; }; }; then :
19948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19949 $as_echo "yes" >&6; }
19951 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
19955 $as_echo "$as_me: failed program was:" >&5
19956 sed 's/^/| /' conftest.
$ac_ext >&5
19958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19959 $as_echo "no" >&6; }
19969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
19970 $as_echo_n "checking whether file_inode() is available... " >&6; }
19973 cat confdefs.h
- <<_ACEOF >conftest.c
19976 #include <linux/fs.h>
19982 struct file *f = NULL;
19993 cat - <<_ACEOF >conftest.h
19998 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19999 echo "obj-m := conftest.o" >build
/Makefile
20001 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20002 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20004 (eval $ac_try) 2>&5
20006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20007 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20008 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20009 (eval $ac_try) 2>&5
20011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20012 test $ac_status = 0; }; }; then :
20014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20015 $as_echo "yes" >&6; }
20017 $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
20021 $as_echo "$as_me: failed program was:" >&5
20022 sed 's/^/| /' conftest.
$ac_ext >&5
20024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20025 $as_echo "no" >&6; }
20035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_dentry() is available" >&5
20036 $as_echo_n "checking whether file_dentry() is available... " >&6; }
20039 cat confdefs.h
- <<_ACEOF >conftest.c
20042 #include <linux/fs.h>
20048 struct file *f = NULL;
20059 cat - <<_ACEOF >conftest.h
20064 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20065 echo "obj-m := conftest.o" >build
/Makefile
20067 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20068 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20070 (eval $ac_try) 2>&5
20072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20073 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20075 (eval $ac_try) 2>&5
20077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20078 test $ac_status = 0; }; }; then :
20080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20081 $as_echo "yes" >&6; }
20083 $as_echo "#define HAVE_FILE_DENTRY 1" >>confdefs.h
20087 $as_echo "$as_me: failed program was:" >&5
20088 sed 's/^/| /' conftest.
$ac_ext >&5
20090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20091 $as_echo "no" >&6; }
20101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
20102 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
20106 cat confdefs.h
- <<_ACEOF >conftest.c
20109 #include <linux/fs.h>
20111 int test_fsync(struct file *f, struct dentry *dentry, int x)
20114 static const struct file_operations
20115 fops __attribute__ ((unused)) = {
20116 .fsync = test_fsync,
20132 cat - <<_ACEOF >conftest.h
20137 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20138 echo "obj-m := conftest.o" >build
/Makefile
20140 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20141 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20143 (eval $ac_try) 2>&5
20145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20146 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20147 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20148 (eval $ac_try) 2>&5
20150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20151 test $ac_status = 0; }; }; then :
20153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
20154 $as_echo "dentry" >&6; }
20156 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
20160 $as_echo "$as_me: failed program was:" >&5
20161 sed 's/^/| /' conftest.
$ac_ext >&5
20174 cat confdefs.h
- <<_ACEOF >conftest.c
20177 #include <linux/fs.h>
20179 int test_fsync(struct file *f, int x) { return 0; }
20181 static const struct file_operations
20182 fops __attribute__ ((unused)) = {
20183 .fsync = test_fsync,
20199 cat - <<_ACEOF >conftest.h
20204 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20205 echo "obj-m := conftest.o" >build
/Makefile
20207 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20208 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20210 (eval $ac_try) 2>&5
20212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20213 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20215 (eval $ac_try) 2>&5
20217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20218 test $ac_status = 0; }; }; then :
20220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
20221 $as_echo "no dentry" >&6; }
20223 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
20227 $as_echo "$as_me: failed program was:" >&5
20228 sed 's/^/| /' conftest.
$ac_ext >&5
20241 cat confdefs.h
- <<_ACEOF >conftest.c
20244 #include <linux/fs.h>
20246 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
20249 static const struct file_operations
20250 fops __attribute__ ((unused)) = {
20251 .fsync = test_fsync,
20267 cat - <<_ACEOF >conftest.h
20272 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20273 echo "obj-m := conftest.o" >build
/Makefile
20275 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20276 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20278 (eval $ac_try) 2>&5
20280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20281 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20282 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20283 (eval $ac_try) 2>&5
20285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20286 test $ac_status = 0; }; }; then :
20288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
20289 $as_echo "range" >&6; }
20291 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
20295 $as_echo "$as_me: failed program was:" >&5
20296 sed 's/^/| /' conftest.
$ac_ext >&5
20308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
20309 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
20312 cat confdefs.h
- <<_ACEOF >conftest.c
20315 #include <linux/fs.h>
20316 void evict_inode (struct inode * t) { return; }
20317 static struct super_operations sops __attribute__ ((unused)) = {
20318 .evict_inode = evict_inode,
20334 cat - <<_ACEOF >conftest.h
20339 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20340 echo "obj-m := conftest.o" >build
/Makefile
20342 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20343 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20345 (eval $ac_try) 2>&5
20347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20348 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20350 (eval $ac_try) 2>&5
20352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20353 test $ac_status = 0; }; }; then :
20355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20356 $as_echo "yes" >&6; }
20358 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
20362 $as_echo "$as_me: failed program was:" >&5
20363 sed 's/^/| /' conftest.
$ac_ext >&5
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20366 $as_echo "no" >&6; }
20376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
20377 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
20380 cat confdefs.h
- <<_ACEOF >conftest.c
20383 #include <linux/fs.h>
20385 void dirty_inode(struct inode *a, int b) { return; }
20387 static const struct super_operations
20388 sops __attribute__ ((unused)) = {
20389 .dirty_inode = dirty_inode,
20405 cat - <<_ACEOF >conftest.h
20410 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20411 echo "obj-m := conftest.o" >build
/Makefile
20413 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20414 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20416 (eval $ac_try) 2>&5
20418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20419 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20421 (eval $ac_try) 2>&5
20423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20424 test $ac_status = 0; }; }; then :
20426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20427 $as_echo "yes" >&6; }
20429 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
20433 $as_echo "$as_me: failed program was:" >&5
20434 sed 's/^/| /' conftest.
$ac_ext >&5
20436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20437 $as_echo "no" >&6; }
20447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
20448 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
20451 cat confdefs.h
- <<_ACEOF >conftest.c
20454 #include <linux/fs.h>
20456 int nr_cached_objects(struct super_block *sb) { return 0; }
20458 static const struct super_operations
20459 sops __attribute__ ((unused)) = {
20460 .nr_cached_objects = nr_cached_objects,
20476 cat - <<_ACEOF >conftest.h
20481 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20482 echo "obj-m := conftest.o" >build
/Makefile
20484 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20485 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20487 (eval $ac_try) 2>&5
20489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20490 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20492 (eval $ac_try) 2>&5
20494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20495 test $ac_status = 0; }; }; then :
20497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20498 $as_echo "yes" >&6; }
20500 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
20504 $as_echo "$as_me: failed program was:" >&5
20505 sed 's/^/| /' conftest.
$ac_ext >&5
20507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20508 $as_echo "no" >&6; }
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
20519 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
20522 cat confdefs.h
- <<_ACEOF >conftest.c
20525 #include <linux/fs.h>
20527 void free_cached_objects(struct super_block *sb, int x)
20530 static const struct super_operations
20531 sops __attribute__ ((unused)) = {
20532 .free_cached_objects = free_cached_objects,
20548 cat - <<_ACEOF >conftest.h
20553 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20554 echo "obj-m := conftest.o" >build
/Makefile
20556 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20557 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20558 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20559 (eval $ac_try) 2>&5
20561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20562 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20564 (eval $ac_try) 2>&5
20566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20567 test $ac_status = 0; }; }; then :
20569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20570 $as_echo "yes" >&6; }
20572 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
20576 $as_echo "$as_me: failed program was:" >&5
20577 sed 's/^/| /' conftest.
$ac_ext >&5
20579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20580 $as_echo "no" >&6; }
20591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
20592 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
20595 cat confdefs.h
- <<_ACEOF >conftest.c
20598 #include <linux/fs.h>
20600 long test_fallocate(struct file *file, int mode,
20601 loff_t offset, loff_t len) { return 0; }
20603 static const struct file_operations
20604 fops __attribute__ ((unused)) = {
20605 .fallocate = test_fallocate,
20621 cat - <<_ACEOF >conftest.h
20626 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20627 echo "obj-m := conftest.o" >build
/Makefile
20629 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20630 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20631 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20632 (eval $ac_try) 2>&5
20634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20635 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20636 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20637 (eval $ac_try) 2>&5
20639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20640 test $ac_status = 0; }; }; then :
20642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20643 $as_echo "yes" >&6; }
20645 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
20649 $as_echo "$as_me: failed program was:" >&5
20650 sed 's/^/| /' conftest.
$ac_ext >&5
20652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20653 $as_echo "no" >&6; }
20663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
20664 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
20667 cat confdefs.h
- <<_ACEOF >conftest.c
20670 #include <linux/fs.h>
20672 long test_fallocate(struct inode *inode, int mode,
20673 loff_t offset, loff_t len) { return 0; }
20675 static const struct inode_operations
20676 fops __attribute__ ((unused)) = {
20677 .fallocate = test_fallocate,
20693 cat - <<_ACEOF >conftest.h
20698 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20699 echo "obj-m := conftest.o" >build
/Makefile
20701 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20702 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20704 (eval $ac_try) 2>&5
20706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20707 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20709 (eval $ac_try) 2>&5
20711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20712 test $ac_status = 0; }; }; then :
20714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20715 $as_echo "yes" >&6; }
20717 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
20721 $as_echo "$as_me: failed program was:" >&5
20722 sed 's/^/| /' conftest.
$ac_ext >&5
20724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20725 $as_echo "no" >&6; }
20736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->aio_fsync() exists" >&5
20737 $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
20740 cat confdefs.h
- <<_ACEOF >conftest.c
20743 #include <linux/fs.h>
20745 static const struct file_operations
20746 fops __attribute__ ((unused)) = {
20763 cat - <<_ACEOF >conftest.h
20768 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20769 echo "obj-m := conftest.o" >build
/Makefile
20771 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20772 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20773 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20774 (eval $ac_try) 2>&5
20776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20777 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20779 (eval $ac_try) 2>&5
20781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20782 test $ac_status = 0; }; }; then :
20784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20785 $as_echo "yes" >&6; }
20787 $as_echo "#define HAVE_FILE_AIO_FSYNC 1" >>confdefs.h
20791 $as_echo "$as_me: failed program was:" >&5
20792 sed 's/^/| /' conftest.
$ac_ext >&5
20794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20795 $as_echo "no" >&6; }
20805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
20806 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
20809 cat confdefs.h
- <<_ACEOF >conftest.c
20812 #include <linux/fs.h>
20814 int mkdir(struct inode *inode, struct dentry *dentry,
20815 umode_t umode) { return 0; }
20817 static const struct inode_operations
20818 iops __attribute__ ((unused)) = {
20835 cat - <<_ACEOF >conftest.h
20840 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20841 echo "obj-m := conftest.o" >build
/Makefile
20843 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20844 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20846 (eval $ac_try) 2>&5
20848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20849 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20851 (eval $ac_try) 2>&5
20853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20854 test $ac_status = 0; }; }; then :
20856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20857 $as_echo "yes" >&6; }
20859 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
20863 $as_echo "$as_me: failed program was:" >&5
20864 sed 's/^/| /' conftest.
$ac_ext >&5
20866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20867 $as_echo "no" >&6; }
20877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5
20878 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
20881 cat confdefs.h
- <<_ACEOF >conftest.c
20884 #include <linux/fs.h>
20886 struct dentry *inode_lookup(struct inode *inode,
20887 struct dentry *dentry, struct nameidata *nidata)
20890 static const struct inode_operations iops
20891 __attribute__ ((unused)) = {
20892 .lookup = inode_lookup,
20908 cat - <<_ACEOF >conftest.h
20913 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20914 echo "obj-m := conftest.o" >build
/Makefile
20916 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20917 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20919 (eval $ac_try) 2>&5
20921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20922 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20924 (eval $ac_try) 2>&5
20926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20927 test $ac_status = 0; }; }; then :
20929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20930 $as_echo "yes" >&6; }
20932 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
20936 $as_echo "$as_me: failed program was:" >&5
20937 sed 's/^/| /' conftest.
$ac_ext >&5
20939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20940 $as_echo "no" >&6; }
20950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5
20951 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
20954 cat confdefs.h
- <<_ACEOF >conftest.c
20957 #include <linux/fs.h>
20959 #ifdef HAVE_MKDIR_UMODE_T
20960 int inode_create(struct inode *inode ,struct dentry *dentry,
20961 umode_t umode, struct nameidata *nidata) { return 0; }
20963 int inode_create(struct inode *inode,struct dentry *dentry,
20964 int umode, struct nameidata * nidata) { return 0; }
20967 static const struct inode_operations
20968 iops __attribute__ ((unused)) = {
20969 .create = inode_create,
20985 cat - <<_ACEOF >conftest.h
20990 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20991 echo "obj-m := conftest.o" >build
/Makefile
20993 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20994 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20996 (eval $ac_try) 2>&5
20998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20999 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21001 (eval $ac_try) 2>&5
21003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21004 test $ac_status = 0; }; }; then :
21006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21007 $as_echo "yes" >&6; }
21009 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
21013 $as_echo "$as_me: failed program was:" >&5
21014 sed 's/^/| /' conftest.
$ac_ext >&5
21016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21017 $as_echo "no" >&6; }
21027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5
21028 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
21031 cat confdefs.h
- <<_ACEOF >conftest.c
21034 #include <linux/fs.h>
21035 const char *get_link(struct dentry *de, struct inode *ip,
21036 struct delayed_call *done) { return "symlink"; }
21037 static struct inode_operations
21038 iops __attribute__ ((unused)) = {
21039 .get_link = get_link,
21055 cat - <<_ACEOF >conftest.h
21060 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21061 echo "obj-m := conftest.o" >build
/Makefile
21063 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21064 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21066 (eval $ac_try) 2>&5
21068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21069 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21071 (eval $ac_try) 2>&5
21073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21074 test $ac_status = 0; }; }; then :
21076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21077 $as_echo "yes" >&6; }
21079 $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h
21083 $as_echo "$as_me: failed program was:" >&5
21084 sed 's/^/| /' conftest.
$ac_ext >&5
21086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21087 $as_echo "no" >&6; }
21088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5
21089 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
21092 cat confdefs.h
- <<_ACEOF >conftest.c
21095 #include <linux/fs.h>
21096 const char *get_link(struct dentry *de, struct
21097 inode *ip, void **cookie) { return "symlink"; }
21098 static struct inode_operations
21099 iops __attribute__ ((unused)) = {
21100 .get_link = get_link,
21116 cat - <<_ACEOF >conftest.h
21121 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21122 echo "obj-m := conftest.o" >build
/Makefile
21124 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21125 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21127 (eval $ac_try) 2>&5
21129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21130 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21132 (eval $ac_try) 2>&5
21134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21135 test $ac_status = 0; }; }; then :
21137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21138 $as_echo "yes" >&6; }
21140 $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h
21144 $as_echo "$as_me: failed program was:" >&5
21145 sed 's/^/| /' conftest.
$ac_ext >&5
21147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21148 $as_echo "no" >&6; }
21150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5
21151 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
21154 cat confdefs.h
- <<_ACEOF >conftest.c
21157 #include <linux/fs.h>
21158 const char *follow_link(struct dentry *de,
21159 void **cookie) { return "symlink"; }
21160 static struct inode_operations
21161 iops __attribute__ ((unused)) = {
21162 .follow_link = follow_link,
21178 cat - <<_ACEOF >conftest.h
21183 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21184 echo "obj-m := conftest.o" >build
/Makefile
21186 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21187 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21189 (eval $ac_try) 2>&5
21191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21192 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21194 (eval $ac_try) 2>&5
21196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21197 test $ac_status = 0; }; }; then :
21199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21200 $as_echo "yes" >&6; }
21202 $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h
21206 $as_echo "$as_me: failed program was:" >&5
21207 sed 's/^/| /' conftest.
$ac_ext >&5
21209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21210 $as_echo "no" >&6; }
21211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5
21212 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
21215 cat confdefs.h
- <<_ACEOF >conftest.c
21218 #include <linux/fs.h>
21219 void *follow_link(struct dentry *de, struct
21220 nameidata *nd) { return (void *)NULL; }
21221 static struct inode_operations
21222 iops __attribute__ ((unused)) = {
21223 .follow_link = follow_link,
21239 cat - <<_ACEOF >conftest.h
21244 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21245 echo "obj-m := conftest.o" >build
/Makefile
21247 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21248 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21250 (eval $ac_try) 2>&5
21252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21253 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21255 (eval $ac_try) 2>&5
21257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21258 test $ac_status = 0; }; }; then :
21260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21261 $as_echo "yes" >&6; }
21263 $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h
21267 $as_echo "$as_me: failed program was:" >&5
21268 sed 's/^/| /' conftest.
$ac_ext >&5
21270 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
21304 cat confdefs.h
- <<_ACEOF >conftest.c
21307 #if !defined(HAVE_GET_LINK_DELAYED)
21308 #error "Expecting get_link() delayed done"
21324 cat - <<_ACEOF >conftest.h
21329 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21330 echo "obj-m := conftest.o" >build
/Makefile
21332 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21333 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21335 (eval $ac_try) 2>&5
21337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21338 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21340 (eval $ac_try) 2>&5
21342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21343 test $ac_status = 0; }; }; then :
21346 $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h
21350 $as_echo "$as_me: failed program was:" >&5
21351 sed 's/^/| /' conftest.
$ac_ext >&5
21353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5
21354 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
21357 cat confdefs.h
- <<_ACEOF >conftest.c
21360 #include <linux/fs.h>
21361 void put_link(struct inode *ip, void *cookie)
21363 static struct inode_operations
21364 iops __attribute__ ((unused)) = {
21365 .put_link = put_link,
21381 cat - <<_ACEOF >conftest.h
21386 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21387 echo "obj-m := conftest.o" >build
/Makefile
21389 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21390 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21392 (eval $ac_try) 2>&5
21394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21395 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21397 (eval $ac_try) 2>&5
21399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21400 test $ac_status = 0; }; }; then :
21402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21403 $as_echo "yes" >&6; }
21405 $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h
21409 $as_echo "$as_me: failed program was:" >&5
21410 sed 's/^/| /' conftest.
$ac_ext >&5
21412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21413 $as_echo "no" >&6; }
21414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5
21415 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
21418 cat confdefs.h
- <<_ACEOF >conftest.c
21421 #include <linux/fs.h>
21422 void put_link(struct dentry *de, struct
21423 nameidata *nd, void *ptr) { return; }
21424 static struct inode_operations
21425 iops __attribute__ ((unused)) = {
21426 .put_link = put_link,
21442 cat - <<_ACEOF >conftest.h
21447 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21448 echo "obj-m := conftest.o" >build
/Makefile
21450 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21451 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21452 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21453 (eval $ac_try) 2>&5
21455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21456 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21457 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21458 (eval $ac_try) 2>&5
21460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21461 test $ac_status = 0; }; }; then :
21463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21464 $as_echo "yes" >&6; }
21466 $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h
21470 $as_echo "$as_me: failed program was:" >&5
21471 sed 's/^/| /' conftest.
$ac_ext >&5
21473 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
21497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i_op->tmpfile() exists" >&5
21498 $as_echo_n "checking whether i_op->tmpfile() exists... " >&6; }
21501 cat confdefs.h
- <<_ACEOF >conftest.c
21504 #include <linux/fs.h>
21505 int tmpfile(struct inode *inode, struct dentry *dentry,
21506 umode_t mode) { return 0; }
21507 static struct inode_operations
21508 iops __attribute__ ((unused)) = {
21509 .tmpfile = tmpfile,
21525 cat - <<_ACEOF >conftest.h
21530 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21531 echo "obj-m := conftest.o" >build
/Makefile
21533 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21534 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21536 (eval $ac_try) 2>&5
21538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21539 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21541 (eval $ac_try) 2>&5
21543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21544 test $ac_status = 0; }; }; then :
21546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21547 $as_echo "yes" >&6; }
21549 $as_echo "#define HAVE_TMPFILE 1" >>confdefs.h
21553 $as_echo "$as_me: failed program was:" >&5
21554 sed 's/^/| /' conftest.
$ac_ext >&5
21556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21557 $as_echo "no" >&6; }
21567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
21568 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
21571 cat confdefs.h
- <<_ACEOF >conftest.c
21574 #include <linux/fs.h>
21575 void truncate_range(struct inode *inode, loff_t start,
21576 loff_t end) { return; }
21577 static struct inode_operations iops __attribute__ ((unused)) = {
21578 .truncate_range = truncate_range,
21594 cat - <<_ACEOF >conftest.h
21599 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21600 echo "obj-m := conftest.o" >build
/Makefile
21602 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21603 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21605 (eval $ac_try) 2>&5
21607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21608 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21610 (eval $ac_try) 2>&5
21612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21613 test $ac_status = 0; }; }; then :
21615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21616 $as_echo "yes" >&6; }
21618 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
21622 $as_echo "$as_me: failed program was:" >&5
21623 sed 's/^/| /' conftest.
$ac_ext >&5
21625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21626 $as_echo "no" >&6; }
21636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
21637 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
21640 cat confdefs.h
- <<_ACEOF >conftest.c
21643 #include <linux/dcache.h>
21644 struct vfsmount *d_automount(struct path *p) { return NULL; }
21645 struct dentry_operations dops __attribute__ ((unused)) = {
21646 .d_automount = d_automount,
21662 cat - <<_ACEOF >conftest.h
21667 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21668 echo "obj-m := conftest.o" >build
/Makefile
21670 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21671 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21673 (eval $ac_try) 2>&5
21675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21676 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21678 (eval $ac_try) 2>&5
21680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21681 test $ac_status = 0; }; }; then :
21683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21684 $as_echo "yes" >&6; }
21686 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
21690 $as_echo "$as_me: failed program was:" >&5
21691 sed 's/^/| /' conftest.
$ac_ext >&5
21693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21694 $as_echo "no" >&6; }
21704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
21705 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
21708 cat confdefs.h
- <<_ACEOF >conftest.c
21711 #include <linux/exportfs.h>
21712 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
21713 struct inode *parent) { return 0; }
21714 static struct export_operations eops __attribute__ ((unused))={
21715 .encode_fh = encode_fh,
21731 cat - <<_ACEOF >conftest.h
21736 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21737 echo "obj-m := conftest.o" >build
/Makefile
21739 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21740 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21742 (eval $ac_try) 2>&5
21744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21745 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21747 (eval $ac_try) 2>&5
21749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21750 test $ac_status = 0; }; }; then :
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21753 $as_echo "yes" >&6; }
21755 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
21759 $as_echo "$as_me: failed program was:" >&5
21760 sed 's/^/| /' conftest.
$ac_ext >&5
21762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21763 $as_echo "no" >&6; }
21773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
21774 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
21777 cat confdefs.h
- <<_ACEOF >conftest.c
21780 #include <linux/exportfs.h>
21781 int commit_metadata(struct inode *inode) { return 0; }
21782 static struct export_operations eops __attribute__ ((unused))={
21783 .commit_metadata = commit_metadata,
21799 cat - <<_ACEOF >conftest.h
21804 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21805 echo "obj-m := conftest.o" >build
/Makefile
21807 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21808 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21810 (eval $ac_try) 2>&5
21812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21813 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21815 (eval $ac_try) 2>&5
21817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21818 test $ac_status = 0; }; }; then :
21820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21821 $as_echo "yes" >&6; }
21823 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
21827 $as_echo "$as_me: failed program was:" >&5
21828 sed 's/^/| /' conftest.
$ac_ext >&5
21830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21831 $as_echo "no" >&6; }
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
21841 $as_echo_n "checking whether clear_inode() is available... " >&6; }
21845 cat confdefs.h
- <<_ACEOF >conftest.c
21848 #include <linux/fs.h>
21864 cat - <<_ACEOF >conftest.h
21869 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21870 echo "obj-m := conftest.o" >build
/Makefile
21872 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21873 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21875 (eval $ac_try) 2>&5
21877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21878 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21880 (eval $ac_try) 2>&5
21882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21883 test $ac_status = 0; }; }; then :
21886 $as_echo "$as_me: failed program was:" >&5
21887 sed 's/^/| /' conftest.
$ac_ext >&5
21895 if test $rc -ne 0; then :
21897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21898 $as_echo "no" >&6; }
21901 if test "x$enable_linux_builtin" != xyes
; then
21903 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
21904 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21906 if test $rc -ne 0; then
21908 for file in fs
/inode.c
; do
21909 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
21910 "$LINUX/$file" 2>/dev
/null
21912 if test $rc -eq 0; then
21917 if test $export -eq 0; then :
21927 if test $rc -ne 0; then :
21929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21930 $as_echo "no" >&6; }
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21935 $as_echo "yes" >&6; }
21937 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
21944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setattr_prepare() is available" >&5
21945 $as_echo_n "checking whether setattr_prepare() is available... " >&6; }
21949 cat confdefs.h
- <<_ACEOF >conftest.c
21952 #include <linux/fs.h>
21958 struct dentry *dentry = NULL;
21959 struct iattr *attr = NULL;
21962 error = setattr_prepare(dentry, attr);
21972 cat - <<_ACEOF >conftest.h
21977 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21978 echo "obj-m := conftest.o" >build
/Makefile
21980 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21981 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21983 (eval $ac_try) 2>&5
21985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21986 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21988 (eval $ac_try) 2>&5
21990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21991 test $ac_status = 0; }; }; then :
21994 $as_echo "$as_me: failed program was:" >&5
21995 sed 's/^/| /' conftest.
$ac_ext >&5
22003 if test $rc -ne 0; then :
22005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22006 $as_echo "no" >&6; }
22009 if test "x$enable_linux_builtin" != xyes
; then
22011 grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \
22012 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22014 if test $rc -ne 0; then
22016 for file in fs
/attr.c
; do
22017 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
22018 "$LINUX/$file" 2>/dev
/null
22020 if test $rc -eq 0; then
22025 if test $export -eq 0; then :
22035 if test $rc -ne 0; then :
22037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22038 $as_echo "no" >&6; }
22042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22043 $as_echo "yes" >&6; }
22045 $as_echo "#define HAVE_SETATTR_PREPARE 1" >>confdefs.h
22052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
22053 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
22057 cat confdefs.h
- <<_ACEOF >conftest.c
22060 #include <linux/fs.h>
22066 insert_inode_locked(NULL);
22076 cat - <<_ACEOF >conftest.h
22081 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22082 echo "obj-m := conftest.o" >build
/Makefile
22084 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22085 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22087 (eval $ac_try) 2>&5
22089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22090 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22092 (eval $ac_try) 2>&5
22094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22095 test $ac_status = 0; }; }; then :
22098 $as_echo "$as_me: failed program was:" >&5
22099 sed 's/^/| /' conftest.
$ac_ext >&5
22107 if test $rc -ne 0; then :
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22110 $as_echo "no" >&6; }
22113 if test "x$enable_linux_builtin" != xyes
; then
22115 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
22116 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22118 if test $rc -ne 0; then
22120 for file in fs
/inode.c
; do
22121 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
22122 "$LINUX/$file" 2>/dev
/null
22124 if test $rc -eq 0; then
22129 if test $export -eq 0; then :
22139 if test $rc -ne 0; then :
22141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22142 $as_echo "no" >&6; }
22146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22147 $as_echo "yes" >&6; }
22149 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
22156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
22157 $as_echo_n "checking whether d_make_root() is available... " >&6; }
22161 cat confdefs.h
- <<_ACEOF >conftest.c
22164 #include <linux/dcache.h>
22180 cat - <<_ACEOF >conftest.h
22185 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22186 echo "obj-m := conftest.o" >build
/Makefile
22188 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22189 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22191 (eval $ac_try) 2>&5
22193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22194 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22196 (eval $ac_try) 2>&5
22198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22199 test $ac_status = 0; }; }; then :
22202 $as_echo "$as_me: failed program was:" >&5
22203 sed 's/^/| /' conftest.
$ac_ext >&5
22211 if test $rc -ne 0; then :
22213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22214 $as_echo "no" >&6; }
22217 if test "x$enable_linux_builtin" != xyes
; then
22219 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
22220 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22222 if test $rc -ne 0; then
22224 for file in fs
/dcache.c
; do
22225 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
22226 "$LINUX/$file" 2>/dev
/null
22228 if test $rc -eq 0; then
22233 if test $export -eq 0; then :
22243 if test $rc -ne 0; then :
22245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22246 $as_echo "no" >&6; }
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22251 $as_echo "yes" >&6; }
22253 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
22260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
22261 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
22265 cat confdefs.h
- <<_ACEOF >conftest.c
22268 #include <linux/dcache.h>
22274 d_obtain_alias(NULL);
22284 cat - <<_ACEOF >conftest.h
22289 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22290 echo "obj-m := conftest.o" >build
/Makefile
22292 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22293 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22295 (eval $ac_try) 2>&5
22297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22298 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22300 (eval $ac_try) 2>&5
22302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22303 test $ac_status = 0; }; }; then :
22306 $as_echo "$as_me: failed program was:" >&5
22307 sed 's/^/| /' conftest.
$ac_ext >&5
22315 if test $rc -ne 0; then :
22317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22318 $as_echo "no" >&6; }
22321 if test "x$enable_linux_builtin" != xyes
; then
22323 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
22324 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22326 if test $rc -ne 0; then
22328 for file in fs
/dcache.c
; do
22329 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
22330 "$LINUX/$file" 2>/dev
/null
22332 if test $rc -eq 0; then
22337 if test $export -eq 0; then :
22347 if test $rc -ne 0; then :
22349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22350 $as_echo "no" >&6; }
22354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22355 $as_echo "yes" >&6; }
22357 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
22364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
22365 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
22369 cat confdefs.h
- <<_ACEOF >conftest.c
22372 #include <linux/dcache.h>
22378 struct inode *ip = NULL;
22379 d_prune_aliases(ip);
22389 cat - <<_ACEOF >conftest.h
22394 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22395 echo "obj-m := conftest.o" >build
/Makefile
22397 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22398 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22400 (eval $ac_try) 2>&5
22402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22403 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22404 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22405 (eval $ac_try) 2>&5
22407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22408 test $ac_status = 0; }; }; then :
22411 $as_echo "$as_me: failed program was:" >&5
22412 sed 's/^/| /' conftest.
$ac_ext >&5
22420 if test $rc -ne 0; then :
22422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22423 $as_echo "no" >&6; }
22426 if test "x$enable_linux_builtin" != xyes
; then
22428 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
22429 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22431 if test $rc -ne 0; then
22433 for file in fs
/dcache.c
; do
22434 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
22435 "$LINUX/$file" 2>/dev
/null
22437 if test $rc -eq 0; then
22442 if test $export -eq 0; then :
22452 if test $rc -ne 0; then :
22454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22455 $as_echo "no" >&6; }
22459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22460 $as_echo "yes" >&6; }
22462 $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
22469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
22470 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
22474 cat confdefs.h
- <<_ACEOF >conftest.c
22477 #include <linux/dcache.h>
22483 d_set_d_op(NULL, NULL);
22493 cat - <<_ACEOF >conftest.h
22498 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22499 echo "obj-m := conftest.o" >build
/Makefile
22501 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22502 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22504 (eval $ac_try) 2>&5
22506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22507 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22509 (eval $ac_try) 2>&5
22511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22512 test $ac_status = 0; }; }; then :
22515 $as_echo "$as_me: failed program was:" >&5
22516 sed 's/^/| /' conftest.
$ac_ext >&5
22524 if test $rc -ne 0; then :
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22527 $as_echo "no" >&6; }
22530 if test "x$enable_linux_builtin" != xyes
; then
22532 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
22533 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22535 if test $rc -ne 0; then
22537 for file in fs
/dcache.c
; do
22538 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
22539 "$LINUX/$file" 2>/dev
/null
22541 if test $rc -eq 0; then
22546 if test $export -eq 0; then :
22556 if test $rc -ne 0; then :
22558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22559 $as_echo "no" >&6; }
22563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22564 $as_echo "yes" >&6; }
22566 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
22574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
22575 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
22578 cat confdefs.h
- <<_ACEOF >conftest.c
22581 #include <linux/dcache.h>
22583 int revalidate (struct dentry *dentry,
22584 struct nameidata *nidata) { return 0; }
22586 static const struct dentry_operations
22587 dops __attribute__ ((unused)) = {
22588 .d_revalidate = revalidate,
22604 cat - <<_ACEOF >conftest.h
22609 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22610 echo "obj-m := conftest.o" >build
/Makefile
22612 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22613 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22615 (eval $ac_try) 2>&5
22617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22618 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22620 (eval $ac_try) 2>&5
22622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22623 test $ac_status = 0; }; }; then :
22625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22626 $as_echo "yes" >&6; }
22628 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
22632 $as_echo "$as_me: failed program was:" >&5
22633 sed 's/^/| /' conftest.
$ac_ext >&5
22635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22636 $as_echo "no" >&6; }
22646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
22647 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
22650 cat confdefs.h
- <<_ACEOF >conftest.c
22653 #include <linux/dcache.h>
22655 const struct dentry_operations test_d_op = {
22656 .d_revalidate = NULL,
22663 struct dentry d __attribute__ ((unused));
22665 d.d_op = &test_d_op;
22675 cat - <<_ACEOF >conftest.h
22680 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22681 echo "obj-m := conftest.o" >build
/Makefile
22683 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22684 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22686 (eval $ac_try) 2>&5
22688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22689 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22690 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22691 (eval $ac_try) 2>&5
22693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22694 test $ac_status = 0; }; }; then :
22696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22697 $as_echo "yes" >&6; }
22699 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
22703 $as_echo "$as_me: failed program was:" >&5
22704 sed 's/^/| /' conftest.
$ac_ext >&5
22706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22707 $as_echo "no" >&6; }
22716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
22717 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
22721 cat confdefs.h
- <<_ACEOF >conftest.c
22724 #include <linux/mm.h>
22730 truncate_setsize(NULL, 0);
22740 cat - <<_ACEOF >conftest.h
22745 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22746 echo "obj-m := conftest.o" >build
/Makefile
22748 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22749 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22750 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22751 (eval $ac_try) 2>&5
22753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22754 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22756 (eval $ac_try) 2>&5
22758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22759 test $ac_status = 0; }; }; then :
22762 $as_echo "$as_me: failed program was:" >&5
22763 sed 's/^/| /' conftest.
$ac_ext >&5
22771 if test $rc -ne 0; then :
22773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22774 $as_echo "no" >&6; }
22777 if test "x$enable_linux_builtin" != xyes
; then
22779 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
22780 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22782 if test $rc -ne 0; then
22784 for file in mm
/truncate.c
; do
22785 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
22786 "$LINUX/$file" 2>/dev
/null
22788 if test $rc -eq 0; then
22793 if test $export -eq 0; then :
22803 if test $rc -ne 0; then :
22805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22806 $as_echo "no" >&6; }
22810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22811 $as_echo "yes" >&6; }
22813 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
22821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
22822 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
22825 cat confdefs.h
- <<_ACEOF >conftest.c
22828 #include <linux/security.h>
22834 struct inode *ip __attribute__ ((unused)) = NULL;
22835 struct inode *dip __attribute__ ((unused)) = NULL;
22836 const struct qstr *str __attribute__ ((unused)) = NULL;
22837 char *name __attribute__ ((unused)) = NULL;
22838 void *value __attribute__ ((unused)) = NULL;
22839 size_t len __attribute__ ((unused)) = 0;
22841 security_inode_init_security(ip, dip, str, &name, &value, &len);
22851 cat - <<_ACEOF >conftest.h
22856 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22857 echo "obj-m := conftest.o" >build
/Makefile
22859 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22860 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22862 (eval $ac_try) 2>&5
22864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22865 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22867 (eval $ac_try) 2>&5
22869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22870 test $ac_status = 0; }; }; then :
22872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22873 $as_echo "yes" >&6; }
22875 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
22879 $as_echo "$as_me: failed program was:" >&5
22880 sed 's/^/| /' conftest.
$ac_ext >&5
22882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22883 $as_echo "no" >&6; }
22893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
22894 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
22897 cat confdefs.h
- <<_ACEOF >conftest.c
22900 #include <linux/security.h>
22906 struct inode *ip __attribute__ ((unused)) = NULL;
22907 struct inode *dip __attribute__ ((unused)) = NULL;
22908 const struct qstr *str __attribute__ ((unused)) = NULL;
22909 initxattrs func __attribute__ ((unused)) = NULL;
22911 security_inode_init_security(ip, dip, str, func, NULL);
22921 cat - <<_ACEOF >conftest.h
22926 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22927 echo "obj-m := conftest.o" >build
/Makefile
22929 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22930 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22932 (eval $ac_try) 2>&5
22934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22935 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22937 (eval $ac_try) 2>&5
22939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22940 test $ac_status = 0; }; }; then :
22942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22943 $as_echo "yes" >&6; }
22945 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
22949 $as_echo "$as_me: failed program was:" >&5
22950 sed 's/^/| /' conftest.
$ac_ext >&5
22952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22953 $as_echo "no" >&6; }
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
22963 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
22967 cat confdefs.h
- <<_ACEOF >conftest.c
22970 #include <linux/fs.h>
22976 mount_nodev(NULL, 0, NULL, NULL);
22986 cat - <<_ACEOF >conftest.h
22991 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22992 echo "obj-m := conftest.o" >build
/Makefile
22994 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22995 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22997 (eval $ac_try) 2>&5
22999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23000 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23002 (eval $ac_try) 2>&5
23004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23005 test $ac_status = 0; }; }; then :
23008 $as_echo "$as_me: failed program was:" >&5
23009 sed 's/^/| /' conftest.
$ac_ext >&5
23017 if test $rc -ne 0; then :
23019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23020 $as_echo "no" >&6; }
23023 if test "x$enable_linux_builtin" != xyes
; then
23025 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
23026 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23028 if test $rc -ne 0; then
23030 for file in fs
/super.c
; do
23031 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
23032 "$LINUX/$file" 2>/dev
/null
23034 if test $rc -eq 0; then
23039 if test $export -eq 0; then :
23049 if test $rc -ne 0; then :
23051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23052 $as_echo "no" >&6; }
23056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23057 $as_echo "yes" >&6; }
23059 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
23067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
23068 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
23071 cat confdefs.h
- <<_ACEOF >conftest.c
23074 #include <linux/fs.h>
23076 int shrink(struct shrinker *s, struct shrink_control *sc)
23079 static const struct super_block
23080 sb __attribute__ ((unused)) = {
23081 .s_shrink.shrink = shrink,
23082 .s_shrink.seeks = DEFAULT_SEEKS,
23083 .s_shrink.batch = 0,
23099 cat - <<_ACEOF >conftest.h
23104 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23105 echo "obj-m := conftest.o" >build
/Makefile
23107 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23108 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23110 (eval $ac_try) 2>&5
23112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23113 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23115 (eval $ac_try) 2>&5
23117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23118 test $ac_status = 0; }; }; then :
23120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23121 $as_echo "yes" >&6; }
23123 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
23128 $as_echo "$as_me: failed program was:" >&5
23129 sed 's/^/| /' conftest.
$ac_ext >&5
23131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23132 $as_echo "no" >&6; }
23142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
23143 $as_echo_n "checking whether shrink_control has nid... " >&6; }
23146 cat confdefs.h
- <<_ACEOF >conftest.c
23149 #include <linux/fs.h>
23155 struct shrink_control sc __attribute__ ((unused));
23156 unsigned long scnidsize __attribute__ ((unused)) =
23167 cat - <<_ACEOF >conftest.h
23172 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23173 echo "obj-m := conftest.o" >build
/Makefile
23175 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23176 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23178 (eval $ac_try) 2>&5
23180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23181 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23183 (eval $ac_try) 2>&5
23185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23186 test $ac_status = 0; }; }; then :
23188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23189 $as_echo "yes" >&6; }
23191 $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
23195 $as_echo "$as_me: failed program was:" >&5
23196 sed 's/^/| /' conftest.
$ac_ext >&5
23198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23199 $as_echo "no" >&6; }
23209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
23210 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
23213 cat confdefs.h
- <<_ACEOF >conftest.c
23216 #include <linux/fs.h>
23222 struct super_block sb __attribute__ ((unused));
23224 INIT_LIST_HEAD(&sb.s_instances);
23234 cat - <<_ACEOF >conftest.h
23239 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23240 echo "obj-m := conftest.o" >build
/Makefile
23242 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23243 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23245 (eval $ac_try) 2>&5
23247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23248 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23250 (eval $ac_try) 2>&5
23252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23253 test $ac_status = 0; }; }; then :
23255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23256 $as_echo "yes" >&6; }
23258 $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
23262 $as_echo "$as_me: failed program was:" >&5
23263 sed 's/^/| /' conftest.
$ac_ext >&5
23265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23266 $as_echo "no" >&6; }
23275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
23276 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
23279 cat confdefs.h
- <<_ACEOF >conftest.c
23282 #include <linux/fs.h>
23288 struct super_block sb __attribute__ ((unused));
23299 cat - <<_ACEOF >conftest.h
23304 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23305 echo "obj-m := conftest.o" >build
/Makefile
23307 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23308 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23310 (eval $ac_try) 2>&5
23312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23313 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23315 (eval $ac_try) 2>&5
23317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23318 test $ac_status = 0; }; }; then :
23320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23321 $as_echo "yes" >&6; }
23323 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
23327 $as_echo "$as_me: failed program was:" >&5
23328 sed 's/^/| /' conftest.
$ac_ext >&5
23330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23331 $as_echo "no" >&6; }
23341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_setup_bdi_name() exists" >&5
23342 $as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; }
23346 cat confdefs.h
- <<_ACEOF >conftest.c
23349 #include <linux/fs.h>
23350 struct super_block sb;
23356 char *name = "bdi";
23357 atomic_long_t zfs_bdi_seq;
23358 int error __attribute__((unused)) =
23359 super_setup_bdi_name(&sb, "%.28s-%ld", name, atomic_long_inc_return(&zfs_bdi_seq));
23369 cat - <<_ACEOF >conftest.h
23374 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23375 echo "obj-m := conftest.o" >build
/Makefile
23377 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23378 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23379 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23380 (eval $ac_try) 2>&5
23382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23383 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23385 (eval $ac_try) 2>&5
23387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23388 test $ac_status = 0; }; }; then :
23391 $as_echo "$as_me: failed program was:" >&5
23392 sed 's/^/| /' conftest.
$ac_ext >&5
23400 if test $rc -ne 0; then :
23402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23403 $as_echo "no" >&6; }
23404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
23405 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
23409 cat confdefs.h
- <<_ACEOF >conftest.c
23412 #include <linux/backing-dev.h>
23413 struct backing_dev_info bdi;
23419 char *name = "bdi";
23420 int error __attribute__((unused)) =
23421 bdi_setup_and_register(&bdi, name);
23431 cat - <<_ACEOF >conftest.h
23436 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23437 echo "obj-m := conftest.o" >build
/Makefile
23439 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23440 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23442 (eval $ac_try) 2>&5
23444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23445 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23446 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23447 (eval $ac_try) 2>&5
23449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23450 test $ac_status = 0; }; }; then :
23453 $as_echo "$as_me: failed program was:" >&5
23454 sed 's/^/| /' conftest.
$ac_ext >&5
23462 if test $rc -ne 0; then :
23464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23465 $as_echo "no" >&6; }
23466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23467 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23471 cat confdefs.h
- <<_ACEOF >conftest.c
23474 #include <linux/backing-dev.h>
23475 struct backing_dev_info bdi;
23481 char *name = "bdi";
23482 unsigned int cap = BDI_CAP_MAP_COPY;
23483 int error __attribute__((unused)) =
23484 bdi_setup_and_register(&bdi, name, cap);
23494 cat - <<_ACEOF >conftest.h
23499 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23500 echo "obj-m := conftest.o" >build
/Makefile
23502 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23503 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23505 (eval $ac_try) 2>&5
23507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23508 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23510 (eval $ac_try) 2>&5
23512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23513 test $ac_status = 0; }; }; then :
23516 $as_echo "$as_me: failed program was:" >&5
23517 sed 's/^/| /' conftest.
$ac_ext >&5
23525 if test $rc -ne 0; then :
23527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23528 $as_echo "no" >&6; }
23531 if test "x$enable_linux_builtin" != xyes
; then
23533 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23534 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23536 if test $rc -ne 0; then
23538 for file in mm
/backing-dev.c
; do
23539 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23540 "$LINUX/$file" 2>/dev
/null
23542 if test $rc -eq 0; then
23547 if test $export -eq 0; then :
23557 if test $rc -ne 0; then :
23559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23560 $as_echo "no" >&6; }
23564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23565 $as_echo "yes" >&6; }
23567 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23575 if test "x$enable_linux_builtin" != xyes
; then
23577 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23578 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23580 if test $rc -ne 0; then
23582 for file in mm
/backing-dev.c
; do
23583 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23584 "$LINUX/$file" 2>/dev
/null
23586 if test $rc -eq 0; then
23591 if test $export -eq 0; then :
23601 if test $rc -ne 0; then :
23603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23604 $as_echo "no" >&6; }
23605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23606 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23610 cat confdefs.h
- <<_ACEOF >conftest.c
23613 #include <linux/backing-dev.h>
23614 struct backing_dev_info bdi;
23620 char *name = "bdi";
23621 unsigned int cap = BDI_CAP_MAP_COPY;
23622 int error __attribute__((unused)) =
23623 bdi_setup_and_register(&bdi, name, cap);
23633 cat - <<_ACEOF >conftest.h
23638 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23639 echo "obj-m := conftest.o" >build
/Makefile
23641 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23642 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23644 (eval $ac_try) 2>&5
23646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23647 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23649 (eval $ac_try) 2>&5
23651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23652 test $ac_status = 0; }; }; then :
23655 $as_echo "$as_me: failed program was:" >&5
23656 sed 's/^/| /' conftest.
$ac_ext >&5
23664 if test $rc -ne 0; then :
23666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23667 $as_echo "no" >&6; }
23670 if test "x$enable_linux_builtin" != xyes
; then
23672 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23673 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23675 if test $rc -ne 0; then
23677 for file in mm
/backing-dev.c
; do
23678 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23679 "$LINUX/$file" 2>/dev
/null
23681 if test $rc -eq 0; then
23686 if test $export -eq 0; then :
23696 if test $rc -ne 0; then :
23698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23699 $as_echo "no" >&6; }
23703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23704 $as_echo "yes" >&6; }
23706 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23716 $as_echo "yes" >&6; }
23718 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23726 if test "x$enable_linux_builtin" != xyes
; then
23728 grep -q -E '[[:space:]]super_setup_bdi_name[[:space:]]' \
23729 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23731 if test $rc -ne 0; then
23733 for file in fs
/super.c
; do
23734 grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \
23735 "$LINUX/$file" 2>/dev
/null
23737 if test $rc -eq 0; then
23742 if test $export -eq 0; then :
23752 if test $rc -ne 0; then :
23754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23755 $as_echo "no" >&6; }
23756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
23757 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
23761 cat confdefs.h
- <<_ACEOF >conftest.c
23764 #include <linux/backing-dev.h>
23765 struct backing_dev_info bdi;
23771 char *name = "bdi";
23772 int error __attribute__((unused)) =
23773 bdi_setup_and_register(&bdi, name);
23783 cat - <<_ACEOF >conftest.h
23788 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23789 echo "obj-m := conftest.o" >build
/Makefile
23791 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23792 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23793 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23794 (eval $ac_try) 2>&5
23796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23797 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23799 (eval $ac_try) 2>&5
23801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23802 test $ac_status = 0; }; }; then :
23805 $as_echo "$as_me: failed program was:" >&5
23806 sed 's/^/| /' conftest.
$ac_ext >&5
23814 if test $rc -ne 0; then :
23816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23817 $as_echo "no" >&6; }
23818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23819 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23823 cat confdefs.h
- <<_ACEOF >conftest.c
23826 #include <linux/backing-dev.h>
23827 struct backing_dev_info bdi;
23833 char *name = "bdi";
23834 unsigned int cap = BDI_CAP_MAP_COPY;
23835 int error __attribute__((unused)) =
23836 bdi_setup_and_register(&bdi, name, cap);
23846 cat - <<_ACEOF >conftest.h
23851 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23852 echo "obj-m := conftest.o" >build
/Makefile
23854 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23855 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23857 (eval $ac_try) 2>&5
23859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23860 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23862 (eval $ac_try) 2>&5
23864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23865 test $ac_status = 0; }; }; then :
23868 $as_echo "$as_me: failed program was:" >&5
23869 sed 's/^/| /' conftest.
$ac_ext >&5
23877 if test $rc -ne 0; then :
23879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23880 $as_echo "no" >&6; }
23883 if test "x$enable_linux_builtin" != xyes
; then
23885 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23886 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23888 if test $rc -ne 0; then
23890 for file in mm
/backing-dev.c
; do
23891 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23892 "$LINUX/$file" 2>/dev
/null
23894 if test $rc -eq 0; then
23899 if test $export -eq 0; then :
23909 if test $rc -ne 0; then :
23911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23912 $as_echo "no" >&6; }
23916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23917 $as_echo "yes" >&6; }
23919 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23927 if test "x$enable_linux_builtin" != xyes
; then
23929 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23930 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23932 if test $rc -ne 0; then
23934 for file in mm
/backing-dev.c
; do
23935 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23936 "$LINUX/$file" 2>/dev
/null
23938 if test $rc -eq 0; then
23943 if test $export -eq 0; then :
23953 if test $rc -ne 0; then :
23955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23956 $as_echo "no" >&6; }
23957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23958 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23962 cat confdefs.h
- <<_ACEOF >conftest.c
23965 #include <linux/backing-dev.h>
23966 struct backing_dev_info bdi;
23972 char *name = "bdi";
23973 unsigned int cap = BDI_CAP_MAP_COPY;
23974 int error __attribute__((unused)) =
23975 bdi_setup_and_register(&bdi, name, cap);
23985 cat - <<_ACEOF >conftest.h
23990 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23991 echo "obj-m := conftest.o" >build
/Makefile
23993 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23994 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23996 (eval $ac_try) 2>&5
23998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23999 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24001 (eval $ac_try) 2>&5
24003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24004 test $ac_status = 0; }; }; then :
24007 $as_echo "$as_me: failed program was:" >&5
24008 sed 's/^/| /' conftest.
$ac_ext >&5
24016 if test $rc -ne 0; then :
24018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24019 $as_echo "no" >&6; }
24022 if test "x$enable_linux_builtin" != xyes
; then
24024 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
24025 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
24027 if test $rc -ne 0; then
24029 for file in mm
/backing-dev.c
; do
24030 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
24031 "$LINUX/$file" 2>/dev
/null
24033 if test $rc -eq 0; then
24038 if test $export -eq 0; then :
24048 if test $rc -ne 0; then :
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24051 $as_echo "no" >&6; }
24055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24056 $as_echo "yes" >&6; }
24058 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
24067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24068 $as_echo "yes" >&6; }
24070 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
24079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24080 $as_echo "yes" >&6; }
24082 $as_echo "#define HAVE_SUPER_SETUP_BDI_NAME 1" >>confdefs.h
24090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
24091 $as_echo_n "checking whether set_nlink() is available... " >&6; }
24094 cat confdefs.h
- <<_ACEOF >conftest.c
24097 #include <linux/fs.h>
24104 unsigned int link = 0;
24105 (void) set_nlink(&node, link);
24115 cat - <<_ACEOF >conftest.h
24120 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24121 echo "obj-m := conftest.o" >build
/Makefile
24123 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24124 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24126 (eval $ac_try) 2>&5
24128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24129 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24131 (eval $ac_try) 2>&5
24133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24134 test $ac_status = 0; }; }; then :
24136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24137 $as_echo "yes" >&6; }
24139 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
24143 $as_echo "$as_me: failed program was:" >&5
24144 sed 's/^/| /' conftest.
$ac_ext >&5
24146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24147 $as_echo "no" >&6; }
24157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
24158 $as_echo_n "checking whether elevator_change() is available... " >&6; }
24159 tmp_flags
="$EXTRA_KCFLAGS"
24160 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
24163 cat confdefs.h
- <<_ACEOF >conftest.c
24166 #include <linux/blkdev.h>
24167 #include <linux/elevator.h>
24174 struct request_queue *q = NULL;
24175 char *elevator = NULL;
24176 ret = elevator_change(q, elevator);
24186 cat - <<_ACEOF >conftest.h
24191 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24192 echo "obj-m := conftest.o" >build
/Makefile
24194 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24195 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24197 (eval $ac_try) 2>&5
24199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24200 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24202 (eval $ac_try) 2>&5
24204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24205 test $ac_status = 0; }; }; then :
24207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24208 $as_echo "yes" >&6; }
24210 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
24214 $as_echo "$as_me: failed program was:" >&5
24215 sed 's/^/| /' conftest.
$ac_ext >&5
24217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24218 $as_echo "no" >&6; }
24226 EXTRA_KCFLAGS
="$tmp_flags"
24228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
24229 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
24232 cat confdefs.h
- <<_ACEOF >conftest.c
24235 #include <linux/fs.h>
24241 struct file_system_type *type = NULL;
24242 int (*test)(struct super_block *,void *) = NULL;
24243 int (*set)(struct super_block *,void *) = NULL;
24246 (void) sget(type, test, set, flags, data);
24256 cat - <<_ACEOF >conftest.h
24261 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24262 echo "obj-m := conftest.o" >build
/Makefile
24264 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24265 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24267 (eval $ac_try) 2>&5
24269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24270 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24272 (eval $ac_try) 2>&5
24274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24275 test $ac_status = 0; }; }; then :
24277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24278 $as_echo "yes" >&6; }
24280 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
24284 $as_echo "$as_me: failed program was:" >&5
24285 sed 's/^/| /' conftest.
$ac_ext >&5
24287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24288 $as_echo "no" >&6; }
24297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
24298 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
24302 cat confdefs.h
- <<_ACEOF >conftest.c
24305 #include <linux/fs.h>
24311 struct file *fp __attribute__ ((unused)) = NULL;
24312 struct inode *ip __attribute__ ((unused)) = NULL;
24313 loff_t offset __attribute__ ((unused)) = 0;
24314 loff_t maxsize __attribute__ ((unused)) = 0;
24316 lseek_execute(fp, ip, offset, maxsize);
24326 cat - <<_ACEOF >conftest.h
24331 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24332 echo "obj-m := conftest.o" >build
/Makefile
24334 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24335 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24337 (eval $ac_try) 2>&5
24339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24340 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24342 (eval $ac_try) 2>&5
24344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24345 test $ac_status = 0; }; }; then :
24348 $as_echo "$as_me: failed program was:" >&5
24349 sed 's/^/| /' conftest.
$ac_ext >&5
24357 if test $rc -ne 0; then :
24359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24360 $as_echo "no" >&6; }
24363 if test "x$enable_linux_builtin" != xyes
; then
24365 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
24366 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
24368 if test $rc -ne 0; then
24370 for file in fs
/read_write.c
; do
24371 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
24372 "$LINUX/$file" 2>/dev
/null
24374 if test $rc -eq 0; then
24379 if test $export -eq 0; then :
24389 if test $rc -ne 0; then :
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24392 $as_echo "no" >&6; }
24396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24397 $as_echo "yes" >&6; }
24399 $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
24407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate_shared() is available" >&5
24408 $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
24411 cat confdefs.h
- <<_ACEOF >conftest.c
24414 #include <linux/fs.h>
24415 int iterate(struct file *filp, struct dir_context * context)
24418 static const struct file_operations fops
24419 __attribute__ ((unused)) = {
24420 .iterate_shared = iterate,
24436 cat - <<_ACEOF >conftest.h
24441 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24442 echo "obj-m := conftest.o" >build
/Makefile
24444 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24445 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24446 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24447 (eval $ac_try) 2>&5
24449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24450 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24451 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24452 (eval $ac_try) 2>&5
24454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24455 test $ac_status = 0; }; }; then :
24457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24458 $as_echo "yes" >&6; }
24460 $as_echo "#define HAVE_VFS_ITERATE_SHARED 1" >>confdefs.h
24464 $as_echo "$as_me: failed program was:" >&5
24465 sed 's/^/| /' conftest.
$ac_ext >&5
24467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24468 $as_echo "no" >&6; }
24470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
24471 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
24474 cat confdefs.h
- <<_ACEOF >conftest.c
24477 #include <linux/fs.h>
24478 int iterate(struct file *filp, struct dir_context * context)
24481 static const struct file_operations fops
24482 __attribute__ ((unused)) = {
24483 .iterate = iterate,
24499 cat - <<_ACEOF >conftest.h
24504 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24505 echo "obj-m := conftest.o" >build
/Makefile
24507 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24508 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24510 (eval $ac_try) 2>&5
24512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24513 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24515 (eval $ac_try) 2>&5
24517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24518 test $ac_status = 0; }; }; then :
24520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24521 $as_echo "yes" >&6; }
24523 $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
24527 $as_echo "$as_me: failed program was:" >&5
24528 sed 's/^/| /' conftest.
$ac_ext >&5
24530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24531 $as_echo "no" >&6; }
24533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
24534 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
24537 cat confdefs.h
- <<_ACEOF >conftest.c
24540 #include <linux/fs.h>
24541 int readdir(struct file *filp, void *entry, filldir_t func)
24544 static const struct file_operations fops
24545 __attribute__ ((unused)) = {
24546 .readdir = readdir,
24562 cat - <<_ACEOF >conftest.h
24567 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24568 echo "obj-m := conftest.o" >build
/Makefile
24570 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24571 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24573 (eval $ac_try) 2>&5
24575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24576 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24577 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24578 (eval $ac_try) 2>&5
24580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24581 test $ac_status = 0; }; }; then :
24583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24584 $as_echo "yes" >&6; }
24586 $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
24590 $as_echo "$as_me: failed program was:" >&5
24591 sed 's/^/| /' conftest.
$ac_ext >&5
24593 as_fn_error $?
"no; file a bug report with ZFSOnLinux" "$LINENO" 5
24616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
24617 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
24620 cat confdefs.h
- <<_ACEOF >conftest.c
24623 #include <linux/fs.h>
24625 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
24627 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
24630 static const struct file_operations
24631 fops __attribute__ ((unused)) = {
24632 .read_iter = test_read,
24633 .write_iter = test_write,
24649 cat - <<_ACEOF >conftest.h
24654 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24655 echo "obj-m := conftest.o" >build
/Makefile
24657 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24658 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24660 (eval $ac_try) 2>&5
24662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24663 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24664 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24665 (eval $ac_try) 2>&5
24667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24668 test $ac_status = 0; }; }; then :
24670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24671 $as_echo "yes" >&6; }
24673 $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
24676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether new_sync_read() is available" >&5
24677 $as_echo_n "checking whether new_sync_read() is available... " >&6; }
24680 cat confdefs.h
- <<_ACEOF >conftest.c
24683 #include <linux/fs.h>
24689 new_sync_read(NULL, NULL, 0, NULL);
24699 cat - <<_ACEOF >conftest.h
24704 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24705 echo "obj-m := conftest.o" >build
/Makefile
24707 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24708 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24710 (eval $ac_try) 2>&5
24712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24713 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24715 (eval $ac_try) 2>&5
24717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24718 test $ac_status = 0; }; }; then :
24720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24721 $as_echo "yes" >&6; }
24723 $as_echo "#define HAVE_NEW_SYNC_READ 1" >>confdefs.h
24727 $as_echo "$as_me: failed program was:" >&5
24728 sed 's/^/| /' conftest.
$ac_ext >&5
24730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24731 $as_echo "no" >&6; }
24742 $as_echo "$as_me: failed program was:" >&5
24743 sed 's/^/| /' conftest.
$ac_ext >&5
24745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24746 $as_echo "no" >&6; }
24755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5
24756 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
24759 cat confdefs.h
- <<_ACEOF >conftest.c
24762 #include <linux/fs.h>
24769 struct kiocb *iocb = NULL;
24770 struct iov_iter *iov = NULL;
24771 generic_write_checks(iocb, iov);
24781 cat - <<_ACEOF >conftest.h
24786 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24787 echo "obj-m := conftest.o" >build
/Makefile
24789 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24790 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24792 (eval $ac_try) 2>&5
24794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24795 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24797 (eval $ac_try) 2>&5
24799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24800 test $ac_status = 0; }; }; then :
24802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24803 $as_echo "yes" >&6; }
24805 $as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h
24809 $as_echo "$as_me: failed program was:" >&5
24810 sed 's/^/| /' conftest.
$ac_ext >&5
24812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24813 $as_echo "no" >&6; }
24823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5
24824 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
24827 cat confdefs.h
- <<_ACEOF >conftest.c
24830 #include <linux/pagemap.h>
24837 kmap_atomic(&page);
24847 cat - <<_ACEOF >conftest.h
24852 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24853 echo "obj-m := conftest.o" >build
/Makefile
24855 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24856 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24857 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24858 (eval $ac_try) 2>&5
24860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24861 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24863 (eval $ac_try) 2>&5
24865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24866 test $ac_status = 0; }; }; then :
24868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24869 $as_echo "yes" >&6; }
24871 $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h
24875 $as_echo "$as_me: failed program was:" >&5
24876 sed 's/^/| /' conftest.
$ac_ext >&5
24878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24879 $as_echo "no" >&6; }
24889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5
24890 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
24893 cat confdefs.h
- <<_ACEOF >conftest.c
24896 #include <linux/namei.h>
24902 struct path *p = NULL;
24903 follow_down_one(p);
24913 cat - <<_ACEOF >conftest.h
24918 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24919 echo "obj-m := conftest.o" >build
/Makefile
24921 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24922 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24924 (eval $ac_try) 2>&5
24926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24927 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24929 (eval $ac_try) 2>&5
24931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24932 test $ac_status = 0; }; }; then :
24934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24935 $as_echo "yes" >&6; }
24937 $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h
24941 $as_echo "$as_me: failed program was:" >&5
24942 sed 's/^/| /' conftest.
$ac_ext >&5
24944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24945 $as_echo "no" >&6; }
24955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5
24956 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
24959 cat confdefs.h
- <<_ACEOF >conftest.c
24962 #include <linux/blkdev.h>
24964 int make_request(struct request_queue *q, struct bio *bio)
24973 blk_queue_make_request(NULL, &make_request);
24983 cat - <<_ACEOF >conftest.h
24988 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24989 echo "obj-m := conftest.o" >build
/Makefile
24991 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24992 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24994 (eval $ac_try) 2>&5
24996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24997 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24999 (eval $ac_try) 2>&5
25001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25002 test $ac_status = 0; }; }; then :
25004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25005 $as_echo "yes" >&6; }
25007 $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h
25010 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h
25014 $as_echo "$as_me: failed program was:" >&5
25015 sed 's/^/| /' conftest.
$ac_ext >&5
25017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25018 $as_echo "no" >&6; }
25019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5
25020 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
25023 cat confdefs.h
- <<_ACEOF >conftest.c
25026 #include <linux/blkdev.h>
25028 void make_request(struct request_queue *q, struct bio *bio)
25037 blk_queue_make_request(NULL, &make_request);
25047 cat - <<_ACEOF >conftest.h
25052 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25053 echo "obj-m := conftest.o" >build
/Makefile
25055 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25056 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25058 (eval $ac_try) 2>&5
25060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25061 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25063 (eval $ac_try) 2>&5
25065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25066 test $ac_status = 0; }; }; then :
25068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25069 $as_echo "yes" >&6; }
25071 $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h
25075 $as_echo "$as_me: failed program was:" >&5
25076 sed 's/^/| /' conftest.
$ac_ext >&5
25078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25079 $as_echo "no" >&6; }
25080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5
25081 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
25084 cat confdefs.h
- <<_ACEOF >conftest.c
25087 #include <linux/blkdev.h>
25089 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
25091 return (BLK_QC_T_NONE);
25098 blk_queue_make_request(NULL, &make_request);
25108 cat - <<_ACEOF >conftest.h
25113 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25114 echo "obj-m := conftest.o" >build
/Makefile
25116 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25117 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25119 (eval $ac_try) 2>&5
25121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25122 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25124 (eval $ac_try) 2>&5
25126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25127 test $ac_status = 0; }; }; then :
25129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25130 $as_echo "yes" >&6; }
25132 $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h
25135 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h
25139 $as_echo "$as_me: failed program was:" >&5
25140 sed 's/^/| /' conftest.
$ac_ext >&5
25142 as_fn_error $?
"no - Please file a bug report at
25143 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
25167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 3 arg generic IO accounting symbols are available" >&5
25168 $as_echo_n "checking whether 3 arg generic IO accounting symbols are available... " >&6; }
25172 cat confdefs.h
- <<_ACEOF >conftest.c
25175 #include <linux/bio.h>
25177 void (*generic_start_io_acct_f)(int, unsigned long,
25178 struct hd_struct *) = &generic_start_io_acct;
25179 void (*generic_end_io_acct_f)(int, struct hd_struct *,
25180 unsigned long) = &generic_end_io_acct;
25186 generic_start_io_acct(0, 0, NULL);
25187 generic_end_io_acct(0, NULL, 0);
25197 cat - <<_ACEOF >conftest.h
25202 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25203 echo "obj-m := conftest.o" >build
/Makefile
25205 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25206 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25208 (eval $ac_try) 2>&5
25210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25211 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25213 (eval $ac_try) 2>&5
25215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25216 test $ac_status = 0; }; }; then :
25219 $as_echo "$as_me: failed program was:" >&5
25220 sed 's/^/| /' conftest.
$ac_ext >&5
25228 if test $rc -ne 0; then :
25230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25231 $as_echo "no" >&6; }
25234 if test "x$enable_linux_builtin" != xyes
; then
25236 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
25237 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
25239 if test $rc -ne 0; then
25241 for file in block
/bio.c
; do
25242 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
25243 "$LINUX/$file" 2>/dev
/null
25245 if test $rc -eq 0; then
25250 if test $export -eq 0; then :
25260 if test $rc -ne 0; then :
25262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25263 $as_echo "no" >&6; }
25267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25268 $as_echo "yes" >&6; }
25270 $as_echo "#define HAVE_GENERIC_IO_ACCT_3ARG 1" >>confdefs.h
25278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 4 arg generic IO accounting symbols are available" >&5
25279 $as_echo_n "checking whether 4 arg generic IO accounting symbols are available... " >&6; }
25283 cat confdefs.h
- <<_ACEOF >conftest.c
25286 #include <linux/bio.h>
25288 void (*generic_start_io_acct_f)(struct request_queue *, int,
25289 unsigned long, struct hd_struct *) = &generic_start_io_acct;
25290 void (*generic_end_io_acct_f)(struct request_queue *, int,
25291 struct hd_struct *, unsigned long) = &generic_end_io_acct;
25297 generic_start_io_acct(NULL, 0, 0, NULL);
25298 generic_end_io_acct(NULL, 0, NULL, 0);
25308 cat - <<_ACEOF >conftest.h
25313 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25314 echo "obj-m := conftest.o" >build
/Makefile
25316 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25317 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25319 (eval $ac_try) 2>&5
25321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25322 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25324 (eval $ac_try) 2>&5
25326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25327 test $ac_status = 0; }; }; then :
25330 $as_echo "$as_me: failed program was:" >&5
25331 sed 's/^/| /' conftest.
$ac_ext >&5
25339 if test $rc -ne 0; then :
25341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25342 $as_echo "no" >&6; }
25345 if test "x$enable_linux_builtin" != xyes
; then
25347 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
25348 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
25350 if test $rc -ne 0; then
25352 for file in block
/bio.c
; do
25353 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
25354 "$LINUX/$file" 2>/dev
/null
25356 if test $rc -eq 0; then
25361 if test $export -eq 0; then :
25371 if test $rc -ne 0; then :
25373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25374 $as_echo "no" >&6; }
25378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25379 $as_echo "yes" >&6; }
25381 $as_echo "#define HAVE_GENERIC_IO_ACCT_4ARG 1" >>confdefs.h
25389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm/fpu/api.h exists" >&5
25390 $as_echo_n "checking whether asm/fpu/api.h exists... " >&6; }
25393 cat confdefs.h
- <<_ACEOF >conftest.c
25396 #include <linux/kernel.h>
25397 #include <asm/fpu/api.h>
25403 __kernel_fpu_begin();
25413 cat - <<_ACEOF >conftest.h
25418 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25419 echo "obj-m := conftest.o" >build
/Makefile
25421 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25422 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25424 (eval $ac_try) 2>&5
25426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25427 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25429 (eval $ac_try) 2>&5
25431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25432 test $ac_status = 0; }; }; then :
25434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25435 $as_echo "yes" >&6; }
25437 $as_echo "#define HAVE_FPU_API_H 1" >>confdefs.h
25441 $as_echo "$as_me: failed program was:" >&5
25442 sed 's/^/| /' conftest.
$ac_ext >&5
25444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25445 $as_echo "no" >&6; }
25455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i_(uid|gid)_(read|write) exist" >&5
25456 $as_echo_n "checking whether i_(uid|gid)_(read|write) exist... " >&6; }
25459 cat confdefs.h
- <<_ACEOF >conftest.c
25462 #include <linux/fs.h>
25468 struct inode *ip = NULL;
25469 (void) i_uid_read(ip);
25479 cat - <<_ACEOF >conftest.h
25484 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25485 echo "obj-m := conftest.o" >build
/Makefile
25487 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25488 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25490 (eval $ac_try) 2>&5
25492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25493 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25495 (eval $ac_try) 2>&5
25497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25498 test $ac_status = 0; }; }; then :
25500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25501 $as_echo "yes" >&6; }
25503 $as_echo "#define HAVE_KUID_HELPERS 1" >>confdefs.h
25507 $as_echo "$as_me: failed program was:" >&5
25508 sed 's/^/| /' conftest.
$ac_ext >&5
25510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25511 $as_echo "no" >&6; }
25521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether module_param_call() is hardened" >&5
25522 $as_echo_n "checking whether module_param_call() is hardened... " >&6; }
25525 cat confdefs.h
- <<_ACEOF >conftest.c
25528 #include <linux/module.h>
25529 #include <linux/moduleparam.h>
25531 int param_get(char *b, const struct kernel_param *kp)
25536 int param_set(const char *b, const struct kernel_param *kp)
25541 module_param_call(p, param_set, param_get, NULL, 0644);
25556 cat - <<_ACEOF >conftest.h
25561 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25562 echo "obj-m := conftest.o" >build
/Makefile
25564 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25565 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25567 (eval $ac_try) 2>&5
25569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25570 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25572 (eval $ac_try) 2>&5
25574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25575 test $ac_status = 0; }; }; then :
25577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25578 $as_echo "yes" >&6; }
25580 $as_echo "#define MODULE_PARAM_CALL_CONST 1" >>confdefs.h
25584 $as_echo "$as_me: failed program was:" >&5
25585 sed 's/^/| /' conftest.
$ac_ext >&5
25587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25588 $as_echo "no" >&6; }
25598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->rename() wants flags" >&5
25599 $as_echo_n "checking whether iops->rename() wants flags... " >&6; }
25602 cat confdefs.h
- <<_ACEOF >conftest.c
25605 #include <linux/fs.h>
25606 int rename_fn(struct inode *sip, struct dentry *sdp,
25607 struct inode *tip, struct dentry *tdp,
25608 unsigned int flags) { return 0; }
25610 static const struct inode_operations
25611 iops __attribute__ ((unused)) = {
25612 .rename = rename_fn,
25628 cat - <<_ACEOF >conftest.h
25633 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25634 echo "obj-m := conftest.o" >build
/Makefile
25636 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25637 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25639 (eval $ac_try) 2>&5
25641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25642 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25644 (eval $ac_try) 2>&5
25646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25647 test $ac_status = 0; }; }; then :
25649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25650 $as_echo "yes" >&6; }
25652 $as_echo "#define HAVE_RENAME_WANTS_FLAGS 1" >>confdefs.h
25656 $as_echo "$as_me: failed program was:" >&5
25657 sed 's/^/| /' conftest.
$ac_ext >&5
25659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25660 $as_echo "no" >&6; }
25670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_setxattr() exists" >&5
25671 $as_echo_n "checking whether generic_setxattr() exists... " >&6; }
25674 cat confdefs.h
- <<_ACEOF >conftest.c
25677 #include <linux/fs.h>
25678 #include <linux/xattr.h>
25680 static const struct inode_operations
25681 iops __attribute__ ((unused)) = {
25682 .setxattr = generic_setxattr
25698 cat - <<_ACEOF >conftest.h
25703 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25704 echo "obj-m := conftest.o" >build
/Makefile
25706 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25707 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25709 (eval $ac_try) 2>&5
25711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25712 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25714 (eval $ac_try) 2>&5
25716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25717 test $ac_status = 0; }; }; then :
25719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25720 $as_echo "yes" >&6; }
25722 $as_echo "#define HAVE_GENERIC_SETXATTR 1" >>confdefs.h
25726 $as_echo "$as_me: failed program was:" >&5
25727 sed 's/^/| /' conftest.
$ac_ext >&5
25729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25730 $as_echo "no" >&6; }
25739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_time() exists" >&5
25740 $as_echo_n "checking whether current_time() exists... " >&6; }
25744 cat confdefs.h
- <<_ACEOF >conftest.c
25747 #include <linux/fs.h>
25754 struct timespec now __attribute__ ((unused));
25756 now = current_time(&ip);
25766 cat - <<_ACEOF >conftest.h
25771 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25772 echo "obj-m := conftest.o" >build
/Makefile
25774 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25775 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25777 (eval $ac_try) 2>&5
25779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25780 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25782 (eval $ac_try) 2>&5
25784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25785 test $ac_status = 0; }; }; then :
25788 $as_echo "$as_me: failed program was:" >&5
25789 sed 's/^/| /' conftest.
$ac_ext >&5
25797 if test $rc -ne 0; then :
25799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25800 $as_echo "no" >&6; }
25803 if test "x$enable_linux_builtin" != xyes
; then
25805 grep -q -E '[[:space:]]current_time[[:space:]]' \
25806 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
25808 if test $rc -ne 0; then
25810 for file in fs
/inode.c
; do
25811 grep -q -E "EXPORT_SYMBOL.*(current_time)" \
25812 "$LINUX/$file" 2>/dev
/null
25814 if test $rc -eq 0; then
25819 if test $export -eq 0; then :
25829 if test $rc -ne 0; then :
25831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25832 $as_echo "no" >&6; }
25836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25837 $as_echo "yes" >&6; }
25839 $as_echo "#define HAVE_CURRENT_TIME 1" >>confdefs.h
25847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use vm_node_stat based fn's" >&5
25848 $as_echo_n "checking whether to use vm_node_stat based fn's... " >&6; }
25851 cat confdefs.h
- <<_ACEOF >conftest.c
25854 #include <linux/mm.h>
25855 #include <linux/vmstat.h>
25861 int a __attribute__ ((unused)) = NR_VM_NODE_STAT_ITEMS;
25862 long x __attribute__ ((unused)) =
25863 atomic_long_read(&vm_node_stat[0]);
25864 (void) global_node_page_state(0);
25874 cat - <<_ACEOF >conftest.h
25879 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25880 echo "obj-m := conftest.o" >build
/Makefile
25882 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25883 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25885 (eval $ac_try) 2>&5
25887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25888 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25890 (eval $ac_try) 2>&5
25892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25893 test $ac_status = 0; }; }; then :
25895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25896 $as_echo "yes" >&6; }
25898 $as_echo "#define ZFS_GLOBAL_NODE_PAGE_STATE 1" >>confdefs.h
25902 $as_echo "$as_me: failed program was:" >&5
25903 sed 's/^/| /' conftest.
$ac_ext >&5
25905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25906 $as_echo "no" >&6; }
25917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ns_capable exists" >&5
25918 $as_echo_n "checking whether ns_capable exists... " >&6; }
25921 cat confdefs.h
- <<_ACEOF >conftest.c
25924 #include <linux/capability.h>
25930 ns_capable((struct user_namespace *)NULL, CAP_SYS_ADMIN);
25940 cat - <<_ACEOF >conftest.h
25945 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25946 echo "obj-m := conftest.o" >build
/Makefile
25948 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25949 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25950 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25951 (eval $ac_try) 2>&5
25953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25954 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25956 (eval $ac_try) 2>&5
25958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25959 test $ac_status = 0; }; }; then :
25961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25962 $as_echo "yes" >&6; }
25964 $as_echo "#define HAVE_NS_CAPABLE 1" >>confdefs.h
25968 $as_echo "$as_me: failed program was:" >&5
25969 sed 's/^/| /' conftest.
$ac_ext >&5
25971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25972 $as_echo "no" >&6; }
25982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cred_t->user_ns exists" >&5
25983 $as_echo_n "checking whether cred_t->user_ns exists... " >&6; }
25986 cat confdefs.h
- <<_ACEOF >conftest.c
25989 #include <linux/cred.h>
25996 cr.user_ns = (struct user_namespace *)NULL;
26006 cat - <<_ACEOF >conftest.h
26011 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26012 echo "obj-m := conftest.o" >build
/Makefile
26014 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26015 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26017 (eval $ac_try) 2>&5
26019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26020 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26021 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26022 (eval $ac_try) 2>&5
26024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26025 test $ac_status = 0; }; }; then :
26027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26028 $as_echo "yes" >&6; }
26030 $as_echo "#define HAVE_CRED_USER_NS 1" >>confdefs.h
26034 $as_echo "$as_me: failed program was:" >&5
26035 sed 's/^/| /' conftest.
$ac_ext >&5
26037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26038 $as_echo "no" >&6; }
26048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kuid_has_mapping/kgid_has_mapping exist" >&5
26049 $as_echo_n "checking whether kuid_has_mapping/kgid_has_mapping exist... " >&6; }
26052 cat confdefs.h
- <<_ACEOF >conftest.c
26055 #include <linux/uidgid.h>
26061 kuid_has_mapping((struct user_namespace *)NULL, KUIDT_INIT(0));
26062 kgid_has_mapping((struct user_namespace *)NULL, KGIDT_INIT(0));
26072 cat - <<_ACEOF >conftest.h
26077 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26078 echo "obj-m := conftest.o" >build
/Makefile
26080 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26081 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26083 (eval $ac_try) 2>&5
26085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26086 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26088 (eval $ac_try) 2>&5
26090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26091 test $ac_status = 0; }; }; then :
26093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26094 $as_echo "yes" >&6; }
26096 $as_echo "#define HAVE_KUID_HAS_MAPPING 1" >>confdefs.h
26100 $as_echo "$as_me: failed program was:" >&5
26101 sed 's/^/| /' conftest.
$ac_ext >&5
26103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26104 $as_echo "no" >&6; }
26115 if test "$LINUX_OBJ" != "$LINUX"; then :
26117 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
26123 KERNELCPPFLAGS
="$KERNELCPPFLAGS -std=gnu99"
26124 KERNELCPPFLAGS
="$KERNELCPPFLAGS -Wno-declaration-after-statement"
26125 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
26126 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
26127 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
26128 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
26134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dkms.conf file" >&5
26135 $as_echo_n "checking for dkms.conf file... " >&6; }
26136 if test -e dkms.conf
; then :
26139 *** ZFS should not be manually built in the DKMS source tree.
26140 *** Remove all ZFS packages before compiling the ZoL sources.
26141 *** Running \"make install\" breaks ZFS packages." "$LINENO" 5
26145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
26146 $as_echo "not found" >&6; }
26152 # Check whether --with-mounthelperdir was given.
26153 if test "${with_mounthelperdir+set}" = set; then :
26154 withval
=$with_mounthelperdir; mounthelperdir
=$withval
26156 mounthelperdir
=/sbin
26163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
26164 $as_echo_n "checking for udev directories... " >&6; }
26166 # Check whether --with-udevdir was given.
26167 if test "${with_udevdir+set}" = set; then :
26168 withval
=$with_udevdir; udevdir
=$withval
26174 if test "x$udevdir" = xcheck
; then :
26177 path2
=/usr
/lib
/udev
26180 if test -d "$path1"; then :
26184 if test -d "$path2"; then :
26195 # Check whether --with-udevruledir was given.
26196 if test "${with_udevruledir+set}" = set; then :
26197 withval
=$with_udevruledir; udevruledir
=$withval
26199 udevruledir
="${udevdir}/rules.d"
26205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
26206 $as_echo "$udevdir;$udevruledir" >&6; }
26209 # Check whether --enable-systemd was given.
26210 if test "${enable_systemd+set}" = set; then :
26211 enableval
=$enable_systemd;
26218 # Check whether --with-systemdunitdir was given.
26219 if test "${with_systemdunitdir+set}" = set; then :
26220 withval
=$with_systemdunitdir; systemdunitdir
=$withval
26222 systemdunitdir
=/usr
/lib
/systemd
/system
26227 # Check whether --with-systemdpresetdir was given.
26228 if test "${with_systemdpresetdir+set}" = set; then :
26229 withval
=$with_systemdpresetdir; systemdpresetdir
=$withval
26231 systemdpresetdir
=/usr
/lib
/systemd
/system-preset
26236 # Check whether --with-systemdmodulesloaddir was given.
26237 if test "${with_systemdmodulesloaddir+set}" = set; then :
26238 withval
=$with_systemdmodulesloaddir; systemdmoduleloaddir
=$withval
26240 systemdmodulesloaddir
=/usr
/lib
/modules-load.d
26245 if test "x$enable_systemd" = xyes
; then :
26247 ZFS_INIT_SYSTEMD
=systemd
26248 ZFS_MODULE_LOAD
=modules-load.d
26249 modulesloaddir
=$systemdmodulesloaddir
26260 # Check whether --enable-sysvinit was given.
26261 if test "${enable_sysvinit+set}" = set; then :
26262 enableval
=$enable_sysvinit;
26264 enable_sysvinit
=yes
26268 if test "x$enable_sysvinit" = xyes
; then :
26269 ZFS_INIT_SYSV
=init.d
26275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
26276 $as_echo_n "checking for dracut directory... " >&6; }
26278 # Check whether --with-dracutdir was given.
26279 if test "${with_dracutdir+set}" = set; then :
26280 withval
=$with_dracutdir; dracutdir
=$withval
26286 if test "x$dracutdir" = xcheck
; then :
26288 path1
=/usr
/share
/dracut
26289 path2
=/usr
/lib
/dracut
26292 if test -d "$path1"; then :
26296 if test -d "$path2"; then :
26299 dracutdir
="$default"
26307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
26308 $as_echo "$dracutdir" >&6; }
26313 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
26314 if test "x$ac_cv_header_zlib_h" = xyes
; then :
26317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26320 *** zlib.h missing, zlib-devel package required
26321 See \`config.log' for more details" "$LINENO" 5; }
26326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing compress2" >&5
26327 $as_echo_n "checking for library containing compress2... " >&6; }
26328 if ${ac_cv_search_compress2+:} false
; then :
26329 $as_echo_n "(cached) " >&6
26331 ac_func_search_save_LIBS
=$LIBS
26332 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26333 /* end confdefs.h. */
26335 /* Override any GCC internal prototype to avoid an error.
26336 Use char because int might match the return type of a GCC
26337 builtin and then its argument prototype would still apply. */
26345 return compress2 ();
26350 for ac_lib
in '' z
; do
26351 if test -z "$ac_lib"; then
26352 ac_res
="none required"
26355 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26357 if ac_fn_c_try_link
"$LINENO"; then :
26358 ac_cv_search_compress2
=$ac_res
26360 rm -f core conftest.err conftest.
$ac_objext \
26362 if ${ac_cv_search_compress2+:} false
; then :
26366 if ${ac_cv_search_compress2+:} false
; then :
26369 ac_cv_search_compress2
=no
26371 rm conftest.
$ac_ext
26372 LIBS
=$ac_func_search_save_LIBS
26374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_compress2" >&5
26375 $as_echo "$ac_cv_search_compress2" >&6; }
26376 ac_res
=$ac_cv_search_compress2
26377 if test "$ac_res" != no
; then :
26378 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26381 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26382 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26384 *** compress2() missing, zlib-devel package required
26385 See \`config.log' for more details" "$LINENO" 5; }
26389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uncompress" >&5
26390 $as_echo_n "checking for library containing uncompress... " >&6; }
26391 if ${ac_cv_search_uncompress+:} false
; then :
26392 $as_echo_n "(cached) " >&6
26394 ac_func_search_save_LIBS
=$LIBS
26395 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26396 /* end confdefs.h. */
26398 /* Override any GCC internal prototype to avoid an error.
26399 Use char because int might match the return type of a GCC
26400 builtin and then its argument prototype would still apply. */
26404 char uncompress ();
26408 return uncompress ();
26413 for ac_lib
in '' z
; do
26414 if test -z "$ac_lib"; then
26415 ac_res
="none required"
26418 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26420 if ac_fn_c_try_link
"$LINENO"; then :
26421 ac_cv_search_uncompress
=$ac_res
26423 rm -f core conftest.err conftest.
$ac_objext \
26425 if ${ac_cv_search_uncompress+:} false
; then :
26429 if ${ac_cv_search_uncompress+:} false
; then :
26432 ac_cv_search_uncompress
=no
26434 rm conftest.
$ac_ext
26435 LIBS
=$ac_func_search_save_LIBS
26437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uncompress" >&5
26438 $as_echo "$ac_cv_search_uncompress" >&6; }
26439 ac_res
=$ac_cv_search_uncompress
26440 if test "$ac_res" != no
; then :
26441 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26445 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26447 *** uncompress() missing, zlib-devel package required
26448 See \`config.log' for more details" "$LINENO" 5; }
26452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crc32" >&5
26453 $as_echo_n "checking for library containing crc32... " >&6; }
26454 if ${ac_cv_search_crc32+:} false
; then :
26455 $as_echo_n "(cached) " >&6
26457 ac_func_search_save_LIBS
=$LIBS
26458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26459 /* end confdefs.h. */
26461 /* Override any GCC internal prototype to avoid an error.
26462 Use char because int might match the return type of a GCC
26463 builtin and then its argument prototype would still apply. */
26476 for ac_lib
in '' z
; do
26477 if test -z "$ac_lib"; then
26478 ac_res
="none required"
26481 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26483 if ac_fn_c_try_link
"$LINENO"; then :
26484 ac_cv_search_crc32
=$ac_res
26486 rm -f core conftest.err conftest.
$ac_objext \
26488 if ${ac_cv_search_crc32+:} false
; then :
26492 if ${ac_cv_search_crc32+:} false
; then :
26495 ac_cv_search_crc32
=no
26497 rm conftest.
$ac_ext
26498 LIBS
=$ac_func_search_save_LIBS
26500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crc32" >&5
26501 $as_echo "$ac_cv_search_crc32" >&6; }
26502 ac_res
=$ac_cv_search_crc32
26503 if test "$ac_res" != no
; then :
26504 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26507 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26510 *** crc32() missing, zlib-devel package required
26511 See \`config.log' for more details" "$LINENO" 5; }
26518 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
26524 ac_fn_c_check_header_mongrel
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
26525 if test "x$ac_cv_header_uuid_uuid_h" = xyes
; then :
26528 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26531 *** uuid/uuid.h missing, libuuid-devel package required
26532 See \`config.log' for more details" "$LINENO" 5; }
26537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
26538 $as_echo_n "checking for library containing uuid_generate... " >&6; }
26539 if ${ac_cv_search_uuid_generate+:} false
; then :
26540 $as_echo_n "(cached) " >&6
26542 ac_func_search_save_LIBS
=$LIBS
26543 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26544 /* end confdefs.h. */
26546 /* Override any GCC internal prototype to avoid an error.
26547 Use char because int might match the return type of a GCC
26548 builtin and then its argument prototype would still apply. */
26552 char uuid_generate ();
26556 return uuid_generate ();
26561 for ac_lib
in '' uuid
; do
26562 if test -z "$ac_lib"; then
26563 ac_res
="none required"
26566 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26568 if ac_fn_c_try_link
"$LINENO"; then :
26569 ac_cv_search_uuid_generate
=$ac_res
26571 rm -f core conftest.err conftest.
$ac_objext \
26573 if ${ac_cv_search_uuid_generate+:} false
; then :
26577 if ${ac_cv_search_uuid_generate+:} false
; then :
26580 ac_cv_search_uuid_generate
=no
26582 rm conftest.
$ac_ext
26583 LIBS
=$ac_func_search_save_LIBS
26585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
26586 $as_echo "$ac_cv_search_uuid_generate" >&6; }
26587 ac_res
=$ac_cv_search_uuid_generate
26588 if test "$ac_res" != no
; then :
26589 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26592 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26593 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26595 *** uuid_generate() missing, libuuid-devel package required
26596 See \`config.log' for more details" "$LINENO" 5; }
26600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_is_null" >&5
26601 $as_echo_n "checking for library containing uuid_is_null... " >&6; }
26602 if ${ac_cv_search_uuid_is_null+:} false
; then :
26603 $as_echo_n "(cached) " >&6
26605 ac_func_search_save_LIBS
=$LIBS
26606 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26607 /* end confdefs.h. */
26609 /* Override any GCC internal prototype to avoid an error.
26610 Use char because int might match the return type of a GCC
26611 builtin and then its argument prototype would still apply. */
26615 char uuid_is_null ();
26619 return uuid_is_null ();
26624 for ac_lib
in '' uuid
; do
26625 if test -z "$ac_lib"; then
26626 ac_res
="none required"
26629 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26631 if ac_fn_c_try_link
"$LINENO"; then :
26632 ac_cv_search_uuid_is_null
=$ac_res
26634 rm -f core conftest.err conftest.
$ac_objext \
26636 if ${ac_cv_search_uuid_is_null+:} false
; then :
26640 if ${ac_cv_search_uuid_is_null+:} false
; then :
26643 ac_cv_search_uuid_is_null
=no
26645 rm conftest.
$ac_ext
26646 LIBS
=$ac_func_search_save_LIBS
26648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_is_null" >&5
26649 $as_echo "$ac_cv_search_uuid_is_null" >&6; }
26650 ac_res
=$ac_cv_search_uuid_is_null
26651 if test "$ac_res" != no
; then :
26652 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26655 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26658 *** uuid_is_null() missing, libuuid-devel package required
26659 See \`config.log' for more details" "$LINENO" 5; }
26666 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
26671 # Check whether --with-tirpc was given.
26672 if test "${with_tirpc+set}" = set; then :
26673 withval
=$with_tirpc;
26682 if test "x$with_tirpc" != xno
; then :
26683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xdrmem_create in -ltirpc" >&5
26684 $as_echo_n "checking for xdrmem_create in -ltirpc... " >&6; }
26685 if ${ac_cv_lib_tirpc_xdrmem_create+:} false
; then :
26686 $as_echo_n "(cached) " >&6
26688 ac_check_lib_save_LIBS
=$LIBS
26689 LIBS
="-ltirpc $LIBS"
26690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26691 /* end confdefs.h. */
26693 /* Override any GCC internal prototype to avoid an error.
26694 Use char because int might match the return type of a GCC
26695 builtin and then its argument prototype would still apply. */
26699 char xdrmem_create ();
26703 return xdrmem_create ();
26708 if ac_fn_c_try_link
"$LINENO"; then :
26709 ac_cv_lib_tirpc_xdrmem_create
=yes
26711 ac_cv_lib_tirpc_xdrmem_create
=no
26713 rm -f core conftest.err conftest.
$ac_objext \
26714 conftest
$ac_exeext conftest.
$ac_ext
26715 LIBS
=$ac_check_lib_save_LIBS
26717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tirpc_xdrmem_create" >&5
26718 $as_echo "$ac_cv_lib_tirpc_xdrmem_create" >&6; }
26719 if test "x$ac_cv_lib_tirpc_xdrmem_create" = xyes
; then :
26722 LIBTIRPC_CFLAGS
=-I/usr
/include
/tirpc
26725 $as_echo "#define HAVE_LIBTIRPC 1" >>confdefs.h
26729 if test "x$with_tirpc" != xcheck
; then
26730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26732 as_fn_error $?
"--with-tirpc was given, but test for tirpc failed
26733 See \`config.log' for more details" "$LINENO" 5; }
26735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing xdrmem_create" >&5
26736 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
26737 if ${ac_cv_search_xdrmem_create+:} false
; then :
26738 $as_echo_n "(cached) " >&6
26740 ac_func_search_save_LIBS
=$LIBS
26741 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26742 /* end confdefs.h. */
26744 /* Override any GCC internal prototype to avoid an error.
26745 Use char because int might match the return type of a GCC
26746 builtin and then its argument prototype would still apply. */
26750 char xdrmem_create ();
26754 return xdrmem_create ();
26759 for ac_lib
in '' tirpc
; do
26760 if test -z "$ac_lib"; then
26761 ac_res
="none required"
26764 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26766 if ac_fn_c_try_link
"$LINENO"; then :
26767 ac_cv_search_xdrmem_create
=$ac_res
26769 rm -f core conftest.err conftest.
$ac_objext \
26771 if ${ac_cv_search_xdrmem_create+:} false
; then :
26775 if ${ac_cv_search_xdrmem_create+:} false
; then :
26778 ac_cv_search_xdrmem_create
=no
26780 rm conftest.
$ac_ext
26781 LIBS
=$ac_func_search_save_LIBS
26783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xdrmem_create" >&5
26784 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
26785 ac_res
=$ac_cv_search_xdrmem_create
26786 if test "$ac_res" != no
; then :
26787 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26791 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26793 as_fn_error $?
"xdrmem_create() requires tirpc or libc
26794 See \`config.log' for more details" "$LINENO" 5; }
26801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing xdrmem_create" >&5
26802 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
26803 if ${ac_cv_search_xdrmem_create+:} false
; then :
26804 $as_echo_n "(cached) " >&6
26806 ac_func_search_save_LIBS
=$LIBS
26807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26808 /* end confdefs.h. */
26810 /* Override any GCC internal prototype to avoid an error.
26811 Use char because int might match the return type of a GCC
26812 builtin and then its argument prototype would still apply. */
26816 char xdrmem_create ();
26820 return xdrmem_create ();
26825 for ac_lib
in '' tirpc
; do
26826 if test -z "$ac_lib"; then
26827 ac_res
="none required"
26830 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26832 if ac_fn_c_try_link
"$LINENO"; then :
26833 ac_cv_search_xdrmem_create
=$ac_res
26835 rm -f core conftest.err conftest.
$ac_objext \
26837 if ${ac_cv_search_xdrmem_create+:} false
; then :
26841 if ${ac_cv_search_xdrmem_create+:} false
; then :
26844 ac_cv_search_xdrmem_create
=no
26846 rm conftest.
$ac_ext
26847 LIBS
=$ac_func_search_save_LIBS
26849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xdrmem_create" >&5
26850 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
26851 ac_res
=$ac_cv_search_xdrmem_create
26852 if test "$ac_res" != no
; then :
26853 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26857 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26858 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26859 as_fn_error $?
"xdrmem_create() requires libc
26860 See \`config.log' for more details" "$LINENO" 5; }
26869 ac_fn_c_check_header_mongrel
"$LINENO" "blkid/blkid.h" "ac_cv_header_blkid_blkid_h" "$ac_includes_default"
26870 if test "x$ac_cv_header_blkid_blkid_h" = xyes
; then :
26873 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26874 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26876 *** blkid.h missing, libblkid-devel package required
26877 See \`config.log' for more details" "$LINENO" 5; }
26885 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
26891 ac_fn_c_check_header_mongrel
"$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
26892 if test "x$ac_cv_header_attr_xattr_h" = xyes
; then :
26895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26898 *** attr/xattr.h missing, libattr-devel package required
26899 See \`config.log' for more details" "$LINENO" 5; }
26907 $as_echo "#define HAVE_LIBATTR 1" >>confdefs.h
26913 ac_fn_c_check_header_mongrel
"$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
26914 if test "x$ac_cv_header_libudev_h" = xyes
; then :
26920 $as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
26931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing udev_device_get_is_initialized" >&5
26932 $as_echo_n "checking for library containing udev_device_get_is_initialized... " >&6; }
26933 if ${ac_cv_search_udev_device_get_is_initialized+:} false
; then :
26934 $as_echo_n "(cached) " >&6
26936 ac_func_search_save_LIBS
=$LIBS
26937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26938 /* end confdefs.h. */
26940 /* Override any GCC internal prototype to avoid an error.
26941 Use char because int might match the return type of a GCC
26942 builtin and then its argument prototype would still apply. */
26946 char udev_device_get_is_initialized ();
26950 return udev_device_get_is_initialized ();
26955 for ac_lib
in '' udev
; do
26956 if test -z "$ac_lib"; then
26957 ac_res
="none required"
26960 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26962 if ac_fn_c_try_link
"$LINENO"; then :
26963 ac_cv_search_udev_device_get_is_initialized
=$ac_res
26965 rm -f core conftest.err conftest.
$ac_objext \
26967 if ${ac_cv_search_udev_device_get_is_initialized+:} false
; then :
26971 if ${ac_cv_search_udev_device_get_is_initialized+:} false
; then :
26974 ac_cv_search_udev_device_get_is_initialized
=no
26976 rm conftest.
$ac_ext
26977 LIBS
=$ac_func_search_save_LIBS
26979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_udev_device_get_is_initialized" >&5
26980 $as_echo "$ac_cv_search_udev_device_get_is_initialized" >&6; }
26981 ac_res
=$ac_cv_search_udev_device_get_is_initialized
26982 if test "$ac_res" != no
; then :
26983 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26986 $as_echo "#define HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED 1" >>confdefs.h
26993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
26994 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
26996 saved_flags
="$CFLAGS"
26997 CFLAGS
="$CFLAGS -Wframe-larger-than=1024"
26999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27000 /* end confdefs.h. */
27010 if ac_fn_c_try_compile
"$LINENO"; then :
27012 FRAME_LARGER_THAN
=-Wframe-larger-than=1024
27013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27014 $as_echo "yes" >&6; }
27019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27020 $as_echo "no" >&6; }
27023 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27025 CFLAGS
="$saved_flags"
27029 if test "x$runstatedir" = x
; then
27030 runstatedir
='${localstatedir}/run'
27035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/sysmacros.h" >&5
27036 $as_echo_n "checking makedev() is declared in sys/sysmacros.h... " >&6; }
27037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27038 /* end confdefs.h. */
27040 #include <sys/sysmacros.h>
27053 if ac_fn_c_try_compile
"$LINENO"; then :
27055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27056 $as_echo "yes" >&6; }
27058 $as_echo "#define HAVE_MAKEDEV_IN_SYSMACROS 1" >>confdefs.h
27063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27064 $as_echo "no" >&6; }
27067 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/mkdev.h" >&5
27071 $as_echo_n "checking makedev() is declared in sys/mkdev.h... " >&6; }
27072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27073 /* end confdefs.h. */
27075 #include <sys/mkdev.h>
27088 if ac_fn_c_try_compile
"$LINENO"; then :
27090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27091 $as_echo "yes" >&6; }
27093 $as_echo "#define HAVE_MAKEDEV_IN_MKDEV 1" >>confdefs.h
27098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27099 $as_echo "no" >&6; }
27102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-format-truncation support" >&5
27106 $as_echo_n "checking for -Wno-format-truncation support... " >&6; }
27108 saved_flags
="$CFLAGS"
27109 CFLAGS
="$CFLAGS -Wno-format-truncation"
27111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27112 /* end confdefs.h. */
27122 if ac_fn_c_try_compile
"$LINENO"; then :
27124 NO_FORMAT_TRUNCATION
=-Wno-format-truncation
27125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27126 $as_echo "yes" >&6; }
27130 NO_FORMAT_TRUNCATION
=
27131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27132 $as_echo "no" >&6; }
27135 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27137 CFLAGS
="$saved_flags"
27142 ZONENAME
="echo global"
27148 for ac_func
in mlockall
27150 ac_fn_c_check_func
"$LINENO" "mlockall" "ac_cv_func_mlockall"
27151 if test "x$ac_cv_func_mlockall" = xyes
; then :
27152 cat >>confdefs.h
<<_ACEOF
27153 #define HAVE_MLOCKALL 1
27162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dkms.conf file" >&5
27163 $as_echo_n "checking for dkms.conf file... " >&6; }
27164 if test -e dkms.conf
; then :
27167 *** ZFS should not be manually built in the DKMS source tree.
27168 *** Remove all ZFS packages before compiling the ZoL sources.
27169 *** Running \"make install\" breaks ZFS packages." "$LINENO" 5
27173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
27174 $as_echo "not found" >&6; }
27180 # Check whether --with-mounthelperdir was given.
27181 if test "${with_mounthelperdir+set}" = set; then :
27182 withval
=$with_mounthelperdir; mounthelperdir
=$withval
27184 mounthelperdir
=/sbin
27191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
27192 $as_echo_n "checking for udev directories... " >&6; }
27194 # Check whether --with-udevdir was given.
27195 if test "${with_udevdir+set}" = set; then :
27196 withval
=$with_udevdir; udevdir
=$withval
27202 if test "x$udevdir" = xcheck
; then :
27205 path2
=/usr
/lib
/udev
27208 if test -d "$path1"; then :
27212 if test -d "$path2"; then :
27223 # Check whether --with-udevruledir was given.
27224 if test "${with_udevruledir+set}" = set; then :
27225 withval
=$with_udevruledir; udevruledir
=$withval
27227 udevruledir
="${udevdir}/rules.d"
27233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
27234 $as_echo "$udevdir;$udevruledir" >&6; }
27237 # Check whether --enable-systemd was given.
27238 if test "${enable_systemd+set}" = set; then :
27239 enableval
=$enable_systemd;
27246 # Check whether --with-systemdunitdir was given.
27247 if test "${with_systemdunitdir+set}" = set; then :
27248 withval
=$with_systemdunitdir; systemdunitdir
=$withval
27250 systemdunitdir
=/usr
/lib
/systemd
/system
27255 # Check whether --with-systemdpresetdir was given.
27256 if test "${with_systemdpresetdir+set}" = set; then :
27257 withval
=$with_systemdpresetdir; systemdpresetdir
=$withval
27259 systemdpresetdir
=/usr
/lib
/systemd
/system-preset
27264 # Check whether --with-systemdmodulesloaddir was given.
27265 if test "${with_systemdmodulesloaddir+set}" = set; then :
27266 withval
=$with_systemdmodulesloaddir; systemdmoduleloaddir
=$withval
27268 systemdmodulesloaddir
=/usr
/lib
/modules-load.d
27273 if test "x$enable_systemd" = xyes
; then :
27275 ZFS_INIT_SYSTEMD
=systemd
27276 ZFS_MODULE_LOAD
=modules-load.d
27277 modulesloaddir
=$systemdmodulesloaddir
27288 # Check whether --enable-sysvinit was given.
27289 if test "${enable_sysvinit+set}" = set; then :
27290 enableval
=$enable_sysvinit;
27292 enable_sysvinit
=yes
27296 if test "x$enable_sysvinit" = xyes
; then :
27297 ZFS_INIT_SYSV
=init.d
27303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
27304 $as_echo_n "checking for dracut directory... " >&6; }
27306 # Check whether --with-dracutdir was given.
27307 if test "${with_dracutdir+set}" = set; then :
27308 withval
=$with_dracutdir; dracutdir
=$withval
27314 if test "x$dracutdir" = xcheck
; then :
27316 path1
=/usr
/share
/dracut
27317 path2
=/usr
/lib
/dracut
27320 if test -d "$path1"; then :
27324 if test -d "$path2"; then :
27327 dracutdir
="$default"
27335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
27336 $as_echo "$dracutdir" >&6; }
27341 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
27342 if test "x$ac_cv_header_zlib_h" = xyes
; then :
27345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27346 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27348 *** zlib.h missing, zlib-devel package required
27349 See \`config.log' for more details" "$LINENO" 5; }
27354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing compress2" >&5
27355 $as_echo_n "checking for library containing compress2... " >&6; }
27356 if ${ac_cv_search_compress2+:} false
; then :
27357 $as_echo_n "(cached) " >&6
27359 ac_func_search_save_LIBS
=$LIBS
27360 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27361 /* end confdefs.h. */
27363 /* Override any GCC internal prototype to avoid an error.
27364 Use char because int might match the return type of a GCC
27365 builtin and then its argument prototype would still apply. */
27373 return compress2 ();
27378 for ac_lib
in '' z
; do
27379 if test -z "$ac_lib"; then
27380 ac_res
="none required"
27383 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27385 if ac_fn_c_try_link
"$LINENO"; then :
27386 ac_cv_search_compress2
=$ac_res
27388 rm -f core conftest.err conftest.
$ac_objext \
27390 if ${ac_cv_search_compress2+:} false
; then :
27394 if ${ac_cv_search_compress2+:} false
; then :
27397 ac_cv_search_compress2
=no
27399 rm conftest.
$ac_ext
27400 LIBS
=$ac_func_search_save_LIBS
27402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_compress2" >&5
27403 $as_echo "$ac_cv_search_compress2" >&6; }
27404 ac_res
=$ac_cv_search_compress2
27405 if test "$ac_res" != no
; then :
27406 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27409 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27410 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27412 *** compress2() missing, zlib-devel package required
27413 See \`config.log' for more details" "$LINENO" 5; }
27417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uncompress" >&5
27418 $as_echo_n "checking for library containing uncompress... " >&6; }
27419 if ${ac_cv_search_uncompress+:} false
; then :
27420 $as_echo_n "(cached) " >&6
27422 ac_func_search_save_LIBS
=$LIBS
27423 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27424 /* end confdefs.h. */
27426 /* Override any GCC internal prototype to avoid an error.
27427 Use char because int might match the return type of a GCC
27428 builtin and then its argument prototype would still apply. */
27432 char uncompress ();
27436 return uncompress ();
27441 for ac_lib
in '' z
; do
27442 if test -z "$ac_lib"; then
27443 ac_res
="none required"
27446 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27448 if ac_fn_c_try_link
"$LINENO"; then :
27449 ac_cv_search_uncompress
=$ac_res
27451 rm -f core conftest.err conftest.
$ac_objext \
27453 if ${ac_cv_search_uncompress+:} false
; then :
27457 if ${ac_cv_search_uncompress+:} false
; then :
27460 ac_cv_search_uncompress
=no
27462 rm conftest.
$ac_ext
27463 LIBS
=$ac_func_search_save_LIBS
27465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uncompress" >&5
27466 $as_echo "$ac_cv_search_uncompress" >&6; }
27467 ac_res
=$ac_cv_search_uncompress
27468 if test "$ac_res" != no
; then :
27469 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27475 *** uncompress() missing, zlib-devel package required
27476 See \`config.log' for more details" "$LINENO" 5; }
27480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crc32" >&5
27481 $as_echo_n "checking for library containing crc32... " >&6; }
27482 if ${ac_cv_search_crc32+:} false
; then :
27483 $as_echo_n "(cached) " >&6
27485 ac_func_search_save_LIBS
=$LIBS
27486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27487 /* end confdefs.h. */
27489 /* Override any GCC internal prototype to avoid an error.
27490 Use char because int might match the return type of a GCC
27491 builtin and then its argument prototype would still apply. */
27504 for ac_lib
in '' z
; do
27505 if test -z "$ac_lib"; then
27506 ac_res
="none required"
27509 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27511 if ac_fn_c_try_link
"$LINENO"; then :
27512 ac_cv_search_crc32
=$ac_res
27514 rm -f core conftest.err conftest.
$ac_objext \
27516 if ${ac_cv_search_crc32+:} false
; then :
27520 if ${ac_cv_search_crc32+:} false
; then :
27523 ac_cv_search_crc32
=no
27525 rm conftest.
$ac_ext
27526 LIBS
=$ac_func_search_save_LIBS
27528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crc32" >&5
27529 $as_echo "$ac_cv_search_crc32" >&6; }
27530 ac_res
=$ac_cv_search_crc32
27531 if test "$ac_res" != no
; then :
27532 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27538 *** crc32() missing, zlib-devel package required
27539 See \`config.log' for more details" "$LINENO" 5; }
27546 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
27552 ac_fn_c_check_header_mongrel
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
27553 if test "x$ac_cv_header_uuid_uuid_h" = xyes
; then :
27556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27559 *** uuid/uuid.h missing, libuuid-devel package required
27560 See \`config.log' for more details" "$LINENO" 5; }
27565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
27566 $as_echo_n "checking for library containing uuid_generate... " >&6; }
27567 if ${ac_cv_search_uuid_generate+:} false
; then :
27568 $as_echo_n "(cached) " >&6
27570 ac_func_search_save_LIBS
=$LIBS
27571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27572 /* end confdefs.h. */
27574 /* Override any GCC internal prototype to avoid an error.
27575 Use char because int might match the return type of a GCC
27576 builtin and then its argument prototype would still apply. */
27580 char uuid_generate ();
27584 return uuid_generate ();
27589 for ac_lib
in '' uuid
; do
27590 if test -z "$ac_lib"; then
27591 ac_res
="none required"
27594 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27596 if ac_fn_c_try_link
"$LINENO"; then :
27597 ac_cv_search_uuid_generate
=$ac_res
27599 rm -f core conftest.err conftest.
$ac_objext \
27601 if ${ac_cv_search_uuid_generate+:} false
; then :
27605 if ${ac_cv_search_uuid_generate+:} false
; then :
27608 ac_cv_search_uuid_generate
=no
27610 rm conftest.
$ac_ext
27611 LIBS
=$ac_func_search_save_LIBS
27613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
27614 $as_echo "$ac_cv_search_uuid_generate" >&6; }
27615 ac_res
=$ac_cv_search_uuid_generate
27616 if test "$ac_res" != no
; then :
27617 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27623 *** uuid_generate() missing, libuuid-devel package required
27624 See \`config.log' for more details" "$LINENO" 5; }
27628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_is_null" >&5
27629 $as_echo_n "checking for library containing uuid_is_null... " >&6; }
27630 if ${ac_cv_search_uuid_is_null+:} false
; then :
27631 $as_echo_n "(cached) " >&6
27633 ac_func_search_save_LIBS
=$LIBS
27634 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27635 /* end confdefs.h. */
27637 /* Override any GCC internal prototype to avoid an error.
27638 Use char because int might match the return type of a GCC
27639 builtin and then its argument prototype would still apply. */
27643 char uuid_is_null ();
27647 return uuid_is_null ();
27652 for ac_lib
in '' uuid
; do
27653 if test -z "$ac_lib"; then
27654 ac_res
="none required"
27657 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27659 if ac_fn_c_try_link
"$LINENO"; then :
27660 ac_cv_search_uuid_is_null
=$ac_res
27662 rm -f core conftest.err conftest.
$ac_objext \
27664 if ${ac_cv_search_uuid_is_null+:} false
; then :
27668 if ${ac_cv_search_uuid_is_null+:} false
; then :
27671 ac_cv_search_uuid_is_null
=no
27673 rm conftest.
$ac_ext
27674 LIBS
=$ac_func_search_save_LIBS
27676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_is_null" >&5
27677 $as_echo "$ac_cv_search_uuid_is_null" >&6; }
27678 ac_res
=$ac_cv_search_uuid_is_null
27679 if test "$ac_res" != no
; then :
27680 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27683 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27686 *** uuid_is_null() missing, libuuid-devel package required
27687 See \`config.log' for more details" "$LINENO" 5; }
27694 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
27699 # Check whether --with-tirpc was given.
27700 if test "${with_tirpc+set}" = set; then :
27701 withval
=$with_tirpc;
27710 if test "x$with_tirpc" != xno
; then :
27711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xdrmem_create in -ltirpc" >&5
27712 $as_echo_n "checking for xdrmem_create in -ltirpc... " >&6; }
27713 if ${ac_cv_lib_tirpc_xdrmem_create+:} false
; then :
27714 $as_echo_n "(cached) " >&6
27716 ac_check_lib_save_LIBS
=$LIBS
27717 LIBS
="-ltirpc $LIBS"
27718 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27719 /* end confdefs.h. */
27721 /* Override any GCC internal prototype to avoid an error.
27722 Use char because int might match the return type of a GCC
27723 builtin and then its argument prototype would still apply. */
27727 char xdrmem_create ();
27731 return xdrmem_create ();
27736 if ac_fn_c_try_link
"$LINENO"; then :
27737 ac_cv_lib_tirpc_xdrmem_create
=yes
27739 ac_cv_lib_tirpc_xdrmem_create
=no
27741 rm -f core conftest.err conftest.
$ac_objext \
27742 conftest
$ac_exeext conftest.
$ac_ext
27743 LIBS
=$ac_check_lib_save_LIBS
27745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tirpc_xdrmem_create" >&5
27746 $as_echo "$ac_cv_lib_tirpc_xdrmem_create" >&6; }
27747 if test "x$ac_cv_lib_tirpc_xdrmem_create" = xyes
; then :
27750 LIBTIRPC_CFLAGS
=-I/usr
/include
/tirpc
27753 $as_echo "#define HAVE_LIBTIRPC 1" >>confdefs.h
27757 if test "x$with_tirpc" != xcheck
; then
27758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27759 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27760 as_fn_error $?
"--with-tirpc was given, but test for tirpc failed
27761 See \`config.log' for more details" "$LINENO" 5; }
27763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing xdrmem_create" >&5
27764 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
27765 if ${ac_cv_search_xdrmem_create+:} false
; then :
27766 $as_echo_n "(cached) " >&6
27768 ac_func_search_save_LIBS
=$LIBS
27769 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27770 /* end confdefs.h. */
27772 /* Override any GCC internal prototype to avoid an error.
27773 Use char because int might match the return type of a GCC
27774 builtin and then its argument prototype would still apply. */
27778 char xdrmem_create ();
27782 return xdrmem_create ();
27787 for ac_lib
in '' tirpc
; do
27788 if test -z "$ac_lib"; then
27789 ac_res
="none required"
27792 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27794 if ac_fn_c_try_link
"$LINENO"; then :
27795 ac_cv_search_xdrmem_create
=$ac_res
27797 rm -f core conftest.err conftest.
$ac_objext \
27799 if ${ac_cv_search_xdrmem_create+:} false
; then :
27803 if ${ac_cv_search_xdrmem_create+:} false
; then :
27806 ac_cv_search_xdrmem_create
=no
27808 rm conftest.
$ac_ext
27809 LIBS
=$ac_func_search_save_LIBS
27811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xdrmem_create" >&5
27812 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
27813 ac_res
=$ac_cv_search_xdrmem_create
27814 if test "$ac_res" != no
; then :
27815 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27821 as_fn_error $?
"xdrmem_create() requires tirpc or libc
27822 See \`config.log' for more details" "$LINENO" 5; }
27829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing xdrmem_create" >&5
27830 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
27831 if ${ac_cv_search_xdrmem_create+:} false
; then :
27832 $as_echo_n "(cached) " >&6
27834 ac_func_search_save_LIBS
=$LIBS
27835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27836 /* end confdefs.h. */
27838 /* Override any GCC internal prototype to avoid an error.
27839 Use char because int might match the return type of a GCC
27840 builtin and then its argument prototype would still apply. */
27844 char xdrmem_create ();
27848 return xdrmem_create ();
27853 for ac_lib
in '' tirpc
; do
27854 if test -z "$ac_lib"; then
27855 ac_res
="none required"
27858 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27860 if ac_fn_c_try_link
"$LINENO"; then :
27861 ac_cv_search_xdrmem_create
=$ac_res
27863 rm -f core conftest.err conftest.
$ac_objext \
27865 if ${ac_cv_search_xdrmem_create+:} false
; then :
27869 if ${ac_cv_search_xdrmem_create+:} false
; then :
27872 ac_cv_search_xdrmem_create
=no
27874 rm conftest.
$ac_ext
27875 LIBS
=$ac_func_search_save_LIBS
27877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xdrmem_create" >&5
27878 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
27879 ac_res
=$ac_cv_search_xdrmem_create
27880 if test "$ac_res" != no
; then :
27881 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27887 as_fn_error $?
"xdrmem_create() requires libc
27888 See \`config.log' for more details" "$LINENO" 5; }
27897 ac_fn_c_check_header_mongrel
"$LINENO" "blkid/blkid.h" "ac_cv_header_blkid_blkid_h" "$ac_includes_default"
27898 if test "x$ac_cv_header_blkid_blkid_h" = xyes
; then :
27901 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27904 *** blkid.h missing, libblkid-devel package required
27905 See \`config.log' for more details" "$LINENO" 5; }
27913 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
27919 ac_fn_c_check_header_mongrel
"$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
27920 if test "x$ac_cv_header_attr_xattr_h" = xyes
; then :
27923 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27924 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27926 *** attr/xattr.h missing, libattr-devel package required
27927 See \`config.log' for more details" "$LINENO" 5; }
27935 $as_echo "#define HAVE_LIBATTR 1" >>confdefs.h
27941 ac_fn_c_check_header_mongrel
"$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
27942 if test "x$ac_cv_header_libudev_h" = xyes
; then :
27948 $as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
27959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing udev_device_get_is_initialized" >&5
27960 $as_echo_n "checking for library containing udev_device_get_is_initialized... " >&6; }
27961 if ${ac_cv_search_udev_device_get_is_initialized+:} false
; then :
27962 $as_echo_n "(cached) " >&6
27964 ac_func_search_save_LIBS
=$LIBS
27965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27966 /* end confdefs.h. */
27968 /* Override any GCC internal prototype to avoid an error.
27969 Use char because int might match the return type of a GCC
27970 builtin and then its argument prototype would still apply. */
27974 char udev_device_get_is_initialized ();
27978 return udev_device_get_is_initialized ();
27983 for ac_lib
in '' udev
; do
27984 if test -z "$ac_lib"; then
27985 ac_res
="none required"
27988 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27990 if ac_fn_c_try_link
"$LINENO"; then :
27991 ac_cv_search_udev_device_get_is_initialized
=$ac_res
27993 rm -f core conftest.err conftest.
$ac_objext \
27995 if ${ac_cv_search_udev_device_get_is_initialized+:} false
; then :
27999 if ${ac_cv_search_udev_device_get_is_initialized+:} false
; then :
28002 ac_cv_search_udev_device_get_is_initialized
=no
28004 rm conftest.
$ac_ext
28005 LIBS
=$ac_func_search_save_LIBS
28007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_udev_device_get_is_initialized" >&5
28008 $as_echo "$ac_cv_search_udev_device_get_is_initialized" >&6; }
28009 ac_res
=$ac_cv_search_udev_device_get_is_initialized
28010 if test "$ac_res" != no
; then :
28011 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
28014 $as_echo "#define HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED 1" >>confdefs.h
28021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
28022 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
28024 saved_flags
="$CFLAGS"
28025 CFLAGS
="$CFLAGS -Wframe-larger-than=1024"
28027 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28028 /* end confdefs.h. */
28038 if ac_fn_c_try_compile
"$LINENO"; then :
28040 FRAME_LARGER_THAN
=-Wframe-larger-than=1024
28041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28042 $as_echo "yes" >&6; }
28047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28048 $as_echo "no" >&6; }
28051 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28053 CFLAGS
="$saved_flags"
28057 if test "x$runstatedir" = x
; then
28058 runstatedir
='${localstatedir}/run'
28063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/sysmacros.h" >&5
28064 $as_echo_n "checking makedev() is declared in sys/sysmacros.h... " >&6; }
28065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28066 /* end confdefs.h. */
28068 #include <sys/sysmacros.h>
28081 if ac_fn_c_try_compile
"$LINENO"; then :
28083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28084 $as_echo "yes" >&6; }
28086 $as_echo "#define HAVE_MAKEDEV_IN_SYSMACROS 1" >>confdefs.h
28091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28092 $as_echo "no" >&6; }
28095 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/mkdev.h" >&5
28099 $as_echo_n "checking makedev() is declared in sys/mkdev.h... " >&6; }
28100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28101 /* end confdefs.h. */
28103 #include <sys/mkdev.h>
28116 if ac_fn_c_try_compile
"$LINENO"; then :
28118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28119 $as_echo "yes" >&6; }
28121 $as_echo "#define HAVE_MAKEDEV_IN_MKDEV 1" >>confdefs.h
28126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28127 $as_echo "no" >&6; }
28130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-format-truncation support" >&5
28134 $as_echo_n "checking for -Wno-format-truncation support... " >&6; }
28136 saved_flags
="$CFLAGS"
28137 CFLAGS
="$CFLAGS -Wno-format-truncation"
28139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28140 /* end confdefs.h. */
28150 if ac_fn_c_try_compile
"$LINENO"; then :
28152 NO_FORMAT_TRUNCATION
=-Wno-format-truncation
28153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28154 $as_echo "yes" >&6; }
28158 NO_FORMAT_TRUNCATION
=
28159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28160 $as_echo "no" >&6; }
28163 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28165 CFLAGS
="$saved_flags"
28170 ZONENAME
="echo global"
28176 for ac_func
in mlockall
28178 ac_fn_c_check_func
"$LINENO" "mlockall" "ac_cv_func_mlockall"
28179 if test "x$ac_cv_func_mlockall" = xyes
; then :
28180 cat >>confdefs.h
<<_ACEOF
28181 #define HAVE_MLOCKALL 1
28191 # Check whether --with-linux was given.
28192 if test "${with_linux+set}" = set; then :
28193 withval
=$with_linux; kernelsrc
="$withval"
28198 # Check whether --with-linux-obj was given.
28199 if test "${with_linux_obj+set}" = set; then :
28200 withval
=$with_linux_obj; kernelbuild
="$withval"
28204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
28205 $as_echo_n "checking kernel source directory... " >&6; }
28206 if test -z "$kernelsrc"; then :
28208 if test -e "/lib/modules/$(uname -r)/source"; then :
28210 headersdir
="/lib/modules/$(uname -r)/source"
28211 sourcelink
=$
(readlink
-f "$headersdir")
28213 elif test -e "/lib/modules/$(uname -r)/build"; then :
28215 headersdir
="/lib/modules/$(uname -r)/build"
28216 sourcelink
=$
(readlink
-f "$headersdir")
28220 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
28222 2>/dev
/null |
grep -v obj |
tail -1)
28226 if test -n "$sourcelink" && test -e ${sourcelink}; then :
28228 kernelsrc
=`readlink -f ${sourcelink}`
28232 kernelsrc
="Not found"
28238 if test "$kernelsrc" = "NONE"; then :
28247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
28248 $as_echo "$kernelsrc" >&6; }
28249 if test ! -d "$kernelsrc"; then :
28252 *** Please make sure the kernel devel package for your distribution
28253 *** is installed and then try again. If that fails, you can specify the
28254 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
28258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
28259 $as_echo_n "checking kernel build directory... " >&6; }
28260 if test -z "$kernelbuild"; then :
28262 if test x
$withlinux != xyes
-a -e "/lib/modules/$(uname -r)/build"; then :
28264 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
28266 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
28268 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
28270 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then :
28272 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
28274 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then :
28276 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
28280 kernelbuild
=${kernelsrc}
28285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
28286 $as_echo "$kernelbuild" >&6; }
28288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
28289 $as_echo_n "checking kernel source version... " >&6; }
28290 utsrelease1
=$kernelbuild/include
/linux
/version.h
28291 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
28292 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
28293 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then :
28295 utsrelease
=linux
/version.h
28297 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then :
28299 utsrelease
=linux
/utsrelease.h
28301 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then :
28303 utsrelease
=generated
/utsrelease.h
28307 if test "$utsrelease"; then :
28309 kernsrcver
=`(echo "#include <$utsrelease>";
28310 echo "kernsrcver=UTS_RELEASE") |
28311 cpp -I $kernelbuild/include |
28312 grep "^kernsrcver=" | cut -d \" -f 2`
28314 if test -z "$kernsrcver"; then :
28316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
28317 $as_echo "Not found" >&6; }
28318 as_fn_error $?
"*** Cannot determine kernel version." "$LINENO" 5
28324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
28325 $as_echo "Not found" >&6; }
28326 if test "x$enable_linux_builtin" != xyes
; then
28327 as_fn_error $?
"*** Cannot find UTS_RELEASE definition." "$LINENO" 5
28330 *** Cannot find UTS_RELEASE definition.
28331 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
28336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
28337 $as_echo "$kernsrcver" >&6; }
28340 LINUX_OBJ
=${kernelbuild}
28341 LINUX_VERSION
=${kernsrcver}
28348 modpost
=$LINUX/scripts
/Makefile.modpost
28349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
28350 $as_echo_n "checking kernel file name for module symbols... " >&6; }
28351 if test "x$enable_linux_builtin" != xyes
-a -f "$modpost"; then :
28353 if grep -q Modules.symvers
$modpost; then :
28355 LINUX_SYMBOLS
=Modules.symvers
28359 LINUX_SYMBOLS
=Module.symvers
28363 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
28366 *** Please make sure the kernel devel package for your distribution
28367 *** is installed. If you are building with a custom kernel, make sure the
28368 *** kernel is configured, built, and the '--with-linux=PATH' configure
28369 *** option refers to the location of the kernel source." "$LINENO" 5
28378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
28379 $as_echo "$LINUX_SYMBOLS" >&6; }
28385 # Check whether --with-spl was given.
28386 if test "${with_spl+set}" = set; then :
28387 withval
=$with_spl; if test "$withval" = "yes"; then :
28388 as_fn_error $?
"--with-spl=PATH requires a PATH" "$LINENO" 5
28396 # Check whether --with-spl-obj was given.
28397 if test "${with_spl_obj+set}" = set; then :
28398 withval
=$with_spl_obj; splbuild
="$withval"
28403 # Check whether --with-spl-timeout was given.
28404 if test "${with_spl_timeout+set}" = set; then :
28405 withval
=$with_spl_timeout; timeout
="$withval"
28411 splsrc0
="/var/lib/dkms/spl/${VERSION}/build"
28412 splsrc1
="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
28413 splsrc2
="/usr/local/src/spl-${VERSION}"
28414 splsrc3
="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
28415 splsrc4
="/usr/src/spl-${VERSION}"
28419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
28420 $as_echo_n "checking spl source directory... " >&6; }
28421 if test -z "${splsrc}"; then :
28431 if test -e "${splsrc0}/spl.release.in"; then :
28435 elif test -e "${splsrc1}/spl.release.in"; then :
28439 elif test -e "${splsrc2}/spl.release.in"; then :
28443 elif test -e "${splsrc3}/spl.release.in"; then :
28445 splsrc
=$
(readlink
-f "${splsrc3}")
28447 elif test -e "${splsrc4}/spl.release.in" ; then :
28451 elif test -e "${splsrc5}/spl.release.in"; then :
28453 splsrc
=$
(readlink
-f "${splsrc5}")
28455 elif test -e "${splsrc6}/spl.release.in" ; then :
28467 all_spl_sources
="$withval",
28468 if test "$splsrc" = "NONE"; then :
28477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
28478 $as_echo "$splsrc" >&6; }
28479 if test ! -e "$splsrc/spl.release.in"; then :
28482 *** Please make sure the kmod spl devel package for your distribution
28483 *** is installed then try again. If that fails you can specify the
28484 *** location of the spl source with the '--with-spl=PATH' option.
28485 *** The spl version must match the version of ZFS you are building,
28486 *** ${VERSION}. Failed to find spl.release.in in the following:
28487 $all_spl_sources" "$LINENO" 5
28491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
28492 $as_echo_n "checking spl build directory... " >&6; }
28494 all_spl_config_locs
="${splsrc}/${LINUX_VERSION}
28498 if test -z "$splbuild"; then :
28500 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
28502 splbuild
="${splsrc}/${LINUX_VERSION}"
28504 elif test -e "${splsrc}/spl_config.h" ; then :
28506 splbuild
="${splsrc}"
28508 elif find -L "${splsrc}" -name spl_config.h
2> /dev
/null |
grep -wq spl_config.h
; then :
28510 splbuild
=$
(find -L "${splsrc}" -name spl_config.h |
sed 's,/spl_config.h,,')
28514 splbuild
="Not found"
28519 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
28526 timeout
=$
((timeout-1
))
28531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
28532 $as_echo "$splbuild" >&6; }
28533 if ! test -e "$splbuild/spl_config.h"; then :
28536 *** Please make sure the kmod spl devel <kernel> package for your
28537 *** distribution is installed then try again. If that fails you
28538 *** can specify the location of the spl objects with the
28539 *** '--with-spl-obj=PATH' option. Failed to find spl_config.h in
28540 *** any of the following:
28541 $all_spl_config_locs" "$LINENO" 5
28545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
28546 $as_echo_n "checking spl source version... " >&6; }
28547 if test -r $splbuild/spl_config.h
&&
28548 fgrep
-q SPL_META_VERSION
$splbuild/spl_config.h
; then :
28551 splsrcver
=`(echo "#include <spl_config.h>";
28552 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
28554 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
28558 if test -z "$splsrcver"; then :
28560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
28561 $as_echo "Not found" >&6; }
28563 *** Cannot determine the version of the spl source.
28564 *** Please prepare the spl source before running this script" "$LINENO" 5
28568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
28569 $as_echo "$splsrcver" >&6; }
28572 SPL_OBJ
=${splbuild}
28573 SPL_VERSION
=${splsrcver}
28579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
28580 $as_echo_n "checking spl file name for module symbols... " >&6; }
28584 if test -r $SPL_OBJ/Module.symvers
; then :
28586 SPL_SYMBOLS
=Module.symvers
28588 elif test -r $SPL_OBJ/Modules.symvers
; then :
28590 SPL_SYMBOLS
=Modules.symvers
28592 elif test -r $SPL_OBJ/module
/Module.symvers
; then :
28594 SPL_SYMBOLS
=Module.symvers
28596 elif test -r $SPL_OBJ/module
/Modules.symvers
; then :
28598 SPL_SYMBOLS
=Modules.symvers
28602 if test $SPL_SYMBOLS != NONE
-o $timeout -le 0; then :
28609 timeout
=$
((timeout-1
))
28614 if test "$SPL_SYMBOLS" = NONE
; then :
28616 SPL_SYMBOLS
=$LINUX_SYMBOLS
28620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
28621 $as_echo "$SPL_SYMBOLS" >&6; }
28626 # Check whether --with-qat was given.
28627 if test "${with_qat+set}" = set; then :
28628 withval
=$with_qat; if test "$withval" = "yes"; then :
28629 as_fn_error $?
"--with-qat=PATH requires a PATH" "$LINENO" 5
28637 # Check whether --with-qat-obj was given.
28638 if test "${with_qat_obj+set}" = set; then :
28639 withval
=$with_qat_obj; qatbuild
="$withval"
28643 if test ! -z "${qatsrc}"; then :
28645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat source directory" >&5
28646 $as_echo_n "checking qat source directory... " >&6; }
28647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qatsrc" >&5
28648 $as_echo "$qatsrc" >&6; }
28649 QAT_SRC
="${qatsrc}/quickassist"
28650 if test ! -e "$QAT_SRC/include/cpa.h"; then :
28653 *** Please make sure the qat driver package is installed
28654 *** and specify the location of the qat source with the
28655 *** '--with-qat=PATH' option then try again. Failed to
28657 ${QAT_SRC}/include" "$LINENO" 5
28663 if test ! -z "${qatsrc}"; then :
28665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat build directory" >&5
28666 $as_echo_n "checking qat build directory... " >&6; }
28667 if test -z "$qatbuild"; then :
28669 qatbuild
="${qatsrc}/build"
28673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qatbuild" >&5
28674 $as_echo "$qatbuild" >&6; }
28675 QAT_OBJ
=${qatbuild}
28676 if ! test -e "$QAT_OBJ/icp_qa_al.ko" && ! test -e "$QAT_OBJ/qat_api.ko"; then :
28679 *** Please make sure the qat driver is installed then try again.
28680 *** Failed to find icp_qa_al.ko or qat_api.ko in:
28681 $QAT_OBJ" "$LINENO" 5
28689 $as_echo "#define HAVE_QAT 1" >>confdefs.h
28694 if test ! -z "${qatsrc}"; then :
28696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat file for module symbols" >&5
28697 $as_echo_n "checking qat file for module symbols... " >&6; }
28698 QAT_SYMBOLS
=$QAT_SRC/lookaside
/access_layer
/src
/Module.symvers
28700 if test -r $QAT_SYMBOLS; then :
28702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QAT_SYMBOLS" >&5
28703 $as_echo "$QAT_SYMBOLS" >&6; }
28709 *** Please make sure the qat driver is installed then try again.
28710 *** Failed to find Module.symvers in:
28711 $QAT_SYMBOLS" "$LINENO" 5
28718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
28719 $as_echo_n "checking whether modules can be built... " >&6; }
28722 cat confdefs.h
- <<_ACEOF >conftest.c
28737 cat - <<_ACEOF >conftest.h
28742 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28743 echo "obj-m := conftest.o" >build
/Makefile
28745 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28746 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28748 (eval $ac_try) 2>&5
28750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28751 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28752 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28753 (eval $ac_try) 2>&5
28755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28756 test $ac_status = 0; }; }; then :
28758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28759 $as_echo "yes" >&6; }
28762 $as_echo "$as_me: failed program was:" >&5
28763 sed 's/^/| /' conftest.
$ac_ext >&5
28765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28766 $as_echo "no" >&6; }
28767 if test "x$enable_linux_builtin" != xyes
; then
28768 as_fn_error $?
"*** Unable to build an empty module." "$LINENO" 5
28771 *** Unable to build an empty module.
28772 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
28783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile-time stack validation (objtool)" >&5
28784 $as_echo_n "checking for compile-time stack validation (objtool)... " >&6; }
28787 cat confdefs.h
- <<_ACEOF >conftest.c
28790 #undef __ASSEMBLY__
28791 #include <asm/frame.h>
28797 #if !defined(FRAME_BEGIN)
28809 cat - <<_ACEOF >conftest.h
28814 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28815 echo "obj-m := conftest.o" >build
/Makefile
28817 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28818 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28820 (eval $ac_try) 2>&5
28822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28823 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28825 (eval $ac_try) 2>&5
28827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28828 test $ac_status = 0; }; }; then :
28830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28831 $as_echo "yes" >&6; }
28833 $as_echo "#define HAVE_KERNEL_OBJTOOL 1" >>confdefs.h
28837 $as_echo "$as_me: failed program was:" >&5
28838 sed 's/^/| /' conftest.
$ac_ext >&5
28840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28841 $as_echo "no" >&6; }
28851 if test "x$cross_compiling" != xyes
; then :
28853 if test "$cross_compiling" = yes; then :
28854 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28855 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28856 as_fn_error $?
"cannot run test program while cross compiling
28857 See \`config.log' for more details" "$LINENO" 5; }
28859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28860 /* end confdefs.h. */
28863 #include "$LINUX/include/linux/license.h"
28869 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
28876 if ac_fn_c_try_run
"$LINENO"; then :
28879 $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
28883 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28884 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with 16K or larger stacks" >&5
28892 $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
28895 cat confdefs.h
- <<_ACEOF >conftest.c
28898 #include <linux/module.h>
28904 #if (THREAD_SIZE < 16384)
28905 #error "THREAD_SIZE is less than 16K"
28916 cat - <<_ACEOF >conftest.h
28921 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28922 echo "obj-m := conftest.o" >build
/Makefile
28924 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28925 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28926 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28927 (eval $ac_try) 2>&5
28929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28930 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28932 (eval $ac_try) 2>&5
28934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28935 test $ac_status = 0; }; }; then :
28937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28938 $as_echo "yes" >&6; }
28940 $as_echo "#define HAVE_LARGE_STACKS 1" >>confdefs.h
28944 $as_echo "$as_me: failed program was:" >&5
28945 sed 's/^/| /' conftest.
$ac_ext >&5
28947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28948 $as_echo "no" >&6; }
28959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
28960 $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
28963 cat confdefs.h
- <<_ACEOF >conftest.c
28966 #include <linux/module.h>
28972 #ifndef CONFIG_DEBUG_LOCK_ALLOC
28973 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
28984 cat - <<_ACEOF >conftest.h
28989 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28990 echo "obj-m := conftest.o" >build
/Makefile
28992 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28993 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28995 (eval $ac_try) 2>&5
28997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28998 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29000 (eval $ac_try) 2>&5
29002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29003 test $ac_status = 0; }; }; then :
29005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29006 $as_echo "yes" >&6; }
29008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
29009 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
29010 tmp_flags
="$EXTRA_KCFLAGS"
29013 cat confdefs.h
- <<_ACEOF >conftest.c
29016 #include <linux/module.h>
29017 #include <linux/mutex.h>
29019 MODULE_LICENSE("$ZFS_META_LICENSE");
29029 mutex_unlock(&lock);
29039 cat - <<_ACEOF >conftest.h
29044 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29045 echo "obj-m := conftest.o" >build
/Makefile
29047 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29048 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29049 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29050 (eval $ac_try) 2>&5
29052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29053 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29055 (eval $ac_try) 2>&5
29057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29058 test $ac_status = 0; }; }; then :
29060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29061 $as_echo "no" >&6; }
29064 $as_echo "$as_me: failed program was:" >&5
29065 sed 's/^/| /' conftest.
$ac_ext >&5
29067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29068 $as_echo "yes" >&6; }
29070 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
29071 *** with the CDDL license and will prevent the module linking stage
29072 *** from succeeding. You must rebuild your kernel without this
29073 *** option enabled." "$LINENO" 5
29081 EXTRA_KCFLAGS
="$tmp_flags"
29085 $as_echo "$as_me: failed program was:" >&5
29086 sed 's/^/| /' conftest.
$ac_ext >&5
29088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29089 $as_echo "no" >&6; }
29102 tmp_flags
="$EXTRA_KCFLAGS"
29103 EXTRA_KCFLAGS
="-I\$(src)"
29105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
29106 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
29109 cat confdefs.h
- <<_ACEOF >conftest.c
29112 #include <linux/module.h>
29113 MODULE_LICENSE(ZFS_META_LICENSE);
29115 #define CREATE_TRACE_POINTS
29116 #include "conftest.h"
29122 trace_zfs_autoconf_event_one(1UL);
29123 trace_zfs_autoconf_event_two(2UL);
29133 cat - <<_ACEOF >conftest.h
29135 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
29136 #define _CONFTEST_H
29138 #undef TRACE_SYSTEM
29139 #define TRACE_SYSTEM zfs
29140 #include <linux/tracepoint.h>
29142 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
29143 TP_PROTO(unsigned long i),
29146 __field(unsigned long, i)
29151 TP_printk("i = %lu", __entry->i)
29154 #define DEFINE_AUTOCONF_EVENT(name) \
29155 DEFINE_EVENT(zfs_autoconf_event_class, name, \
29156 TP_PROTO(unsigned long i), \
29158 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
29159 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
29161 #endif /* _CONFTEST_H */
29163 #undef TRACE_INCLUDE_PATH
29164 #define TRACE_INCLUDE_PATH .
29165 #define TRACE_INCLUDE_FILE conftest
29166 #include <trace/define_trace.h>
29171 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29172 echo "obj-m := conftest.o" >build
/Makefile
29174 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29175 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29177 (eval $ac_try) 2>&5
29179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29180 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29182 (eval $ac_try) 2>&5
29184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29185 test $ac_status = 0; }; }; then :
29187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29188 $as_echo "yes" >&6; }
29190 $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
29194 $as_echo "$as_me: failed program was:" >&5
29195 sed 's/^/| /' conftest.
$ac_ext >&5
29197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29198 $as_echo "no" >&6; }
29206 EXTRA_KCFLAGS
="$tmp_flags"
29209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5
29210 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
29213 cat confdefs.h
- <<_ACEOF >conftest.c
29216 #include <linux/sched.h>
29222 current->bio_tail = (struct bio **) NULL;
29232 cat - <<_ACEOF >conftest.h
29237 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29238 echo "obj-m := conftest.o" >build
/Makefile
29240 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29241 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29242 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29243 (eval $ac_try) 2>&5
29245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29246 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29247 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29248 (eval $ac_try) 2>&5
29250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29251 test $ac_status = 0; }; }; then :
29253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29254 $as_echo "yes" >&6; }
29256 $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h
29260 $as_echo "$as_me: failed program was:" >&5
29261 sed 's/^/| /' conftest.
$ac_ext >&5
29263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29264 $as_echo "no" >&6; }
29265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5
29266 $as_echo_n "checking whether current->bio_list exists... " >&6; }
29269 cat confdefs.h
- <<_ACEOF >conftest.c
29272 #include <linux/sched.h>
29278 current->bio_list = (struct bio_list *) NULL;
29288 cat - <<_ACEOF >conftest.h
29293 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29294 echo "obj-m := conftest.o" >build
/Makefile
29296 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29297 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29298 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29299 (eval $ac_try) 2>&5
29301 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29302 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29304 (eval $ac_try) 2>&5
29306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29307 test $ac_status = 0; }; }; then :
29309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29310 $as_echo "yes" >&6; }
29312 $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h
29316 $as_echo "$as_me: failed program was:" >&5
29317 sed 's/^/| /' conftest.
$ac_ext >&5
29319 as_fn_error $?
"no - Please file a bug report at
29320 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
29337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block->s_user_ns exists" >&5
29338 $as_echo_n "checking whether super_block->s_user_ns exists... " >&6; }
29341 cat confdefs.h
- <<_ACEOF >conftest.c
29344 #include <linux/fs.h>
29345 #include <linux/user_namespace.h>
29351 struct super_block super;
29352 super.s_user_ns = (struct user_namespace *)NULL;
29362 cat - <<_ACEOF >conftest.h
29367 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29368 echo "obj-m := conftest.o" >build
/Makefile
29370 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29371 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29373 (eval $ac_try) 2>&5
29375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29376 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29378 (eval $ac_try) 2>&5
29380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29381 test $ac_status = 0; }; }; then :
29383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29384 $as_echo "yes" >&6; }
29386 $as_echo "#define HAVE_SUPER_USER_NS 1" >>confdefs.h
29390 $as_echo "$as_me: failed program was:" >&5
29391 sed 's/^/| /' conftest.
$ac_ext >&5
29393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29394 $as_echo "no" >&6; }
29404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether submit_bio() wants 1 arg" >&5
29405 $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
29408 cat confdefs.h
- <<_ACEOF >conftest.c
29411 #include <linux/bio.h>
29418 struct bio *bio = NULL;
29419 blk_qc = submit_bio(bio);
29429 cat - <<_ACEOF >conftest.h
29434 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29435 echo "obj-m := conftest.o" >build
/Makefile
29437 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29438 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29440 (eval $ac_try) 2>&5
29442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29443 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29445 (eval $ac_try) 2>&5
29447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29448 test $ac_status = 0; }; }; then :
29450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29451 $as_echo "yes" >&6; }
29453 $as_echo "#define HAVE_1ARG_SUBMIT_BIO 1" >>confdefs.h
29457 $as_echo "$as_me: failed program was:" >&5
29458 sed 's/^/| /' conftest.
$ac_ext >&5
29460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29461 $as_echo "no" >&6; }
29471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
29472 $as_echo_n "checking block device operation prototypes... " >&6; }
29473 tmp_flags
="$EXTRA_KCFLAGS"
29474 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
29477 cat confdefs.h
- <<_ACEOF >conftest.c
29480 #include <linux/blkdev.h>
29482 int blk_open(struct block_device *bdev, fmode_t mode)
29484 int blk_ioctl(struct block_device *bdev, fmode_t mode,
29485 unsigned x, unsigned long y) { return 0; }
29486 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
29487 unsigned x, unsigned long y) { return 0; }
29489 static const struct block_device_operations
29490 bops __attribute__ ((unused)) = {
29493 .ioctl = blk_ioctl,
29494 .compat_ioctl = blk_compat_ioctl,
29510 cat - <<_ACEOF >conftest.h
29515 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29516 echo "obj-m := conftest.o" >build
/Makefile
29518 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29519 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29521 (eval $ac_try) 2>&5
29523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29524 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29525 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29526 (eval $ac_try) 2>&5
29528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29529 test $ac_status = 0; }; }; then :
29531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
29532 $as_echo "struct block_device" >&6; }
29534 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
29538 $as_echo "$as_me: failed program was:" >&5
29539 sed 's/^/| /' conftest.
$ac_ext >&5
29541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
29542 $as_echo "struct inode" >&6; }
29550 EXTRA_KCFLAGS
="$tmp_flags"
29553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
29554 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
29555 tmp_flags
="$EXTRA_KCFLAGS"
29556 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
29559 cat confdefs.h
- <<_ACEOF >conftest.c
29562 #include <linux/blkdev.h>
29564 void blk_release(struct gendisk *g, fmode_t mode) { return; }
29566 static const struct block_device_operations
29567 bops __attribute__ ((unused)) = {
29569 .release = blk_release,
29571 .compat_ioctl = NULL,
29587 cat - <<_ACEOF >conftest.h
29592 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29593 echo "obj-m := conftest.o" >build
/Makefile
29595 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29596 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29598 (eval $ac_try) 2>&5
29600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29601 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29602 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29603 (eval $ac_try) 2>&5
29605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29606 test $ac_status = 0; }; }; then :
29608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
29609 $as_echo "void" >&6; }
29611 $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
29615 $as_echo "$as_me: failed program was:" >&5
29616 sed 's/^/| /' conftest.
$ac_ext >&5
29618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
29619 $as_echo "int" >&6; }
29627 EXTRA_KCFLAGS
="$tmp_flags"
29629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
29630 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
29633 cat confdefs.h
- <<_ACEOF >conftest.c
29636 #include <linux/types.h>
29642 fmode_t *ptr __attribute__ ((unused));
29652 cat - <<_ACEOF >conftest.h
29657 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29658 echo "obj-m := conftest.o" >build
/Makefile
29660 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29661 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29663 (eval $ac_try) 2>&5
29665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29666 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29668 (eval $ac_try) 2>&5
29670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29671 test $ac_status = 0; }; }; then :
29673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29674 $as_echo "yes" >&6; }
29676 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
29680 $as_echo "$as_me: failed program was:" >&5
29681 sed 's/^/| /' conftest.
$ac_ext >&5
29683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29684 $as_echo "no" >&6; }
29694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
29695 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
29698 cat confdefs.h
- <<_ACEOF >conftest.c
29701 #include <linux/fs.h>
29707 struct block_device *bdev = NULL;
29708 (void) blkdev_get(bdev, 0, NULL);
29718 cat - <<_ACEOF >conftest.h
29723 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29724 echo "obj-m := conftest.o" >build
/Makefile
29726 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29727 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29729 (eval $ac_try) 2>&5
29731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29732 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29734 (eval $ac_try) 2>&5
29736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29737 test $ac_status = 0; }; }; then :
29739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29740 $as_echo "yes" >&6; }
29742 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
29746 $as_echo "$as_me: failed program was:" >&5
29747 sed 's/^/| /' conftest.
$ac_ext >&5
29749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29750 $as_echo "no" >&6; }
29759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
29760 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
29764 cat confdefs.h
- <<_ACEOF >conftest.c
29767 #include <linux/fs.h>
29773 blkdev_get_by_path(NULL, 0, NULL);
29783 cat - <<_ACEOF >conftest.h
29788 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29789 echo "obj-m := conftest.o" >build
/Makefile
29791 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29792 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29793 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29794 (eval $ac_try) 2>&5
29796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29797 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29799 (eval $ac_try) 2>&5
29801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29802 test $ac_status = 0; }; }; then :
29805 $as_echo "$as_me: failed program was:" >&5
29806 sed 's/^/| /' conftest.
$ac_ext >&5
29814 if test $rc -ne 0; then :
29816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29817 $as_echo "no" >&6; }
29820 if test "x$enable_linux_builtin" != xyes
; then
29822 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
29823 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
29825 if test $rc -ne 0; then
29827 for file in fs
/block_dev.c
; do
29828 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
29829 "$LINUX/$file" 2>/dev
/null
29831 if test $rc -eq 0; then
29836 if test $export -eq 0; then :
29846 if test $rc -ne 0; then :
29848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29849 $as_echo "no" >&6; }
29853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29854 $as_echo "yes" >&6; }
29856 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
29863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
29864 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
29868 cat confdefs.h
- <<_ACEOF >conftest.c
29871 #include <linux/fs.h>
29877 open_bdev_exclusive(NULL, 0, NULL);
29887 cat - <<_ACEOF >conftest.h
29892 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29893 echo "obj-m := conftest.o" >build
/Makefile
29895 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29896 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29898 (eval $ac_try) 2>&5
29900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29901 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29903 (eval $ac_try) 2>&5
29905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29906 test $ac_status = 0; }; }; then :
29909 $as_echo "$as_me: failed program was:" >&5
29910 sed 's/^/| /' conftest.
$ac_ext >&5
29918 if test $rc -ne 0; then :
29920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29921 $as_echo "no" >&6; }
29924 if test "x$enable_linux_builtin" != xyes
; then
29926 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
29927 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
29929 if test $rc -ne 0; then
29931 for file in fs
/block_dev.c
; do
29932 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
29933 "$LINUX/$file" 2>/dev
/null
29935 if test $rc -eq 0; then
29940 if test $export -eq 0; then :
29950 if test $rc -ne 0; then :
29952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29953 $as_echo "no" >&6; }
29957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29958 $as_echo "yes" >&6; }
29960 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
29967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 1 arg" >&5
29968 $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
29972 cat confdefs.h
- <<_ACEOF >conftest.c
29975 #include <linux/fs.h>
29991 cat - <<_ACEOF >conftest.h
29996 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29997 echo "obj-m := conftest.o" >build
/Makefile
29999 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30000 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30002 (eval $ac_try) 2>&5
30004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30005 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30007 (eval $ac_try) 2>&5
30009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30010 test $ac_status = 0; }; }; then :
30013 $as_echo "$as_me: failed program was:" >&5
30014 sed 's/^/| /' conftest.
$ac_ext >&5
30022 if test $rc -ne 0; then :
30024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30025 $as_echo "no" >&6; }
30026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
30027 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
30031 cat confdefs.h
- <<_ACEOF >conftest.c
30034 #include <linux/fs.h>
30040 lookup_bdev(NULL, FMODE_READ);
30050 cat - <<_ACEOF >conftest.h
30055 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30056 echo "obj-m := conftest.o" >build
/Makefile
30058 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30059 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30061 (eval $ac_try) 2>&5
30063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30064 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30066 (eval $ac_try) 2>&5
30068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30069 test $ac_status = 0; }; }; then :
30072 $as_echo "$as_me: failed program was:" >&5
30073 sed 's/^/| /' conftest.
$ac_ext >&5
30081 if test $rc -ne 0; then :
30083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30084 $as_echo "no" >&6; }
30087 if test "x$enable_linux_builtin" != xyes
; then
30089 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
30090 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
30092 if test $rc -ne 0; then
30094 for file in fs
/block_dev.c
; do
30095 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
30096 "$LINUX/$file" 2>/dev
/null
30098 if test $rc -eq 0; then
30103 if test $export -eq 0; then :
30113 if test $rc -ne 0; then :
30115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30116 $as_echo "no" >&6; }
30120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30121 $as_echo "yes" >&6; }
30123 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
30131 if test "x$enable_linux_builtin" != xyes
; then
30133 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
30134 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
30136 if test $rc -ne 0; then
30138 for file in fs
/block_dev.c
; do
30139 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
30140 "$LINUX/$file" 2>/dev
/null
30142 if test $rc -eq 0; then
30147 if test $export -eq 0; then :
30157 if test $rc -ne 0; then :
30159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30160 $as_echo "no" >&6; }
30161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
30162 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
30166 cat confdefs.h
- <<_ACEOF >conftest.c
30169 #include <linux/fs.h>
30175 lookup_bdev(NULL, FMODE_READ);
30185 cat - <<_ACEOF >conftest.h
30190 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30191 echo "obj-m := conftest.o" >build
/Makefile
30193 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30194 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30196 (eval $ac_try) 2>&5
30198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30199 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30201 (eval $ac_try) 2>&5
30203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30204 test $ac_status = 0; }; }; then :
30207 $as_echo "$as_me: failed program was:" >&5
30208 sed 's/^/| /' conftest.
$ac_ext >&5
30216 if test $rc -ne 0; then :
30218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30219 $as_echo "no" >&6; }
30222 if test "x$enable_linux_builtin" != xyes
; then
30224 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
30225 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
30227 if test $rc -ne 0; then
30229 for file in fs
/block_dev.c
; do
30230 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
30231 "$LINUX/$file" 2>/dev
/null
30233 if test $rc -eq 0; then
30238 if test $export -eq 0; then :
30248 if test $rc -ne 0; then :
30250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30251 $as_echo "no" >&6; }
30255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30256 $as_echo "yes" >&6; }
30258 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
30267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30268 $as_echo "yes" >&6; }
30270 $as_echo "#define HAVE_1ARG_LOOKUP_BDEV 1" >>confdefs.h
30278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
30279 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
30282 cat confdefs.h
- <<_ACEOF >conftest.c
30285 #include <linux/buffer_head.h>
30291 struct block_device *bdev = NULL;
30292 invalidate_bdev(bdev);
30302 cat - <<_ACEOF >conftest.h
30307 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30308 echo "obj-m := conftest.o" >build
/Makefile
30310 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30311 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30313 (eval $ac_try) 2>&5
30315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30316 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30317 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30318 (eval $ac_try) 2>&5
30320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30321 test $ac_status = 0; }; }; then :
30323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30324 $as_echo "yes" >&6; }
30326 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
30330 $as_echo "$as_me: failed program was:" >&5
30331 sed 's/^/| /' conftest.
$ac_ext >&5
30333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30334 $as_echo "no" >&6; }
30344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
30345 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
30346 tmp_flags
="$EXTRA_KCFLAGS"
30347 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
30350 cat confdefs.h
- <<_ACEOF >conftest.c
30353 #include <linux/blkdev.h>
30359 struct block_device *bdev = NULL;
30360 bdev_logical_block_size(bdev);
30370 cat - <<_ACEOF >conftest.h
30375 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30376 echo "obj-m := conftest.o" >build
/Makefile
30378 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30379 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30381 (eval $ac_try) 2>&5
30383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30384 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30386 (eval $ac_try) 2>&5
30388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30389 test $ac_status = 0; }; }; then :
30391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30392 $as_echo "yes" >&6; }
30394 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
30398 $as_echo "$as_me: failed program was:" >&5
30399 sed 's/^/| /' conftest.
$ac_ext >&5
30401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30402 $as_echo "no" >&6; }
30410 EXTRA_KCFLAGS
="$tmp_flags"
30413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
30414 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
30415 tmp_flags
="$EXTRA_KCFLAGS"
30416 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
30419 cat confdefs.h
- <<_ACEOF >conftest.c
30422 #include <linux/blkdev.h>
30428 struct block_device *bdev = NULL;
30429 bdev_physical_block_size(bdev);
30439 cat - <<_ACEOF >conftest.h
30444 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30445 echo "obj-m := conftest.o" >build
/Makefile
30447 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30448 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30450 (eval $ac_try) 2>&5
30452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30453 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30455 (eval $ac_try) 2>&5
30457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30458 test $ac_status = 0; }; }; then :
30460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30461 $as_echo "yes" >&6; }
30463 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
30467 $as_echo "$as_me: failed program was:" >&5
30468 sed 's/^/| /' conftest.
$ac_ext >&5
30470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30471 $as_echo "no" >&6; }
30479 EXTRA_KCFLAGS
="$tmp_flags"
30482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
30483 $as_echo_n "checking whether bio has bi_iter... " >&6; }
30486 cat confdefs.h
- <<_ACEOF >conftest.c
30489 #include <linux/bio.h>
30496 bio.bi_iter.bi_sector = 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\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30517 (eval $ac_try) 2>&5
30519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30520 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30521 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30522 (eval $ac_try) 2>&5
30524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30525 test $ac_status = 0; }; }; then :
30527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30528 $as_echo "yes" >&6; }
30530 $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
30534 $as_echo "$as_me: failed program was:" >&5
30535 sed 's/^/| /' conftest.
$ac_ext >&5
30537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30538 $as_echo "no" >&6; }
30548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
30549 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
30552 cat confdefs.h
- <<_ACEOF >conftest.c
30555 #include <linux/bio.h>
30561 int flags __attribute__ ((unused));
30562 flags = ((1 << BIO_RW_FAILFAST_DEV) |
30563 (1 << BIO_RW_FAILFAST_TRANSPORT) |
30564 (1 << BIO_RW_FAILFAST_DRIVER));
30574 cat - <<_ACEOF >conftest.h
30579 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30580 echo "obj-m := conftest.o" >build
/Makefile
30582 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30583 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30584 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30585 (eval $ac_try) 2>&5
30587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30588 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30589 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30590 (eval $ac_try) 2>&5
30592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30593 test $ac_status = 0; }; }; then :
30595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30596 $as_echo "yes" >&6; }
30598 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
30602 $as_echo "$as_me: failed program was:" >&5
30603 sed 's/^/| /' conftest.
$ac_ext >&5
30605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30606 $as_echo "no" >&6; }
30616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_dev() exists" >&5
30617 $as_echo_n "checking whether bio_set_dev() exists... " >&6; }
30620 cat confdefs.h
- <<_ACEOF >conftest.c
30623 #include <linux/bio.h>
30624 #include <linux/fs.h>
30630 struct block_device *bdev = NULL;
30631 struct bio *bio = NULL;
30632 bio_set_dev(bio, bdev);
30642 cat - <<_ACEOF >conftest.h
30647 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30648 echo "obj-m := conftest.o" >build
/Makefile
30650 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30651 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30653 (eval $ac_try) 2>&5
30655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30656 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30657 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30658 (eval $ac_try) 2>&5
30660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30661 test $ac_status = 0; }; }; then :
30663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30664 $as_echo "yes" >&6; }
30666 $as_echo "#define HAVE_BIO_SET_DEV 1" >>confdefs.h
30670 $as_echo "$as_me: failed program was:" >&5
30671 sed 's/^/| /' conftest.
$ac_ext >&5
30673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30674 $as_echo "no" >&6; }
30684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
30685 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
30688 cat confdefs.h
- <<_ACEOF >conftest.c
30691 #include <linux/bio.h>
30697 int flags __attribute__ ((unused));
30698 flags = REQ_FAILFAST_MASK;
30708 cat - <<_ACEOF >conftest.h
30713 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30714 echo "obj-m := conftest.o" >build
/Makefile
30716 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30717 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30719 (eval $ac_try) 2>&5
30721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30722 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30723 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30724 (eval $ac_try) 2>&5
30726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30727 test $ac_status = 0; }; }; then :
30729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30730 $as_echo "yes" >&6; }
30732 $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h
30736 $as_echo "$as_me: failed program was:" >&5
30737 sed 's/^/| /' conftest.
$ac_ext >&5
30739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30740 $as_echo "no" >&6; }
30750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_DISCARD is defined" >&5
30751 $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
30754 cat confdefs.h
- <<_ACEOF >conftest.c
30757 #include <linux/blk_types.h>
30763 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
30773 cat - <<_ACEOF >conftest.h
30778 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30779 echo "obj-m := conftest.o" >build
/Makefile
30781 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30782 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30784 (eval $ac_try) 2>&5
30786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30787 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30789 (eval $ac_try) 2>&5
30791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30792 test $ac_status = 0; }; }; then :
30794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30795 $as_echo "yes" >&6; }
30797 $as_echo "#define HAVE_REQ_OP_DISCARD 1" >>confdefs.h
30801 $as_echo "$as_me: failed program was:" >&5
30802 sed 's/^/| /' conftest.
$ac_ext >&5
30804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30805 $as_echo "no" >&6; }
30815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_SECURE_ERASE is defined" >&5
30816 $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
30819 cat confdefs.h
- <<_ACEOF >conftest.c
30822 #include <linux/blk_types.h>
30828 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
30838 cat - <<_ACEOF >conftest.h
30843 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30844 echo "obj-m := conftest.o" >build
/Makefile
30846 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30847 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30849 (eval $ac_try) 2>&5
30851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30852 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30854 (eval $ac_try) 2>&5
30856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30857 test $ac_status = 0; }; }; then :
30859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30860 $as_echo "yes" >&6; }
30862 $as_echo "#define HAVE_REQ_OP_SECURE_ERASE 1" >>confdefs.h
30866 $as_echo "$as_me: failed program was:" >&5
30867 sed 's/^/| /' conftest.
$ac_ext >&5
30869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30870 $as_echo "no" >&6; }
30880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_FLUSH is defined" >&5
30881 $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
30884 cat confdefs.h
- <<_ACEOF >conftest.c
30887 #include <linux/blk_types.h>
30893 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
30903 cat - <<_ACEOF >conftest.h
30908 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30909 echo "obj-m := conftest.o" >build
/Makefile
30911 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30912 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30914 (eval $ac_try) 2>&5
30916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30917 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30919 (eval $ac_try) 2>&5
30921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30922 test $ac_status = 0; }; }; then :
30924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30925 $as_echo "yes" >&6; }
30927 $as_echo "#define HAVE_REQ_OP_FLUSH 1" >>confdefs.h
30931 $as_echo "$as_me: failed program was:" >&5
30932 sed 's/^/| /' conftest.
$ac_ext >&5
30934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30935 $as_echo "no" >&6; }
30945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_opf is defined" >&5
30946 $as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
30949 cat confdefs.h
- <<_ACEOF >conftest.c
30952 #include <linux/bio.h>
30958 struct bio bio __attribute__ ((unused));
30969 cat - <<_ACEOF >conftest.h
30974 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30975 echo "obj-m := conftest.o" >build
/Makefile
30977 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30978 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30979 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30980 (eval $ac_try) 2>&5
30982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30983 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30984 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30985 (eval $ac_try) 2>&5
30987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30988 test $ac_status = 0; }; }; then :
30990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30991 $as_echo "yes" >&6; }
30993 $as_echo "#define HAVE_BIO_BI_OPF 1" >>confdefs.h
30997 $as_echo "$as_me: failed program was:" >&5
30998 sed 's/^/| /' conftest.
$ac_ext >&5
31000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31001 $as_echo "no" >&6; }
31011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5
31012 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
31015 cat confdefs.h
- <<_ACEOF >conftest.c
31018 #include <linux/bio.h>
31020 void wanted_end_io(struct bio *bio) { return; }
31022 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
31037 cat - <<_ACEOF >conftest.h
31042 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31043 echo "obj-m := conftest.o" >build
/Makefile
31045 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31046 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31048 (eval $ac_try) 2>&5
31050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31051 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31053 (eval $ac_try) 2>&5
31055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31056 test $ac_status = 0; }; }; then :
31058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31059 $as_echo "yes" >&6; }
31061 $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h
31065 $as_echo "$as_me: failed program was:" >&5
31066 sed 's/^/| /' conftest.
$ac_ext >&5
31068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31069 $as_echo "no" >&6; }
31079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_status exists" >&5
31080 $as_echo_n "checking whether bio->bi_status exists... " >&6; }
31083 cat confdefs.h
- <<_ACEOF >conftest.c
31086 #include <linux/bio.h>
31092 struct bio bio __attribute__ ((unused));
31093 blk_status_t status __attribute__ ((unused)) = BLK_STS_OK;
31095 bio.bi_status = status;
31105 cat - <<_ACEOF >conftest.h
31110 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31111 echo "obj-m := conftest.o" >build
/Makefile
31113 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31114 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31116 (eval $ac_try) 2>&5
31118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31119 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31121 (eval $ac_try) 2>&5
31123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31124 test $ac_status = 0; }; }; then :
31126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31127 $as_echo "yes" >&6; }
31129 $as_echo "#define HAVE_BIO_BI_STATUS 1" >>confdefs.h
31133 $as_echo "$as_me: failed program was:" >&5
31134 sed 's/^/| /' conftest.
$ac_ext >&5
31136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31137 $as_echo "no" >&6; }
31147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5
31148 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
31151 cat confdefs.h
- <<_ACEOF >conftest.c
31154 #include <linux/bio.h>
31160 int flags __attribute__ ((unused));
31161 flags = BIO_RW_BARRIER;
31171 cat - <<_ACEOF >conftest.h
31176 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31177 echo "obj-m := conftest.o" >build
/Makefile
31179 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31180 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31182 (eval $ac_try) 2>&5
31184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31185 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31187 (eval $ac_try) 2>&5
31189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31190 test $ac_status = 0; }; }; then :
31192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31193 $as_echo "yes" >&6; }
31195 $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h
31199 $as_echo "$as_me: failed program was:" >&5
31200 sed 's/^/| /' conftest.
$ac_ext >&5
31202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31203 $as_echo "no" >&6; }
31213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5
31214 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
31217 cat confdefs.h
- <<_ACEOF >conftest.c
31220 #include <linux/bio.h>
31226 int flags __attribute__ ((unused));
31227 flags = BIO_RW_DISCARD;
31237 cat - <<_ACEOF >conftest.h
31242 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31243 echo "obj-m := conftest.o" >build
/Makefile
31245 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31246 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31247 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31248 (eval $ac_try) 2>&5
31250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31251 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31253 (eval $ac_try) 2>&5
31255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31256 test $ac_status = 0; }; }; then :
31258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31259 $as_echo "yes" >&6; }
31261 $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h
31265 $as_echo "$as_me: failed program was:" >&5
31266 sed 's/^/| /' conftest.
$ac_ext >&5
31268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31269 $as_echo "no" >&6; }
31279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue bdi is dynamic" >&5
31280 $as_echo_n "checking whether blk_queue bdi is dynamic... " >&6; }
31283 cat confdefs.h
- <<_ACEOF >conftest.c
31286 #include <linux/blkdev.h>
31292 struct request_queue q;
31293 struct backing_dev_info bdi;
31294 q.backing_dev_info = &bdi;
31304 cat - <<_ACEOF >conftest.h
31309 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31310 echo "obj-m := conftest.o" >build
/Makefile
31312 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31313 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31315 (eval $ac_try) 2>&5
31317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31318 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31320 (eval $ac_try) 2>&5
31322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31323 test $ac_status = 0; }; }; then :
31325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31326 $as_echo "yes" >&6; }
31328 $as_echo "#define HAVE_BLK_QUEUE_BDI_DYNAMIC 1" >>confdefs.h
31332 $as_echo "$as_me: failed program was:" >&5
31333 sed 's/^/| /' conftest.
$ac_ext >&5
31335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31336 $as_echo "no" >&6; }
31346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
31347 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
31348 tmp_flags
="$EXTRA_KCFLAGS"
31349 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
31352 cat confdefs.h
- <<_ACEOF >conftest.c
31355 #include <linux/blkdev.h>
31361 struct request_queue *q = NULL;
31362 (void) blk_queue_flush(q, REQ_FLUSH);
31372 cat - <<_ACEOF >conftest.h
31377 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31378 echo "obj-m := conftest.o" >build
/Makefile
31380 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31381 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31383 (eval $ac_try) 2>&5
31385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31386 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31388 (eval $ac_try) 2>&5
31390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31391 test $ac_status = 0; }; }; then :
31393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31394 $as_echo "yes" >&6; }
31396 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
31399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
31400 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
31403 cat confdefs.h
- <<_ACEOF >conftest.c
31406 #include <linux/module.h>
31407 #include <linux/blkdev.h>
31409 MODULE_LICENSE("$ZFS_META_LICENSE");
31415 struct request_queue *q = NULL;
31416 (void) blk_queue_flush(q, REQ_FLUSH);
31426 cat - <<_ACEOF >conftest.h
31431 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31432 echo "obj-m := conftest.o" >build
/Makefile
31434 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31435 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31437 (eval $ac_try) 2>&5
31439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31440 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31442 (eval $ac_try) 2>&5
31444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31445 test $ac_status = 0; }; }; then :
31447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31448 $as_echo "no" >&6; }
31451 $as_echo "$as_me: failed program was:" >&5
31452 sed 's/^/| /' conftest.
$ac_ext >&5
31454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31455 $as_echo "yes" >&6; }
31457 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
31468 $as_echo "$as_me: failed program was:" >&5
31469 sed 's/^/| /' conftest.
$ac_ext >&5
31471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31472 $as_echo "no" >&6; }
31481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() exists" >&5
31482 $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
31485 cat confdefs.h
- <<_ACEOF >conftest.c
31488 #include <linux/kernel.h>
31489 #include <linux/blkdev.h>
31496 struct request_queue *q = NULL;
31497 blk_queue_write_cache(q, true, true);
31507 cat - <<_ACEOF >conftest.h
31512 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31513 echo "obj-m := conftest.o" >build
/Makefile
31515 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31516 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31518 (eval $ac_try) 2>&5
31520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31521 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31523 (eval $ac_try) 2>&5
31525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31526 test $ac_status = 0; }; }; then :
31528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31529 $as_echo "yes" >&6; }
31531 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE 1" >>confdefs.h
31534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() is GPL-only" >&5
31535 $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
31538 cat confdefs.h
- <<_ACEOF >conftest.c
31541 #include <linux/kernel.h>
31542 #include <linux/module.h>
31543 #include <linux/blkdev.h>
31545 MODULE_LICENSE("$ZFS_META_LICENSE");
31551 struct request_queue *q = NULL;
31552 blk_queue_write_cache(q, true, true);
31562 cat - <<_ACEOF >conftest.h
31567 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31568 echo "obj-m := conftest.o" >build
/Makefile
31570 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31571 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31573 (eval $ac_try) 2>&5
31575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31576 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31577 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31578 (eval $ac_try) 2>&5
31580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31581 test $ac_status = 0; }; }; then :
31583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31584 $as_echo "no" >&6; }
31587 $as_echo "$as_me: failed program was:" >&5
31588 sed 's/^/| /' conftest.
$ac_ext >&5
31590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31591 $as_echo "yes" >&6; }
31593 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1" >>confdefs.h
31604 $as_echo "$as_me: failed program was:" >&5
31605 sed 's/^/| /' conftest.
$ac_ext >&5
31607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31608 $as_echo "no" >&6; }
31617 EXTRA_KCFLAGS
="$tmp_flags"
31620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
31621 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
31622 tmp_flags
="$EXTRA_KCFLAGS"
31623 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
31626 cat confdefs.h
- <<_ACEOF >conftest.c
31629 #include <linux/blkdev.h>
31635 struct request_queue *q = NULL;
31636 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
31646 cat - <<_ACEOF >conftest.h
31651 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31652 echo "obj-m := conftest.o" >build
/Makefile
31654 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31655 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31657 (eval $ac_try) 2>&5
31659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31660 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31662 (eval $ac_try) 2>&5
31664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31665 test $ac_status = 0; }; }; then :
31667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31668 $as_echo "yes" >&6; }
31670 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
31674 $as_echo "$as_me: failed program was:" >&5
31675 sed 's/^/| /' conftest.
$ac_ext >&5
31677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31678 $as_echo "no" >&6; }
31686 EXTRA_KCFLAGS
="$tmp_flags"
31689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
31690 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
31691 tmp_flags
="$EXTRA_KCFLAGS"
31692 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
31695 cat confdefs.h
- <<_ACEOF >conftest.c
31698 #include <linux/blkdev.h>
31704 struct request_queue *q = NULL;
31705 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
31715 cat - <<_ACEOF >conftest.h
31720 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31721 echo "obj-m := conftest.o" >build
/Makefile
31723 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31724 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31725 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31726 (eval $ac_try) 2>&5
31728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31729 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31731 (eval $ac_try) 2>&5
31733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31734 test $ac_status = 0; }; }; then :
31736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31737 $as_echo "yes" >&6; }
31739 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
31743 $as_echo "$as_me: failed program was:" >&5
31744 sed 's/^/| /' conftest.
$ac_ext >&5
31746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31747 $as_echo "no" >&6; }
31755 EXTRA_KCFLAGS
="$tmp_flags"
31758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the BIO_RW_UNPLUG enum is available" >&5
31759 $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
31760 tmp_flags
="$EXTRA_KCFLAGS"
31761 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
31764 cat confdefs.h
- <<_ACEOF >conftest.c
31767 #include <linux/blkdev.h>
31773 extern enum bio_rw_flags rw;
31775 rw = BIO_RW_UNPLUG;
31785 cat - <<_ACEOF >conftest.h
31790 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31791 echo "obj-m := conftest.o" >build
/Makefile
31793 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31794 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31795 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31796 (eval $ac_try) 2>&5
31798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31799 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31801 (eval $ac_try) 2>&5
31803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31804 test $ac_status = 0; }; }; then :
31806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31807 $as_echo "yes" >&6; }
31809 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1" >>confdefs.h
31813 $as_echo "$as_me: failed program was:" >&5
31814 sed 's/^/| /' conftest.
$ac_ext >&5
31816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31817 $as_echo "no" >&6; }
31825 EXTRA_KCFLAGS
="$tmp_flags"
31828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct blk_plug is available" >&5
31829 $as_echo_n "checking whether struct blk_plug is available... " >&6; }
31830 tmp_flags
="$EXTRA_KCFLAGS"
31831 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
31834 cat confdefs.h
- <<_ACEOF >conftest.c
31837 #include <linux/blkdev.h>
31843 struct blk_plug plug;
31845 blk_start_plug(&plug);
31846 blk_finish_plug(&plug);
31856 cat - <<_ACEOF >conftest.h
31861 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31862 echo "obj-m := conftest.o" >build
/Makefile
31864 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31865 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31867 (eval $ac_try) 2>&5
31869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31870 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31871 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31872 (eval $ac_try) 2>&5
31874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31875 test $ac_status = 0; }; }; then :
31877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31878 $as_echo "yes" >&6; }
31880 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1" >>confdefs.h
31884 $as_echo "$as_me: failed program was:" >&5
31885 sed 's/^/| /' conftest.
$ac_ext >&5
31887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31888 $as_echo "no" >&6; }
31896 EXTRA_KCFLAGS
="$tmp_flags"
31899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
31900 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
31901 tmp_flags
="$EXTRA_KCFLAGS"
31902 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
31905 cat confdefs.h
- <<_ACEOF >conftest.c
31908 #include <linux/blkdev.h>
31914 struct gendisk *disk = NULL;
31915 (void) get_disk_ro(disk);
31925 cat - <<_ACEOF >conftest.h
31930 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31931 echo "obj-m := conftest.o" >build
/Makefile
31933 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31934 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31936 (eval $ac_try) 2>&5
31938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31939 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31941 (eval $ac_try) 2>&5
31943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31944 test $ac_status = 0; }; }; then :
31946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31947 $as_echo "yes" >&6; }
31949 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
31953 $as_echo "$as_me: failed program was:" >&5
31954 sed 's/^/| /' conftest.
$ac_ext >&5
31956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31957 $as_echo "no" >&6; }
31965 EXTRA_KCFLAGS
="$tmp_flags"
31967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
31968 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
31972 cat confdefs.h
- <<_ACEOF >conftest.c
31975 #include <linux/genhd.h>
31981 get_gendisk(0, NULL);
31991 cat - <<_ACEOF >conftest.h
31996 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31997 echo "obj-m := conftest.o" >build
/Makefile
31999 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32000 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32002 (eval $ac_try) 2>&5
32004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32005 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32007 (eval $ac_try) 2>&5
32009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32010 test $ac_status = 0; }; }; then :
32013 $as_echo "$as_me: failed program was:" >&5
32014 sed 's/^/| /' conftest.
$ac_ext >&5
32022 if test $rc -ne 0; then :
32024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32025 $as_echo "no" >&6; }
32028 if test "x$enable_linux_builtin" != xyes
; then
32030 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
32031 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
32033 if test $rc -ne 0; then
32035 for file in block
/genhd.c
; do
32036 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
32037 "$LINUX/$file" 2>/dev
/null
32039 if test $rc -eq 0; then
32044 if test $export -eq 0; then :
32054 if test $rc -ne 0; then :
32056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32057 $as_echo "no" >&6; }
32061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32062 $as_echo "yes" >&6; }
32064 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
32072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_op_attrs is available" >&5
32073 $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
32076 cat confdefs.h
- <<_ACEOF >conftest.c
32079 #include <linux/bio.h>
32085 struct bio *bio __attribute__ ((unused)) = NULL;
32087 bio_set_op_attrs(bio, 0, 0);
32097 cat - <<_ACEOF >conftest.h
32102 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32103 echo "obj-m := conftest.o" >build
/Makefile
32105 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32106 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32108 (eval $ac_try) 2>&5
32110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32111 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32113 (eval $ac_try) 2>&5
32115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32116 test $ac_status = 0; }; }; then :
32118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32119 $as_echo "yes" >&6; }
32121 $as_echo "#define HAVE_BIO_SET_OP_ATTRS 1" >>confdefs.h
32125 $as_echo "$as_me: failed program was:" >&5
32126 sed 's/^/| /' conftest.
$ac_ext >&5
32128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32129 $as_echo "no" >&6; }
32139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_readlink is global" >&5
32140 $as_echo_n "checking whether generic_readlink is global... " >&6; }
32143 cat confdefs.h
- <<_ACEOF >conftest.c
32146 #include <linux/fs.h>
32152 int i __attribute__ ((unused));
32154 i = generic_readlink(NULL, NULL, 0);
32164 cat - <<_ACEOF >conftest.h
32169 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32170 echo "obj-m := conftest.o" >build
/Makefile
32172 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32173 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32175 (eval $ac_try) 2>&5
32177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32178 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32180 (eval $ac_try) 2>&5
32182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32183 test $ac_status = 0; }; }; then :
32185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32186 $as_echo "yes" >&6; }
32188 $as_echo "#define HAVE_GENERIC_READLINK 1" >>confdefs.h
32192 $as_echo "$as_me: failed program was:" >&5
32193 sed 's/^/| /' conftest.
$ac_ext >&5
32195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32196 $as_echo "no" >&6; }
32206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
32207 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
32210 cat confdefs.h
- <<_ACEOF >conftest.c
32213 #include <linux/blkdev.h>
32219 struct queue_limits ql __attribute__ ((unused));
32221 ql.discard_granularity = 0;
32231 cat - <<_ACEOF >conftest.h
32236 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32237 echo "obj-m := conftest.o" >build
/Makefile
32239 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32240 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32242 (eval $ac_try) 2>&5
32244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32245 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32247 (eval $ac_try) 2>&5
32249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32250 test $ac_status = 0; }; }; then :
32252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32253 $as_echo "yes" >&6; }
32255 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
32259 $as_echo "$as_me: failed program was:" >&5
32260 sed 's/^/| /' conftest.
$ac_ext >&5
32262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32263 $as_echo "no" >&6; }
32273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5
32274 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
32277 cat confdefs.h
- <<_ACEOF >conftest.c
32280 #include <linux/fs.h>
32281 #include <linux/xattr.h>
32283 const struct xattr_handler xattr_test_handler = {
32289 const struct xattr_handler *xattr_handlers[] = {
32290 &xattr_test_handler,
32293 const struct super_block sb __attribute__ ((unused)) = {
32294 .s_xattr = xattr_handlers,
32310 cat - <<_ACEOF >conftest.h
32315 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32316 echo "obj-m := conftest.o" >build
/Makefile
32318 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32319 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32321 (eval $ac_try) 2>&5
32323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32324 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32326 (eval $ac_try) 2>&5
32328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32329 test $ac_status = 0; }; }; then :
32331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32332 $as_echo "yes" >&6; }
32334 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
32338 $as_echo "$as_me: failed program was:" >&5
32339 sed 's/^/| /' conftest.
$ac_ext >&5
32341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32342 $as_echo "no" >&6; }
32352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler has name" >&5
32353 $as_echo_n "checking whether xattr_handler has name... " >&6; }
32356 cat confdefs.h
- <<_ACEOF >conftest.c
32359 #include <linux/xattr.h>
32361 static const struct xattr_handler
32362 xops __attribute__ ((unused)) = {
32363 .name = XATTR_NAME_POSIX_ACL_ACCESS,
32379 cat - <<_ACEOF >conftest.h
32384 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32385 echo "obj-m := conftest.o" >build
/Makefile
32387 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32388 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32389 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32390 (eval $ac_try) 2>&5
32392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32393 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32394 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32395 (eval $ac_try) 2>&5
32397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32398 test $ac_status = 0; }; }; then :
32400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32401 $as_echo "yes" >&6; }
32403 $as_echo "#define HAVE_XATTR_HANDLER_NAME 1" >>confdefs.h
32407 $as_echo "$as_me: failed program was:" >&5
32408 sed 's/^/| /' conftest.
$ac_ext >&5
32410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32411 $as_echo "no" >&6; }
32421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants both dentry and inode" >&5
32422 $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
32425 cat confdefs.h
- <<_ACEOF >conftest.c
32428 #include <linux/xattr.h>
32430 int get(const struct xattr_handler *handler,
32431 struct dentry *dentry, struct inode *inode,
32432 const char *name, void *buffer, size_t size) { return 0; }
32433 static const struct xattr_handler
32434 xops __attribute__ ((unused)) = {
32451 cat - <<_ACEOF >conftest.h
32456 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32457 echo "obj-m := conftest.o" >build
/Makefile
32459 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32460 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32462 (eval $ac_try) 2>&5
32464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32465 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32467 (eval $ac_try) 2>&5
32469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32470 test $ac_status = 0; }; }; then :
32472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32473 $as_echo "yes" >&6; }
32475 $as_echo "#define HAVE_XATTR_GET_DENTRY_INODE 1" >>confdefs.h
32479 $as_echo "$as_me: failed program was:" >&5
32480 sed 's/^/| /' conftest.
$ac_ext >&5
32482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32483 $as_echo "no" >&6; }
32484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5
32485 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
32488 cat confdefs.h
- <<_ACEOF >conftest.c
32491 #include <linux/xattr.h>
32493 int get(const struct xattr_handler *handler,
32494 struct dentry *dentry, const char *name,
32495 void *buffer, size_t size) { return 0; }
32496 static const struct xattr_handler
32497 xops __attribute__ ((unused)) = {
32514 cat - <<_ACEOF >conftest.h
32519 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32520 echo "obj-m := conftest.o" >build
/Makefile
32522 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32523 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32524 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32525 (eval $ac_try) 2>&5
32527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32528 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32529 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32530 (eval $ac_try) 2>&5
32532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32533 test $ac_status = 0; }; }; then :
32535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32536 $as_echo "yes" >&6; }
32538 $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h
32542 $as_echo "$as_me: failed program was:" >&5
32543 sed 's/^/| /' conftest.
$ac_ext >&5
32545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32546 $as_echo "no" >&6; }
32547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
32548 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
32551 cat confdefs.h
- <<_ACEOF >conftest.c
32554 #include <linux/xattr.h>
32556 int get(struct dentry *dentry, const char *name,
32557 void *buffer, size_t size, int handler_flags)
32559 static const struct xattr_handler
32560 xops __attribute__ ((unused)) = {
32577 cat - <<_ACEOF >conftest.h
32582 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32583 echo "obj-m := conftest.o" >build
/Makefile
32585 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32586 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32587 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32588 (eval $ac_try) 2>&5
32590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32591 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32593 (eval $ac_try) 2>&5
32595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32596 test $ac_status = 0; }; }; then :
32598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32599 $as_echo "yes" >&6; }
32601 $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h
32605 $as_echo "$as_me: failed program was:" >&5
32606 sed 's/^/| /' conftest.
$ac_ext >&5
32608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32609 $as_echo "no" >&6; }
32610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5
32611 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
32614 cat confdefs.h
- <<_ACEOF >conftest.c
32617 #include <linux/xattr.h>
32619 int get(struct inode *ip, const char *name,
32620 void *buffer, size_t size) { return 0; }
32621 static const struct xattr_handler
32622 xops __attribute__ ((unused)) = {
32639 cat - <<_ACEOF >conftest.h
32644 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32645 echo "obj-m := conftest.o" >build
/Makefile
32647 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32648 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32650 (eval $ac_try) 2>&5
32652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32653 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32655 (eval $ac_try) 2>&5
32657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32658 test $ac_status = 0; }; }; then :
32660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32661 $as_echo "yes" >&6; }
32663 $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h
32667 $as_echo "$as_me: failed program was:" >&5
32668 sed 's/^/| /' conftest.
$ac_ext >&5
32670 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
32701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants both dentry and inode" >&5
32702 $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
32705 cat confdefs.h
- <<_ACEOF >conftest.c
32708 #include <linux/xattr.h>
32710 int set(const struct xattr_handler *handler,
32711 struct dentry *dentry, struct inode *inode,
32712 const char *name, const void *buffer,
32713 size_t size, int flags)
32715 static const struct xattr_handler
32716 xops __attribute__ ((unused)) = {
32733 cat - <<_ACEOF >conftest.h
32738 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32739 echo "obj-m := conftest.o" >build
/Makefile
32741 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32742 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32744 (eval $ac_try) 2>&5
32746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32747 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32749 (eval $ac_try) 2>&5
32751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32752 test $ac_status = 0; }; }; then :
32754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32755 $as_echo "yes" >&6; }
32757 $as_echo "#define HAVE_XATTR_SET_DENTRY_INODE 1" >>confdefs.h
32761 $as_echo "$as_me: failed program was:" >&5
32762 sed 's/^/| /' conftest.
$ac_ext >&5
32764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32765 $as_echo "no" >&6; }
32766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5
32767 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
32770 cat confdefs.h
- <<_ACEOF >conftest.c
32773 #include <linux/xattr.h>
32775 int set(const struct xattr_handler *handler,
32776 struct dentry *dentry, const char *name,
32777 const void *buffer, size_t size, int flags)
32779 static const struct xattr_handler
32780 xops __attribute__ ((unused)) = {
32797 cat - <<_ACEOF >conftest.h
32802 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32803 echo "obj-m := conftest.o" >build
/Makefile
32805 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32806 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32808 (eval $ac_try) 2>&5
32810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32811 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32813 (eval $ac_try) 2>&5
32815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32816 test $ac_status = 0; }; }; then :
32818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32819 $as_echo "yes" >&6; }
32821 $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h
32825 $as_echo "$as_me: failed program was:" >&5
32826 sed 's/^/| /' conftest.
$ac_ext >&5
32828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32829 $as_echo "no" >&6; }
32830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
32831 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
32834 cat confdefs.h
- <<_ACEOF >conftest.c
32837 #include <linux/xattr.h>
32839 int set(struct dentry *dentry, const char *name,
32840 const void *buffer, size_t size, int flags,
32841 int handler_flags) { return 0; }
32842 static const struct xattr_handler
32843 xops __attribute__ ((unused)) = {
32860 cat - <<_ACEOF >conftest.h
32865 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32866 echo "obj-m := conftest.o" >build
/Makefile
32868 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32869 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32871 (eval $ac_try) 2>&5
32873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32874 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32875 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32876 (eval $ac_try) 2>&5
32878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32879 test $ac_status = 0; }; }; then :
32881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32882 $as_echo "yes" >&6; }
32884 $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h
32888 $as_echo "$as_me: failed program was:" >&5
32889 sed 's/^/| /' conftest.
$ac_ext >&5
32891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32892 $as_echo "no" >&6; }
32893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5
32894 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
32897 cat confdefs.h
- <<_ACEOF >conftest.c
32900 #include <linux/xattr.h>
32902 int set(struct inode *ip, const char *name,
32903 const void *buffer, size_t size, int flags)
32905 static const struct xattr_handler
32906 xops __attribute__ ((unused)) = {
32923 cat - <<_ACEOF >conftest.h
32928 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32929 echo "obj-m := conftest.o" >build
/Makefile
32931 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32932 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32934 (eval $ac_try) 2>&5
32936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32937 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32939 (eval $ac_try) 2>&5
32941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32942 test $ac_status = 0; }; }; then :
32944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32945 $as_echo "yes" >&6; }
32947 $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h
32951 $as_echo "$as_me: failed program was:" >&5
32952 sed 's/^/| /' conftest.
$ac_ext >&5
32954 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
32985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5
32986 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
32989 cat confdefs.h
- <<_ACEOF >conftest.c
32992 #include <linux/xattr.h>
32994 bool list(struct dentry *dentry) { return 0; }
32995 static const struct xattr_handler
32996 xops __attribute__ ((unused)) = {
33013 cat - <<_ACEOF >conftest.h
33018 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33019 echo "obj-m := conftest.o" >build
/Makefile
33021 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33022 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33024 (eval $ac_try) 2>&5
33026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33027 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33029 (eval $ac_try) 2>&5
33031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33032 test $ac_status = 0; }; }; then :
33034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33035 $as_echo "yes" >&6; }
33037 $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h
33041 $as_echo "$as_me: failed program was:" >&5
33042 sed 's/^/| /' conftest.
$ac_ext >&5
33044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33045 $as_echo "no" >&6; }
33046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5
33047 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
33050 cat confdefs.h
- <<_ACEOF >conftest.c
33053 #include <linux/xattr.h>
33055 size_t list(const struct xattr_handler *handler,
33056 struct dentry *dentry, char *list, size_t list_size,
33057 const char *name, size_t name_len) { return 0; }
33058 static const struct xattr_handler
33059 xops __attribute__ ((unused)) = {
33076 cat - <<_ACEOF >conftest.h
33081 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33082 echo "obj-m := conftest.o" >build
/Makefile
33084 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33085 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33087 (eval $ac_try) 2>&5
33089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33090 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33092 (eval $ac_try) 2>&5
33094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33095 test $ac_status = 0; }; }; then :
33097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33098 $as_echo "yes" >&6; }
33100 $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h
33104 $as_echo "$as_me: failed program was:" >&5
33105 sed 's/^/| /' conftest.
$ac_ext >&5
33107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33108 $as_echo "no" >&6; }
33109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
33110 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
33113 cat confdefs.h
- <<_ACEOF >conftest.c
33116 #include <linux/xattr.h>
33118 size_t list(struct dentry *dentry,
33119 char *list, size_t list_size,
33120 const char *name, size_t name_len,
33121 int handler_flags) { return 0; }
33122 static const struct xattr_handler
33123 xops __attribute__ ((unused)) = {
33140 cat - <<_ACEOF >conftest.h
33145 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33146 echo "obj-m := conftest.o" >build
/Makefile
33148 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33149 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33151 (eval $ac_try) 2>&5
33153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33154 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33155 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33156 (eval $ac_try) 2>&5
33158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33159 test $ac_status = 0; }; }; then :
33161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33162 $as_echo "yes" >&6; }
33164 $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h
33168 $as_echo "$as_me: failed program was:" >&5
33169 sed 's/^/| /' conftest.
$ac_ext >&5
33171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33172 $as_echo "no" >&6; }
33173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5
33174 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
33177 cat confdefs.h
- <<_ACEOF >conftest.c
33180 #include <linux/xattr.h>
33182 size_t list(struct inode *ip, char *lst,
33183 size_t list_size, const char *name,
33184 size_t name_len) { return 0; }
33185 static const struct xattr_handler
33186 xops __attribute__ ((unused)) = {
33203 cat - <<_ACEOF >conftest.h
33208 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33209 echo "obj-m := conftest.o" >build
/Makefile
33211 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33212 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33213 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33214 (eval $ac_try) 2>&5
33216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33217 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33219 (eval $ac_try) 2>&5
33221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33222 test $ac_status = 0; }; }; then :
33224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33225 $as_echo "yes" >&6; }
33227 $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h
33231 $as_echo "$as_me: failed program was:" >&5
33232 sed 's/^/| /' conftest.
$ac_ext >&5
33234 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
33265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
33266 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
33269 cat confdefs.h
- <<_ACEOF >conftest.c
33272 #include <linux/fs.h>
33278 struct inode *ip = NULL;
33279 (void) inode_owner_or_capable(ip);
33289 cat - <<_ACEOF >conftest.h
33294 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33295 echo "obj-m := conftest.o" >build
/Makefile
33297 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33298 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33300 (eval $ac_try) 2>&5
33302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33303 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33305 (eval $ac_try) 2>&5
33307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33308 test $ac_status = 0; }; }; then :
33310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33311 $as_echo "yes" >&6; }
33313 $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
33317 $as_echo "$as_me: failed program was:" >&5
33318 sed 's/^/| /' conftest.
$ac_ext >&5
33320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33321 $as_echo "no" >&6; }
33322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
33323 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
33326 cat confdefs.h
- <<_ACEOF >conftest.c
33329 #include <linux/fs.h>
33330 #include <linux/sched.h>
33336 struct inode *ip = NULL;
33337 (void) is_owner_or_cap(ip);
33347 cat - <<_ACEOF >conftest.h
33352 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33353 echo "obj-m := conftest.o" >build
/Makefile
33355 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33356 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33358 (eval $ac_try) 2>&5
33360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33361 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33363 (eval $ac_try) 2>&5
33365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33366 test $ac_status = 0; }; }; then :
33368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33369 $as_echo "yes" >&6; }
33371 $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
33375 $as_echo "$as_me: failed program was:" >&5
33376 sed 's/^/| /' conftest.
$ac_ext >&5
33378 as_fn_error $?
"no - Please file a bug report at
33379 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
33396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
33397 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
33400 cat confdefs.h
- <<_ACEOF >conftest.c
33403 #include <linux/cred.h>
33404 #include <linux/fs.h>
33405 #include <linux/posix_acl_xattr.h>
33411 posix_acl_from_xattr(&init_user_ns, NULL, 0);
33421 cat - <<_ACEOF >conftest.h
33426 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33427 echo "obj-m := conftest.o" >build
/Makefile
33429 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33430 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33432 (eval $ac_try) 2>&5
33434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33435 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33437 (eval $ac_try) 2>&5
33439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33440 test $ac_status = 0; }; }; then :
33442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33443 $as_echo "yes" >&6; }
33445 $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
33449 $as_echo "$as_me: failed program was:" >&5
33450 sed 's/^/| /' conftest.
$ac_ext >&5
33452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33453 $as_echo "no" >&6; }
33463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
33464 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
33467 cat confdefs.h
- <<_ACEOF >conftest.c
33470 #include <linux/cred.h>
33471 #include <linux/fs.h>
33472 #include <linux/posix_acl.h>
33478 struct posix_acl* tmp = posix_acl_alloc(1, 0);
33479 posix_acl_release(tmp);
33489 cat - <<_ACEOF >conftest.h
33494 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33495 echo "obj-m := conftest.o" >build
/Makefile
33497 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33498 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33499 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33500 (eval $ac_try) 2>&5
33502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33503 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33505 (eval $ac_try) 2>&5
33507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33508 test $ac_status = 0; }; }; then :
33510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33511 $as_echo "yes" >&6; }
33513 $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
33516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
33517 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
33520 cat confdefs.h
- <<_ACEOF >conftest.c
33523 #include <linux/module.h>
33524 #include <linux/cred.h>
33525 #include <linux/fs.h>
33526 #include <linux/posix_acl.h>
33528 MODULE_LICENSE("$ZFS_META_LICENSE");
33534 struct posix_acl* tmp = posix_acl_alloc(1, 0);
33535 posix_acl_release(tmp);
33545 cat - <<_ACEOF >conftest.h
33550 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33551 echo "obj-m := conftest.o" >build
/Makefile
33553 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33554 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33556 (eval $ac_try) 2>&5
33558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33559 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33561 (eval $ac_try) 2>&5
33563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33564 test $ac_status = 0; }; }; then :
33566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33567 $as_echo "no" >&6; }
33570 $as_echo "$as_me: failed program was:" >&5
33571 sed 's/^/| /' conftest.
$ac_ext >&5
33573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33574 $as_echo "yes" >&6; }
33576 $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
33587 $as_echo "$as_me: failed program was:" >&5
33588 sed 's/^/| /' conftest.
$ac_ext >&5
33590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33591 $as_echo "no" >&6; }
33601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_cached_acl() is usable" >&5
33602 $as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
33605 cat confdefs.h
- <<_ACEOF >conftest.c
33608 #include <linux/module.h>
33609 #include <linux/cred.h>
33610 #include <linux/fs.h>
33611 #include <linux/posix_acl.h>
33613 MODULE_LICENSE("$ZFS_META_LICENSE");
33619 struct inode *ip = NULL;
33620 struct posix_acl *acl = posix_acl_alloc(1, 0);
33621 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
33622 forget_cached_acl(ip, ACL_TYPE_ACCESS);
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\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33643 (eval $ac_try) 2>&5
33645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33646 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33648 (eval $ac_try) 2>&5
33650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33651 test $ac_status = 0; }; }; then :
33653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33654 $as_echo "yes" >&6; }
33656 $as_echo "#define HAVE_SET_CACHED_ACL_USABLE 1" >>confdefs.h
33660 $as_echo "$as_me: failed program was:" >&5
33661 sed 's/^/| /' conftest.
$ac_ext >&5
33663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33664 $as_echo "no" >&6; }
33674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
33675 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
33678 cat confdefs.h
- <<_ACEOF >conftest.c
33681 #include <linux/fs.h>
33682 #include <linux/posix_acl.h>
33688 posix_acl_chmod(NULL, 0, 0)
33698 cat - <<_ACEOF >conftest.h
33703 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33704 echo "obj-m := conftest.o" >build
/Makefile
33706 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33707 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33709 (eval $ac_try) 2>&5
33711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33712 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33714 (eval $ac_try) 2>&5
33716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33717 test $ac_status = 0; }; }; then :
33719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33720 $as_echo "yes" >&6; }
33722 $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
33726 $as_echo "$as_me: failed program was:" >&5
33727 sed 's/^/| /' conftest.
$ac_ext >&5
33729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33730 $as_echo "no" >&6; }
33739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
33740 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
33743 cat confdefs.h
- <<_ACEOF >conftest.c
33746 #include <linux/fs.h>
33747 #include <linux/posix_acl.h>
33753 __posix_acl_chmod(NULL, 0, 0)
33763 cat - <<_ACEOF >conftest.h
33768 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33769 echo "obj-m := conftest.o" >build
/Makefile
33771 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33772 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33773 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33774 (eval $ac_try) 2>&5
33776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33777 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33779 (eval $ac_try) 2>&5
33781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33782 test $ac_status = 0; }; }; then :
33784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33785 $as_echo "yes" >&6; }
33787 $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
33791 $as_echo "$as_me: failed program was:" >&5
33792 sed 's/^/| /' conftest.
$ac_ext >&5
33794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33795 $as_echo "no" >&6; }
33805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
33806 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
33809 cat confdefs.h
- <<_ACEOF >conftest.c
33812 #include <linux/fs.h>
33813 #include <linux/posix_acl.h>
33820 posix_acl_equiv_mode(NULL,&tmp);
33830 cat - <<_ACEOF >conftest.h
33835 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33836 echo "obj-m := conftest.o" >build
/Makefile
33838 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33839 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33841 (eval $ac_try) 2>&5
33843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33844 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33846 (eval $ac_try) 2>&5
33848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33849 test $ac_status = 0; }; }; then :
33851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33852 $as_echo "yes" >&6; }
33854 $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
33858 $as_echo "$as_me: failed program was:" >&5
33859 sed 's/^/| /' conftest.
$ac_ext >&5
33861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33862 $as_echo "no" >&6; }
33872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5
33873 $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
33876 cat confdefs.h
- <<_ACEOF >conftest.c
33879 #include <linux/fs.h>
33880 #include <linux/posix_acl.h>
33886 struct user_namespace *user_ns = NULL;
33887 const struct posix_acl *acl = NULL;
33890 error = posix_acl_valid(user_ns, acl);
33900 cat - <<_ACEOF >conftest.h
33905 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33906 echo "obj-m := conftest.o" >build
/Makefile
33908 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33909 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33911 (eval $ac_try) 2>&5
33913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33914 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33915 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33916 (eval $ac_try) 2>&5
33918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33919 test $ac_status = 0; }; }; then :
33921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33922 $as_echo "yes" >&6; }
33924 $as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h
33928 $as_echo "$as_me: failed program was:" >&5
33929 sed 's/^/| /' conftest.
$ac_ext >&5
33931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33932 $as_echo "no" >&6; }
33942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
33943 $as_echo_n "checking whether iops->permission() exists... " >&6; }
33946 cat confdefs.h
- <<_ACEOF >conftest.c
33949 #include <linux/fs.h>
33951 int permission_fn(struct inode *inode, int mask) { return 0; }
33953 static const struct inode_operations
33954 iops __attribute__ ((unused)) = {
33955 .permission = permission_fn,
33971 cat - <<_ACEOF >conftest.h
33976 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33977 echo "obj-m := conftest.o" >build
/Makefile
33979 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33980 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33981 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33982 (eval $ac_try) 2>&5
33984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33985 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33987 (eval $ac_try) 2>&5
33989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33990 test $ac_status = 0; }; }; then :
33992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33993 $as_echo "yes" >&6; }
33995 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
33999 $as_echo "$as_me: failed program was:" >&5
34000 sed 's/^/| /' conftest.
$ac_ext >&5
34002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34003 $as_echo "no" >&6; }
34013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
34014 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
34017 cat confdefs.h
- <<_ACEOF >conftest.c
34020 #include <linux/fs.h>
34022 int permission_fn(struct inode *inode, int mask,
34023 struct nameidata *nd) { return 0; }
34025 static const struct inode_operations
34026 iops __attribute__ ((unused)) = {
34027 .permission = permission_fn,
34043 cat - <<_ACEOF >conftest.h
34048 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34049 echo "obj-m := conftest.o" >build
/Makefile
34051 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34052 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34053 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34054 (eval $ac_try) 2>&5
34056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34057 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34059 (eval $ac_try) 2>&5
34061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34062 test $ac_status = 0; }; }; then :
34064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34065 $as_echo "yes" >&6; }
34067 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
34070 $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
34074 $as_echo "$as_me: failed program was:" >&5
34075 sed 's/^/| /' conftest.
$ac_ext >&5
34077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34078 $as_echo "no" >&6; }
34088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
34089 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
34092 cat confdefs.h
- <<_ACEOF >conftest.c
34095 #include <linux/fs.h>
34097 int check_acl_fn(struct inode *inode, int mask) { return 0; }
34099 static const struct inode_operations
34100 iops __attribute__ ((unused)) = {
34101 .check_acl = check_acl_fn,
34117 cat - <<_ACEOF >conftest.h
34122 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34123 echo "obj-m := conftest.o" >build
/Makefile
34125 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34126 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34128 (eval $ac_try) 2>&5
34130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34131 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34132 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34133 (eval $ac_try) 2>&5
34135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34136 test $ac_status = 0; }; }; then :
34138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34139 $as_echo "yes" >&6; }
34141 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
34145 $as_echo "$as_me: failed program was:" >&5
34146 sed 's/^/| /' conftest.
$ac_ext >&5
34148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34149 $as_echo "no" >&6; }
34159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
34160 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
34163 cat confdefs.h
- <<_ACEOF >conftest.c
34166 #include <linux/fs.h>
34168 int check_acl_fn(struct inode *inode, int mask,
34169 unsigned int flags) { return 0; }
34171 static const struct inode_operations
34172 iops __attribute__ ((unused)) = {
34173 .check_acl = check_acl_fn,
34189 cat - <<_ACEOF >conftest.h
34194 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34195 echo "obj-m := conftest.o" >build
/Makefile
34197 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34198 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34199 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34200 (eval $ac_try) 2>&5
34202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34203 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34205 (eval $ac_try) 2>&5
34207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34208 test $ac_status = 0; }; }; then :
34210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34211 $as_echo "yes" >&6; }
34213 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
34216 $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
34220 $as_echo "$as_me: failed program was:" >&5
34221 sed 's/^/| /' conftest.
$ac_ext >&5
34223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34224 $as_echo "no" >&6; }
34234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
34235 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
34238 cat confdefs.h
- <<_ACEOF >conftest.c
34241 #include <linux/fs.h>
34243 struct posix_acl *get_acl_fn(struct inode *inode, int type)
34246 static const struct inode_operations
34247 iops __attribute__ ((unused)) = {
34248 .get_acl = get_acl_fn,
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\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34275 (eval $ac_try) 2>&5
34277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34278 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34280 (eval $ac_try) 2>&5
34282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34283 test $ac_status = 0; }; }; then :
34285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34286 $as_echo "yes" >&6; }
34288 $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
34292 $as_echo "$as_me: failed program was:" >&5
34293 sed 's/^/| /' conftest.
$ac_ext >&5
34295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34296 $as_echo "no" >&6; }
34306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->set_acl() exists" >&5
34307 $as_echo_n "checking whether iops->set_acl() exists... " >&6; }
34310 cat confdefs.h
- <<_ACEOF >conftest.c
34313 #include <linux/fs.h>
34315 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
34318 static const struct inode_operations
34319 iops __attribute__ ((unused)) = {
34320 .set_acl = set_acl_fn,
34336 cat - <<_ACEOF >conftest.h
34341 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34342 echo "obj-m := conftest.o" >build
/Makefile
34344 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34345 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34347 (eval $ac_try) 2>&5
34349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34350 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34352 (eval $ac_try) 2>&5
34354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34355 test $ac_status = 0; }; }; then :
34357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34358 $as_echo "yes" >&6; }
34360 $as_echo "#define HAVE_SET_ACL 1" >>confdefs.h
34364 $as_echo "$as_me: failed program was:" >&5
34365 sed 's/^/| /' conftest.
$ac_ext >&5
34367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34368 $as_echo "no" >&6; }
34379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a path" >&5
34380 $as_echo_n "checking whether iops->getattr() takes a path... " >&6; }
34383 cat confdefs.h
- <<_ACEOF >conftest.c
34386 #include <linux/fs.h>
34389 const struct path *p, struct kstat *k,
34390 u32 request_mask, unsigned int query_flags)
34393 static const struct inode_operations
34394 iops __attribute__ ((unused)) = {
34395 .getattr = test_getattr,
34411 cat - <<_ACEOF >conftest.h
34416 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34417 echo "obj-m := conftest.o" >build
/Makefile
34419 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34420 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34422 (eval $ac_try) 2>&5
34424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34425 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34427 (eval $ac_try) 2>&5
34429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34430 test $ac_status = 0; }; }; then :
34432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34433 $as_echo "yes" >&6; }
34435 $as_echo "#define HAVE_PATH_IOPS_GETATTR 1" >>confdefs.h
34439 $as_echo "$as_me: failed program was:" >&5
34440 sed 's/^/| /' conftest.
$ac_ext >&5
34442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34443 $as_echo "no" >&6; }
34453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a vfsmount" >&5
34454 $as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; }
34457 cat confdefs.h
- <<_ACEOF >conftest.c
34460 #include <linux/fs.h>
34463 struct vfsmount *mnt, struct dentry *d,
34467 static const struct inode_operations
34468 iops __attribute__ ((unused)) = {
34469 .getattr = test_getattr,
34485 cat - <<_ACEOF >conftest.h
34490 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34491 echo "obj-m := conftest.o" >build
/Makefile
34493 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34494 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34496 (eval $ac_try) 2>&5
34498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34499 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34501 (eval $ac_try) 2>&5
34503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34504 test $ac_status = 0; }; }; then :
34506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34507 $as_echo "yes" >&6; }
34509 $as_echo "#define HAVE_VFSMOUNT_IOPS_GETATTR 1" >>confdefs.h
34513 $as_echo "$as_me: failed program was:" >&5
34514 sed 's/^/| /' conftest.
$ac_ext >&5
34516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34517 $as_echo "no" >&6; }
34528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_set_flags() exists" >&5
34529 $as_echo_n "checking whether inode_set_flags() exists... " >&6; }
34532 cat confdefs.h
- <<_ACEOF >conftest.c
34535 #include <linux/fs.h>
34541 struct inode inode;
34542 inode_set_flags(&inode, S_IMMUTABLE, S_IMMUTABLE);
34552 cat - <<_ACEOF >conftest.h
34557 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34558 echo "obj-m := conftest.o" >build
/Makefile
34560 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34561 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34563 (eval $ac_try) 2>&5
34565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34566 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34568 (eval $ac_try) 2>&5
34570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34571 test $ac_status = 0; }; }; then :
34573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34574 $as_echo "yes" >&6; }
34576 $as_echo "#define HAVE_INODE_SET_FLAGS 1" >>confdefs.h
34580 $as_echo "$as_me: failed program was:" >&5
34581 sed 's/^/| /' conftest.
$ac_ext >&5
34583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34584 $as_echo "no" >&6; }
34594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uncached_acl_sentinel() exists" >&5
34595 $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
34598 cat confdefs.h
- <<_ACEOF >conftest.c
34601 #include <linux/fs.h>
34607 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
34617 cat - <<_ACEOF >conftest.h
34622 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34623 echo "obj-m := conftest.o" >build
/Makefile
34625 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34626 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34627 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34628 (eval $ac_try) 2>&5
34630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34631 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34633 (eval $ac_try) 2>&5
34635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34636 test $ac_status = 0; }; }; then :
34638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34639 $as_echo "yes" >&6; }
34641 $as_echo "#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1" >>confdefs.h
34645 $as_echo "$as_me: failed program was:" >&5
34646 sed 's/^/| /' conftest.
$ac_ext >&5
34648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34649 $as_echo "no" >&6; }
34659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
34660 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
34664 cat confdefs.h
- <<_ACEOF >conftest.c
34667 #include <linux/fs.h>
34669 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
34670 static struct super_operations sops __attribute__ ((unused)) = {
34671 .show_options = show_options,
34687 cat - <<_ACEOF >conftest.h
34692 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34693 echo "obj-m := conftest.o" >build
/Makefile
34695 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34696 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34698 (eval $ac_try) 2>&5
34700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34701 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34703 (eval $ac_try) 2>&5
34705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34706 test $ac_status = 0; }; }; then :
34708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34709 $as_echo "yes" >&6; }
34711 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
34715 $as_echo "$as_me: failed program was:" >&5
34716 sed 's/^/| /' conftest.
$ac_ext >&5
34718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34719 $as_echo "no" >&6; }
34729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
34730 $as_echo_n "checking whether file_inode() is available... " >&6; }
34733 cat confdefs.h
- <<_ACEOF >conftest.c
34736 #include <linux/fs.h>
34742 struct file *f = NULL;
34753 cat - <<_ACEOF >conftest.h
34758 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34759 echo "obj-m := conftest.o" >build
/Makefile
34761 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34762 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34764 (eval $ac_try) 2>&5
34766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34767 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34769 (eval $ac_try) 2>&5
34771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34772 test $ac_status = 0; }; }; then :
34774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34775 $as_echo "yes" >&6; }
34777 $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
34781 $as_echo "$as_me: failed program was:" >&5
34782 sed 's/^/| /' conftest.
$ac_ext >&5
34784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34785 $as_echo "no" >&6; }
34795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_dentry() is available" >&5
34796 $as_echo_n "checking whether file_dentry() is available... " >&6; }
34799 cat confdefs.h
- <<_ACEOF >conftest.c
34802 #include <linux/fs.h>
34808 struct file *f = NULL;
34819 cat - <<_ACEOF >conftest.h
34824 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34825 echo "obj-m := conftest.o" >build
/Makefile
34827 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34828 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34830 (eval $ac_try) 2>&5
34832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34833 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34835 (eval $ac_try) 2>&5
34837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34838 test $ac_status = 0; }; }; then :
34840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34841 $as_echo "yes" >&6; }
34843 $as_echo "#define HAVE_FILE_DENTRY 1" >>confdefs.h
34847 $as_echo "$as_me: failed program was:" >&5
34848 sed 's/^/| /' conftest.
$ac_ext >&5
34850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34851 $as_echo "no" >&6; }
34861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
34862 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
34866 cat confdefs.h
- <<_ACEOF >conftest.c
34869 #include <linux/fs.h>
34871 int test_fsync(struct file *f, struct dentry *dentry, int x)
34874 static const struct file_operations
34875 fops __attribute__ ((unused)) = {
34876 .fsync = test_fsync,
34892 cat - <<_ACEOF >conftest.h
34897 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34898 echo "obj-m := conftest.o" >build
/Makefile
34900 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34901 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34902 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34903 (eval $ac_try) 2>&5
34905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34906 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34907 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34908 (eval $ac_try) 2>&5
34910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34911 test $ac_status = 0; }; }; then :
34913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
34914 $as_echo "dentry" >&6; }
34916 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
34920 $as_echo "$as_me: failed program was:" >&5
34921 sed 's/^/| /' conftest.
$ac_ext >&5
34934 cat confdefs.h
- <<_ACEOF >conftest.c
34937 #include <linux/fs.h>
34939 int test_fsync(struct file *f, int x) { return 0; }
34941 static const struct file_operations
34942 fops __attribute__ ((unused)) = {
34943 .fsync = test_fsync,
34959 cat - <<_ACEOF >conftest.h
34964 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34965 echo "obj-m := conftest.o" >build
/Makefile
34967 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34968 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34970 (eval $ac_try) 2>&5
34972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34973 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34974 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34975 (eval $ac_try) 2>&5
34977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34978 test $ac_status = 0; }; }; then :
34980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
34981 $as_echo "no dentry" >&6; }
34983 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
34987 $as_echo "$as_me: failed program was:" >&5
34988 sed 's/^/| /' conftest.
$ac_ext >&5
35001 cat confdefs.h
- <<_ACEOF >conftest.c
35004 #include <linux/fs.h>
35006 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
35009 static const struct file_operations
35010 fops __attribute__ ((unused)) = {
35011 .fsync = test_fsync,
35027 cat - <<_ACEOF >conftest.h
35032 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35033 echo "obj-m := conftest.o" >build
/Makefile
35035 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35036 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35037 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35038 (eval $ac_try) 2>&5
35040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35041 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35042 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35043 (eval $ac_try) 2>&5
35045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35046 test $ac_status = 0; }; }; then :
35048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
35049 $as_echo "range" >&6; }
35051 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
35055 $as_echo "$as_me: failed program was:" >&5
35056 sed 's/^/| /' conftest.
$ac_ext >&5
35068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
35069 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
35072 cat confdefs.h
- <<_ACEOF >conftest.c
35075 #include <linux/fs.h>
35076 void evict_inode (struct inode * t) { return; }
35077 static struct super_operations sops __attribute__ ((unused)) = {
35078 .evict_inode = evict_inode,
35094 cat - <<_ACEOF >conftest.h
35099 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35100 echo "obj-m := conftest.o" >build
/Makefile
35102 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35103 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35105 (eval $ac_try) 2>&5
35107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35108 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35110 (eval $ac_try) 2>&5
35112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35113 test $ac_status = 0; }; }; then :
35115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35116 $as_echo "yes" >&6; }
35118 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
35122 $as_echo "$as_me: failed program was:" >&5
35123 sed 's/^/| /' conftest.
$ac_ext >&5
35125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35126 $as_echo "no" >&6; }
35136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
35137 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
35140 cat confdefs.h
- <<_ACEOF >conftest.c
35143 #include <linux/fs.h>
35145 void dirty_inode(struct inode *a, int b) { return; }
35147 static const struct super_operations
35148 sops __attribute__ ((unused)) = {
35149 .dirty_inode = dirty_inode,
35165 cat - <<_ACEOF >conftest.h
35170 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35171 echo "obj-m := conftest.o" >build
/Makefile
35173 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35174 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35176 (eval $ac_try) 2>&5
35178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35179 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35181 (eval $ac_try) 2>&5
35183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35184 test $ac_status = 0; }; }; then :
35186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35187 $as_echo "yes" >&6; }
35189 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
35193 $as_echo "$as_me: failed program was:" >&5
35194 sed 's/^/| /' conftest.
$ac_ext >&5
35196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35197 $as_echo "no" >&6; }
35207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
35208 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
35211 cat confdefs.h
- <<_ACEOF >conftest.c
35214 #include <linux/fs.h>
35216 int nr_cached_objects(struct super_block *sb) { return 0; }
35218 static const struct super_operations
35219 sops __attribute__ ((unused)) = {
35220 .nr_cached_objects = nr_cached_objects,
35236 cat - <<_ACEOF >conftest.h
35241 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35242 echo "obj-m := conftest.o" >build
/Makefile
35244 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35245 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35247 (eval $ac_try) 2>&5
35249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35250 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35252 (eval $ac_try) 2>&5
35254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35255 test $ac_status = 0; }; }; then :
35257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35258 $as_echo "yes" >&6; }
35260 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
35264 $as_echo "$as_me: failed program was:" >&5
35265 sed 's/^/| /' conftest.
$ac_ext >&5
35267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35268 $as_echo "no" >&6; }
35278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
35279 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
35282 cat confdefs.h
- <<_ACEOF >conftest.c
35285 #include <linux/fs.h>
35287 void free_cached_objects(struct super_block *sb, int x)
35290 static const struct super_operations
35291 sops __attribute__ ((unused)) = {
35292 .free_cached_objects = free_cached_objects,
35308 cat - <<_ACEOF >conftest.h
35313 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35314 echo "obj-m := conftest.o" >build
/Makefile
35316 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35317 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35319 (eval $ac_try) 2>&5
35321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35322 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35324 (eval $ac_try) 2>&5
35326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35327 test $ac_status = 0; }; }; then :
35329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35330 $as_echo "yes" >&6; }
35332 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
35336 $as_echo "$as_me: failed program was:" >&5
35337 sed 's/^/| /' conftest.
$ac_ext >&5
35339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35340 $as_echo "no" >&6; }
35351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
35352 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
35355 cat confdefs.h
- <<_ACEOF >conftest.c
35358 #include <linux/fs.h>
35360 long test_fallocate(struct file *file, int mode,
35361 loff_t offset, loff_t len) { return 0; }
35363 static const struct file_operations
35364 fops __attribute__ ((unused)) = {
35365 .fallocate = test_fallocate,
35381 cat - <<_ACEOF >conftest.h
35386 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35387 echo "obj-m := conftest.o" >build
/Makefile
35389 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35390 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35392 (eval $ac_try) 2>&5
35394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35395 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35397 (eval $ac_try) 2>&5
35399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35400 test $ac_status = 0; }; }; then :
35402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35403 $as_echo "yes" >&6; }
35405 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
35409 $as_echo "$as_me: failed program was:" >&5
35410 sed 's/^/| /' conftest.
$ac_ext >&5
35412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35413 $as_echo "no" >&6; }
35423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
35424 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
35427 cat confdefs.h
- <<_ACEOF >conftest.c
35430 #include <linux/fs.h>
35432 long test_fallocate(struct inode *inode, int mode,
35433 loff_t offset, loff_t len) { return 0; }
35435 static const struct inode_operations
35436 fops __attribute__ ((unused)) = {
35437 .fallocate = test_fallocate,
35453 cat - <<_ACEOF >conftest.h
35458 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35459 echo "obj-m := conftest.o" >build
/Makefile
35461 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35462 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35463 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35464 (eval $ac_try) 2>&5
35466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35467 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35469 (eval $ac_try) 2>&5
35471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35472 test $ac_status = 0; }; }; then :
35474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35475 $as_echo "yes" >&6; }
35477 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
35481 $as_echo "$as_me: failed program was:" >&5
35482 sed 's/^/| /' conftest.
$ac_ext >&5
35484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35485 $as_echo "no" >&6; }
35496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->aio_fsync() exists" >&5
35497 $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
35500 cat confdefs.h
- <<_ACEOF >conftest.c
35503 #include <linux/fs.h>
35505 static const struct file_operations
35506 fops __attribute__ ((unused)) = {
35523 cat - <<_ACEOF >conftest.h
35528 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35529 echo "obj-m := conftest.o" >build
/Makefile
35531 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35532 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35534 (eval $ac_try) 2>&5
35536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35537 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35539 (eval $ac_try) 2>&5
35541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35542 test $ac_status = 0; }; }; then :
35544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35545 $as_echo "yes" >&6; }
35547 $as_echo "#define HAVE_FILE_AIO_FSYNC 1" >>confdefs.h
35551 $as_echo "$as_me: failed program was:" >&5
35552 sed 's/^/| /' conftest.
$ac_ext >&5
35554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35555 $as_echo "no" >&6; }
35565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
35566 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
35569 cat confdefs.h
- <<_ACEOF >conftest.c
35572 #include <linux/fs.h>
35574 int mkdir(struct inode *inode, struct dentry *dentry,
35575 umode_t umode) { return 0; }
35577 static const struct inode_operations
35578 iops __attribute__ ((unused)) = {
35595 cat - <<_ACEOF >conftest.h
35600 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35601 echo "obj-m := conftest.o" >build
/Makefile
35603 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35604 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35606 (eval $ac_try) 2>&5
35608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35609 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35610 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35611 (eval $ac_try) 2>&5
35613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35614 test $ac_status = 0; }; }; then :
35616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35617 $as_echo "yes" >&6; }
35619 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
35623 $as_echo "$as_me: failed program was:" >&5
35624 sed 's/^/| /' conftest.
$ac_ext >&5
35626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35627 $as_echo "no" >&6; }
35637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5
35638 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
35641 cat confdefs.h
- <<_ACEOF >conftest.c
35644 #include <linux/fs.h>
35646 struct dentry *inode_lookup(struct inode *inode,
35647 struct dentry *dentry, struct nameidata *nidata)
35650 static const struct inode_operations iops
35651 __attribute__ ((unused)) = {
35652 .lookup = inode_lookup,
35668 cat - <<_ACEOF >conftest.h
35673 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35674 echo "obj-m := conftest.o" >build
/Makefile
35676 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35677 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35678 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35679 (eval $ac_try) 2>&5
35681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35682 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35684 (eval $ac_try) 2>&5
35686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35687 test $ac_status = 0; }; }; then :
35689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35690 $as_echo "yes" >&6; }
35692 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
35696 $as_echo "$as_me: failed program was:" >&5
35697 sed 's/^/| /' conftest.
$ac_ext >&5
35699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35700 $as_echo "no" >&6; }
35710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5
35711 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
35714 cat confdefs.h
- <<_ACEOF >conftest.c
35717 #include <linux/fs.h>
35719 #ifdef HAVE_MKDIR_UMODE_T
35720 int inode_create(struct inode *inode ,struct dentry *dentry,
35721 umode_t umode, struct nameidata *nidata) { return 0; }
35723 int inode_create(struct inode *inode,struct dentry *dentry,
35724 int umode, struct nameidata * nidata) { return 0; }
35727 static const struct inode_operations
35728 iops __attribute__ ((unused)) = {
35729 .create = inode_create,
35745 cat - <<_ACEOF >conftest.h
35750 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35751 echo "obj-m := conftest.o" >build
/Makefile
35753 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35754 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35756 (eval $ac_try) 2>&5
35758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35759 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35761 (eval $ac_try) 2>&5
35763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35764 test $ac_status = 0; }; }; then :
35766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35767 $as_echo "yes" >&6; }
35769 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
35773 $as_echo "$as_me: failed program was:" >&5
35774 sed 's/^/| /' conftest.
$ac_ext >&5
35776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35777 $as_echo "no" >&6; }
35787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5
35788 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
35791 cat confdefs.h
- <<_ACEOF >conftest.c
35794 #include <linux/fs.h>
35795 const char *get_link(struct dentry *de, struct inode *ip,
35796 struct delayed_call *done) { return "symlink"; }
35797 static struct inode_operations
35798 iops __attribute__ ((unused)) = {
35799 .get_link = get_link,
35815 cat - <<_ACEOF >conftest.h
35820 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35821 echo "obj-m := conftest.o" >build
/Makefile
35823 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35824 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35826 (eval $ac_try) 2>&5
35828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35829 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35831 (eval $ac_try) 2>&5
35833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35834 test $ac_status = 0; }; }; then :
35836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35837 $as_echo "yes" >&6; }
35839 $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h
35843 $as_echo "$as_me: failed program was:" >&5
35844 sed 's/^/| /' conftest.
$ac_ext >&5
35846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35847 $as_echo "no" >&6; }
35848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5
35849 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
35852 cat confdefs.h
- <<_ACEOF >conftest.c
35855 #include <linux/fs.h>
35856 const char *get_link(struct dentry *de, struct
35857 inode *ip, void **cookie) { return "symlink"; }
35858 static struct inode_operations
35859 iops __attribute__ ((unused)) = {
35860 .get_link = get_link,
35876 cat - <<_ACEOF >conftest.h
35881 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35882 echo "obj-m := conftest.o" >build
/Makefile
35884 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35885 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35887 (eval $ac_try) 2>&5
35889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35890 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35892 (eval $ac_try) 2>&5
35894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35895 test $ac_status = 0; }; }; then :
35897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35898 $as_echo "yes" >&6; }
35900 $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h
35904 $as_echo "$as_me: failed program was:" >&5
35905 sed 's/^/| /' conftest.
$ac_ext >&5
35907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35908 $as_echo "no" >&6; }
35910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5
35911 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
35914 cat confdefs.h
- <<_ACEOF >conftest.c
35917 #include <linux/fs.h>
35918 const char *follow_link(struct dentry *de,
35919 void **cookie) { return "symlink"; }
35920 static struct inode_operations
35921 iops __attribute__ ((unused)) = {
35922 .follow_link = follow_link,
35938 cat - <<_ACEOF >conftest.h
35943 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35944 echo "obj-m := conftest.o" >build
/Makefile
35946 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35947 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35949 (eval $ac_try) 2>&5
35951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35952 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35954 (eval $ac_try) 2>&5
35956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35957 test $ac_status = 0; }; }; then :
35959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35960 $as_echo "yes" >&6; }
35962 $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h
35966 $as_echo "$as_me: failed program was:" >&5
35967 sed 's/^/| /' conftest.
$ac_ext >&5
35969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35970 $as_echo "no" >&6; }
35971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5
35972 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
35975 cat confdefs.h
- <<_ACEOF >conftest.c
35978 #include <linux/fs.h>
35979 void *follow_link(struct dentry *de, struct
35980 nameidata *nd) { return (void *)NULL; }
35981 static struct inode_operations
35982 iops __attribute__ ((unused)) = {
35983 .follow_link = follow_link,
35999 cat - <<_ACEOF >conftest.h
36004 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36005 echo "obj-m := conftest.o" >build
/Makefile
36007 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36008 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36010 (eval $ac_try) 2>&5
36012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36013 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36015 (eval $ac_try) 2>&5
36017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36018 test $ac_status = 0; }; }; then :
36020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36021 $as_echo "yes" >&6; }
36023 $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h
36027 $as_echo "$as_me: failed program was:" >&5
36028 sed 's/^/| /' conftest.
$ac_ext >&5
36030 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
36064 cat confdefs.h
- <<_ACEOF >conftest.c
36067 #if !defined(HAVE_GET_LINK_DELAYED)
36068 #error "Expecting get_link() delayed done"
36084 cat - <<_ACEOF >conftest.h
36089 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36090 echo "obj-m := conftest.o" >build
/Makefile
36092 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36093 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36095 (eval $ac_try) 2>&5
36097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36098 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36100 (eval $ac_try) 2>&5
36102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36103 test $ac_status = 0; }; }; then :
36106 $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h
36110 $as_echo "$as_me: failed program was:" >&5
36111 sed 's/^/| /' conftest.
$ac_ext >&5
36113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5
36114 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
36117 cat confdefs.h
- <<_ACEOF >conftest.c
36120 #include <linux/fs.h>
36121 void put_link(struct inode *ip, void *cookie)
36123 static struct inode_operations
36124 iops __attribute__ ((unused)) = {
36125 .put_link = put_link,
36141 cat - <<_ACEOF >conftest.h
36146 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36147 echo "obj-m := conftest.o" >build
/Makefile
36149 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36150 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36152 (eval $ac_try) 2>&5
36154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36155 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36157 (eval $ac_try) 2>&5
36159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36160 test $ac_status = 0; }; }; then :
36162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36163 $as_echo "yes" >&6; }
36165 $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h
36169 $as_echo "$as_me: failed program was:" >&5
36170 sed 's/^/| /' conftest.
$ac_ext >&5
36172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36173 $as_echo "no" >&6; }
36174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5
36175 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
36178 cat confdefs.h
- <<_ACEOF >conftest.c
36181 #include <linux/fs.h>
36182 void put_link(struct dentry *de, struct
36183 nameidata *nd, void *ptr) { return; }
36184 static struct inode_operations
36185 iops __attribute__ ((unused)) = {
36186 .put_link = put_link,
36202 cat - <<_ACEOF >conftest.h
36207 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36208 echo "obj-m := conftest.o" >build
/Makefile
36210 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36211 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36213 (eval $ac_try) 2>&5
36215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36216 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36218 (eval $ac_try) 2>&5
36220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36221 test $ac_status = 0; }; }; then :
36223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36224 $as_echo "yes" >&6; }
36226 $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h
36230 $as_echo "$as_me: failed program was:" >&5
36231 sed 's/^/| /' conftest.
$ac_ext >&5
36233 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
36257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i_op->tmpfile() exists" >&5
36258 $as_echo_n "checking whether i_op->tmpfile() exists... " >&6; }
36261 cat confdefs.h
- <<_ACEOF >conftest.c
36264 #include <linux/fs.h>
36265 int tmpfile(struct inode *inode, struct dentry *dentry,
36266 umode_t mode) { return 0; }
36267 static struct inode_operations
36268 iops __attribute__ ((unused)) = {
36269 .tmpfile = tmpfile,
36285 cat - <<_ACEOF >conftest.h
36290 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36291 echo "obj-m := conftest.o" >build
/Makefile
36293 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36294 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36296 (eval $ac_try) 2>&5
36298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36299 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36301 (eval $ac_try) 2>&5
36303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36304 test $ac_status = 0; }; }; then :
36306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36307 $as_echo "yes" >&6; }
36309 $as_echo "#define HAVE_TMPFILE 1" >>confdefs.h
36313 $as_echo "$as_me: failed program was:" >&5
36314 sed 's/^/| /' conftest.
$ac_ext >&5
36316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36317 $as_echo "no" >&6; }
36327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
36328 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
36331 cat confdefs.h
- <<_ACEOF >conftest.c
36334 #include <linux/fs.h>
36335 void truncate_range(struct inode *inode, loff_t start,
36336 loff_t end) { return; }
36337 static struct inode_operations iops __attribute__ ((unused)) = {
36338 .truncate_range = truncate_range,
36354 cat - <<_ACEOF >conftest.h
36359 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36360 echo "obj-m := conftest.o" >build
/Makefile
36362 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36363 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36364 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36365 (eval $ac_try) 2>&5
36367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36368 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36369 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36370 (eval $ac_try) 2>&5
36372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36373 test $ac_status = 0; }; }; then :
36375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36376 $as_echo "yes" >&6; }
36378 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
36382 $as_echo "$as_me: failed program was:" >&5
36383 sed 's/^/| /' conftest.
$ac_ext >&5
36385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36386 $as_echo "no" >&6; }
36396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
36397 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
36400 cat confdefs.h
- <<_ACEOF >conftest.c
36403 #include <linux/dcache.h>
36404 struct vfsmount *d_automount(struct path *p) { return NULL; }
36405 struct dentry_operations dops __attribute__ ((unused)) = {
36406 .d_automount = d_automount,
36422 cat - <<_ACEOF >conftest.h
36427 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36428 echo "obj-m := conftest.o" >build
/Makefile
36430 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36431 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36433 (eval $ac_try) 2>&5
36435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36436 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36437 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36438 (eval $ac_try) 2>&5
36440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36441 test $ac_status = 0; }; }; then :
36443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36444 $as_echo "yes" >&6; }
36446 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
36450 $as_echo "$as_me: failed program was:" >&5
36451 sed 's/^/| /' conftest.
$ac_ext >&5
36453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36454 $as_echo "no" >&6; }
36464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
36465 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
36468 cat confdefs.h
- <<_ACEOF >conftest.c
36471 #include <linux/exportfs.h>
36472 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
36473 struct inode *parent) { return 0; }
36474 static struct export_operations eops __attribute__ ((unused))={
36475 .encode_fh = encode_fh,
36491 cat - <<_ACEOF >conftest.h
36496 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36497 echo "obj-m := conftest.o" >build
/Makefile
36499 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36500 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36502 (eval $ac_try) 2>&5
36504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36505 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36506 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36507 (eval $ac_try) 2>&5
36509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36510 test $ac_status = 0; }; }; then :
36512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36513 $as_echo "yes" >&6; }
36515 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
36519 $as_echo "$as_me: failed program was:" >&5
36520 sed 's/^/| /' conftest.
$ac_ext >&5
36522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36523 $as_echo "no" >&6; }
36533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
36534 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
36537 cat confdefs.h
- <<_ACEOF >conftest.c
36540 #include <linux/exportfs.h>
36541 int commit_metadata(struct inode *inode) { return 0; }
36542 static struct export_operations eops __attribute__ ((unused))={
36543 .commit_metadata = commit_metadata,
36559 cat - <<_ACEOF >conftest.h
36564 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36565 echo "obj-m := conftest.o" >build
/Makefile
36567 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36568 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36570 (eval $ac_try) 2>&5
36572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36573 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36575 (eval $ac_try) 2>&5
36577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36578 test $ac_status = 0; }; }; then :
36580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36581 $as_echo "yes" >&6; }
36583 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
36587 $as_echo "$as_me: failed program was:" >&5
36588 sed 's/^/| /' conftest.
$ac_ext >&5
36590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36591 $as_echo "no" >&6; }
36600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
36601 $as_echo_n "checking whether clear_inode() is available... " >&6; }
36605 cat confdefs.h
- <<_ACEOF >conftest.c
36608 #include <linux/fs.h>
36624 cat - <<_ACEOF >conftest.h
36629 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36630 echo "obj-m := conftest.o" >build
/Makefile
36632 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36633 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36635 (eval $ac_try) 2>&5
36637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36638 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36639 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36640 (eval $ac_try) 2>&5
36642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36643 test $ac_status = 0; }; }; then :
36646 $as_echo "$as_me: failed program was:" >&5
36647 sed 's/^/| /' conftest.
$ac_ext >&5
36655 if test $rc -ne 0; then :
36657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36658 $as_echo "no" >&6; }
36661 if test "x$enable_linux_builtin" != xyes
; then
36663 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
36664 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
36666 if test $rc -ne 0; then
36668 for file in fs
/inode.c
; do
36669 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
36670 "$LINUX/$file" 2>/dev
/null
36672 if test $rc -eq 0; then
36677 if test $export -eq 0; then :
36687 if test $rc -ne 0; then :
36689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36690 $as_echo "no" >&6; }
36694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36695 $as_echo "yes" >&6; }
36697 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
36704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setattr_prepare() is available" >&5
36705 $as_echo_n "checking whether setattr_prepare() is available... " >&6; }
36709 cat confdefs.h
- <<_ACEOF >conftest.c
36712 #include <linux/fs.h>
36718 struct dentry *dentry = NULL;
36719 struct iattr *attr = NULL;
36722 error = setattr_prepare(dentry, attr);
36732 cat - <<_ACEOF >conftest.h
36737 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36738 echo "obj-m := conftest.o" >build
/Makefile
36740 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36741 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36743 (eval $ac_try) 2>&5
36745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36746 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36748 (eval $ac_try) 2>&5
36750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36751 test $ac_status = 0; }; }; then :
36754 $as_echo "$as_me: failed program was:" >&5
36755 sed 's/^/| /' conftest.
$ac_ext >&5
36763 if test $rc -ne 0; then :
36765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36766 $as_echo "no" >&6; }
36769 if test "x$enable_linux_builtin" != xyes
; then
36771 grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \
36772 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
36774 if test $rc -ne 0; then
36776 for file in fs
/attr.c
; do
36777 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
36778 "$LINUX/$file" 2>/dev
/null
36780 if test $rc -eq 0; then
36785 if test $export -eq 0; then :
36795 if test $rc -ne 0; then :
36797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36798 $as_echo "no" >&6; }
36802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36803 $as_echo "yes" >&6; }
36805 $as_echo "#define HAVE_SETATTR_PREPARE 1" >>confdefs.h
36812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
36813 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
36817 cat confdefs.h
- <<_ACEOF >conftest.c
36820 #include <linux/fs.h>
36826 insert_inode_locked(NULL);
36836 cat - <<_ACEOF >conftest.h
36841 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36842 echo "obj-m := conftest.o" >build
/Makefile
36844 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36845 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36846 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36847 (eval $ac_try) 2>&5
36849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36850 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36851 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36852 (eval $ac_try) 2>&5
36854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36855 test $ac_status = 0; }; }; then :
36858 $as_echo "$as_me: failed program was:" >&5
36859 sed 's/^/| /' conftest.
$ac_ext >&5
36867 if test $rc -ne 0; then :
36869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36870 $as_echo "no" >&6; }
36873 if test "x$enable_linux_builtin" != xyes
; then
36875 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
36876 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
36878 if test $rc -ne 0; then
36880 for file in fs
/inode.c
; do
36881 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
36882 "$LINUX/$file" 2>/dev
/null
36884 if test $rc -eq 0; then
36889 if test $export -eq 0; then :
36899 if test $rc -ne 0; then :
36901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36902 $as_echo "no" >&6; }
36906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36907 $as_echo "yes" >&6; }
36909 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
36916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
36917 $as_echo_n "checking whether d_make_root() is available... " >&6; }
36921 cat confdefs.h
- <<_ACEOF >conftest.c
36924 #include <linux/dcache.h>
36940 cat - <<_ACEOF >conftest.h
36945 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36946 echo "obj-m := conftest.o" >build
/Makefile
36948 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36949 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36950 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36951 (eval $ac_try) 2>&5
36953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36954 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36956 (eval $ac_try) 2>&5
36958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36959 test $ac_status = 0; }; }; then :
36962 $as_echo "$as_me: failed program was:" >&5
36963 sed 's/^/| /' conftest.
$ac_ext >&5
36971 if test $rc -ne 0; then :
36973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36974 $as_echo "no" >&6; }
36977 if test "x$enable_linux_builtin" != xyes
; then
36979 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
36980 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
36982 if test $rc -ne 0; then
36984 for file in fs
/dcache.c
; do
36985 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
36986 "$LINUX/$file" 2>/dev
/null
36988 if test $rc -eq 0; then
36993 if test $export -eq 0; then :
37003 if test $rc -ne 0; then :
37005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37006 $as_echo "no" >&6; }
37010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37011 $as_echo "yes" >&6; }
37013 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
37020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
37021 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
37025 cat confdefs.h
- <<_ACEOF >conftest.c
37028 #include <linux/dcache.h>
37034 d_obtain_alias(NULL);
37044 cat - <<_ACEOF >conftest.h
37049 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37050 echo "obj-m := conftest.o" >build
/Makefile
37052 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37053 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37055 (eval $ac_try) 2>&5
37057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37058 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37060 (eval $ac_try) 2>&5
37062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37063 test $ac_status = 0; }; }; then :
37066 $as_echo "$as_me: failed program was:" >&5
37067 sed 's/^/| /' conftest.
$ac_ext >&5
37075 if test $rc -ne 0; then :
37077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37078 $as_echo "no" >&6; }
37081 if test "x$enable_linux_builtin" != xyes
; then
37083 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
37084 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
37086 if test $rc -ne 0; then
37088 for file in fs
/dcache.c
; do
37089 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
37090 "$LINUX/$file" 2>/dev
/null
37092 if test $rc -eq 0; then
37097 if test $export -eq 0; then :
37107 if test $rc -ne 0; then :
37109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37110 $as_echo "no" >&6; }
37114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37115 $as_echo "yes" >&6; }
37117 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
37124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
37125 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
37129 cat confdefs.h
- <<_ACEOF >conftest.c
37132 #include <linux/dcache.h>
37138 struct inode *ip = NULL;
37139 d_prune_aliases(ip);
37149 cat - <<_ACEOF >conftest.h
37154 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37155 echo "obj-m := conftest.o" >build
/Makefile
37157 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37158 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37160 (eval $ac_try) 2>&5
37162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37163 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37165 (eval $ac_try) 2>&5
37167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37168 test $ac_status = 0; }; }; then :
37171 $as_echo "$as_me: failed program was:" >&5
37172 sed 's/^/| /' conftest.
$ac_ext >&5
37180 if test $rc -ne 0; then :
37182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37183 $as_echo "no" >&6; }
37186 if test "x$enable_linux_builtin" != xyes
; then
37188 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
37189 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
37191 if test $rc -ne 0; then
37193 for file in fs
/dcache.c
; do
37194 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
37195 "$LINUX/$file" 2>/dev
/null
37197 if test $rc -eq 0; then
37202 if test $export -eq 0; then :
37212 if test $rc -ne 0; then :
37214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37215 $as_echo "no" >&6; }
37219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37220 $as_echo "yes" >&6; }
37222 $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
37229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
37230 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
37234 cat confdefs.h
- <<_ACEOF >conftest.c
37237 #include <linux/dcache.h>
37243 d_set_d_op(NULL, NULL);
37253 cat - <<_ACEOF >conftest.h
37258 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37259 echo "obj-m := conftest.o" >build
/Makefile
37261 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37262 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37264 (eval $ac_try) 2>&5
37266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37267 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37269 (eval $ac_try) 2>&5
37271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37272 test $ac_status = 0; }; }; then :
37275 $as_echo "$as_me: failed program was:" >&5
37276 sed 's/^/| /' conftest.
$ac_ext >&5
37284 if test $rc -ne 0; then :
37286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37287 $as_echo "no" >&6; }
37290 if test "x$enable_linux_builtin" != xyes
; then
37292 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
37293 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
37295 if test $rc -ne 0; then
37297 for file in fs
/dcache.c
; do
37298 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
37299 "$LINUX/$file" 2>/dev
/null
37301 if test $rc -eq 0; then
37306 if test $export -eq 0; then :
37316 if test $rc -ne 0; then :
37318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37319 $as_echo "no" >&6; }
37323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37324 $as_echo "yes" >&6; }
37326 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
37334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
37335 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
37338 cat confdefs.h
- <<_ACEOF >conftest.c
37341 #include <linux/dcache.h>
37343 int revalidate (struct dentry *dentry,
37344 struct nameidata *nidata) { return 0; }
37346 static const struct dentry_operations
37347 dops __attribute__ ((unused)) = {
37348 .d_revalidate = revalidate,
37364 cat - <<_ACEOF >conftest.h
37369 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37370 echo "obj-m := conftest.o" >build
/Makefile
37372 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37373 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37374 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37375 (eval $ac_try) 2>&5
37377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37378 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37379 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37380 (eval $ac_try) 2>&5
37382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37383 test $ac_status = 0; }; }; then :
37385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37386 $as_echo "yes" >&6; }
37388 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
37392 $as_echo "$as_me: failed program was:" >&5
37393 sed 's/^/| /' conftest.
$ac_ext >&5
37395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37396 $as_echo "no" >&6; }
37406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
37407 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
37410 cat confdefs.h
- <<_ACEOF >conftest.c
37413 #include <linux/dcache.h>
37415 const struct dentry_operations test_d_op = {
37416 .d_revalidate = NULL,
37423 struct dentry d __attribute__ ((unused));
37425 d.d_op = &test_d_op;
37435 cat - <<_ACEOF >conftest.h
37440 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37441 echo "obj-m := conftest.o" >build
/Makefile
37443 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37444 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37446 (eval $ac_try) 2>&5
37448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37449 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37451 (eval $ac_try) 2>&5
37453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37454 test $ac_status = 0; }; }; then :
37456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37457 $as_echo "yes" >&6; }
37459 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
37463 $as_echo "$as_me: failed program was:" >&5
37464 sed 's/^/| /' conftest.
$ac_ext >&5
37466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37467 $as_echo "no" >&6; }
37476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
37477 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
37481 cat confdefs.h
- <<_ACEOF >conftest.c
37484 #include <linux/mm.h>
37490 truncate_setsize(NULL, 0);
37500 cat - <<_ACEOF >conftest.h
37505 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37506 echo "obj-m := conftest.o" >build
/Makefile
37508 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37509 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37511 (eval $ac_try) 2>&5
37513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37514 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37516 (eval $ac_try) 2>&5
37518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37519 test $ac_status = 0; }; }; then :
37522 $as_echo "$as_me: failed program was:" >&5
37523 sed 's/^/| /' conftest.
$ac_ext >&5
37531 if test $rc -ne 0; then :
37533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37534 $as_echo "no" >&6; }
37537 if test "x$enable_linux_builtin" != xyes
; then
37539 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
37540 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
37542 if test $rc -ne 0; then
37544 for file in mm
/truncate.c
; do
37545 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
37546 "$LINUX/$file" 2>/dev
/null
37548 if test $rc -eq 0; then
37553 if test $export -eq 0; then :
37563 if test $rc -ne 0; then :
37565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37566 $as_echo "no" >&6; }
37570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37571 $as_echo "yes" >&6; }
37573 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
37581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
37582 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
37585 cat confdefs.h
- <<_ACEOF >conftest.c
37588 #include <linux/security.h>
37594 struct inode *ip __attribute__ ((unused)) = NULL;
37595 struct inode *dip __attribute__ ((unused)) = NULL;
37596 const struct qstr *str __attribute__ ((unused)) = NULL;
37597 char *name __attribute__ ((unused)) = NULL;
37598 void *value __attribute__ ((unused)) = NULL;
37599 size_t len __attribute__ ((unused)) = 0;
37601 security_inode_init_security(ip, dip, str, &name, &value, &len);
37611 cat - <<_ACEOF >conftest.h
37616 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37617 echo "obj-m := conftest.o" >build
/Makefile
37619 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37620 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37622 (eval $ac_try) 2>&5
37624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37625 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37627 (eval $ac_try) 2>&5
37629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37630 test $ac_status = 0; }; }; then :
37632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37633 $as_echo "yes" >&6; }
37635 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
37639 $as_echo "$as_me: failed program was:" >&5
37640 sed 's/^/| /' conftest.
$ac_ext >&5
37642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37643 $as_echo "no" >&6; }
37653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
37654 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
37657 cat confdefs.h
- <<_ACEOF >conftest.c
37660 #include <linux/security.h>
37666 struct inode *ip __attribute__ ((unused)) = NULL;
37667 struct inode *dip __attribute__ ((unused)) = NULL;
37668 const struct qstr *str __attribute__ ((unused)) = NULL;
37669 initxattrs func __attribute__ ((unused)) = NULL;
37671 security_inode_init_security(ip, dip, str, func, NULL);
37681 cat - <<_ACEOF >conftest.h
37686 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37687 echo "obj-m := conftest.o" >build
/Makefile
37689 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37690 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37692 (eval $ac_try) 2>&5
37694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37695 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37696 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37697 (eval $ac_try) 2>&5
37699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37700 test $ac_status = 0; }; }; then :
37702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37703 $as_echo "yes" >&6; }
37705 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
37709 $as_echo "$as_me: failed program was:" >&5
37710 sed 's/^/| /' conftest.
$ac_ext >&5
37712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37713 $as_echo "no" >&6; }
37722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
37723 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
37727 cat confdefs.h
- <<_ACEOF >conftest.c
37730 #include <linux/fs.h>
37736 mount_nodev(NULL, 0, NULL, NULL);
37746 cat - <<_ACEOF >conftest.h
37751 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37752 echo "obj-m := conftest.o" >build
/Makefile
37754 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37755 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37757 (eval $ac_try) 2>&5
37759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37760 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37762 (eval $ac_try) 2>&5
37764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37765 test $ac_status = 0; }; }; then :
37768 $as_echo "$as_me: failed program was:" >&5
37769 sed 's/^/| /' conftest.
$ac_ext >&5
37777 if test $rc -ne 0; then :
37779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37780 $as_echo "no" >&6; }
37783 if test "x$enable_linux_builtin" != xyes
; then
37785 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
37786 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
37788 if test $rc -ne 0; then
37790 for file in fs
/super.c
; do
37791 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
37792 "$LINUX/$file" 2>/dev
/null
37794 if test $rc -eq 0; then
37799 if test $export -eq 0; then :
37809 if test $rc -ne 0; then :
37811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37812 $as_echo "no" >&6; }
37816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37817 $as_echo "yes" >&6; }
37819 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
37827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
37828 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
37831 cat confdefs.h
- <<_ACEOF >conftest.c
37834 #include <linux/fs.h>
37836 int shrink(struct shrinker *s, struct shrink_control *sc)
37839 static const struct super_block
37840 sb __attribute__ ((unused)) = {
37841 .s_shrink.shrink = shrink,
37842 .s_shrink.seeks = DEFAULT_SEEKS,
37843 .s_shrink.batch = 0,
37859 cat - <<_ACEOF >conftest.h
37864 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37865 echo "obj-m := conftest.o" >build
/Makefile
37867 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37868 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37870 (eval $ac_try) 2>&5
37872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37873 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37875 (eval $ac_try) 2>&5
37877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37878 test $ac_status = 0; }; }; then :
37880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37881 $as_echo "yes" >&6; }
37883 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
37888 $as_echo "$as_me: failed program was:" >&5
37889 sed 's/^/| /' conftest.
$ac_ext >&5
37891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37892 $as_echo "no" >&6; }
37902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
37903 $as_echo_n "checking whether shrink_control has nid... " >&6; }
37906 cat confdefs.h
- <<_ACEOF >conftest.c
37909 #include <linux/fs.h>
37915 struct shrink_control sc __attribute__ ((unused));
37916 unsigned long scnidsize __attribute__ ((unused)) =
37927 cat - <<_ACEOF >conftest.h
37932 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37933 echo "obj-m := conftest.o" >build
/Makefile
37935 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37936 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37938 (eval $ac_try) 2>&5
37940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37941 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37942 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37943 (eval $ac_try) 2>&5
37945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37946 test $ac_status = 0; }; }; then :
37948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37949 $as_echo "yes" >&6; }
37951 $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
37955 $as_echo "$as_me: failed program was:" >&5
37956 sed 's/^/| /' conftest.
$ac_ext >&5
37958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37959 $as_echo "no" >&6; }
37969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
37970 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
37973 cat confdefs.h
- <<_ACEOF >conftest.c
37976 #include <linux/fs.h>
37982 struct super_block sb __attribute__ ((unused));
37984 INIT_LIST_HEAD(&sb.s_instances);
37994 cat - <<_ACEOF >conftest.h
37999 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38000 echo "obj-m := conftest.o" >build
/Makefile
38002 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38003 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38005 (eval $ac_try) 2>&5
38007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38008 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38009 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38010 (eval $ac_try) 2>&5
38012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38013 test $ac_status = 0; }; }; then :
38015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38016 $as_echo "yes" >&6; }
38018 $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
38022 $as_echo "$as_me: failed program was:" >&5
38023 sed 's/^/| /' conftest.
$ac_ext >&5
38025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38026 $as_echo "no" >&6; }
38035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
38036 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
38039 cat confdefs.h
- <<_ACEOF >conftest.c
38042 #include <linux/fs.h>
38048 struct super_block sb __attribute__ ((unused));
38059 cat - <<_ACEOF >conftest.h
38064 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38065 echo "obj-m := conftest.o" >build
/Makefile
38067 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38068 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38070 (eval $ac_try) 2>&5
38072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38073 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38075 (eval $ac_try) 2>&5
38077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38078 test $ac_status = 0; }; }; then :
38080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38081 $as_echo "yes" >&6; }
38083 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
38087 $as_echo "$as_me: failed program was:" >&5
38088 sed 's/^/| /' conftest.
$ac_ext >&5
38090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38091 $as_echo "no" >&6; }
38101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_setup_bdi_name() exists" >&5
38102 $as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; }
38106 cat confdefs.h
- <<_ACEOF >conftest.c
38109 #include <linux/fs.h>
38110 struct super_block sb;
38116 char *name = "bdi";
38117 atomic_long_t zfs_bdi_seq;
38118 int error __attribute__((unused)) =
38119 super_setup_bdi_name(&sb, "%.28s-%ld", name, atomic_long_inc_return(&zfs_bdi_seq));
38129 cat - <<_ACEOF >conftest.h
38134 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38135 echo "obj-m := conftest.o" >build
/Makefile
38137 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38138 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38140 (eval $ac_try) 2>&5
38142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38143 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38145 (eval $ac_try) 2>&5
38147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38148 test $ac_status = 0; }; }; then :
38151 $as_echo "$as_me: failed program was:" >&5
38152 sed 's/^/| /' conftest.
$ac_ext >&5
38160 if test $rc -ne 0; then :
38162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38163 $as_echo "no" >&6; }
38164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
38165 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
38169 cat confdefs.h
- <<_ACEOF >conftest.c
38172 #include <linux/backing-dev.h>
38173 struct backing_dev_info bdi;
38179 char *name = "bdi";
38180 int error __attribute__((unused)) =
38181 bdi_setup_and_register(&bdi, name);
38191 cat - <<_ACEOF >conftest.h
38196 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38197 echo "obj-m := conftest.o" >build
/Makefile
38199 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38200 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38202 (eval $ac_try) 2>&5
38204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38205 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38207 (eval $ac_try) 2>&5
38209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38210 test $ac_status = 0; }; }; then :
38213 $as_echo "$as_me: failed program was:" >&5
38214 sed 's/^/| /' conftest.
$ac_ext >&5
38222 if test $rc -ne 0; then :
38224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38225 $as_echo "no" >&6; }
38226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
38227 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
38231 cat confdefs.h
- <<_ACEOF >conftest.c
38234 #include <linux/backing-dev.h>
38235 struct backing_dev_info bdi;
38241 char *name = "bdi";
38242 unsigned int cap = BDI_CAP_MAP_COPY;
38243 int error __attribute__((unused)) =
38244 bdi_setup_and_register(&bdi, name, cap);
38254 cat - <<_ACEOF >conftest.h
38259 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38260 echo "obj-m := conftest.o" >build
/Makefile
38262 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38263 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38264 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38265 (eval $ac_try) 2>&5
38267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38268 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38269 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38270 (eval $ac_try) 2>&5
38272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38273 test $ac_status = 0; }; }; then :
38276 $as_echo "$as_me: failed program was:" >&5
38277 sed 's/^/| /' conftest.
$ac_ext >&5
38285 if test $rc -ne 0; then :
38287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38288 $as_echo "no" >&6; }
38291 if test "x$enable_linux_builtin" != xyes
; then
38293 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38294 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
38296 if test $rc -ne 0; then
38298 for file in mm
/backing-dev.c
; do
38299 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38300 "$LINUX/$file" 2>/dev
/null
38302 if test $rc -eq 0; then
38307 if test $export -eq 0; then :
38317 if test $rc -ne 0; then :
38319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38320 $as_echo "no" >&6; }
38324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38325 $as_echo "yes" >&6; }
38327 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38335 if test "x$enable_linux_builtin" != xyes
; then
38337 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38338 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
38340 if test $rc -ne 0; then
38342 for file in mm
/backing-dev.c
; do
38343 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38344 "$LINUX/$file" 2>/dev
/null
38346 if test $rc -eq 0; then
38351 if test $export -eq 0; then :
38361 if test $rc -ne 0; then :
38363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38364 $as_echo "no" >&6; }
38365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
38366 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
38370 cat confdefs.h
- <<_ACEOF >conftest.c
38373 #include <linux/backing-dev.h>
38374 struct backing_dev_info bdi;
38380 char *name = "bdi";
38381 unsigned int cap = BDI_CAP_MAP_COPY;
38382 int error __attribute__((unused)) =
38383 bdi_setup_and_register(&bdi, name, cap);
38393 cat - <<_ACEOF >conftest.h
38398 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38399 echo "obj-m := conftest.o" >build
/Makefile
38401 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38402 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38403 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38404 (eval $ac_try) 2>&5
38406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38407 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38408 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38409 (eval $ac_try) 2>&5
38411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38412 test $ac_status = 0; }; }; then :
38415 $as_echo "$as_me: failed program was:" >&5
38416 sed 's/^/| /' conftest.
$ac_ext >&5
38424 if test $rc -ne 0; then :
38426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38427 $as_echo "no" >&6; }
38430 if test "x$enable_linux_builtin" != xyes
; then
38432 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38433 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
38435 if test $rc -ne 0; then
38437 for file in mm
/backing-dev.c
; do
38438 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38439 "$LINUX/$file" 2>/dev
/null
38441 if test $rc -eq 0; then
38446 if test $export -eq 0; then :
38456 if test $rc -ne 0; then :
38458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38459 $as_echo "no" >&6; }
38463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38464 $as_echo "yes" >&6; }
38466 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38476 $as_echo "yes" >&6; }
38478 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38486 if test "x$enable_linux_builtin" != xyes
; then
38488 grep -q -E '[[:space:]]super_setup_bdi_name[[:space:]]' \
38489 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
38491 if test $rc -ne 0; then
38493 for file in fs
/super.c
; do
38494 grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \
38495 "$LINUX/$file" 2>/dev
/null
38497 if test $rc -eq 0; then
38502 if test $export -eq 0; then :
38512 if test $rc -ne 0; then :
38514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38515 $as_echo "no" >&6; }
38516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
38517 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
38521 cat confdefs.h
- <<_ACEOF >conftest.c
38524 #include <linux/backing-dev.h>
38525 struct backing_dev_info bdi;
38531 char *name = "bdi";
38532 int error __attribute__((unused)) =
38533 bdi_setup_and_register(&bdi, name);
38543 cat - <<_ACEOF >conftest.h
38548 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38549 echo "obj-m := conftest.o" >build
/Makefile
38551 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38552 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38553 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38554 (eval $ac_try) 2>&5
38556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38557 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38558 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38559 (eval $ac_try) 2>&5
38561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38562 test $ac_status = 0; }; }; then :
38565 $as_echo "$as_me: failed program was:" >&5
38566 sed 's/^/| /' conftest.
$ac_ext >&5
38574 if test $rc -ne 0; then :
38576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38577 $as_echo "no" >&6; }
38578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
38579 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
38583 cat confdefs.h
- <<_ACEOF >conftest.c
38586 #include <linux/backing-dev.h>
38587 struct backing_dev_info bdi;
38593 char *name = "bdi";
38594 unsigned int cap = BDI_CAP_MAP_COPY;
38595 int error __attribute__((unused)) =
38596 bdi_setup_and_register(&bdi, name, cap);
38606 cat - <<_ACEOF >conftest.h
38611 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38612 echo "obj-m := conftest.o" >build
/Makefile
38614 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38615 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38616 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38617 (eval $ac_try) 2>&5
38619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38620 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38622 (eval $ac_try) 2>&5
38624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38625 test $ac_status = 0; }; }; then :
38628 $as_echo "$as_me: failed program was:" >&5
38629 sed 's/^/| /' conftest.
$ac_ext >&5
38637 if test $rc -ne 0; then :
38639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38640 $as_echo "no" >&6; }
38643 if test "x$enable_linux_builtin" != xyes
; then
38645 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38646 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
38648 if test $rc -ne 0; then
38650 for file in mm
/backing-dev.c
; do
38651 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38652 "$LINUX/$file" 2>/dev
/null
38654 if test $rc -eq 0; then
38659 if test $export -eq 0; then :
38669 if test $rc -ne 0; then :
38671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38672 $as_echo "no" >&6; }
38676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38677 $as_echo "yes" >&6; }
38679 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38687 if test "x$enable_linux_builtin" != xyes
; then
38689 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38690 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
38692 if test $rc -ne 0; then
38694 for file in mm
/backing-dev.c
; do
38695 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38696 "$LINUX/$file" 2>/dev
/null
38698 if test $rc -eq 0; then
38703 if test $export -eq 0; then :
38713 if test $rc -ne 0; then :
38715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38716 $as_echo "no" >&6; }
38717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
38718 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
38722 cat confdefs.h
- <<_ACEOF >conftest.c
38725 #include <linux/backing-dev.h>
38726 struct backing_dev_info bdi;
38732 char *name = "bdi";
38733 unsigned int cap = BDI_CAP_MAP_COPY;
38734 int error __attribute__((unused)) =
38735 bdi_setup_and_register(&bdi, name, cap);
38745 cat - <<_ACEOF >conftest.h
38750 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38751 echo "obj-m := conftest.o" >build
/Makefile
38753 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38754 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38756 (eval $ac_try) 2>&5
38758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38759 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38761 (eval $ac_try) 2>&5
38763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38764 test $ac_status = 0; }; }; then :
38767 $as_echo "$as_me: failed program was:" >&5
38768 sed 's/^/| /' conftest.
$ac_ext >&5
38776 if test $rc -ne 0; then :
38778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38779 $as_echo "no" >&6; }
38782 if test "x$enable_linux_builtin" != xyes
; then
38784 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38785 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
38787 if test $rc -ne 0; then
38789 for file in mm
/backing-dev.c
; do
38790 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38791 "$LINUX/$file" 2>/dev
/null
38793 if test $rc -eq 0; then
38798 if test $export -eq 0; then :
38808 if test $rc -ne 0; then :
38810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38811 $as_echo "no" >&6; }
38815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38816 $as_echo "yes" >&6; }
38818 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38828 $as_echo "yes" >&6; }
38830 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38840 $as_echo "yes" >&6; }
38842 $as_echo "#define HAVE_SUPER_SETUP_BDI_NAME 1" >>confdefs.h
38850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
38851 $as_echo_n "checking whether set_nlink() is available... " >&6; }
38854 cat confdefs.h
- <<_ACEOF >conftest.c
38857 #include <linux/fs.h>
38864 unsigned int link = 0;
38865 (void) set_nlink(&node, link);
38875 cat - <<_ACEOF >conftest.h
38880 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38881 echo "obj-m := conftest.o" >build
/Makefile
38883 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38884 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38886 (eval $ac_try) 2>&5
38888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38889 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38891 (eval $ac_try) 2>&5
38893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38894 test $ac_status = 0; }; }; then :
38896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38897 $as_echo "yes" >&6; }
38899 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
38903 $as_echo "$as_me: failed program was:" >&5
38904 sed 's/^/| /' conftest.
$ac_ext >&5
38906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38907 $as_echo "no" >&6; }
38917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
38918 $as_echo_n "checking whether elevator_change() is available... " >&6; }
38919 tmp_flags
="$EXTRA_KCFLAGS"
38920 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
38923 cat confdefs.h
- <<_ACEOF >conftest.c
38926 #include <linux/blkdev.h>
38927 #include <linux/elevator.h>
38934 struct request_queue *q = NULL;
38935 char *elevator = NULL;
38936 ret = elevator_change(q, elevator);
38946 cat - <<_ACEOF >conftest.h
38951 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38952 echo "obj-m := conftest.o" >build
/Makefile
38954 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38955 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38957 (eval $ac_try) 2>&5
38959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38960 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38962 (eval $ac_try) 2>&5
38964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38965 test $ac_status = 0; }; }; then :
38967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38968 $as_echo "yes" >&6; }
38970 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
38974 $as_echo "$as_me: failed program was:" >&5
38975 sed 's/^/| /' conftest.
$ac_ext >&5
38977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38978 $as_echo "no" >&6; }
38986 EXTRA_KCFLAGS
="$tmp_flags"
38988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
38989 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
38992 cat confdefs.h
- <<_ACEOF >conftest.c
38995 #include <linux/fs.h>
39001 struct file_system_type *type = NULL;
39002 int (*test)(struct super_block *,void *) = NULL;
39003 int (*set)(struct super_block *,void *) = NULL;
39006 (void) sget(type, test, set, flags, data);
39016 cat - <<_ACEOF >conftest.h
39021 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39022 echo "obj-m := conftest.o" >build
/Makefile
39024 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39025 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39027 (eval $ac_try) 2>&5
39029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39030 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39032 (eval $ac_try) 2>&5
39034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39035 test $ac_status = 0; }; }; then :
39037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39038 $as_echo "yes" >&6; }
39040 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
39044 $as_echo "$as_me: failed program was:" >&5
39045 sed 's/^/| /' conftest.
$ac_ext >&5
39047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39048 $as_echo "no" >&6; }
39057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
39058 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
39062 cat confdefs.h
- <<_ACEOF >conftest.c
39065 #include <linux/fs.h>
39071 struct file *fp __attribute__ ((unused)) = NULL;
39072 struct inode *ip __attribute__ ((unused)) = NULL;
39073 loff_t offset __attribute__ ((unused)) = 0;
39074 loff_t maxsize __attribute__ ((unused)) = 0;
39076 lseek_execute(fp, ip, offset, maxsize);
39086 cat - <<_ACEOF >conftest.h
39091 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39092 echo "obj-m := conftest.o" >build
/Makefile
39094 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39095 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39097 (eval $ac_try) 2>&5
39099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39100 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39101 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39102 (eval $ac_try) 2>&5
39104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39105 test $ac_status = 0; }; }; then :
39108 $as_echo "$as_me: failed program was:" >&5
39109 sed 's/^/| /' conftest.
$ac_ext >&5
39117 if test $rc -ne 0; then :
39119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39120 $as_echo "no" >&6; }
39123 if test "x$enable_linux_builtin" != xyes
; then
39125 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
39126 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
39128 if test $rc -ne 0; then
39130 for file in fs
/read_write.c
; do
39131 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
39132 "$LINUX/$file" 2>/dev
/null
39134 if test $rc -eq 0; then
39139 if test $export -eq 0; then :
39149 if test $rc -ne 0; then :
39151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39152 $as_echo "no" >&6; }
39156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39157 $as_echo "yes" >&6; }
39159 $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
39167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate_shared() is available" >&5
39168 $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
39171 cat confdefs.h
- <<_ACEOF >conftest.c
39174 #include <linux/fs.h>
39175 int iterate(struct file *filp, struct dir_context * context)
39178 static const struct file_operations fops
39179 __attribute__ ((unused)) = {
39180 .iterate_shared = iterate,
39196 cat - <<_ACEOF >conftest.h
39201 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39202 echo "obj-m := conftest.o" >build
/Makefile
39204 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39205 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39206 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39207 (eval $ac_try) 2>&5
39209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39210 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39212 (eval $ac_try) 2>&5
39214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39215 test $ac_status = 0; }; }; then :
39217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39218 $as_echo "yes" >&6; }
39220 $as_echo "#define HAVE_VFS_ITERATE_SHARED 1" >>confdefs.h
39224 $as_echo "$as_me: failed program was:" >&5
39225 sed 's/^/| /' conftest.
$ac_ext >&5
39227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39228 $as_echo "no" >&6; }
39230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
39231 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
39234 cat confdefs.h
- <<_ACEOF >conftest.c
39237 #include <linux/fs.h>
39238 int iterate(struct file *filp, struct dir_context * context)
39241 static const struct file_operations fops
39242 __attribute__ ((unused)) = {
39243 .iterate = iterate,
39259 cat - <<_ACEOF >conftest.h
39264 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39265 echo "obj-m := conftest.o" >build
/Makefile
39267 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39268 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39269 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39270 (eval $ac_try) 2>&5
39272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39273 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39275 (eval $ac_try) 2>&5
39277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39278 test $ac_status = 0; }; }; then :
39280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39281 $as_echo "yes" >&6; }
39283 $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
39287 $as_echo "$as_me: failed program was:" >&5
39288 sed 's/^/| /' conftest.
$ac_ext >&5
39290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39291 $as_echo "no" >&6; }
39293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
39294 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
39297 cat confdefs.h
- <<_ACEOF >conftest.c
39300 #include <linux/fs.h>
39301 int readdir(struct file *filp, void *entry, filldir_t func)
39304 static const struct file_operations fops
39305 __attribute__ ((unused)) = {
39306 .readdir = readdir,
39322 cat - <<_ACEOF >conftest.h
39327 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39328 echo "obj-m := conftest.o" >build
/Makefile
39330 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39331 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39333 (eval $ac_try) 2>&5
39335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39336 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39338 (eval $ac_try) 2>&5
39340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39341 test $ac_status = 0; }; }; then :
39343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39344 $as_echo "yes" >&6; }
39346 $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
39350 $as_echo "$as_me: failed program was:" >&5
39351 sed 's/^/| /' conftest.
$ac_ext >&5
39353 as_fn_error $?
"no; file a bug report with ZFSOnLinux" "$LINENO" 5
39376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
39377 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
39380 cat confdefs.h
- <<_ACEOF >conftest.c
39383 #include <linux/fs.h>
39385 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
39387 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
39390 static const struct file_operations
39391 fops __attribute__ ((unused)) = {
39392 .read_iter = test_read,
39393 .write_iter = test_write,
39409 cat - <<_ACEOF >conftest.h
39414 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39415 echo "obj-m := conftest.o" >build
/Makefile
39417 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39418 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39420 (eval $ac_try) 2>&5
39422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39423 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39425 (eval $ac_try) 2>&5
39427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39428 test $ac_status = 0; }; }; then :
39430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39431 $as_echo "yes" >&6; }
39433 $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
39436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether new_sync_read() is available" >&5
39437 $as_echo_n "checking whether new_sync_read() is available... " >&6; }
39440 cat confdefs.h
- <<_ACEOF >conftest.c
39443 #include <linux/fs.h>
39449 new_sync_read(NULL, NULL, 0, NULL);
39459 cat - <<_ACEOF >conftest.h
39464 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39465 echo "obj-m := conftest.o" >build
/Makefile
39467 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39468 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39469 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39470 (eval $ac_try) 2>&5
39472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39473 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39475 (eval $ac_try) 2>&5
39477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39478 test $ac_status = 0; }; }; then :
39480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39481 $as_echo "yes" >&6; }
39483 $as_echo "#define HAVE_NEW_SYNC_READ 1" >>confdefs.h
39487 $as_echo "$as_me: failed program was:" >&5
39488 sed 's/^/| /' conftest.
$ac_ext >&5
39490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39491 $as_echo "no" >&6; }
39502 $as_echo "$as_me: failed program was:" >&5
39503 sed 's/^/| /' conftest.
$ac_ext >&5
39505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39506 $as_echo "no" >&6; }
39515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5
39516 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
39519 cat confdefs.h
- <<_ACEOF >conftest.c
39522 #include <linux/fs.h>
39529 struct kiocb *iocb = NULL;
39530 struct iov_iter *iov = NULL;
39531 generic_write_checks(iocb, iov);
39541 cat - <<_ACEOF >conftest.h
39546 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39547 echo "obj-m := conftest.o" >build
/Makefile
39549 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39550 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39552 (eval $ac_try) 2>&5
39554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39555 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39557 (eval $ac_try) 2>&5
39559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39560 test $ac_status = 0; }; }; then :
39562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39563 $as_echo "yes" >&6; }
39565 $as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h
39569 $as_echo "$as_me: failed program was:" >&5
39570 sed 's/^/| /' conftest.
$ac_ext >&5
39572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39573 $as_echo "no" >&6; }
39583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5
39584 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
39587 cat confdefs.h
- <<_ACEOF >conftest.c
39590 #include <linux/pagemap.h>
39597 kmap_atomic(&page);
39607 cat - <<_ACEOF >conftest.h
39612 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39613 echo "obj-m := conftest.o" >build
/Makefile
39615 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39616 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39618 (eval $ac_try) 2>&5
39620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39621 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39623 (eval $ac_try) 2>&5
39625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39626 test $ac_status = 0; }; }; then :
39628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39629 $as_echo "yes" >&6; }
39631 $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h
39635 $as_echo "$as_me: failed program was:" >&5
39636 sed 's/^/| /' conftest.
$ac_ext >&5
39638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39639 $as_echo "no" >&6; }
39649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5
39650 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
39653 cat confdefs.h
- <<_ACEOF >conftest.c
39656 #include <linux/namei.h>
39662 struct path *p = NULL;
39663 follow_down_one(p);
39673 cat - <<_ACEOF >conftest.h
39678 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39679 echo "obj-m := conftest.o" >build
/Makefile
39681 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39682 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39684 (eval $ac_try) 2>&5
39686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39687 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39689 (eval $ac_try) 2>&5
39691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39692 test $ac_status = 0; }; }; then :
39694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39695 $as_echo "yes" >&6; }
39697 $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h
39701 $as_echo "$as_me: failed program was:" >&5
39702 sed 's/^/| /' conftest.
$ac_ext >&5
39704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39705 $as_echo "no" >&6; }
39715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5
39716 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
39719 cat confdefs.h
- <<_ACEOF >conftest.c
39722 #include <linux/blkdev.h>
39724 int make_request(struct request_queue *q, struct bio *bio)
39733 blk_queue_make_request(NULL, &make_request);
39743 cat - <<_ACEOF >conftest.h
39748 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39749 echo "obj-m := conftest.o" >build
/Makefile
39751 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39752 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39754 (eval $ac_try) 2>&5
39756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39757 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39759 (eval $ac_try) 2>&5
39761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39762 test $ac_status = 0; }; }; then :
39764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39765 $as_echo "yes" >&6; }
39767 $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h
39770 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h
39774 $as_echo "$as_me: failed program was:" >&5
39775 sed 's/^/| /' conftest.
$ac_ext >&5
39777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39778 $as_echo "no" >&6; }
39779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5
39780 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
39783 cat confdefs.h
- <<_ACEOF >conftest.c
39786 #include <linux/blkdev.h>
39788 void make_request(struct request_queue *q, struct bio *bio)
39797 blk_queue_make_request(NULL, &make_request);
39807 cat - <<_ACEOF >conftest.h
39812 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39813 echo "obj-m := conftest.o" >build
/Makefile
39815 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39816 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39818 (eval $ac_try) 2>&5
39820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39821 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39823 (eval $ac_try) 2>&5
39825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39826 test $ac_status = 0; }; }; then :
39828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39829 $as_echo "yes" >&6; }
39831 $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h
39835 $as_echo "$as_me: failed program was:" >&5
39836 sed 's/^/| /' conftest.
$ac_ext >&5
39838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39839 $as_echo "no" >&6; }
39840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5
39841 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
39844 cat confdefs.h
- <<_ACEOF >conftest.c
39847 #include <linux/blkdev.h>
39849 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
39851 return (BLK_QC_T_NONE);
39858 blk_queue_make_request(NULL, &make_request);
39868 cat - <<_ACEOF >conftest.h
39873 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39874 echo "obj-m := conftest.o" >build
/Makefile
39876 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39877 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39879 (eval $ac_try) 2>&5
39881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39882 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39884 (eval $ac_try) 2>&5
39886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39887 test $ac_status = 0; }; }; then :
39889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39890 $as_echo "yes" >&6; }
39892 $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h
39895 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h
39899 $as_echo "$as_me: failed program was:" >&5
39900 sed 's/^/| /' conftest.
$ac_ext >&5
39902 as_fn_error $?
"no - Please file a bug report at
39903 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
39927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 3 arg generic IO accounting symbols are available" >&5
39928 $as_echo_n "checking whether 3 arg generic IO accounting symbols are available... " >&6; }
39932 cat confdefs.h
- <<_ACEOF >conftest.c
39935 #include <linux/bio.h>
39937 void (*generic_start_io_acct_f)(int, unsigned long,
39938 struct hd_struct *) = &generic_start_io_acct;
39939 void (*generic_end_io_acct_f)(int, struct hd_struct *,
39940 unsigned long) = &generic_end_io_acct;
39946 generic_start_io_acct(0, 0, NULL);
39947 generic_end_io_acct(0, NULL, 0);
39957 cat - <<_ACEOF >conftest.h
39962 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39963 echo "obj-m := conftest.o" >build
/Makefile
39965 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39966 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39967 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39968 (eval $ac_try) 2>&5
39970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39971 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39972 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39973 (eval $ac_try) 2>&5
39975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39976 test $ac_status = 0; }; }; then :
39979 $as_echo "$as_me: failed program was:" >&5
39980 sed 's/^/| /' conftest.
$ac_ext >&5
39988 if test $rc -ne 0; then :
39990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39991 $as_echo "no" >&6; }
39994 if test "x$enable_linux_builtin" != xyes
; then
39996 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
39997 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
39999 if test $rc -ne 0; then
40001 for file in block
/bio.c
; do
40002 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
40003 "$LINUX/$file" 2>/dev
/null
40005 if test $rc -eq 0; then
40010 if test $export -eq 0; then :
40020 if test $rc -ne 0; then :
40022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40023 $as_echo "no" >&6; }
40027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40028 $as_echo "yes" >&6; }
40030 $as_echo "#define HAVE_GENERIC_IO_ACCT_3ARG 1" >>confdefs.h
40038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 4 arg generic IO accounting symbols are available" >&5
40039 $as_echo_n "checking whether 4 arg generic IO accounting symbols are available... " >&6; }
40043 cat confdefs.h
- <<_ACEOF >conftest.c
40046 #include <linux/bio.h>
40048 void (*generic_start_io_acct_f)(struct request_queue *, int,
40049 unsigned long, struct hd_struct *) = &generic_start_io_acct;
40050 void (*generic_end_io_acct_f)(struct request_queue *, int,
40051 struct hd_struct *, unsigned long) = &generic_end_io_acct;
40057 generic_start_io_acct(NULL, 0, 0, NULL);
40058 generic_end_io_acct(NULL, 0, NULL, 0);
40068 cat - <<_ACEOF >conftest.h
40073 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40074 echo "obj-m := conftest.o" >build
/Makefile
40076 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40077 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40079 (eval $ac_try) 2>&5
40081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40082 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40084 (eval $ac_try) 2>&5
40086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40087 test $ac_status = 0; }; }; then :
40090 $as_echo "$as_me: failed program was:" >&5
40091 sed 's/^/| /' conftest.
$ac_ext >&5
40099 if test $rc -ne 0; then :
40101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40102 $as_echo "no" >&6; }
40105 if test "x$enable_linux_builtin" != xyes
; then
40107 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
40108 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
40110 if test $rc -ne 0; then
40112 for file in block
/bio.c
; do
40113 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
40114 "$LINUX/$file" 2>/dev
/null
40116 if test $rc -eq 0; then
40121 if test $export -eq 0; then :
40131 if test $rc -ne 0; then :
40133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40134 $as_echo "no" >&6; }
40138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40139 $as_echo "yes" >&6; }
40141 $as_echo "#define HAVE_GENERIC_IO_ACCT_4ARG 1" >>confdefs.h
40149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm/fpu/api.h exists" >&5
40150 $as_echo_n "checking whether asm/fpu/api.h exists... " >&6; }
40153 cat confdefs.h
- <<_ACEOF >conftest.c
40156 #include <linux/kernel.h>
40157 #include <asm/fpu/api.h>
40163 __kernel_fpu_begin();
40173 cat - <<_ACEOF >conftest.h
40178 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40179 echo "obj-m := conftest.o" >build
/Makefile
40181 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40182 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40183 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40184 (eval $ac_try) 2>&5
40186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40187 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40189 (eval $ac_try) 2>&5
40191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40192 test $ac_status = 0; }; }; then :
40194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40195 $as_echo "yes" >&6; }
40197 $as_echo "#define HAVE_FPU_API_H 1" >>confdefs.h
40201 $as_echo "$as_me: failed program was:" >&5
40202 sed 's/^/| /' conftest.
$ac_ext >&5
40204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40205 $as_echo "no" >&6; }
40215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i_(uid|gid)_(read|write) exist" >&5
40216 $as_echo_n "checking whether i_(uid|gid)_(read|write) exist... " >&6; }
40219 cat confdefs.h
- <<_ACEOF >conftest.c
40222 #include <linux/fs.h>
40228 struct inode *ip = NULL;
40229 (void) i_uid_read(ip);
40239 cat - <<_ACEOF >conftest.h
40244 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40245 echo "obj-m := conftest.o" >build
/Makefile
40247 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40248 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40250 (eval $ac_try) 2>&5
40252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40253 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40255 (eval $ac_try) 2>&5
40257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40258 test $ac_status = 0; }; }; then :
40260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40261 $as_echo "yes" >&6; }
40263 $as_echo "#define HAVE_KUID_HELPERS 1" >>confdefs.h
40267 $as_echo "$as_me: failed program was:" >&5
40268 sed 's/^/| /' conftest.
$ac_ext >&5
40270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40271 $as_echo "no" >&6; }
40281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether module_param_call() is hardened" >&5
40282 $as_echo_n "checking whether module_param_call() is hardened... " >&6; }
40285 cat confdefs.h
- <<_ACEOF >conftest.c
40288 #include <linux/module.h>
40289 #include <linux/moduleparam.h>
40291 int param_get(char *b, const struct kernel_param *kp)
40296 int param_set(const char *b, const struct kernel_param *kp)
40301 module_param_call(p, param_set, param_get, NULL, 0644);
40316 cat - <<_ACEOF >conftest.h
40321 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40322 echo "obj-m := conftest.o" >build
/Makefile
40324 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40325 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40327 (eval $ac_try) 2>&5
40329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40330 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40332 (eval $ac_try) 2>&5
40334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40335 test $ac_status = 0; }; }; then :
40337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40338 $as_echo "yes" >&6; }
40340 $as_echo "#define MODULE_PARAM_CALL_CONST 1" >>confdefs.h
40344 $as_echo "$as_me: failed program was:" >&5
40345 sed 's/^/| /' conftest.
$ac_ext >&5
40347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40348 $as_echo "no" >&6; }
40358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->rename() wants flags" >&5
40359 $as_echo_n "checking whether iops->rename() wants flags... " >&6; }
40362 cat confdefs.h
- <<_ACEOF >conftest.c
40365 #include <linux/fs.h>
40366 int rename_fn(struct inode *sip, struct dentry *sdp,
40367 struct inode *tip, struct dentry *tdp,
40368 unsigned int flags) { return 0; }
40370 static const struct inode_operations
40371 iops __attribute__ ((unused)) = {
40372 .rename = rename_fn,
40388 cat - <<_ACEOF >conftest.h
40393 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40394 echo "obj-m := conftest.o" >build
/Makefile
40396 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40397 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40398 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40399 (eval $ac_try) 2>&5
40401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40402 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40403 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40404 (eval $ac_try) 2>&5
40406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40407 test $ac_status = 0; }; }; then :
40409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40410 $as_echo "yes" >&6; }
40412 $as_echo "#define HAVE_RENAME_WANTS_FLAGS 1" >>confdefs.h
40416 $as_echo "$as_me: failed program was:" >&5
40417 sed 's/^/| /' conftest.
$ac_ext >&5
40419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40420 $as_echo "no" >&6; }
40430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_setxattr() exists" >&5
40431 $as_echo_n "checking whether generic_setxattr() exists... " >&6; }
40434 cat confdefs.h
- <<_ACEOF >conftest.c
40437 #include <linux/fs.h>
40438 #include <linux/xattr.h>
40440 static const struct inode_operations
40441 iops __attribute__ ((unused)) = {
40442 .setxattr = generic_setxattr
40458 cat - <<_ACEOF >conftest.h
40463 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40464 echo "obj-m := conftest.o" >build
/Makefile
40466 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40467 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40469 (eval $ac_try) 2>&5
40471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40472 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40474 (eval $ac_try) 2>&5
40476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40477 test $ac_status = 0; }; }; then :
40479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40480 $as_echo "yes" >&6; }
40482 $as_echo "#define HAVE_GENERIC_SETXATTR 1" >>confdefs.h
40486 $as_echo "$as_me: failed program was:" >&5
40487 sed 's/^/| /' conftest.
$ac_ext >&5
40489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40490 $as_echo "no" >&6; }
40499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_time() exists" >&5
40500 $as_echo_n "checking whether current_time() exists... " >&6; }
40504 cat confdefs.h
- <<_ACEOF >conftest.c
40507 #include <linux/fs.h>
40514 struct timespec now __attribute__ ((unused));
40516 now = current_time(&ip);
40526 cat - <<_ACEOF >conftest.h
40531 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40532 echo "obj-m := conftest.o" >build
/Makefile
40534 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40535 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40537 (eval $ac_try) 2>&5
40539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40540 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40542 (eval $ac_try) 2>&5
40544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40545 test $ac_status = 0; }; }; then :
40548 $as_echo "$as_me: failed program was:" >&5
40549 sed 's/^/| /' conftest.
$ac_ext >&5
40557 if test $rc -ne 0; then :
40559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40560 $as_echo "no" >&6; }
40563 if test "x$enable_linux_builtin" != xyes
; then
40565 grep -q -E '[[:space:]]current_time[[:space:]]' \
40566 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
40568 if test $rc -ne 0; then
40570 for file in fs
/inode.c
; do
40571 grep -q -E "EXPORT_SYMBOL.*(current_time)" \
40572 "$LINUX/$file" 2>/dev
/null
40574 if test $rc -eq 0; then
40579 if test $export -eq 0; then :
40589 if test $rc -ne 0; then :
40591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40592 $as_echo "no" >&6; }
40596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40597 $as_echo "yes" >&6; }
40599 $as_echo "#define HAVE_CURRENT_TIME 1" >>confdefs.h
40607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use vm_node_stat based fn's" >&5
40608 $as_echo_n "checking whether to use vm_node_stat based fn's... " >&6; }
40611 cat confdefs.h
- <<_ACEOF >conftest.c
40614 #include <linux/mm.h>
40615 #include <linux/vmstat.h>
40621 int a __attribute__ ((unused)) = NR_VM_NODE_STAT_ITEMS;
40622 long x __attribute__ ((unused)) =
40623 atomic_long_read(&vm_node_stat[0]);
40624 (void) global_node_page_state(0);
40634 cat - <<_ACEOF >conftest.h
40639 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40640 echo "obj-m := conftest.o" >build
/Makefile
40642 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40643 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40644 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40645 (eval $ac_try) 2>&5
40647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40648 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40650 (eval $ac_try) 2>&5
40652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40653 test $ac_status = 0; }; }; then :
40655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40656 $as_echo "yes" >&6; }
40658 $as_echo "#define ZFS_GLOBAL_NODE_PAGE_STATE 1" >>confdefs.h
40662 $as_echo "$as_me: failed program was:" >&5
40663 sed 's/^/| /' conftest.
$ac_ext >&5
40665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40666 $as_echo "no" >&6; }
40677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ns_capable exists" >&5
40678 $as_echo_n "checking whether ns_capable exists... " >&6; }
40681 cat confdefs.h
- <<_ACEOF >conftest.c
40684 #include <linux/capability.h>
40690 ns_capable((struct user_namespace *)NULL, CAP_SYS_ADMIN);
40700 cat - <<_ACEOF >conftest.h
40705 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40706 echo "obj-m := conftest.o" >build
/Makefile
40708 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40709 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40711 (eval $ac_try) 2>&5
40713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40714 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40716 (eval $ac_try) 2>&5
40718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40719 test $ac_status = 0; }; }; then :
40721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40722 $as_echo "yes" >&6; }
40724 $as_echo "#define HAVE_NS_CAPABLE 1" >>confdefs.h
40728 $as_echo "$as_me: failed program was:" >&5
40729 sed 's/^/| /' conftest.
$ac_ext >&5
40731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40732 $as_echo "no" >&6; }
40742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cred_t->user_ns exists" >&5
40743 $as_echo_n "checking whether cred_t->user_ns exists... " >&6; }
40746 cat confdefs.h
- <<_ACEOF >conftest.c
40749 #include <linux/cred.h>
40756 cr.user_ns = (struct user_namespace *)NULL;
40766 cat - <<_ACEOF >conftest.h
40771 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40772 echo "obj-m := conftest.o" >build
/Makefile
40774 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40775 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40777 (eval $ac_try) 2>&5
40779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40780 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40782 (eval $ac_try) 2>&5
40784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40785 test $ac_status = 0; }; }; then :
40787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40788 $as_echo "yes" >&6; }
40790 $as_echo "#define HAVE_CRED_USER_NS 1" >>confdefs.h
40794 $as_echo "$as_me: failed program was:" >&5
40795 sed 's/^/| /' conftest.
$ac_ext >&5
40797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40798 $as_echo "no" >&6; }
40808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kuid_has_mapping/kgid_has_mapping exist" >&5
40809 $as_echo_n "checking whether kuid_has_mapping/kgid_has_mapping exist... " >&6; }
40812 cat confdefs.h
- <<_ACEOF >conftest.c
40815 #include <linux/uidgid.h>
40821 kuid_has_mapping((struct user_namespace *)NULL, KUIDT_INIT(0));
40822 kgid_has_mapping((struct user_namespace *)NULL, KGIDT_INIT(0));
40832 cat - <<_ACEOF >conftest.h
40837 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40838 echo "obj-m := conftest.o" >build
/Makefile
40840 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40841 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40843 (eval $ac_try) 2>&5
40845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40846 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40847 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40848 (eval $ac_try) 2>&5
40850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40851 test $ac_status = 0; }; }; then :
40853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40854 $as_echo "yes" >&6; }
40856 $as_echo "#define HAVE_KUID_HAS_MAPPING 1" >>confdefs.h
40860 $as_echo "$as_me: failed program was:" >&5
40861 sed 's/^/| /' conftest.
$ac_ext >&5
40863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40864 $as_echo "no" >&6; }
40875 if test "$LINUX_OBJ" != "$LINUX"; then :
40877 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
40883 KERNELCPPFLAGS
="$KERNELCPPFLAGS -std=gnu99"
40884 KERNELCPPFLAGS
="$KERNELCPPFLAGS -Wno-declaration-after-statement"
40885 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
40886 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
40887 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
40888 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
40894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
40895 $as_echo "Error!" >&6; }
40896 as_fn_error $?
"Bad value \"$ZFS_CONFIG\" for --with-config,
40897 user kernel|user|all|srpm" "$LINENO" 5 ;;
40900 if test "$ZFS_CONFIG" = user
-o "$ZFS_CONFIG" = all
; then
40902 CONFIG_USER_FALSE
='#'
40904 CONFIG_USER_TRUE
='#'
40908 if test "$ZFS_CONFIG" = kernel
-o "$ZFS_CONFIG" = all
&&
40909 test "x$enable_linux_builtin" != xyes
; then
40910 CONFIG_KERNEL_TRUE
=
40911 CONFIG_KERNEL_FALSE
='#'
40913 CONFIG_KERNEL_TRUE
='#'
40914 CONFIG_KERNEL_FALSE
=
40917 if test "x$user_libudev" = xyes
; then
40918 WANT_DEVNAME2DEVID_TRUE
=
40919 WANT_DEVNAME2DEVID_FALSE
='#'
40921 WANT_DEVNAME2DEVID_TRUE
='#'
40922 WANT_DEVNAME2DEVID_FALSE
=
40925 if test "$ZFS_CONFIG" = kernel
-o "$ZFS_CONFIG" = all
&&
40926 test "x$qatsrc" != x
; then
40928 CONFIG_QAT_FALSE
='#'
40930 CONFIG_QAT_TRUE
='#'
40936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
40937 $as_echo_n "checking whether debugging is enabled... " >&6; }
40938 # Check whether --enable-debug was given.
40939 if test "${enable_debug+set}" = set; then :
40940 enableval
=$enable_debug;
40946 if test "x$enable_debug" = xyes
; then :
40948 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG -Werror"
40949 HOSTCFLAGS
="${HOSTCFLAGS} -DDEBUG -Werror"
40950 DEBUG_CFLAGS
="-DDEBUG -Werror"
40951 DEBUG_STACKFLAGS
="-fstack-check"
40952 DEBUG_ZFS
="_with_debug"
40954 $as_echo "#define ZFS_DEBUG 1" >>confdefs.h
40959 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DNDEBUG "
40960 HOSTCFLAGS
="${HOSTCFLAGS} -DNDEBUG "
40961 DEBUG_CFLAGS
="-DNDEBUG"
40962 DEBUG_STACKFLAGS
=""
40963 DEBUG_ZFS
="_without_debug"
40970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
40971 $as_echo "$enable_debug" >&6; }
40974 ac_config_files
="$ac_config_files Makefile module/Makefile module/avl/Makefile module/nvpair/Makefile module/unicode/Makefile module/zcommon/Makefile module/zfs/Makefile module/zpios/Makefile module/icp/Makefile include/Makefile include/linux/Makefile include/sys/Makefile include/sys/fs/Makefile include/sys/fm/Makefile include/sys/fm/fs/Makefile include/sys/crypto/Makefile include/sys/sysevent/Makefile zfs.release"
40978 cat >confcache
<<\_ACEOF
40979 # This file is a shell script that caches the results of configure
40980 # tests run on this system so they can be shared between configure
40981 # scripts and configure runs, see configure's option --config-cache.
40982 # It is not useful on other systems. If it contains results you don't
40983 # want to keep, you may remove or edit it.
40985 # config.status only pays attention to the cache file if you give it
40986 # the --recheck option to rerun configure.
40988 # `ac_cv_env_foo' variables (set or unset) will be overridden when
40989 # loading this file, other *unset* `ac_cv_foo' will be assigned the
40990 # following values.
40994 # The following way of writing the cache mishandles newlines in values,
40995 # but we know of no workaround that is simple, portable, and efficient.
40996 # So, we kill variables containing newlines.
40997 # Ultrix sh set writes to stderr and can't be redirected directly,
40998 # and sets the high bit in the cache file unless we assign to the vars.
41000 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41001 eval ac_val
=\$
$ac_var
41005 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
41006 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
41009 _ | IFS | as_nl
) ;; #(
41010 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
41011 *) { eval $ac_var=; unset $ac_var;} ;;
41017 case $as_nl`(ac_space=' '; set) 2>&1` in #(
41018 *${as_nl}ac_space
=\
*)
41019 # `set' does not quote correctly, so add quotes: double-quote
41020 # substitution turns \\\\ into \\, and sed turns \\ into \.
41023 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41026 # `set' quotes correctly as required by POSIX, so do not add quotes.
41027 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41036 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41038 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41040 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
41041 if test -w "$cache_file"; then
41042 if test "x$cache_file" != "x/dev/null"; then
41043 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
41044 $as_echo "$as_me: updating cache $cache_file" >&6;}
41045 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
41046 cat confcache
>"$cache_file"
41048 case $cache_file in #(
41050 mv -f confcache
"$cache_file"$$
&&
41051 mv -f "$cache_file"$$
"$cache_file" ;; #(
41053 mv -f confcache
"$cache_file" ;;
41058 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
41059 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41064 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
41065 # Let make expand exec_prefix.
41066 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
41068 DEFS
=-DHAVE_CONFIG_H
41073 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
41074 # 1. Remove the extension, and $U if already installed.
41075 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
41076 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
41077 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
41078 # will be set to the directory where LIBOBJS objects are built.
41079 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41080 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
41082 LIBOBJS
=$ac_libobjs
41084 LTLIBOBJS
=$ac_ltlibobjs
41087 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
41088 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
41089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
41092 $as_echo_n "checking that generated files are newer than configure... " >&6; }
41093 if test -n "$am_sleep_pid"; then
41094 # Hide warnings about reused PIDs.
41095 wait $am_sleep_pid 2>/dev
/null
41097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
41098 $as_echo "done" >&6; }
41099 if test -n "$EXEEXT"; then
41101 am__EXEEXT_FALSE
='#'
41103 am__EXEEXT_TRUE
='#'
41107 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
41108 as_fn_error $?
"conditional \"AMDEP\" was never defined.
41109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41111 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
41112 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
41113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41115 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
41116 as_fn_error $?
"conditional \"am__fastdepCCAS\" was never defined.
41117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41119 if test -z "${TARGET_ASM_X86_64_TRUE}" && test -z "${TARGET_ASM_X86_64_FALSE}"; then
41120 as_fn_error $?
"conditional \"TARGET_ASM_X86_64\" was never defined.
41121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41123 if test -z "${TARGET_ASM_I386_TRUE}" && test -z "${TARGET_ASM_I386_FALSE}"; then
41124 as_fn_error $?
"conditional \"TARGET_ASM_I386\" was never defined.
41125 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41127 if test -z "${TARGET_ASM_GENERIC_TRUE}" && test -z "${TARGET_ASM_GENERIC_FALSE}"; then
41128 as_fn_error $?
"conditional \"TARGET_ASM_GENERIC\" was never defined.
41129 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41131 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
41132 as_fn_error $?
"conditional \"CONFIG_USER\" was never defined.
41133 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41135 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
41136 as_fn_error $?
"conditional \"CONFIG_KERNEL\" was never defined.
41137 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41139 if test -z "${WANT_DEVNAME2DEVID_TRUE}" && test -z "${WANT_DEVNAME2DEVID_FALSE}"; then
41140 as_fn_error $?
"conditional \"WANT_DEVNAME2DEVID\" was never defined.
41141 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41143 if test -z "${CONFIG_QAT_TRUE}" && test -z "${CONFIG_QAT_FALSE}"; then
41144 as_fn_error $?
"conditional \"CONFIG_QAT\" was never defined.
41145 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41148 : "${CONFIG_STATUS=./config.status}"
41150 ac_clean_files_save
=$ac_clean_files
41151 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
41152 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
41153 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
41155 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
41157 # Generated by $as_me.
41158 # Run this file to recreate the current configuration.
41159 # Compiler output produced by configure, useful for debugging
41160 # configure, is in config.log if it exists.
41163 ac_cs_recheck=false
41166 SHELL=\${CONFIG_SHELL-$SHELL}
41169 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
41170 ## -------------------- ##
41171 ## M4sh Initialization. ##
41172 ## -------------------- ##
41174 # Be more Bourne compatible
41175 DUALCASE
=1; export DUALCASE
# for MKS sh
41176 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
41179 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
41180 # is contrary to our usage. Disable this feature.
41181 alias -g '${1+"$@"}'='"$@"'
41182 setopt NO_GLOB_SUBST
41184 case `(set -o) 2>/dev/null` in #(
41196 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41197 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41198 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41199 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41200 # Prefer a ksh shell builtin over an external printf program on Solaris,
41201 # but without wasting forks for bash or zsh.
41202 if test -z "$BASH_VERSION$ZSH_VERSION" \
41203 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
41204 as_echo='print
-r --'
41205 as_echo_n='print
-rn --'
41206 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
41207 as_echo='printf %s
\n'
41208 as_echo_n='printf %s
'
41210 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
41211 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
41212 as_echo_n='/usr
/ucb
/echo -n'
41214 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
41215 as_echo_n_body='eval
41219 expr "X$arg" : "X\\(.*\\)$as_nl";
41220 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
41222 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
41224 export as_echo_n_body
41225 as_echo_n='sh
-c $as_echo_n_body as_echo
'
41227 export as_echo_body
41228 as_echo='sh
-c $as_echo_body as_echo
'
41231 # The user is always right.
41232 if test "${PATH_SEPARATOR+set}" != set; then
41234 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
41235 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
41242 # We need space, tab and new line, in precisely that order. Quoting is
41243 # there to prevent editors from complaining about space-tab.
41244 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
41245 # splitting by setting IFS to empty value.)
41248 # Find who we are. Look in the path if we contain no directory separator.
41251 *[\\/]* ) as_myself=$0 ;;
41252 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41253 for as_dir in $PATH
41256 test -z "$as_dir" && as_dir=.
41257 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41263 # We did not find ourselves, most probably we were run as `sh COMMAND'
41264 # in which case we are not to be found in the path.
41265 if test "x$as_myself" = x
; then
41268 if test ! -f "$as_myself"; then
41269 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41273 # Unset variables that we do not need and which cause bugs (e.g. in
41274 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
41275 # suppresses any "Segmentation fault" message there. '((' could
41276 # trigger a bug in pdksh 5.2.14.
41277 for as_var
in BASH_ENV ENV MAIL MAILPATH
41278 do eval test x\
${$as_var+set} = xset \
41279 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
41292 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
41295 # as_fn_error STATUS ERROR [LINENO LOG_FD]
41296 # ----------------------------------------
41297 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
41298 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
41299 # script with STATUS, using 1 if that was 0.
41302 as_status
=$1; test $as_status -eq 0 && as_status
=1
41304 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
41305 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
41307 $as_echo "$as_me: error: $2" >&2
41308 as_fn_exit
$as_status
41312 # as_fn_set_status STATUS
41313 # -----------------------
41314 # Set $? to STATUS, without forking.
41315 as_fn_set_status
()
41318 } # as_fn_set_status
41320 # as_fn_exit STATUS
41321 # -----------------
41322 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
41326 as_fn_set_status
$1
41332 # Portably unset VAR.
41335 { eval $1=; unset $1;}
41337 as_unset
=as_fn_unset
41338 # as_fn_append VAR VALUE
41339 # ----------------------
41340 # Append the text in VALUE to the end of the definition contained in VAR. Take
41341 # advantage of any shell optimizations that allow amortized linear growth over
41342 # repeated appends, instead of the typical quadratic growth present in naive
41344 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
41345 eval 'as_fn_append ()
41356 # as_fn_arith ARG...
41357 # ------------------
41358 # Perform arithmetic evaluation on the ARGs, and store the result in the
41359 # global $as_val. Take advantage of shells that can avoid forks. The arguments
41360 # must be portable across $(()) and expr.
41361 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
41362 eval 'as_fn_arith ()
41369 as_val
=`expr "$@" || test $? -eq 1`
41374 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
41375 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
41381 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
41382 as_basename
=basename
41387 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
41393 as_me
=`$as_basename -- "$0" ||
41394 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41395 X"$0" : 'X\(//\)$' \| \
41396 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41398 sed '/^.*\/\([^/][^/]*\)\/*$/{
41412 # Avoid depending upon Character Ranges.
41413 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
41414 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41415 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
41416 as_cr_digits
='0123456789'
41417 as_cr_alnum
=$as_cr_Letters$as_cr_digits
41419 ECHO_C
= ECHO_N
= ECHO_T
=
41420 case `echo -n x` in #(((((
41422 case `echo 'xy\c'` in
41423 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
41425 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
41432 rm -f conf$$ conf$$.exe conf$$.
file
41433 if test -d conf$$.dir
; then
41434 rm -f conf$$.dir
/conf$$.
file
41437 mkdir conf$$.dir
2>/dev
/null
41439 if (echo >conf$$.
file) 2>/dev
/null
; then
41440 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
41442 # ... but there are two gotchas:
41443 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
41444 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
41445 # In both cases, we have to default to `cp -pR'.
41446 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
41448 elif ln conf$$.
file conf$$
2>/dev
/null
; then
41456 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
41457 rmdir conf$$.dir
2>/dev
/null
41462 # Create "$as_dir" as a directory, including parents if necessary.
41467 -*) as_dir
=.
/$as_dir;;
41469 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
41473 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
41474 *) as_qdir
=$as_dir;;
41476 as_dirs
="'$as_qdir' $as_dirs"
41477 as_dir
=`$as_dirname -- "$as_dir" ||
41478 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41479 X"$as_dir" : 'X\(//\)[^/]' \| \
41480 X"$as_dir" : 'X\(//\)$' \| \
41481 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
41482 $as_echo X"$as_dir" |
41483 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41487 /^X\(\/\/\)[^/].*/{
41500 test -d "$as_dir" && break
41502 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
41503 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
41507 if mkdir
-p .
2>/dev
/null
; then
41508 as_mkdir_p
='mkdir -p "$as_dir"'
41510 test -d .
/-p && rmdir .
/-p
41515 # as_fn_executable_p FILE
41516 # -----------------------
41517 # Test if FILE is an executable regular file.
41518 as_fn_executable_p
()
41520 test -f "$1" && test -x "$1"
41521 } # as_fn_executable_p
41522 as_test_x
='test -x'
41523 as_executable_p
=as_fn_executable_p
41525 # Sed expression to map a string onto a valid CPP name.
41526 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41528 # Sed expression to map a string onto a valid variable name.
41529 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41533 ## ----------------------------------- ##
41534 ## Main body of $CONFIG_STATUS script. ##
41535 ## ----------------------------------- ##
41537 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
41539 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
41540 # Save the log message, to keep $0 and so on meaningful, and to
41541 # report actual input values of CONFIG_FILES etc. instead of their
41542 # values after options handling.
41544 This file was extended by zfs $as_me 0.7.5, which was
41545 generated by GNU Autoconf 2.69. Invocation command line was
41547 CONFIG_FILES = $CONFIG_FILES
41548 CONFIG_HEADERS = $CONFIG_HEADERS
41549 CONFIG_LINKS = $CONFIG_LINKS
41550 CONFIG_COMMANDS = $CONFIG_COMMANDS
41553 on `(hostname || uname -n) 2>/dev/null | sed 1q`
41558 case $ac_config_files in *"
41559 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
41562 case $ac_config_headers in *"
41563 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
41567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41568 # Files that config.status was made for.
41569 config_files="$ac_config_files"
41570 config_headers="$ac_config_headers"
41571 config_commands="$ac_config_commands"
41575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
41577 \`$as_me' instantiates files and other configuration actions
41578 from templates according to the current configuration. Unless the files
41579 and actions are specified as TAGs, all are instantiated by default.
41581 Usage: $0 [OPTION]... [TAG]...
41583 -h, --help print this help, then exit
41584 -V, --version print version number and configuration settings, then exit
41585 --config print configuration, then exit
41586 -q, --quiet, --silent
41587 do not print progress messages
41588 -d, --debug don't remove temporary files
41589 --recheck update $as_me by reconfiguring in the same conditions
41590 --file=FILE[:TEMPLATE]
41591 instantiate the configuration file FILE
41592 --header=FILE[:TEMPLATE]
41593 instantiate the configuration header FILE
41595 Configuration files:
41598 Configuration headers:
41601 Configuration commands:
41604 Report bugs to the package provider."
41607 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41608 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
41610 zfs config.status 0.7.5
41611 configured by $0, generated by GNU Autoconf 2.69,
41612 with options \\"\$ac_cs_config\\"
41614 Copyright (C) 2012 Free Software Foundation, Inc.
41615 This config.status script is free software; the Free Software Foundation
41616 gives unlimited permission to copy, distribute and modify it."
41623 test -n "\$AWK" || AWK=awk
41626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
41627 # The default lists apply if the user does not specify any file.
41633 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
41634 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
41638 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
41650 # Handling of the options.
41651 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
41653 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
41654 $as_echo "$ac_cs_version"; exit ;;
41655 --config |
--confi |
--conf |
--con |
--co |
--c )
41656 $as_echo "$ac_cs_config"; exit ;;
41657 --debug |
--debu |
--deb |
--de |
--d |
-d )
41659 --file |
--fil |
--fi |
--f )
41662 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41663 '') as_fn_error $?
"missing file argument" ;;
41665 as_fn_append CONFIG_FILES
" '$ac_optarg'"
41666 ac_need_defaults
=false
;;
41667 --header |
--heade |
--head |
--hea )
41670 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41672 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
41673 ac_need_defaults
=false
;;
41675 # Conflict between --help and --header
41676 as_fn_error $?
"ambiguous option: \`$1'
41677 Try \`$0 --help' for more information.";;
41678 --help |
--hel |
-h )
41679 $as_echo "$ac_cs_usage"; exit ;;
41680 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
41681 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
41684 # This is an error.
41685 -*) as_fn_error $?
"unrecognized option: \`$1'
41686 Try \`$0 --help' for more information." ;;
41688 *) as_fn_append ac_config_targets
" $1"
41689 ac_need_defaults
=false
;;
41695 ac_configure_extra_args
=
41697 if $ac_cs_silent; then
41699 ac_configure_extra_args
="$ac_configure_extra_args --silent"
41703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41704 if \$ac_cs_recheck; then
41705 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41707 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
41708 CONFIG_SHELL='$SHELL'
41709 export CONFIG_SHELL
41714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
41718 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41719 ## Running $as_me. ##
41725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41729 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41732 # The HP-UX ksh and POSIX shell print the target directory to stdout
41733 # if CDPATH is set.
41734 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41736 sed_quote_subst='$sed_quote_subst'
41737 double_quote_subst='$double_quote_subst'
41738 delay_variable_subst='$delay_variable_subst'
41739 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
41740 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
41741 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
41742 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
41743 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
41744 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
41745 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
41746 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
41747 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
41748 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
41749 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
41750 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
41751 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
41752 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
41753 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
41754 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
41755 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
41756 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
41757 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
41758 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
41759 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
41760 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
41761 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
41762 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
41763 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
41764 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
41765 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
41766 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
41767 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
41768 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
41769 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
41770 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
41771 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
41772 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
41773 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
41774 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
41775 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
41776 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
41777 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
41778 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
41779 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
41780 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
41781 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
41782 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
41783 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
41784 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
41785 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
41786 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
41787 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
41788 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
41789 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
41790 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
41791 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
41792 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
41793 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
41794 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
41795 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
41796 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
41797 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
41798 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
41799 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
41800 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
41801 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
41802 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
41803 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
41804 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
41805 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
41806 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
41807 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
41808 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
41809 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
41810 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
41811 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
41812 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
41813 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
41814 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
41815 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
41816 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
41817 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
41818 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41819 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
41820 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
41821 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
41822 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
41823 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
41824 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
41825 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41826 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
41827 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41828 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
41829 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41830 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
41831 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
41832 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
41833 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
41834 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
41835 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
41836 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
41837 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
41838 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
41839 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
41840 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
41841 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
41842 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
41843 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
41844 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
41845 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
41846 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
41847 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
41848 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
41849 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
41850 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
41851 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
41852 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
41853 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
41854 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
41855 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
41856 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
41857 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
41858 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
41859 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
41860 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
41861 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
41862 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
41863 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
41864 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
41865 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
41866 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
41867 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
41868 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
41869 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
41870 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
41871 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
41872 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
41873 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
41876 LTCFLAGS='$LTCFLAGS'
41877 compiler='$compiler_DEFAULT'
41879 # A function that is used when there is no print builtin or printf.
41880 func_fallback_echo ()
41882 eval 'cat <<_LTECHO_EOF
41887 # Quote evaled strings.
41902 deplibs_check_method \
41907 sharedlib_from_linklib_cmd \
41910 archiver_list_spec \
41916 lt_cv_sys_global_symbol_pipe \
41917 lt_cv_sys_global_symbol_to_cdecl \
41918 lt_cv_sys_global_symbol_to_import \
41919 lt_cv_sys_global_symbol_to_c_name_address \
41920 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
41921 lt_cv_nm_interface \
41922 nm_file_list_spec \
41923 lt_cv_truncate_bin \
41924 lt_prog_compiler_no_builtin_flag \
41925 lt_prog_compiler_pic \
41926 lt_prog_compiler_wl \
41927 lt_prog_compiler_static \
41928 lt_cv_prog_compiler_c_o \
41937 export_dynamic_flag_spec \
41938 whole_archive_flag_spec \
41939 compiler_needs_object \
41941 allow_undefined_flag \
41942 no_undefined_flag \
41943 hardcode_libdir_flag_spec \
41944 hardcode_libdir_separator \
41948 variables_saved_for_relink \
41950 library_names_spec \
41952 install_override_mode \
41956 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
41957 *[\\\\\\\`\\"\\\$]*)
41958 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
41961 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
41966 # Double-quote double-evaled strings.
41967 for var in reload_cmds \
41968 old_postinstall_cmds \
41969 old_postuninstall_cmds \
41971 extract_expsyms_cmds \
41972 old_archive_from_new_cmds \
41973 old_archive_from_expsyms_cmds \
41975 archive_expsym_cmds \
41977 module_expsym_cmds \
41978 export_symbols_cmds \
41982 postuninstall_cmds \
41984 sys_lib_search_path_spec \
41985 configure_time_dlsearch_path \
41986 configure_time_lt_sys_library_path; do
41987 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
41988 *[\\\\\\\`\\"\\\$]*)
41989 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
41992 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
41997 ac_aux_dir='$ac_aux_dir'
41999 # See if we are running on zsh, and set the options that allow our
42000 # commands through without removal of \ escapes INIT.
42001 if test -n "\${ZSH_VERSION+set}"; then
42002 setopt NO_GLOB_SUBST
42016 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
42018 # Handling of arguments.
42019 for ac_config_target
in $ac_config_targets
42021 case $ac_config_target in
42022 "zfs_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS zfs_config.h" ;;
42023 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
42024 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
42025 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
42026 "module/Makefile") CONFIG_FILES
="$CONFIG_FILES module/Makefile" ;;
42027 "module/avl/Makefile") CONFIG_FILES
="$CONFIG_FILES module/avl/Makefile" ;;
42028 "module/nvpair/Makefile") CONFIG_FILES
="$CONFIG_FILES module/nvpair/Makefile" ;;
42029 "module/unicode/Makefile") CONFIG_FILES
="$CONFIG_FILES module/unicode/Makefile" ;;
42030 "module/zcommon/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zcommon/Makefile" ;;
42031 "module/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zfs/Makefile" ;;
42032 "module/zpios/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zpios/Makefile" ;;
42033 "module/icp/Makefile") CONFIG_FILES
="$CONFIG_FILES module/icp/Makefile" ;;
42034 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
42035 "include/linux/Makefile") CONFIG_FILES
="$CONFIG_FILES include/linux/Makefile" ;;
42036 "include/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/Makefile" ;;
42037 "include/sys/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fs/Makefile" ;;
42038 "include/sys/fm/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/Makefile" ;;
42039 "include/sys/fm/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
42040 "include/sys/crypto/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/crypto/Makefile" ;;
42041 "include/sys/sysevent/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/sysevent/Makefile" ;;
42042 "zfs.release") CONFIG_FILES
="$CONFIG_FILES zfs.release" ;;
42044 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
42049 # If the user did not use the arguments to specify the items to instantiate,
42050 # then the envvar interface is used. Set only those that are not.
42051 # We use the long form for the default assignment because of an extremely
42052 # bizarre bug on SunOS 4.1.3.
42053 if $ac_need_defaults; then
42054 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
42055 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
42056 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
42059 # Have a temporary directory for convenience. Make it in the build tree
42060 # simply because there is no reason against having it here, and in addition,
42061 # creating and moving files from /tmp can sometimes cause problems.
42062 # Hook for its removal unless debugging.
42063 # Note that there is a small window in which the directory will not be cleaned:
42064 # after its creation but before its name has been assigned to `$tmp'.
42068 trap 'exit_status=$?
42069 : "${ac_tmp:=$tmp}"
42070 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
42072 trap 'as_fn_exit 1' 1 2 13 15
42074 # Create a (secure) tmp directory for tmp files.
42077 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42081 tmp
=.
/conf$$
-$RANDOM
42082 (umask 077 && mkdir
"$tmp")
42083 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
42086 # Set up the scripts for CONFIG_FILES section.
42087 # No need to generate them if there are no CONFIG_FILES.
42088 # This happens for instance with `./config.status config.h'.
42089 if test -n "$CONFIG_FILES"; then
42092 ac_cr
=`echo X | tr X '\015'`
42093 # On cygwin, bash can eat \r inside `` if the user requested igncr.
42094 # But we know of no other shell where ac_cr would be empty at this
42095 # point, so we can use a bashism as a fallback.
42096 if test "x$ac_cr" = x
; then
42097 eval ac_cr
=\$
\'\\r
\'
42099 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
42100 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
42103 ac_cs_awk_cr
=$ac_cr
42106 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
42111 echo "cat >conf$$subs.awk <<_ACEOF" &&
42112 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
42114 } >conf$$subs.sh ||
42115 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
42116 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
42118 for ac_last_try in false false false false false :; do
42119 . ./conf$$subs.sh ||
42120 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
42122 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
42123 if test $ac_delim_n = $ac_delim_num; then
42125 elif $ac_last_try; then
42126 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
42128 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
42131 rm -f conf$$subs.sh
42133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42134 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
42138 s/^/S["/; s
/!.
*/"]=/
42148 s/\(.\{148\}\)..*/\1/
42150 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
42155 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
42162 s/\(.\{148\}\)..*/\1/
42164 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
42168 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
42173 ' <conf$$subs.awk | sed '
42178 ' >>$CONFIG_STATUS || ac_write_fail=1
42179 rm -f conf$$subs.awk
42180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42182 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
42183 for (key in S) S_is_set[key] = 1
42189 nfields = split(line, field, "@
")
42191 len = length(field[1])
42192 for (i = 2; i < nfields; i++) {
42194 keylen = length(key)
42195 if (S_is_set[key]) {
42197 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
42198 len += length(value) + length(field[++i])
42209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42210 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
42211 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
42214 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
42215 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
42218 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
42219 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
42220 # trailing colons and then remove the whole line if VPATH becomes empty
42221 # (actually we leave an empty line to preserve line numbers).
42222 if test "x
$srcdir" = x.; then
42223 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
42241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42242 fi # test -n "$CONFIG_FILES"
42244 # Set up the scripts for CONFIG_HEADERS section.
42245 # No need to generate them if there are no CONFIG_HEADERS.
42246 # This happens for instance with `./config.status Makefile'.
42247 if test -n "$CONFIG_HEADERS"; then
42248 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
42252 # Transform confdefs.h into an awk script `defines.awk', embedded as
42253 # here-document in config.status, that substitutes the proper values into
42254 # config.h.in to produce config.h.
42256 # Create a delimiter string that does not exist in confdefs.h, to ease
42257 # handling of long lines.
42259 for ac_last_try in false false :; do
42260 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
42261 if test -z "$ac_tt"; then
42263 elif $ac_last_try; then
42264 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
42266 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
42270 # For the awk script, D is an array of macro values keyed by name,
42271 # likewise P contains macro parameters if any. Preserve backslash
42272 # newline sequences.
42274 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
42276 s/.\{148\}/&'"$ac_delim"'/g
42279 s/^[ ]*#[ ]*define[ ][ ]*/ /
42286 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
42288 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
42292 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
42293 D["\
1"]=" \
3\\\\\\n
"\\/p
42295 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
42300 s/.\{148\}/&'"$ac_delim"'/g
42305 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
42308 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
42310 ' <confdefs.h | sed '
42311 s/'"$ac_delim"'/"\\\
42312 "/g' >>$CONFIG_STATUS || ac_write_fail=1
42314 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42315 for (key in D) D_is_set[key] = 1
42318 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
42320 split(line, arg, " ")
42321 if (arg[1] == "#") {
42325 defundef
= substr
(arg
[1], 2)
42328 split(mac1
, mac2
, "(") #)
42330 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
42331 if (D_is_set
[macro
]) {
42332 # Preserve the white space surrounding the "#".
42333 print prefix
"define", macro P
[macro
] D
[macro
]
42336 # Replace #undef with comments. This is necessary, for example,
42337 # in the case of _POSIX_SOURCE, which is predefined and required
42338 # on some systems where configure will not decide to define it.
42339 if (defundef
== "undef") {
42340 print
"/*", prefix defundef
, macro
, "*/"
42348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
42349 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
42350 fi # test -n "$CONFIG_HEADERS"
42353 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
42358 :[FHLC
]) ac_mode
=$ac_tag; continue;;
42360 case $ac_mode$ac_tag in
42362 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
42363 :[FH
]-) ac_tag
=-:-;;
42364 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
42381 -) ac_f
="$ac_tmp/stdin";;
42382 *) # Look for the file first in the build tree, then in the source tree
42383 # (if the path is not absolute). The absolute path cannot be DOS-style,
42384 # because $ac_f cannot contain `:'.
42388 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
42390 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
42392 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
42393 as_fn_append ac_file_inputs
" '$ac_f'"
42396 # Let's still pretend it is `configure' which instantiates (i.e., don't
42397 # use $as_me), people would be surprised to read:
42398 # /* config.h. Generated by config.status. */
42399 configure_input
='Generated from '`
42400 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
42402 if test x
"$ac_file" != x-
; then
42403 configure_input
="$ac_file. $configure_input"
42404 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
42405 $as_echo "$as_me: creating $ac_file" >&6;}
42407 # Neutralize special characters interpreted by sed in replacement strings.
42408 case $configure_input in #(
42409 *\
&* |
*\|
* |
*\\* )
42410 ac_sed_conf_input
=`$as_echo "$configure_input" |
42411 sed 's/[\\\\&|]/\\\\&/g'`;; #(
42412 *) ac_sed_conf_input
=$configure_input;;
42416 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
42417 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
42422 ac_dir
=`$as_dirname -- "$ac_file" ||
42423 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42424 X"$ac_file" : 'X\(//\)[^/]' \| \
42425 X"$ac_file" : 'X\(//\)$' \| \
42426 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42427 $as_echo X"$ac_file" |
42428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42432 /^X\(\/\/\)[^/].*/{
42445 as_dir
="$ac_dir"; as_fn_mkdir_p
42449 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
42451 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
42452 # A ".." for each directory in $ac_dir_suffix.
42453 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
42454 case $ac_top_builddir_sub in
42455 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
42456 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
42459 ac_abs_top_builddir
=$ac_pwd
42460 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
42461 # for backward compatibility:
42462 ac_top_builddir
=$ac_top_build_prefix
42465 .
) # We are building in place.
42467 ac_top_srcdir
=$ac_top_builddir_sub
42468 ac_abs_top_srcdir
=$ac_pwd ;;
42469 [\\/]* | ?
:[\\/]* ) # Absolute name.
42470 ac_srcdir
=$srcdir$ac_dir_suffix;
42471 ac_top_srcdir
=$srcdir
42472 ac_abs_top_srcdir
=$srcdir ;;
42473 *) # Relative name.
42474 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
42475 ac_top_srcdir
=$ac_top_build_prefix$srcdir
42476 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
42478 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
42488 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
42489 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
42491 ac_MKDIR_P
=$MKDIR_P
42493 [\\/$
]* | ?
:[\\/]* ) ;;
42494 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
42498 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
42499 # If the template does not know about datarootdir, expand it.
42500 # FIXME: This hack should be removed a few years after 2.60.
42501 ac_datarootdir_hack
=; ac_datarootdir_seen
=
42512 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
42513 *datarootdir
*) ac_datarootdir_seen
=yes;;
42514 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
42515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
42516 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
42518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42519 ac_datarootdir_hack='
42520 s&@datadir@&$datadir&g
42521 s&@docdir@&$docdir&g
42522 s&@infodir@&$infodir&g
42523 s&@localedir@&$localedir&g
42524 s&@mandir@&$mandir&g
42525 s&\\\${datarootdir}&$datarootdir&g' ;;
42529 # Neutralize VPATH when `$srcdir' = `.'.
42530 # Shell code in configure.ac might set extrasub.
42531 # FIXME: do we really want to maintain this feature?
42532 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42533 ac_sed_extra="$ac_vpsub
42536 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
42538 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
42539 s|@configure_input@|
$ac_sed_conf_input|
;t t
42540 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
42541 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
42542 s
&@srcdir@
&$ac_srcdir&;t t
42543 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
42544 s
&@top_srcdir@
&$ac_top_srcdir&;t t
42545 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
42546 s
&@builddir@
&$ac_builddir&;t t
42547 s
&@abs_builddir@
&$ac_abs_builddir&;t t
42548 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
42549 s
&@INSTALL@
&$ac_INSTALL&;t t
42550 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
42551 $ac_datarootdir_hack
42553 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
42554 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
42556 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
42557 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
42558 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
42559 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
42560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
42561 which seems to be undefined. Please make sure it is defined" >&5
42562 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
42563 which seems to be undefined. Please make sure it is defined" >&2;}
42565 rm -f "$ac_tmp/stdin"
42567 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
42568 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
42570 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42576 if test x"$ac_file" != x-; then
42578 $as_echo "/* $configure_input */" \
42579 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
42580 } >"$ac_tmp/config.h" \
42581 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42582 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
42583 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
42584 $as_echo "$as_me: $ac_file is unchanged" >&6;}
42587 mv "$ac_tmp/config.h" "$ac_file" \
42588 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42591 $as_echo "/* $configure_input */" \
42592 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
42593 || as_fn_error $? "could not create -" "$LINENO" 5
42595 # Compute "$ac_file"'s index
in $config_headers.
42598 for _am_header
in $config_headers :; do
42599 case $_am_header in
42600 $_am_arg |
$_am_arg:* )
42603 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
42606 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
42607 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42608 X"$_am_arg" : 'X\(//\)[^/]' \| \
42609 X"$_am_arg" : 'X\(//\)$' \| \
42610 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
42611 $as_echo X"$_am_arg" |
42612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42616 /^X\(\/\/\)[^/].*/{
42628 s/.*/./; q'`/stamp-h
$_am_stamp_count
42631 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
42632 $as_echo "$as_me: executing $ac_file commands" >&6;}
42637 case $ac_file$ac_mode in
42639 (mv zfs_config.h zfs_config.h.tmp
&&
42640 awk -f ${ac_srcdir}/config
/config.
awk zfs_config.h.tmp
>zfs_config.h
&&
42641 rm zfs_config.h.tmp
) ||
exit 1 ;;
42642 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
42643 # Older Autoconf quotes --file arguments for eval, but not when files
42644 # are listed without --file. Let's play safe and only enable the eval
42645 # if we detect the quoting.
42646 case $CONFIG_FILES in
42647 *\'*) eval set x
"$CONFIG_FILES" ;;
42648 *) set x
$CONFIG_FILES ;;
42653 # Strip MF so we end up with the name of the file.
42654 mf
=`echo "$mf" | sed -e 's/:.*$//'`
42655 # Check whether this is an Automake generated Makefile or not.
42656 # We used to match only the files named 'Makefile.in', but
42657 # some people rename them; so instead we look at the file content.
42658 # Grep'ing the first line is not enough: some people post-process
42659 # each Makefile.in and add a new line on top of each file to say so.
42660 # Grep'ing the whole file is not good either: AIX grep has a line
42661 # limit of 2048, but all sed's we know have understand at least 4000.
42662 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
42663 dirpart
=`$as_dirname -- "$mf" ||
42664 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42665 X"$mf" : 'X\(//\)[^/]' \| \
42666 X"$mf" : 'X\(//\)$' \| \
42667 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
42669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42673 /^X\(\/\/\)[^/].*/{
42689 # Extract the definition of DEPDIR, am__include, and am__quote
42690 # from the Makefile without running 'make'.
42691 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
42692 test -z "$DEPDIR" && continue
42693 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
42694 test -z "$am__include" && continue
42695 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
42696 # Find all dependency output files, they are included files with
42697 # $(DEPDIR) in their names. We invoke sed twice because it is the
42698 # simplest approach to changing $(DEPDIR) to its actual value in the
42700 for file in `sed -n "
42701 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
42702 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
42703 # Make sure the directory exists.
42704 test -f "$dirpart/$file" && continue
42705 fdir
=`$as_dirname -- "$file" ||
42706 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42707 X"$file" : 'X\(//\)[^/]' \| \
42708 X"$file" : 'X\(//\)$' \| \
42709 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
42710 $as_echo X"$file" |
42711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42715 /^X\(\/\/\)[^/].*/{
42728 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
42729 # echo "creating $dirpart/$file"
42730 echo '# dummy' > "$dirpart/$file"
42737 # See if we are running on zsh, and set the options that allow our
42738 # commands through without removal of \ escapes.
42739 if test -n "${ZSH_VERSION+set}"; then
42740 setopt NO_GLOB_SUBST
42744 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
42747 cat <<_LT_EOF >> "$cfgfile"
42749 # Generated automatically by $as_me ($PACKAGE) $VERSION
42750 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
42752 # Provide generalized library-building support services.
42753 # Written by Gordon Matzigkeit, 1996
42755 # Copyright (C) 2014 Free Software Foundation, Inc.
42756 # This is free software; see the source for copying conditions. There is NO
42757 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
42759 # GNU Libtool is free software; you can redistribute it and/or modify
42760 # it under the terms of the GNU General Public License as published by
42761 # the Free Software Foundation; either version 2 of of the License, or
42762 # (at your option) any later version.
42764 # As a special exception to the GNU General Public License, if you
42765 # distribute this file as part of a program or library that is built
42766 # using GNU Libtool, you may include this file under the same
42767 # distribution terms that you use for the rest of that program.
42769 # GNU Libtool is distributed in the hope that it will be useful, but
42770 # WITHOUT ANY WARRANTY; without even the implied warranty of
42771 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
42772 # GNU General Public License for more details.
42774 # You should have received a copy of the GNU General Public License
42775 # along with this program. If not, see <http://www.gnu.org/licenses/>.
42778 # The names of the tagged configurations supported by this script.
42781 # Configured defaults for sys_lib_dlsearch_path munging.
42782 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
42784 # ### BEGIN LIBTOOL CONFIG
42786 # Which release of libtool.m4 was used?
42787 macro_version=$macro_version
42788 macro_revision=$macro_revision
42790 # Whether or not to build shared libraries.
42791 build_libtool_libs=$enable_shared
42793 # Whether or not to build static libraries.
42794 build_old_libs=$enable_static
42796 # What type of objects to build.
42799 # Whether or not to optimize for fast installation.
42800 fast_install=$enable_fast_install
42802 # Shared archive member basename,for filename based shared library versioning on AIX.
42803 shared_archive_member_spec=$shared_archive_member_spec
42805 # Shell to use when invoking shell scripts.
42808 # An echo program that protects backslashes.
42811 # The PATH separator for the build system.
42812 PATH_SEPARATOR=$lt_PATH_SEPARATOR
42815 host_alias=$host_alias
42819 # The build system.
42820 build_alias=$build_alias
42824 # A sed program that does not truncate output.
42827 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
42828 Xsed="\$SED -e 1s/^X//"
42830 # A grep program that handles long lines.
42836 # A literal string matcher.
42839 # A BSD- or MS-compatible name lister.
42842 # Whether we need soft or hard links.
42845 # What is the maximum length of a command?
42846 max_cmd_len=$max_cmd_len
42848 # Object file suffix (normally "o").
42851 # Executable file suffix (normally "").
42854 # whether the shell understands "unset".
42857 # turn spaces into newlines.
42860 # turn newlines into spaces.
42863 # convert \$build file names to \$host format.
42864 to_host_file_cmd=$lt_cv_to_host_file_cmd
42866 # convert \$build files to toolchain format.
42867 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
42869 # An object symbol dumper.
42870 OBJDUMP=$lt_OBJDUMP
42872 # Method to check whether dependent libraries are shared objects.
42873 deplibs_check_method=$lt_deplibs_check_method
42875 # Command to use when deplibs_check_method = "file_magic".
42876 file_magic_cmd=$lt_file_magic_cmd
42878 # How to find potential files when deplibs_check_method = "file_magic".
42879 file_magic_glob=$lt_file_magic_glob
42881 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
42882 want_nocaseglob=$lt_want_nocaseglob
42884 # DLL creation program.
42885 DLLTOOL=$lt_DLLTOOL
42887 # Command to associate shared and link libraries.
42888 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
42893 # Flags to create an archive.
42894 AR_FLAGS=$lt_AR_FLAGS
42896 # How to feed a file listing to the archiver.
42897 archiver_list_spec=$lt_archiver_list_spec
42899 # A symbol stripping program.
42902 # Commands used to install an old-style archive.
42904 old_postinstall_cmds=$lt_old_postinstall_cmds
42905 old_postuninstall_cmds=$lt_old_postuninstall_cmds
42907 # Whether to use a lock for old archive extraction.
42908 lock_old_archive_extraction=$lock_old_archive_extraction
42913 # LTCC compiler flags.
42914 LTCFLAGS=$lt_CFLAGS
42916 # Take the output of nm and produce a listing of raw symbols and C names.
42917 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
42919 # Transform the output of nm in a proper C declaration.
42920 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
42922 # Transform the output of nm into a list of symbols to manually relocate.
42923 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
42925 # Transform the output of nm in a C name address pair.
42926 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
42928 # Transform the output of nm in a C name address pair when lib prefix is needed.
42929 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
42931 # The name lister interface.
42932 nm_interface=$lt_lt_cv_nm_interface
42934 # Specify filename containing input files for \$NM.
42935 nm_file_list_spec=$lt_nm_file_list_spec
42937 # The root where to search for dependent libraries,and where our libraries should be installed.
42938 lt_sysroot=$lt_sysroot
42940 # Command to truncate a binary pipe.
42941 lt_truncate_bin=$lt_lt_cv_truncate_bin
42943 # The name of the directory that contains temporary libtool files.
42946 # Used to examine libraries when file_magic_cmd begins with "file".
42947 MAGIC_CMD=$MAGIC_CMD
42949 # Must we lock files when doing compilation?
42950 need_locks=$lt_need_locks
42953 MANIFEST_TOOL=$lt_MANIFEST_TOOL
42955 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
42956 DSYMUTIL=$lt_DSYMUTIL
42958 # Tool to change global to local symbols on Mac OS X.
42961 # Tool to manipulate fat objects and archives on Mac OS X.
42964 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
42967 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
42968 OTOOL64=$lt_OTOOL64
42970 # Old archive suffix (normally "a").
42973 # Shared library suffix (normally ".so").
42974 shrext_cmds=$lt_shrext_cmds
42976 # The commands to extract the exported symbol list from a shared archive.
42977 extract_expsyms_cmds=$lt_extract_expsyms_cmds
42979 # Variables whose values should be saved in libtool wrapper scripts and
42980 # restored at link time.
42981 variables_saved_for_relink=$lt_variables_saved_for_relink
42983 # Do we need the "lib" prefix for modules?
42984 need_lib_prefix=$need_lib_prefix
42986 # Do we need a version for libraries?
42987 need_version=$need_version
42989 # Library versioning type.
42990 version_type=$version_type
42992 # Shared library runtime path variable.
42993 runpath_var=$runpath_var
42995 # Shared library path variable.
42996 shlibpath_var=$shlibpath_var
42998 # Is shlibpath searched before the hard-coded library search path?
42999 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43001 # Format of library name prefix.
43002 libname_spec=$lt_libname_spec
43004 # List of archive names. First name is the real one, the rest are links.
43005 # The last name is the one that the linker finds with -lNAME
43006 library_names_spec=$lt_library_names_spec
43008 # The coded name of the library, if different from the real name.
43009 soname_spec=$lt_soname_spec
43011 # Permission mode override for installation of shared libraries.
43012 install_override_mode=$lt_install_override_mode
43014 # Command to use after installation of a shared archive.
43015 postinstall_cmds=$lt_postinstall_cmds
43017 # Command to use after uninstallation of a shared archive.
43018 postuninstall_cmds=$lt_postuninstall_cmds
43020 # Commands used to finish a libtool library installation in a directory.
43021 finish_cmds=$lt_finish_cmds
43023 # As "finish_cmds", except a single script fragment to be evaled but
43025 finish_eval=$lt_finish_eval
43027 # Whether we should hardcode library paths into libraries.
43028 hardcode_into_libs=$hardcode_into_libs
43030 # Compile-time system search path for libraries.
43031 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43033 # Detected run-time system search path for libraries.
43034 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
43036 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
43037 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
43039 # Whether dlopen is supported.
43040 dlopen_support=$enable_dlopen
43042 # Whether dlopen of programs is supported.
43043 dlopen_self=$enable_dlopen_self
43045 # Whether dlopen of statically linked programs is supported.
43046 dlopen_self_static=$enable_dlopen_self_static
43048 # Commands to strip libraries.
43049 old_striplib=$lt_old_striplib
43050 striplib=$lt_striplib
43053 # The linker used to build libraries.
43056 # How to create reloadable object files.
43057 reload_flag=$lt_reload_flag
43058 reload_cmds=$lt_reload_cmds
43060 # Commands used to build an old-style archive.
43061 old_archive_cmds=$lt_old_archive_cmds
43063 # A language specific compiler.
43066 # Is the compiler the GNU compiler?
43069 # Compiler flag to turn off builtin functions.
43070 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43072 # Additional compiler flags for building library objects.
43073 pic_flag=$lt_lt_prog_compiler_pic
43075 # How to pass a linker flag through the compiler.
43076 wl=$lt_lt_prog_compiler_wl
43078 # Compiler flag to prevent dynamic linking.
43079 link_static_flag=$lt_lt_prog_compiler_static
43081 # Does compiler simultaneously support -c and -o options?
43082 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43084 # Whether or not to add -lc for building shared libraries.
43085 build_libtool_need_lc=$archive_cmds_need_lc
43087 # Whether or not to disallow shared libs when runtime libs are static.
43088 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43090 # Compiler flag to allow reflexive dlopens.
43091 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43093 # Compiler flag to generate shared objects directly from archives.
43094 whole_archive_flag_spec=$lt_whole_archive_flag_spec
43096 # Whether the compiler copes with passing no objects directly.
43097 compiler_needs_object=$lt_compiler_needs_object
43099 # Create an old-style archive from a shared archive.
43100 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43102 # Create a temporary old-style archive to link instead of a shared archive.
43103 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43105 # Commands used to build a shared archive.
43106 archive_cmds=$lt_archive_cmds
43107 archive_expsym_cmds=$lt_archive_expsym_cmds
43109 # Commands used to build a loadable module if different from building
43110 # a shared archive.
43111 module_cmds=$lt_module_cmds
43112 module_expsym_cmds=$lt_module_expsym_cmds
43114 # Whether we are building with GNU ld or not.
43115 with_gnu_ld=$lt_with_gnu_ld
43117 # Flag that allows shared libraries with undefined symbols to be built.
43118 allow_undefined_flag=$lt_allow_undefined_flag
43120 # Flag that enforces no undefined symbols.
43121 no_undefined_flag=$lt_no_undefined_flag
43123 # Flag to hardcode \$libdir into a binary during linking.
43124 # This must work even if \$libdir does not exist
43125 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43127 # Whether we need a single "-rpath" flag with a separated argument.
43128 hardcode_libdir_separator=$lt_hardcode_libdir_separator
43130 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43131 # DIR into the resulting binary.
43132 hardcode_direct=$hardcode_direct
43134 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43135 # DIR into the resulting binary and the resulting library dependency is
43136 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
43137 # library is relocated.
43138 hardcode_direct_absolute=$hardcode_direct_absolute
43140 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43141 # into the resulting binary.
43142 hardcode_minus_L=$hardcode_minus_L
43144 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43145 # into the resulting binary.
43146 hardcode_shlibpath_var=$hardcode_shlibpath_var
43148 # Set to "yes" if building a shared library automatically hardcodes DIR
43149 # into the library and all subsequent libraries and executables linked
43151 hardcode_automatic=$hardcode_automatic
43153 # Set to yes if linker adds runtime paths of dependent libraries
43154 # to runtime path list.
43155 inherit_rpath=$inherit_rpath
43157 # Whether libtool must link a program against all its dependency libraries.
43158 link_all_deplibs=$link_all_deplibs
43160 # Set to "yes" if exported symbols are required.
43161 always_export_symbols=$always_export_symbols
43163 # The commands to list exported symbols.
43164 export_symbols_cmds=$lt_export_symbols_cmds
43166 # Symbols that should not be listed in the preloaded symbols.
43167 exclude_expsyms=$lt_exclude_expsyms
43169 # Symbols that must always be exported.
43170 include_expsyms=$lt_include_expsyms
43172 # Commands necessary for linking programs (against libraries) with templates.
43173 prelink_cmds=$lt_prelink_cmds
43175 # Commands necessary for finishing linking programs.
43176 postlink_cmds=$lt_postlink_cmds
43178 # Specify filename containing input files.
43179 file_list_spec=$lt_file_list_spec
43181 # How to hardcode a shared library path into an executable.
43182 hardcode_action=$hardcode_action
43184 # ### END LIBTOOL CONFIG
43188 cat <<'_LT_EOF' >> "$cfgfile"
43190 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
43192 # func_munge_path_list VARIABLE PATH
43193 # -----------------------------------
43194 # VARIABLE is name of variable containing _space_ separated list of
43195 # directories to be munged by the contents of PATH, which is string
43198 # string "DIR[ DIR]" will be prepended to VARIABLE
43200 # string "DIR[ DIR]" will be appended to VARIABLE
43201 # "DIRP[:DIRP]::[DIRA:]DIRA"
43202 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
43203 # "DIRA[ DIRA]" will be appended to VARIABLE
43205 # VARIABLE will be replaced by "DIR[ DIR]"
43206 func_munge_path_list ()
43212 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
43215 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
43218 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
43219 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
43222 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
43228 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
43229 func_cc_basename ()
43231 for cc_temp in $*""; do
43233 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
43234 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
43239 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
43243 # ### END FUNCTIONS SHARED WITH CONFIGURE
43249 cat <<\_LT_EOF
>> "$cfgfile"
43250 # AIX sometimes has problems with the GCC collect2 program. For some
43251 # reason, if we set the COLLECT_NAMES environment variable, the problems
43252 # vanish in a puff of smoke.
43253 if test set != "${COLLECT_NAMES+set}"; then
43255 export COLLECT_NAMES
43262 ltmain
=$ac_aux_dir/ltmain.sh
43265 # We use sed instead of cat because bash on DJGPP gets confused if
43266 # if finds mixed CR/LF and LF-only lines. Since sed operates in
43267 # text mode, it properly converts lines to CR/LF. This bash problem
43268 # is reportedly fixed, but why not run on old versions too?
43269 sed '$q' "$ltmain" >> "$cfgfile" \
43270 ||
(rm -f "$cfgfile"; exit 1)
43272 mv -f "$cfgfile" "$ofile" ||
43273 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43284 ac_clean_files
=$ac_clean_files_save
43286 test $ac_write_fail = 0 ||
43287 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
43290 # configure is writing to config.log, and then calls config.status.
43291 # config.status does its own redirection, appending to config.log.
43292 # Unfortunately, on DOS this fails, as config.log is still kept open
43293 # by configure, so config.status won't be able to write to it; its
43294 # output is simply discarded. So we exec the FD to /dev/null,
43295 # effectively closing config.log, so it can be properly (re)opened and
43296 # appended to by config.status. When coming back to configure, we
43297 # need to make the FD available again.
43298 if test "$no_create" != yes; then
43300 ac_config_status_args
=
43301 test "$silent" = yes &&
43302 ac_config_status_args
="$ac_config_status_args --quiet"
43304 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
43306 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43307 # would make configure fail if this is the last instruction.
43308 $ac_cs_success || as_fn_exit
1
43310 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
43311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
43312 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}