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
638 WANT_MMAP_LIBAIO_FALSE
639 WANT_MMAP_LIBAIO_TRUE
640 WANT_DEVNAME2DEVID_FALSE
641 WANT_DEVNAME2DEVID_TRUE
683 TARGET_ASM_GENERIC_FALSE
684 TARGET_ASM_GENERIC_TRUE
685 TARGET_ASM_I386_FALSE
687 TARGET_ASM_X86_64_FALSE
688 TARGET_ASM_X86_64_TRUE
691 NO_UNUSED_BUT_SET_VARIABLE
723 am__fastdepCCAS_FALSE
775 INSTALL_STRIP_PROGRAM
795 MAINTAINER_MODE_FALSE
849 program_transform_name
862 enable_option_checking
863 enable_maintainer_mode
865 enable_dependency_tracking
889 with_systemdpresetdir
890 with_systemdmodulesloaddir
896 ac_precious_vars
='build_alias
910 # Initialize some variables set by options.
912 ac_init_version
=false
913 ac_unrecognized_opts
=
915 # The variables have the same names as the options, with
916 # dashes changed to underlines.
924 program_transform_name
=s
,x
,x
,
932 # Installation directory options.
933 # These are left unexpanded so users can "make install exec_prefix=/foo"
934 # and all the variables that are supposed to be based on exec_prefix
935 # by default will actually change.
936 # Use braces instead of parens because sh, perl, etc. also accept them.
937 # (The list follows the same order as the GNU Coding Standards.)
938 bindir
='${exec_prefix}/bin'
939 sbindir
='${exec_prefix}/sbin'
940 libexecdir
='${exec_prefix}/libexec'
941 datarootdir
='${prefix}/share'
942 datadir
='${datarootdir}'
943 sysconfdir
='${prefix}/etc'
944 sharedstatedir
='${prefix}/com'
945 localstatedir
='${prefix}/var'
946 runstatedir
='${localstatedir}/run'
947 includedir
='${prefix}/include'
948 oldincludedir
='/usr/include'
949 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
950 infodir
='${datarootdir}/info'
955 libdir
='${exec_prefix}/lib'
956 localedir
='${datarootdir}/locale'
957 mandir
='${datarootdir}/man'
963 # If the previous option needs an argument, assign it.
964 if test -n "$ac_prev"; then
965 eval $ac_prev=\
$ac_option
971 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
976 # Accept the important Cygnus configure options, so we can diagnose typos.
978 case $ac_dashdash$ac_option in
982 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
984 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
987 -build |
--build |
--buil |
--bui |
--bu)
988 ac_prev
=build_alias
;;
989 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
990 build_alias
=$ac_optarg ;;
992 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
993 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
994 ac_prev
=cache_file
;;
995 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
996 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
997 cache_file
=$ac_optarg ;;
1000 cache_file
=config.cache
;;
1002 -datadir |
--datadir |
--datadi |
--datad)
1004 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1005 datadir
=$ac_optarg ;;
1007 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1008 |
--dataroo |
--dataro |
--datar)
1009 ac_prev
=datarootdir
;;
1010 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1011 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1012 datarootdir
=$ac_optarg ;;
1014 -disable-* |
--disable-*)
1015 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1016 # Reject names that are not valid shell variable names.
1017 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1018 as_fn_error $?
"invalid feature name: $ac_useropt"
1019 ac_useropt_orig
=$ac_useropt
1020 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021 case $ac_user_opts in
1023 "enable_
$ac_useropt"
1025 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1026 ac_unrecognized_sep
=', ';;
1028 eval enable_
$ac_useropt=no
;;
1030 -docdir |
--docdir |
--docdi |
--doc |
--do)
1032 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1033 docdir
=$ac_optarg ;;
1035 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1037 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1038 dvidir
=$ac_optarg ;;
1040 -enable-* |
--enable-*)
1041 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1042 # Reject names that are not valid shell variable names.
1043 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1044 as_fn_error $?
"invalid feature name: $ac_useropt"
1045 ac_useropt_orig
=$ac_useropt
1046 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047 case $ac_user_opts in
1049 "enable_
$ac_useropt"
1051 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1052 ac_unrecognized_sep
=', ';;
1054 eval enable_
$ac_useropt=\
$ac_optarg ;;
1056 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1057 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1058 |
--exec |
--exe |
--ex)
1059 ac_prev
=exec_prefix
;;
1060 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1061 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1062 |
--exec=* |
--exe=* |
--ex=*)
1063 exec_prefix
=$ac_optarg ;;
1065 -gas |
--gas |
--ga |
--g)
1066 # Obsolete; use --with-gas.
1069 -help |
--help |
--hel |
--he |
-h)
1070 ac_init_help
=long
;;
1071 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1072 ac_init_help
=recursive
;;
1073 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1074 ac_init_help
=short
;;
1076 -host |
--host |
--hos |
--ho)
1077 ac_prev
=host_alias
;;
1078 -host=* |
--host=* |
--hos=* |
--ho=*)
1079 host_alias
=$ac_optarg ;;
1081 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1083 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1085 htmldir
=$ac_optarg ;;
1087 -includedir |
--includedir |
--includedi |
--included |
--include \
1088 |
--includ |
--inclu |
--incl |
--inc)
1089 ac_prev
=includedir
;;
1090 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1091 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1092 includedir
=$ac_optarg ;;
1094 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1096 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1097 infodir
=$ac_optarg ;;
1099 -libdir |
--libdir |
--libdi |
--libd)
1101 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1102 libdir
=$ac_optarg ;;
1104 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1105 |
--libexe |
--libex |
--libe)
1106 ac_prev
=libexecdir
;;
1107 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1108 |
--libexe=* |
--libex=* |
--libe=*)
1109 libexecdir
=$ac_optarg ;;
1111 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1112 ac_prev
=localedir
;;
1113 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1114 localedir
=$ac_optarg ;;
1116 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1117 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1118 ac_prev
=localstatedir
;;
1119 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1120 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1121 localstatedir
=$ac_optarg ;;
1123 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1125 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1126 mandir
=$ac_optarg ;;
1128 -nfp |
--nfp |
--nf)
1129 # Obsolete; use --without-fp.
1132 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1133 |
--no-cr |
--no-c |
-n)
1136 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1137 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1140 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1141 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1142 |
--oldin |
--oldi |
--old |
--ol |
--o)
1143 ac_prev
=oldincludedir
;;
1144 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1145 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1146 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1147 oldincludedir
=$ac_optarg ;;
1149 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1151 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1152 prefix
=$ac_optarg ;;
1154 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1155 |
--program-pre |
--program-pr |
--program-p)
1156 ac_prev
=program_prefix
;;
1157 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1158 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1159 program_prefix
=$ac_optarg ;;
1161 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1162 |
--program-suf |
--program-su |
--program-s)
1163 ac_prev
=program_suffix
;;
1164 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1165 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1166 program_suffix
=$ac_optarg ;;
1168 -program-transform-name |
--program-transform-name \
1169 |
--program-transform-nam |
--program-transform-na \
1170 |
--program-transform-n |
--program-transform- \
1171 |
--program-transform |
--program-transfor \
1172 |
--program-transfo |
--program-transf \
1173 |
--program-trans |
--program-tran \
1174 |
--progr-tra |
--program-tr |
--program-t)
1175 ac_prev
=program_transform_name
;;
1176 -program-transform-name=* |
--program-transform-name=* \
1177 |
--program-transform-nam=* |
--program-transform-na=* \
1178 |
--program-transform-n=* |
--program-transform-=* \
1179 |
--program-transform=* |
--program-transfor=* \
1180 |
--program-transfo=* |
--program-transf=* \
1181 |
--program-trans=* |
--program-tran=* \
1182 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1183 program_transform_name
=$ac_optarg ;;
1185 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1187 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1188 pdfdir
=$ac_optarg ;;
1190 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1192 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1195 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1196 |
-silent |
--silent |
--silen |
--sile |
--sil)
1199 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1200 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1201 |
--run |
--ru |
--r)
1202 ac_prev
=runstatedir
;;
1203 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1204 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1205 |
--run=* |
--ru=* |
--r=*)
1206 runstatedir
=$ac_optarg ;;
1208 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1210 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1212 sbindir
=$ac_optarg ;;
1214 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1215 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1216 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1218 ac_prev
=sharedstatedir
;;
1219 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1220 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1221 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1223 sharedstatedir
=$ac_optarg ;;
1225 -site |
--site |
--sit)
1227 -site=* |
--site=* |
--sit=*)
1230 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1232 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1233 srcdir
=$ac_optarg ;;
1235 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1236 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1237 ac_prev
=sysconfdir
;;
1238 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1239 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1240 sysconfdir
=$ac_optarg ;;
1242 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1243 ac_prev
=target_alias
;;
1244 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1245 target_alias
=$ac_optarg ;;
1247 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1250 -version |
--version |
--versio |
--versi |
--vers |
-V)
1251 ac_init_version
=: ;;
1254 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1255 # Reject names that are not valid shell variable names.
1256 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1257 as_fn_error $?
"invalid package name: $ac_useropt"
1258 ac_useropt_orig
=$ac_useropt
1259 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1260 case $ac_user_opts in
1264 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1265 ac_unrecognized_sep
=', ';;
1267 eval with_
$ac_useropt=\
$ac_optarg ;;
1269 -without-* |
--without-*)
1270 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1271 # Reject names that are not valid shell variable names.
1272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1273 as_fn_error $?
"invalid package name: $ac_useropt"
1274 ac_useropt_orig
=$ac_useropt
1275 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276 case $ac_user_opts in
1280 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1281 ac_unrecognized_sep
=', ';;
1283 eval with_
$ac_useropt=no
;;
1286 # Obsolete; use --with-x.
1289 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1290 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1291 ac_prev
=x_includes
;;
1292 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1293 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1294 x_includes
=$ac_optarg ;;
1296 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1297 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1298 ac_prev
=x_libraries
;;
1299 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1300 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1301 x_libraries
=$ac_optarg ;;
1303 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1304 Try \`$0 --help' for more information"
1308 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1309 # Reject names that are not valid shell variable names.
1310 case $ac_envvar in #(
1311 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1312 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1314 eval $ac_envvar=\
$ac_optarg
1315 export $ac_envvar ;;
1318 # FIXME: should be removed in autoconf 3.0.
1319 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1320 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1321 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1322 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1328 if test -n "$ac_prev"; then
1329 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1330 as_fn_error $?
"missing argument to $ac_option"
1333 if test -n "$ac_unrecognized_opts"; then
1334 case $enable_option_checking in
1336 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1337 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1341 # Check all directory arguments for consistency.
1342 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1343 datadir sysconfdir sharedstatedir localstatedir includedir \
1344 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1345 libdir localedir mandir runstatedir
1347 eval ac_val
=\$
$ac_var
1348 # Remove trailing slashes.
1351 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1352 eval $ac_var=\
$ac_val;;
1354 # Be sure to have absolute directory names.
1356 [\\/$
]* | ?
:[\\/]* ) continue;;
1357 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1359 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1362 # There might be people who depend on the old broken behavior: `$host'
1363 # used to hold the argument of --host etc.
1364 # FIXME: To remove some day.
1367 target
=$target_alias
1369 # FIXME: To remove some day.
1370 if test "x$host_alias" != x
; then
1371 if test "x$build_alias" = x
; then
1372 cross_compiling
=maybe
1373 elif test "x$build_alias" != "x$host_alias"; then
1379 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1381 test "$silent" = yes && exec 6>/dev
/null
1384 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1385 ac_ls_di
=`ls -di .` &&
1386 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1387 as_fn_error $?
"working directory cannot be determined"
1388 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1389 as_fn_error $?
"pwd does not report name of working directory"
1392 # Find the source files, if location was not specified.
1393 if test -z "$srcdir"; then
1394 ac_srcdir_defaulted
=yes
1395 # Try the directory containing this script, then the parent directory.
1396 ac_confdir
=`$as_dirname -- "$as_myself" ||
1397 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1398 X"$as_myself" : 'X\(//\)[^/]' \| \
1399 X"$as_myself" : 'X\(//\)$' \| \
1400 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1401 $as_echo X"$as_myself" |
1402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1424 ac_srcdir_defaulted
=no
1426 if test ! -r "$srcdir/$ac_unique_file"; then
1427 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1428 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1430 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1432 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1434 # When building in place, set srcdir=.
1435 if test "$ac_abs_confdir" = "$ac_pwd"; then
1438 # Remove unnecessary trailing slashes from srcdir.
1439 # Double slashes in file names in object file debugging info
1440 # mess up M-x gdb in Emacs.
1442 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1444 for ac_var
in $ac_precious_vars; do
1445 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1446 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1447 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1448 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1452 # Report the --help message.
1454 if test "$ac_init_help" = "long"; then
1455 # Omit some internal or obsolete options to make the list less imposing.
1456 # This message is too long to be a string in the A/UX 3.1 sh.
1458 \`configure' configures zfs 0.7.5 to adapt to many kinds of systems.
1460 Usage: $0 [OPTION]... [VAR=VALUE]...
1462 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1463 VAR=VALUE. See below for descriptions of some of the useful variables.
1465 Defaults for the options are specified in brackets.
1468 -h, --help display this help and exit
1469 --help=short display options specific to this package
1470 --help=recursive display the short help of all the included packages
1471 -V, --version display version information and exit
1472 -q, --quiet, --silent do not print \`checking ...' messages
1473 --cache-file=FILE cache test results in FILE [disabled]
1474 -C, --config-cache alias for \`--cache-file=config.cache'
1475 -n, --no-create do not create output files
1476 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1478 Installation directories:
1479 --prefix=PREFIX install architecture-independent files in PREFIX
1480 [$ac_default_prefix]
1481 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1484 By default, \`make install' will install all the files in
1485 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1486 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1487 for instance \`--prefix=\$HOME'.
1489 For better control, use the options below.
1491 Fine tuning of the installation directories:
1492 --bindir=DIR user executables [EPREFIX/bin]
1493 --sbindir=DIR system admin executables [EPREFIX/sbin]
1494 --libexecdir=DIR program executables [EPREFIX/libexec]
1495 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1496 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1497 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1498 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1499 --libdir=DIR object code libraries [EPREFIX/lib]
1500 --includedir=DIR C header files [PREFIX/include]
1501 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1502 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1503 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1504 --infodir=DIR info documentation [DATAROOTDIR/info]
1505 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1506 --mandir=DIR man documentation [DATAROOTDIR/man]
1507 --docdir=DIR documentation root [DATAROOTDIR/doc/zfs]
1508 --htmldir=DIR html documentation [DOCDIR]
1509 --dvidir=DIR dvi documentation [DOCDIR]
1510 --pdfdir=DIR pdf documentation [DOCDIR]
1511 --psdir=DIR ps documentation [DOCDIR]
1517 --program-prefix=PREFIX prepend PREFIX to installed program names
1518 --program-suffix=SUFFIX append SUFFIX to installed program names
1519 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1522 --build=BUILD configure
for building on BUILD
[guessed
]
1523 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1524 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1528 if test -n "$ac_init_help"; then
1529 case $ac_init_help in
1530 short | recursive
) echo "Configuration of zfs 0.7.5:";;
1535 --disable-option-checking ignore unrecognized
--enable/--with options
1536 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1537 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1538 --enable-maintainer-mode
1539 enable make rules and dependencies not useful
(and
1540 sometimes confusing
) to the casual installer
1541 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1542 --disable-silent-rules verbose build output
(undo
: "make V=0")
1543 --enable-dependency-tracking
1544 do not reject slow dependency extractors
1545 --disable-dependency-tracking
1546 speeds up one-time build
1547 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1548 --enable-static[=PKGS
] build static libraries
[default
=yes]
1549 --enable-fast-install[=PKGS
]
1550 optimize
for fast installation
[default
=yes]
1551 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1552 --enable-linux-builtin Configure
for builtin in-tree kernel modules
1554 --enable-systemd install systemd unit
/preset files
[[default
: yes]]
1555 --enable-sysvinit install SysV init scripts
[default
: yes]
1556 --enable-debug Enable generic debug support
[default
=no
]
1559 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1560 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1561 --with-pic[=PKGS
] try to use only PIC
/non-PIC objects
[default
=use
1563 --with-aix-soname=aix|svr4|both
1564 shared library versioning
(aka
"SONAME") variant to
1565 provide on AIX
, [default
=aix
].
1566 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1567 --with-sysroot[=DIR
] Search
for dependent libraries within DIR
(or the
1568 compiler
's sysroot if not specified).
1569 --with-spec=SPEC Spec files 'generic|redhat
'
1570 --with-config=CONFIG Config file 'kernel|user|all|srpm
'
1571 --with-linux=PATH Path to kernel source
1572 --with-linux-obj=PATH Path to kernel build objects
1573 --with-spl=PATH Path to spl source
1574 --with-spl-obj=PATH Path to spl build objects
1575 --with-spl-timeout=SECS Wait SECS for SPL header and symver file [default=0]
1576 --with-qat=PATH Path to qat source
1577 --with-qat-obj=PATH Path to qat build objects
1578 --with-mounthelperdir=DIR
1579 install mount.zfs in dir [[/sbin]]
1580 --with-udevdir=DIR install udev helpers [default=check]
1581 --with-udevruledir=DIR install udev rules [[UDEVDIR/rules.d]]
1582 --with-systemdunitdir=DIR
1583 install systemd unit files in dir
1584 [[/usr/lib/systemd/system]]
1585 --with-systemdpresetdir=DIR
1586 install systemd preset files in dir
1587 [[/usr/lib/systemd/system-preset]]
1588 --with-systemdmodulesloaddir=DIR
1589 install systemd module load files into dir
1590 [[/usr/lib/modules-load.d]]
1591 --with-dracutdir=DIR install dracut helpers [default=check]
1592 --with-tirpc use tirpc for xdr encoding [default=check]
1594 Some influential environment variables:
1595 CC C compiler command
1596 CFLAGS C compiler flags
1597 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1598 nonstandard directory <lib dir>
1599 LIBS libraries to pass to the linker, e.g. -l<library>
1600 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1601 you have headers in a nonstandard directory <include dir>
1603 User-defined run-time library search path.
1605 CCAS assembler compiler command (defaults to CC)
1606 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1608 Use these variables to override the choices made by `configure' or to
help
1609 it to
find libraries and programs with nonstandard names
/locations.
1611 Report bugs to the package provider.
1616 if test "$ac_init_help" = "recursive"; then
1617 # If there are subdirs, report their specific --help.
1618 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1619 test -d "$ac_dir" ||
1620 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1625 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1627 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1628 # A ".." for each directory in $ac_dir_suffix.
1629 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1630 case $ac_top_builddir_sub in
1631 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1632 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1635 ac_abs_top_builddir
=$ac_pwd
1636 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1637 # for backward compatibility:
1638 ac_top_builddir
=$ac_top_build_prefix
1641 .
) # We are building in place.
1643 ac_top_srcdir
=$ac_top_builddir_sub
1644 ac_abs_top_srcdir
=$ac_pwd ;;
1645 [\\/]* | ?
:[\\/]* ) # Absolute name.
1646 ac_srcdir
=$srcdir$ac_dir_suffix;
1647 ac_top_srcdir
=$srcdir
1648 ac_abs_top_srcdir
=$srcdir ;;
1650 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1651 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1652 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1654 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1656 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1657 # Check for guested configure.
1658 if test -f "$ac_srcdir/configure.gnu"; then
1660 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1661 elif test -f "$ac_srcdir/configure"; then
1663 $SHELL "$ac_srcdir/configure" --help=recursive
1665 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1667 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1671 test -n "$ac_init_help" && exit $ac_status
1672 if $ac_init_version; then
1675 generated by GNU Autoconf
2.69
1677 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1678 This configure
script is free software
; the Free Software Foundation
1679 gives unlimited permission to copy
, distribute and modify it.
1684 ## ------------------------ ##
1685 ## Autoconf initialization. ##
1686 ## ------------------------ ##
1688 # ac_fn_c_try_compile LINENO
1689 # --------------------------
1690 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1691 ac_fn_c_try_compile
()
1693 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1694 rm -f conftest.
$ac_objext
1695 if { { ac_try
="$ac_compile"
1697 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_compile") 2>conftest.err
1704 if test -s conftest.err; then
1705 grep -v '^ *+' conftest.err >conftest.er1
1706 cat conftest.er1 >&5
1707 mv -f conftest.er1 conftest.err
1709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710 test $ac_status = 0; } && {
1711 test -z "$ac_c_werror_flag" ||
1712 test ! -s conftest.err
1713 } && test -s conftest.$ac_objext; then :
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.$ac_ext >&5
1721 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722 as_fn_set_status $ac_retval
1724 } # ac_fn_c_try_compile
1726 # ac_fn_c_try_link LINENO
1727 # -----------------------
1728 # Try to link conftest.$ac_ext, and return whether this succeeded.
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 rm -f conftest.$ac_objext conftest$ac_exeext
1733 if { { ac_try="$ac_link"
1735 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1736 *) ac_try_echo
=$ac_try;;
1738 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739 $as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_link") 2>conftest.err
1742 if test -s conftest.err
; then
1743 grep -v '^ *+' conftest.err
>conftest.er1
1744 cat conftest.er1
>&5
1745 mv -f conftest.er1 conftest.err
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1748 test $ac_status = 0; } && {
1749 test -z "$ac_c_werror_flag" ||
1750 test ! -s conftest.err
1751 } && test -s conftest
$ac_exeext && {
1752 test "$cross_compiling" = yes ||
1753 test -x conftest
$ac_exeext
1757 $as_echo "$as_me: failed program was:" >&5
1758 sed 's/^/| /' conftest.
$ac_ext >&5
1762 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1763 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1764 # interfere with the next link command; also delete a directory that is
1765 # left behind by Apple's compiler. We do this before executing the actions.
1766 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768 as_fn_set_status
$ac_retval
1770 } # ac_fn_c_try_link
1772 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1773 # -------------------------------------------------------
1774 # Tests whether HEADER exists and can be compiled using the include files in
1775 # INCLUDES, setting the cache variable VAR accordingly.
1776 ac_fn_c_check_header_compile
()
1778 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1780 $as_echo_n "checking for $2... " >&6; }
1781 if eval \
${$3+:} false
; then :
1782 $as_echo_n "(cached) " >&6
1784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1789 if ac_fn_c_try_compile
"$LINENO"; then :
1794 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1798 $as_echo "$ac_res" >&6; }
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1801 } # ac_fn_c_check_header_compile
1803 # ac_fn_c_try_cpp LINENO
1804 # ----------------------
1805 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1808 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1809 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1811 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1812 *) ac_try_echo=$ac_try;;
1814 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1815 $as_echo "$ac_try_echo"; } >&5
1816 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1818 if test -s conftest.err; then
1819 grep -v '^ *+' conftest.err >conftest.er1
1820 cat conftest.er1 >&5
1821 mv -f conftest.er1 conftest.err
1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1824 test $ac_status = 0; } > conftest.i && {
1825 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1826 test ! -s conftest.err
1830 $as_echo "$as_me: failed program was:" >&5
1831 sed 's/^/| /' conftest.$ac_ext >&5
1835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1836 as_fn_set_status $ac_retval
1840 # ac_fn_c_try_run LINENO
1841 # ----------------------
1842 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1843 # that executables *can* be run.
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 if { { ac_try="$ac_link"
1849 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1850 *) ac_try_echo
=$ac_try;;
1852 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1853 $as_echo "$ac_try_echo"; } >&5
1854 (eval "$ac_link") 2>&5
1856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1857 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1858 { { case "(($ac_try" in
1859 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1860 *) ac_try_echo=$ac_try;;
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_try") 2>&5
1866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867 test $ac_status = 0; }; }; then :
1870 $as_echo "$as_me: program exited with status $ac_status" >&5
1871 $as_echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.$ac_ext >&5
1874 ac_retval=$ac_status
1876 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878 as_fn_set_status $ac_retval
1882 # ac_fn_c_check_func LINENO FUNC VAR
1883 # ----------------------------------
1884 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1885 ac_fn_c_check_func ()
1887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1889 $as_echo_n "checking for $2... " >&6; }
1890 if eval \${$3+:} false; then :
1891 $as_echo_n "(cached) " >&6
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h. */
1895 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1897 #define $2 innocuous_$2
1899 /* System header to define __stub macros and hopefully few prototypes,
1900 which can conflict with char $2 (); below.
1901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1902 <limits.h> exists even on freestanding compilers. */
1905 # include <limits.h>
1907 # include <assert.h>
1912 /* Override any GCC internal prototype to avoid an error.
1913 Use char because int might match the return type of a GCC
1914 builtin and then its argument prototype would still apply. */
1919 /* The GNU C library defines this for functions which it implements
1920 to always fail with ENOSYS. Some functions are actually named
1921 something starting with __ and the normal name is an alias. */
1922 #if defined __stub_$2 || defined __stub___$2
1934 if ac_fn_c_try_link "$LINENO"; then :
1939 rm -f core conftest.err conftest.$ac_objext \
1940 conftest$ac_exeext conftest.$ac_ext
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; }
1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1947 } # ac_fn_c_check_func
1949 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1950 # -------------------------------------------------------
1951 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1952 # the include files in INCLUDES and setting the cache variable VAR
1954 ac_fn_c_check_header_mongrel ()
1956 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1957 if eval \${$3+:} false; then :
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959 $as_echo_n "checking for $2... " >&6; }
1960 if eval \${$3+:} false; then :
1961 $as_echo_n "(cached) " >&6
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1965 $as_echo "$ac_res" >&6; }
1967 # Is the header compilable?
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1969 $as_echo_n "checking $2 usability... " >&6; }
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1975 if ac_fn_c_try_compile "$LINENO"; then :
1976 ac_header_compiler=yes
1978 ac_header_compiler=no
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1982 $as_echo "$ac_header_compiler" >&6; }
1984 # Is the header present?
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1986 $as_echo_n "checking $2 presence... " >&6; }
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1991 if ac_fn_c_try_cpp "$LINENO"; then :
1992 ac_header_preproc=yes
1994 ac_header_preproc=no
1996 rm -f conftest.err conftest.i conftest.$ac_ext
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1998 $as_echo "$ac_header_preproc" >&6; }
2000 # So? What about this header?
2001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2004 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2006 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2010 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2012 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2014 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2016 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2018 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022 $as_echo_n "checking for $2... " >&6; }
2023 if eval \${$3+:} false; then :
2024 $as_echo_n "(cached) " >&6
2026 eval "$3=\$ac_header_compiler"
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2030 $as_echo "$ac_res" >&6; }
2032 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2034 } # ac_fn_c_check_header_mongrel
2035 cat >config.log <<_ACEOF
2036 This file contains any messages produced by compilers while
2037 running configure, to aid debugging if configure makes a mistake.
2039 It was created by zfs $as_me 0.7.5, which was
2040 generated by GNU Autoconf 2.69. Invocation command line was
2052 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2053 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2054 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2055 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2056 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2058 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2059 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2061 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2062 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2063 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2064 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2065 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2066 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2067 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2075 test -z "$as_dir" && as_dir=.
2076 $as_echo "PATH: $as_dir"
2092 # Keep a trace of the command line.
2093 # Strip out --no-create and --no-recursion so they do not pile up.
2094 # Strip out --silent because we don't want to record it for future runs.
2095 # Also quote any args containing shell meta-characters.
2096 # Make two passes to allow for proper duplicate-argument suppression.
2100 ac_must_keep_next=false
2106 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2107 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2108 | -silent | --silent | --silen | --sile | --sil)
2111 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2114 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2116 as_fn_append ac_configure_args1 " '$ac_arg'"
2117 if test $ac_must_keep_next = true; then
2118 ac_must_keep_next=false # Got value, back to normal.
2121 *=* | --config-cache | -C | -disable-* | --disable-* \
2122 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2123 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2124 | -with-* | --with-* | -without-* | --without-* | --x)
2125 case "$ac_configure_args0 " in
2126 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2129 -* ) ac_must_keep_next=true ;;
2132 as_fn_append ac_configure_args " '$ac_arg'"
2137 { ac_configure_args0=; unset ac_configure_args0;}
2138 { ac_configure_args1=; unset ac_configure_args1;}
2140 # When interrupted or exit'd, cleanup temporary files, and complete
2141 # config.log. We remove comments because anyway the quotes in there
2142 # would cause problems or look ugly.
2143 # WARNING: Use '\'' to represent an apostrophe within the trap.
2144 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2145 trap 'exit_status=$?
2146 # Save into config.log some information that might help in debugging.
2150 $as_echo "## ---------------- ##
2151 ## Cache variables. ##
2152 ## ---------------- ##"
2154 # The following way of writing the cache mishandles newlines in values,
2156 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2157 eval ac_val=\$$ac_var
2161 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2162 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2165 _ | IFS | as_nl) ;; #(
2166 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2167 *) { eval $ac_var=; unset $ac_var;} ;;
2172 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2173 *${as_nl}ac_space=\ *)
2175 "s/'\''/'\''\\\\'\'''\''/g;
2176 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2179 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2186 $as_echo "## ----------------- ##
2187 ## Output variables. ##
2188 ## ----------------- ##"
2190 for ac_var in $ac_subst_vars
2192 eval ac_val=\$$ac_var
2194 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2196 $as_echo "$ac_var='\''$ac_val'\''"
2200 if test -n "$ac_subst_files"; then
2201 $as_echo "## ------------------- ##
2202 ## File substitutions. ##
2203 ## ------------------- ##"
2205 for ac_var in $ac_subst_files
2207 eval ac_val=\$$ac_var
2209 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2211 $as_echo "$ac_var='\''$ac_val'\''"
2216 if test -s confdefs.h; then
2217 $as_echo "## ----------- ##
2224 test "$ac_signal" != 0 &&
2225 $as_echo "$as_me: caught signal $ac_signal"
2226 $as_echo "$as_me: exit $exit_status"
2228 rm -f core *.core core.conftest.* &&
2229 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2232 for ac_signal in 1 2 13 15; do
2233 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2237 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2238 rm -f -r conftest* confdefs.h
2240 $as_echo "/* confdefs.h */" > confdefs.h
2242 # Predefined preprocessor variables.
2244 cat >>confdefs.h <<_ACEOF
2245 #define PACKAGE_NAME "$PACKAGE_NAME"
2248 cat >>confdefs.h <<_ACEOF
2249 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2252 cat >>confdefs.h <<_ACEOF
2253 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2256 cat >>confdefs.h <<_ACEOF
2257 #define PACKAGE_STRING "$PACKAGE_STRING"
2260 cat >>confdefs.h <<_ACEOF
2261 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2264 cat >>confdefs.h <<_ACEOF
2265 #define PACKAGE_URL "$PACKAGE_URL"
2269 # Let the site file select an alternate cache file if it wants to.
2270 # Prefer an explicitly selected file to automatically selected ones.
2273 if test -n "$CONFIG_SITE"; then
2274 # We do not want a PATH search for config.site.
2275 case $CONFIG_SITE in #((
2276 -*) ac_site_file1=./$CONFIG_SITE;;
2277 */*) ac_site_file1=$CONFIG_SITE;;
2278 *) ac_site_file1=./$CONFIG_SITE;;
2280 elif test "x$prefix" != xNONE; then
2281 ac_site_file1=$prefix/share/config.site
2282 ac_site_file2=$prefix/etc/config.site
2284 ac_site_file1=$ac_default_prefix/share/config.site
2285 ac_site_file2=$ac_default_prefix/etc/config.site
2287 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2289 test "x$ac_site_file" = xNONE && continue
2290 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2292 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2293 sed 's/^/| /' "$ac_site_file" >&5
2295 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2297 as_fn_error $? "failed to load site
script $ac_site_file
2298 See \
`config.log' for more details" "$LINENO" 5; }
2302 if test -r "$cache_file"; then
2303 # Some versions of bash will fail to source /dev/null (special files
2304 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2305 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2307 $as_echo "$as_me: loading cache $cache_file" >&6;}
2309 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2310 *) . "./$cache_file";;
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2315 $as_echo "$as_me: creating cache $cache_file" >&6;}
2319 # Check that the precious variables saved in the cache have kept the same
2321 ac_cache_corrupted=false
2322 for ac_var in $ac_precious_vars; do
2323 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2324 eval ac_new_set=\$ac_env_${ac_var}_set
2325 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2326 eval ac_new_val=\$ac_env_${ac_var}_value
2327 case $ac_old_set,$ac_new_set in
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2330 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2331 ac_cache_corrupted=: ;;
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2334 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2335 ac_cache_corrupted=: ;;
2338 if test "x$ac_old_val" != "x$ac_new_val"; then
2339 # differences in whitespace do not lead to failure.
2340 ac_old_val_w=`echo x
$ac_old_val`
2341 ac_new_val_w=`echo x
$ac_new_val`
2342 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2343 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2344 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2345 ac_cache_corrupted=:
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2348 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2349 eval $ac_var=\$ac_old_val
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2352 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2354 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2357 # Pass precious variables to config.status.
2358 if test "$ac_new_set" = set; then
2360 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2361 *) ac_arg=$ac_var=$ac_new_val ;;
2363 case " $ac_configure_args " in
2364 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2365 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2369 if $ac_cache_corrupted; then
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2373 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2374 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2376 ## -------------------- ##
2377 ## Main body of script. ##
2378 ## -------------------- ##
2381 ac_cpp='$CPP $CPPFLAGS'
2382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2388 ac_cpp='$CPP $CPPFLAGS'
2389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2397 for ac_prog in gawk mawk nawk awk
2399 # Extract the first word of "$ac_prog", so it can be a program name with args.
2400 set dummy $ac_prog; ac_word=$2
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2402 $as_echo_n "checking for $ac_word... " >&6; }
2403 if ${ac_cv_prog_AWK+:} false; then :
2404 $as_echo_n "(cached) " >&6
2406 if test -n "$AWK"; then
2407 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 test -z "$as_dir" && as_dir=.
2414 for ac_exec_ext in '' $ac_executable_extensions; do
2415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2416 ac_cv_prog_AWK="$ac_prog"
2417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2427 if test -n "$AWK"; then
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2429 $as_echo "$AWK" >&6; }
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2432 $as_echo "no" >&6; }
2436 test -n "$AWK" && break
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking metadata" >&5
2440 $as_echo_n "checking metadata... " >&6; }
2443 _zfs_ac_meta_type="none"
2444 if test -f "$META"; then
2445 _zfs_ac_meta_type="META file"
2446 _dpkg_parsechangelog=$(dpkg-parsechangelog 2>/dev/null)
2448 ZFS_META_NAME=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`;
2449 if test -n "$ZFS_META_NAME"; then
2451 cat >>confdefs.h <<_ACEOF
2452 #define ZFS_META_NAME "$ZFS_META_NAME"
2458 ZFS_META_VERSION=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`;
2459 if test -n "$ZFS_META_VERSION"; then
2461 cat >>confdefs.h <<_ACEOF
2462 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2468 if test -n "${_dpkg_parsechangelog}"; then
2469 _dpkg_version=$(echo "${_dpkg_parsechangelog}" \
2470 | $AWK '$1 == "Version:" { print $2; }' \
2472 if test "${_dpkg_version}" != "$ZFS_META_VERSION"; then
2474 *** Version $ZFS_META_VERSION in the META file is different than
2475 *** version $_dpkg_version in the debian/changelog file. DKMS and DEB
2476 *** packaging require that these files have the same version.
2481 ZFS_META_RELEASE=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`;
2483 if test -n "${_dpkg_parsechangelog}"; then
2484 _dpkg_release=$(echo "${_dpkg_parsechangelog}" \
2485 | $AWK '$1 == "Version:" { print $2; }' \
2487 if test -n "${_dpkg_release}"; then
2488 ZFS_META_RELEASE=${_dpkg_release}
2489 _zfs_ac_meta_type="dpkg-parsechangelog"
2491 elif test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then
2492 _match="${ZFS_META_NAME}-${ZFS_META_VERSION}"
2493 _alias=$(git describe --match=${_match} 2>/dev/null)
2494 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2495 if test -n "${_release}"; then
2496 ZFS_META_RELEASE=${_release}
2497 _zfs_ac_meta_type="git describe"
2499 _match="${ZFS_META_NAME}-${ZFS_META_VERSION}-${ZFS_META_RELEASE}"
2500 _alias=$(git describe --match=${_match} 2>/dev/null)
2501 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2502 if test -n "${_release}"; then
2503 ZFS_META_RELEASE=${_release}
2504 _zfs_ac_meta_type="git describe"
2509 if test -n "$ZFS_META_RELEASE"; then
2511 cat >>confdefs.h <<_ACEOF
2512 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2517 RELEASE="$ZFS_META_RELEASE"
2521 ZFS_META_LICENSE=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`;
2522 if test -n "$ZFS_META_LICENSE"; then
2524 cat >>confdefs.h <<_ACEOF
2525 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2531 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2532 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2533 test -n "$ZFS_META_RELEASE" &&
2534 ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2536 cat >>confdefs.h <<_ACEOF
2537 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2543 ZFS_META_DATA=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`;
2544 if test -n "$ZFS_META_DATA"; then
2546 cat >>confdefs.h <<_ACEOF
2547 #define ZFS_META_DATA "$ZFS_META_DATA"
2553 ZFS_META_AUTHOR=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`;
2554 if test -n "$ZFS_META_AUTHOR"; then
2556 cat >>confdefs.h <<_ACEOF
2557 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2564 ZFS_META_LT_CURRENT=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`;
2565 ZFS_META_LT_REVISION=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`;
2566 ZFS_META_LT_AGE=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`;
2567 if test -n "$ZFS_META_LT_CURRENT" \
2568 -o -n "$ZFS_META_LT_REVISION" \
2569 -o -n "$ZFS_META_LT_AGE"; then
2570 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2571 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2572 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2574 cat >>confdefs.h <<_ACEOF
2575 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2579 cat >>confdefs.h <<_ACEOF
2580 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2584 cat >>confdefs.h <<_ACEOF
2585 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_zfs_ac_meta_type" >&5
2595 $as_echo "$_zfs_ac_meta_type" >&6; }
2599 for ac_dir in config "$srcdir"/config; do
2600 if test -f "$ac_dir/install-sh"; then
2602 ac_install_sh="$ac_aux_dir/install-sh -c"
2604 elif test -f "$ac_dir/install.sh"; then
2606 ac_install_sh="$ac_aux_dir/install.sh -c"
2608 elif test -f "$ac_dir/shtool"; then
2610 ac_install_sh="$ac_aux_dir/shtool install -c"
2614 if test -z "$ac_aux_dir"; then
2615 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2618 # These three variables are undocumented and unsupported,
2619 # and are intended to be withdrawn in a future Autoconf release.
2620 # They can cause serious problems if a builder's source tree is in a directory
2621 # whose full name contains unusual characters.
2622 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2623 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2624 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2628 # Make sure we can run config.sub.
2629 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2630 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2633 $as_echo_n "checking build system type... " >&6; }
2634 if ${ac_cv_build+:} false; then :
2635 $as_echo_n "(cached) " >&6
2637 ac_build_alias=$build_alias
2638 test "x$ac_build_alias" = x &&
2639 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2640 test "x$ac_build_alias" = x &&
2641 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2642 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2643 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2647 $as_echo "$ac_cv_build" >&6; }
2648 case $ac_cv_build in
2650 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2653 ac_save_IFS=$IFS; IFS='-'
2659 # Remember, the first character of IFS is used to create $*,
2660 # except with old shells:
2663 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2667 $as_echo_n "checking host system type... " >&6; }
2668 if ${ac_cv_host+:} false; then :
2669 $as_echo_n "(cached) " >&6
2671 if test "x$host_alias" = x; then
2672 ac_cv_host=$ac_cv_build
2674 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2675 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2680 $as_echo "$ac_cv_host" >&6; }
2683 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2686 ac_save_IFS=$IFS; IFS='-'
2692 # Remember, the first character of IFS is used to create $*,
2693 # except with old shells:
2696 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2700 $as_echo_n "checking target system type... " >&6; }
2701 if ${ac_cv_target+:} false; then :
2702 $as_echo_n "(cached) " >&6
2704 if test "x$target_alias" = x; then
2705 ac_cv_target=$ac_cv_host
2707 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2708 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2713 $as_echo "$ac_cv_target" >&6; }
2714 case $ac_cv_target in
2716 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2718 target=$ac_cv_target
2719 ac_save_IFS=$IFS; IFS='-'
2725 # Remember, the first character of IFS is used to create $*,
2726 # except with old shells:
2729 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2732 # The aliases save the names the user supplied, while $host etc.
2733 # will get canonicalized.
2734 test -n "$target_alias" &&
2735 test "$program_prefix$program_suffix$program_transform_name" = \
2737 program_prefix=${target_alias}-
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2741 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2742 # Check whether --enable-maintainer-mode was given.
2743 if test "${enable_maintainer_mode+set}" = set; then :
2744 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2746 USE_MAINTAINER_MODE=no
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2750 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2751 if test $USE_MAINTAINER_MODE = yes; then
2752 MAINTAINER_MODE_TRUE=
2753 MAINTAINER_MODE_FALSE='#'
2755 MAINTAINER_MODE_TRUE='#'
2756 MAINTAINER_MODE_FALSE=
2759 MAINT=$MAINTAINER_MODE_TRUE
2762 # Check whether --enable-silent-rules was given.
2763 if test "${enable_silent_rules+set}" = set; then :
2764 enableval=$enable_silent_rules;
2767 case $enable_silent_rules in # (((
2768 yes) AM_DEFAULT_VERBOSITY=0;;
2769 no) AM_DEFAULT_VERBOSITY=1;;
2770 *) AM_DEFAULT_VERBOSITY=0;;
2772 am_make=${MAKE-make}
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2774 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2775 if ${am_cv_make_support_nested_variables+:} false; then :
2776 $as_echo_n "(cached) " >&6
2778 if $as_echo 'TRUE=$(BAR$(V))
2784 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2785 am_cv_make_support_nested_variables=yes
2787 am_cv_make_support_nested_variables=no
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2791 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2792 if test $am_cv_make_support_nested_variables = yes; then
2794 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2796 AM_V=$AM_DEFAULT_VERBOSITY
2797 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2801 am__api_version='1.15'
2803 # Find a good install program. We prefer a C program (faster),
2804 # so one script is as good as another. But avoid the broken or
2805 # incompatible versions:
2806 # SysV /etc/install, /usr/sbin/install
2807 # SunOS /usr/etc/install
2808 # IRIX /sbin/install
2810 # AmigaOS /C/install, which installs bootblocks on floppy discs
2811 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2812 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2813 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2814 # OS/2's system install, which has a completely different semantic
2815 # ./install, which can be erroneously created by make from ./install.sh.
2816 # Reject install programs that cannot install multiple files.
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2818 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2819 if test -z "$INSTALL"; then
2820 if ${ac_cv_path_install+:} false; then :
2821 $as_echo_n "(cached) " >&6
2823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2827 test -z "$as_dir" && as_dir=.
2828 # Account for people who put trailing slashes in PATH elements.
2829 case $as_dir/ in #((
2830 ./ | .// | /[cC]/* | \
2831 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2832 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2835 # OSF1 and SCO ODT 3.0 have their own names for install.
2836 # Don't use installbsd from OSF since it installs stuff as root
2838 for ac_prog in ginstall scoinst install; do
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2841 if test $ac_prog = install &&
2842 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2843 # AIX install. It has an incompatible calling convention.
2845 elif test $ac_prog = install &&
2846 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2847 # program-specific install script used by HP pwplus--don't use.
2850 rm -rf conftest.one conftest.two conftest.dir
2851 echo one > conftest.one
2852 echo two > conftest.two
2854 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2855 test -s conftest.one && test -s conftest.two &&
2856 test -s conftest.dir/conftest.one &&
2857 test -s conftest.dir/conftest.two
2859 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2872 rm -rf conftest.one conftest.two conftest.dir
2875 if test "${ac_cv_path_install+set}" = set; then
2876 INSTALL=$ac_cv_path_install
2878 # As a last resort, use the slow shell script. Don't cache a
2879 # value for INSTALL within a source directory, because that will
2880 # break other packages using the cache if that directory is
2881 # removed, or if the value is a relative name.
2882 INSTALL=$ac_install_sh
2885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2886 $as_echo "$INSTALL" >&6; }
2888 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2889 # It thinks the first close brace ends the variable substitution.
2890 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2892 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2894 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2897 $as_echo_n "checking whether build environment is sane... " >&6; }
2898 # Reject unsafe characters in $srcdir or the absolute working directory
2899 # name. Accept space and tab only in the latter.
2903 *[\\\"\#\$\&\'\`$am_lf]*)
2904 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2907 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2908 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2911 # Do 'set' in a subshell so we don't clobber the current shell's
2912 # arguments. Must try -L first in case configure is actually a
2913 # symlink; some systems play weird games with the mod time of symlinks
2914 # (eg FreeBSD returns the mod time of the symlink's containing
2918 for am_try
in 1 2; do
2919 echo "timestamp, slept: $am_has_slept" > conftest.
file
2920 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2921 if test "$*" = "X"; then
2923 set X
`ls -t "$srcdir/configure" conftest.file`
2925 if test "$*" != "X $srcdir/configure conftest.file" \
2926 && test "$*" != "X conftest.file $srcdir/configure"; then
2928 # If neither matched, then we have a broken ls. This can happen
2929 # if, for instance, CONFIG_SHELL is bash and it inherits a
2930 # broken ls alias from the environment. This has actually
2931 # happened. Such a system could not be considered "sane".
2932 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2933 alias in your environment" "$LINENO" 5
2935 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2942 test "$2" = conftest.
file
2948 as_fn_error $?
"newly created file is older than distributed files!
2949 Check your system clock" "$LINENO" 5
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2952 $as_echo "yes" >&6; }
2953 # If we didn't sleep, we still need to ensure time stamps of config.status and
2954 # generated files are strictly newer.
2956 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2963 test "$program_prefix" != NONE
&&
2964 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2965 # Use a double $ so make ignores it.
2966 test "$program_suffix" != NONE
&&
2967 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2968 # Double any \ or $.
2969 # By default was `s,x,x', remove it if useless.
2970 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2971 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2973 # Expand $ac_aux_dir to an absolute path.
2974 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2976 if test x
"${MISSING+set}" != xset
; then
2979 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2981 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2984 # Use eval to expand $SHELL
2985 if eval "$MISSING --is-lightweight"; then
2986 am_missing_run
="$MISSING "
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2990 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2993 if test x
"${install_sh+set}" != xset
; then
2996 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2998 install_sh
="\${SHELL} $am_aux_dir/install-sh"
3002 # Installed binaries are usually stripped using 'strip' when the user
3003 # run "make install-strip". However 'strip' might not be the right
3004 # tool to use in cross-compilation environments, therefore Automake
3005 # will honor the 'STRIP' environment variable to overrule this program.
3006 if test "$cross_compiling" != no
; then
3007 if test -n "$ac_tool_prefix"; then
3008 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3009 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011 $as_echo_n "checking for $ac_word... " >&6; }
3012 if ${ac_cv_prog_STRIP+:} false
; then :
3013 $as_echo_n "(cached) " >&6
3015 if test -n "$STRIP"; then
3016 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3018 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3022 test -z "$as_dir" && as_dir
=.
3023 for ac_exec_ext
in '' $ac_executable_extensions; do
3024 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3025 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3035 STRIP
=$ac_cv_prog_STRIP
3036 if test -n "$STRIP"; then
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3038 $as_echo "$STRIP" >&6; }
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3041 $as_echo "no" >&6; }
3046 if test -z "$ac_cv_prog_STRIP"; then
3048 # Extract the first word of "strip", so it can be a program name with args.
3049 set dummy strip
; ac_word
=$2
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3051 $as_echo_n "checking for $ac_word... " >&6; }
3052 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3053 $as_echo_n "(cached) " >&6
3055 if test -n "$ac_ct_STRIP"; then
3056 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3058 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3062 test -z "$as_dir" && as_dir
=.
3063 for ac_exec_ext
in '' $ac_executable_extensions; do
3064 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3065 ac_cv_prog_ac_ct_STRIP
="strip"
3066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3075 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3076 if test -n "$ac_ct_STRIP"; then
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3078 $as_echo "$ac_ct_STRIP" >&6; }
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3081 $as_echo "no" >&6; }
3084 if test "x$ac_ct_STRIP" = x
; then
3087 case $cross_compiling:$ac_tool_warned in
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3091 ac_tool_warned
=yes ;;
3096 STRIP
="$ac_cv_prog_STRIP"
3100 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3103 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3104 if test -z "$MKDIR_P"; then
3105 if ${ac_cv_path_mkdir+:} false
; then :
3106 $as_echo_n "(cached) " >&6
3108 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3109 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3112 test -z "$as_dir" && as_dir
=.
3113 for ac_prog
in mkdir gmkdir
; do
3114 for ac_exec_ext
in '' $ac_executable_extensions; do
3115 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3116 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3117 'mkdir (GNU coreutils) '* | \
3118 'mkdir (coreutils) '* | \
3119 'mkdir (fileutils) '4.1*)
3120 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3130 test -d .
/--version && rmdir .
/--version
3131 if test "${ac_cv_path_mkdir+set}" = set; then
3132 MKDIR_P
="$ac_cv_path_mkdir -p"
3134 # As a last resort, use the slow shell script. Don't cache a
3135 # value for MKDIR_P within a source directory, because that will
3136 # break other packages using the cache if that directory is
3137 # removed, or if the value is a relative name.
3138 MKDIR_P
="$ac_install_sh -d"
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3142 $as_echo "$MKDIR_P" >&6; }
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3145 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3147 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3148 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3149 $as_echo_n "(cached) " >&6
3151 cat >conftest.
make <<\_ACEOF
3154 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3156 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3157 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3159 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3161 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3165 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3167 $as_echo "yes" >&6; }
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3172 SET_MAKE
="MAKE=${MAKE-make}"
3175 rm -rf .tst
2>/dev
/null
3176 mkdir .tst
2>/dev
/null
3177 if test -d .tst
; then
3182 rmdir .tst
2>/dev
/null
3184 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3185 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3186 # is not polluted with repeated "-I."
3187 am__isrc
=' -I$(srcdir)'
3188 # test to see if srcdir already configured
3189 if test -f $srcdir/config.status
; then
3190 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3194 # test whether we have cygpath
3195 if test -z "$CYGPATH_W"; then
3196 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3197 CYGPATH_W
='cygpath -w'
3204 # Define the identity of the package.
3209 cat >>confdefs.h
<<_ACEOF
3210 #define PACKAGE "$PACKAGE"
3214 cat >>confdefs.h
<<_ACEOF
3215 #define VERSION "$VERSION"
3218 # Some tools Automake needs.
3220 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3223 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3226 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3229 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3232 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3234 # For better backward compatibility. To be removed once Automake 1.9.x
3235 # dies out for good. For more background, see:
3236 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3237 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3238 mkdir_p
='$(MKDIR_P)'
3240 # We need awk for the "check" target (and possibly the TAP driver). The
3241 # system "awk" is bad on some platforms.
3242 # Always define AMTAR for backward compatibility. Yes, it's still used
3243 # in the wild :-( We should find a proper way to deprecate it ...
3247 # We'll loop over all known methods to create a tar archive until one works.
3248 _am_tools
='gnutar pax cpio none'
3250 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3257 # POSIX will say in a future version that running "rm -f" with no argument
3258 # is OK; and we want to be able to make that assumption in our Makefile
3259 # recipes. So use an aggressive probe to check that the usage we want is
3260 # actually supported "in the wild" to an acceptable degree.
3261 # See automake bug#10828.
3262 # To make any issue more visible, cause the running configure to be aborted
3263 # by default if the 'rm' program in use doesn't match our expectations; the
3264 # user can still override this though.
3265 if rm -f && rm -fr && rm -rf; then : OK
; else
3269 Your 'rm' program seems unable to run without file operands specified
3270 on the command line, even when the '-f' option is present. This is contrary
3271 to the behaviour of most rm programs out there, and not conforming with
3272 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3274 Please tell bug-automake@gnu.org about your system, including the value
3275 of your $PATH and any error possibly output before this message. This
3276 can help us improve future automake versions.
3279 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3280 echo 'Configuration will proceed anyway, since you have set the' >&2
3281 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3285 Aborting the configuration process, to ensure you take notice of the issue.
3287 You can download and install GNU coreutils to get an 'rm' implementation
3288 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3290 If you want to complete the configuration process using your problematic
3291 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3292 to "yes", and re-run configure.
3295 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3299 ac_config_headers
="$ac_config_headers zfs_config.h"
3304 ac_cpp
='$CPP $CPPFLAGS'
3305 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3306 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3307 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3308 if test -n "$ac_tool_prefix"; then
3309 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3310 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3312 $as_echo_n "checking for $ac_word... " >&6; }
3313 if ${ac_cv_prog_CC+:} false
; then :
3314 $as_echo_n "(cached) " >&6
3316 if test -n "$CC"; then
3317 ac_cv_prog_CC
="$CC" # Let the user override the test.
3319 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3323 test -z "$as_dir" && as_dir
=.
3324 for ac_exec_ext
in '' $ac_executable_extensions; do
3325 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3326 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3337 if test -n "$CC"; then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3339 $as_echo "$CC" >&6; }
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3347 if test -z "$ac_cv_prog_CC"; then
3349 # Extract the first word of "gcc", so it can be a program name with args.
3350 set dummy gcc
; ac_word
=$2
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3352 $as_echo_n "checking for $ac_word... " >&6; }
3353 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3354 $as_echo_n "(cached) " >&6
3356 if test -n "$ac_ct_CC"; then
3357 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3359 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3363 test -z "$as_dir" && as_dir
=.
3364 for ac_exec_ext
in '' $ac_executable_extensions; do
3365 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3366 ac_cv_prog_ac_ct_CC
="gcc"
3367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3376 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3377 if test -n "$ac_ct_CC"; then
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3379 $as_echo "$ac_ct_CC" >&6; }
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3382 $as_echo "no" >&6; }
3385 if test "x$ac_ct_CC" = x
; then
3388 case $cross_compiling:$ac_tool_warned in
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3392 ac_tool_warned
=yes ;;
3400 if test -z "$CC"; then
3401 if test -n "$ac_tool_prefix"; then
3402 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3403 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3405 $as_echo_n "checking for $ac_word... " >&6; }
3406 if ${ac_cv_prog_CC+:} false
; then :
3407 $as_echo_n "(cached) " >&6
3409 if test -n "$CC"; then
3410 ac_cv_prog_CC
="$CC" # Let the user override the test.
3412 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3416 test -z "$as_dir" && as_dir
=.
3417 for ac_exec_ext
in '' $ac_executable_extensions; do
3418 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3419 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3430 if test -n "$CC"; then
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3432 $as_echo "$CC" >&6; }
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3435 $as_echo "no" >&6; }
3441 if test -z "$CC"; then
3442 # Extract the first word of "cc", so it can be a program name with args.
3443 set dummy cc
; ac_word
=$2
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3445 $as_echo_n "checking for $ac_word... " >&6; }
3446 if ${ac_cv_prog_CC+:} false
; then :
3447 $as_echo_n "(cached) " >&6
3449 if test -n "$CC"; then
3450 ac_cv_prog_CC
="$CC" # Let the user override the test.
3453 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3457 test -z "$as_dir" && as_dir
=.
3458 for ac_exec_ext
in '' $ac_executable_extensions; do
3459 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3460 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3461 ac_prog_rejected
=yes
3465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3472 if test $ac_prog_rejected = yes; then
3473 # We found a bogon in the path, so make sure we never use it.
3474 set dummy
$ac_cv_prog_CC
3476 if test $# != 0; then
3477 # We chose a different compiler from the bogus one.
3478 # However, it has the same basename, so the bogon will be chosen
3479 # first if we set CC to just the basename; use the full file name.
3481 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3487 if test -n "$CC"; then
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3489 $as_echo "$CC" >&6; }
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3497 if test -z "$CC"; then
3498 if test -n "$ac_tool_prefix"; then
3499 for ac_prog
in cl.exe
3501 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3502 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3504 $as_echo_n "checking for $ac_word... " >&6; }
3505 if ${ac_cv_prog_CC+:} false
; then :
3506 $as_echo_n "(cached) " >&6
3508 if test -n "$CC"; then
3509 ac_cv_prog_CC
="$CC" # Let the user override the test.
3511 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3515 test -z "$as_dir" && as_dir
=.
3516 for ac_exec_ext
in '' $ac_executable_extensions; do
3517 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3518 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3529 if test -n "$CC"; then
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3531 $as_echo "$CC" >&6; }
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3534 $as_echo "no" >&6; }
3538 test -n "$CC" && break
3541 if test -z "$CC"; then
3543 for ac_prog
in cl.exe
3545 # Extract the first word of "$ac_prog", so it can be a program name with args.
3546 set dummy
$ac_prog; ac_word
=$2
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3548 $as_echo_n "checking for $ac_word... " >&6; }
3549 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3550 $as_echo_n "(cached) " >&6
3552 if test -n "$ac_ct_CC"; then
3553 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3555 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3559 test -z "$as_dir" && as_dir
=.
3560 for ac_exec_ext
in '' $ac_executable_extensions; do
3561 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3562 ac_cv_prog_ac_ct_CC
="$ac_prog"
3563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3572 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3573 if test -n "$ac_ct_CC"; then
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3575 $as_echo "$ac_ct_CC" >&6; }
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 $as_echo "no" >&6; }
3582 test -n "$ac_ct_CC" && break
3585 if test "x$ac_ct_CC" = x
; then
3588 case $cross_compiling:$ac_tool_warned in
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3592 ac_tool_warned
=yes ;;
3601 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3602 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3603 as_fn_error $?
"no acceptable C compiler found in \$PATH
3604 See \`config.log' for more details" "$LINENO" 5; }
3606 # Provide some information about the compiler.
3607 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3610 for ac_option
in --version -v -V -qversion; do
3611 { { ac_try
="$ac_compiler $ac_option >&5"
3613 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3616 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3617 $as_echo "$ac_try_echo"; } >&5
3618 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3620 if test -s conftest.err; then
3622 ... rest of stderr output deleted ...
3623 10q' conftest.err >conftest.er1
3624 cat conftest.er1 >&5
3626 rm -f conftest.er1 conftest.err
3627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3628 test $ac_status = 0; }
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3642 ac_clean_files_save=$ac_clean_files
3643 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3644 # Try to create an executable without -o first, disregard a.out.
3645 # It will help us diagnose broken compilers, and finding out an intuition
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3648 $as_echo_n "checking whether the C compiler works... " >&6; }
3649 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3651 # The possible output files:
3652 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3655 for ac_file in $ac_files
3658 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3659 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3664 if { { ac_try="$ac_link_default"
3666 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3667 *) ac_try_echo
=$ac_try;;
3669 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3670 $as_echo "$ac_try_echo"; } >&5
3671 (eval "$ac_link_default") 2>&5
3673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3674 test $ac_status = 0; }; then :
3675 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3676 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3677 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3678 # so that the user can short-circuit this test for compilers unknown to
3680 for ac_file
in $ac_files ''
3682 test -f "$ac_file" ||
continue
3684 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3687 # We found the default executable, but exeext='' is most
3691 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3693 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3695 # We set ac_cv_exeext here because the later test for it is not
3696 # safe: cross compilers may not add the suffix if given an `-o'
3697 # argument, so we may need to know it at that point already.
3698 # Even if this section looks crufty: it has the advantage of
3705 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3710 if test -z "$ac_file"; then :
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3712 $as_echo "no" >&6; }
3713 $as_echo "$as_me: failed program was:" >&5
3714 sed 's/^/| /' conftest.
$ac_ext >&5
3716 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3718 as_fn_error
77 "C compiler cannot create executables
3719 See \`config.log' for more details" "$LINENO" 5; }
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3722 $as_echo "yes" >&6; }
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3725 $as_echo_n "checking for C compiler default output file name... " >&6; }
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3727 $as_echo "$ac_file" >&6; }
3728 ac_exeext
=$ac_cv_exeext
3730 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3731 ac_clean_files
=$ac_clean_files_save
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3733 $as_echo_n "checking for suffix of executables... " >&6; }
3734 if { { ac_try
="$ac_link"
3736 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3737 *) ac_try_echo=$ac_try;;
3739 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3740 $as_echo "$ac_try_echo"; } >&5
3741 (eval "$ac_link") 2>&5
3743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3744 test $ac_status = 0; }; then :
3745 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3746 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3747 # work properly (i.e., refer to `conftest.exe'), while it won't with
3749 for ac_file
in conftest.exe conftest conftest.
*; do
3750 test -f "$ac_file" ||
continue
3752 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3753 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3759 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3760 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3761 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3762 See \`config.log' for more details" "$LINENO" 5; }
3764 rm -f conftest conftest
$ac_cv_exeext
3765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3766 $as_echo "$ac_cv_exeext" >&6; }
3768 rm -f conftest.
$ac_ext
3769 EXEEXT
=$ac_cv_exeext
3771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h. */
3777 FILE *f = fopen ("conftest.out", "w");
3778 return ferror (f) || fclose (f) != 0;
3784 ac_clean_files
="$ac_clean_files conftest.out"
3785 # Check that the compiler produces executables we can run. If not, either
3786 # the compiler is broken, or we cross compile.
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3788 $as_echo_n "checking whether we are cross compiling... " >&6; }
3789 if test "$cross_compiling" != yes; then
3790 { { ac_try
="$ac_link"
3792 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3796 $as_echo "$ac_try_echo"; } >&5
3797 (eval "$ac_link") 2>&5
3799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3800 test $ac_status = 0; }
3801 if { ac_try='./conftest$ac_cv_exeext'
3802 { { case "(($ac_try" in
3803 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3804 *) ac_try_echo
=$ac_try;;
3806 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3807 $as_echo "$ac_try_echo"; } >&5
3808 (eval "$ac_try") 2>&5
3810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3811 test $ac_status = 0; }; }; then
3814 if test "$cross_compiling" = maybe
; then
3817 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3819 as_fn_error $?
"cannot run C compiled programs.
3820 If you meant to cross compile, use \`--host'.
3821 See \`config.log' for more details" "$LINENO" 5; }
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3826 $as_echo "$cross_compiling" >&6; }
3828 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3829 ac_clean_files
=$ac_clean_files_save
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3831 $as_echo_n "checking for suffix of object files... " >&6; }
3832 if ${ac_cv_objext+:} false
; then :
3833 $as_echo_n "(cached) " >&6
3835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3836 /* end confdefs.h. */
3846 rm -f conftest.o conftest.obj
3847 if { { ac_try
="$ac_compile"
3849 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3852 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3853 $as_echo "$ac_try_echo"; } >&5
3854 (eval "$ac_compile") 2>&5
3856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3857 test $ac_status = 0; }; then :
3858 for ac_file in conftest.o conftest.obj conftest.*; do
3859 test -f "$ac_file" || continue;
3861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3862 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3867 $as_echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3872 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3873 See \
`config.log' for more details" "$LINENO" 5; }
3875 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3878 $as_echo "$ac_cv_objext" >&6; }
3879 OBJEXT=$ac_cv_objext
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3882 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3883 if ${ac_cv_c_compiler_gnu+:} false; then :
3884 $as_echo_n "(cached) " >&6
3886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887 /* end confdefs.h. */
3900 if ac_fn_c_try_compile "$LINENO"; then :
3905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3906 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3910 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3911 if test $ac_compiler_gnu = yes; then
3916 ac_test_CFLAGS=${CFLAGS+set}
3917 ac_save_CFLAGS=$CFLAGS
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3919 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3920 if ${ac_cv_prog_cc_g+:} false; then :
3921 $as_echo_n "(cached) " >&6
3923 ac_save_c_werror_flag=$ac_c_werror_flag
3924 ac_c_werror_flag=yes
3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3928 /* end confdefs.h. */
3938 if ac_fn_c_try_compile "$LINENO"; then :
3942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3943 /* end confdefs.h. */
3953 if ac_fn_c_try_compile "$LINENO"; then :
3956 ac_c_werror_flag=$ac_save_c_werror_flag
3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h. */
3969 if ac_fn_c_try_compile "$LINENO"; then :
3972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3977 ac_c_werror_flag=$ac_save_c_werror_flag
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3980 $as_echo "$ac_cv_prog_cc_g" >&6; }
3981 if test "$ac_test_CFLAGS" = set; then
3982 CFLAGS=$ac_save_CFLAGS
3983 elif test $ac_cv_prog_cc_g = yes; then
3984 if test "$GCC" = yes; then
3990 if test "$GCC" = yes; then
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3997 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3998 if ${ac_cv_prog_cc_c89+:} false; then :
3999 $as_echo_n "(cached) " >&6
4001 ac_cv_prog_cc_c89=no
4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h. */
4008 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4009 struct buf { int x; };
4010 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4011 static char *e (p, i)
4017 static char *f (char * (*g) (char **, int), char **p, ...)
4022 s = g (p, va_arg (v,int));
4027 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4028 function prototypes and stuff, but not '\xHH' hex character constants.
4029 These don't provoke an error unfortunately, instead are silently treated
4030 as 'x'. The following induces an error, until -std is added to get
4031 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4032 array size at least. It's necessary to write '\x00'==0 to get something
4033 that's true only with -std. */
4034 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4036 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4037 inside strings and character constants. */
4039 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4041 int test (int i, double x);
4042 struct s1 {int (*f) (int a);};
4043 struct s2 {int (*f) (double a);};
4044 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4050 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4055 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4056 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4058 CC="$ac_save_CC $ac_arg"
4059 if ac_fn_c_try_compile "$LINENO"; then :
4060 ac_cv_prog_cc_c89=$ac_arg
4062 rm -f core conftest.err conftest.$ac_objext
4063 test "x$ac_cv_prog_cc_c89" != "xno" && break
4065 rm -f conftest.$ac_ext
4070 case "x$ac_cv_prog_cc_c89" in
4072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4073 $as_echo "none needed" >&6; } ;;
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4076 $as_echo "unsupported" >&6; } ;;
4078 CC="$CC $ac_cv_prog_cc_c89"
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4080 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4082 if test "x$ac_cv_prog_cc_c89" != xno; then :
4087 ac_cpp='$CPP $CPPFLAGS'
4088 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4089 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4090 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4093 ac_cpp='$CPP $CPPFLAGS'
4094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4098 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4099 if ${am_cv_prog_cc_c_o+:} false; then :
4100 $as_echo_n "(cached) " >&6
4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4103 /* end confdefs.h. */
4113 # Make sure it works both with $CC and with simple cc.
4114 # Following AC_PROG_CC_C_O, we do the test twice because some
4115 # compilers refuse to overwrite an existing .o file with -o,
4116 # though they will create one.
4117 am_cv_prog_cc_c_o=yes
4119 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4120 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); } \
4124 && test -f conftest2.$ac_objext; then
4127 am_cv_prog_cc_c_o=no
4131 rm -f core conftest*
4134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4135 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4136 if test "$am_cv_prog_cc_c_o" != yes; then
4137 # Losing compiler, so override with the script.
4138 # FIXME: It is wrong to rewrite CC.
4139 # But if we don't then we get into trouble of one sort or another.
4140 # A longer-term fix would be to have automake use am__CC in this case,
4141 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4142 CC="$am_aux_dir/compile $CC"
4145 ac_cpp='$CPP $CPPFLAGS'
4146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4150 DEPDIR="${am__leading_dot}deps"
4152 ac_config_commands="$ac_config_commands depfiles"
4155 am_make=${MAKE-make}
4156 cat > confinc << 'END'
4158 @echo this is the am__doit target
4161 # If we don't find an include directive, just comment out the code.
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4163 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4167 # First try GNU make style include.
4168 echo "include confinc" > confmf
4169 # Ignore all kinds of additional output from 'make'.
4170 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4171 *the\ am__doit\ target*)
4177 # Now try BSD make style include.
4178 if test "$am__include" = "#"; then
4179 echo '.include "confinc"' > confmf
4180 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4181 *the\ am__doit\ target*)
4182 am__include=.include
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4191 $as_echo "$_am_result" >&6; }
4192 rm -f confinc confmf
4194 # Check whether --enable-dependency-tracking was given.
4195 if test "${enable_dependency_tracking+set}" = set; then :
4196 enableval=$enable_dependency_tracking;
4199 if test "x$enable_dependency_tracking" != xno; then
4200 am_depcomp="$ac_aux_dir/depcomp"
4204 if test "x$enable_dependency_tracking" != xno; then
4214 depcc="$CC" am_compiler_list=
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4217 $as_echo_n "checking dependency style of $depcc... " >&6; }
4218 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4219 $as_echo_n "(cached) " >&6
4221 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4222 # We make a subdir and do the tests there. Otherwise we can end up
4223 # making bogus files that we don't know about and never remove. For
4224 # instance it was reported that on HP-UX the gcc test will end up
4225 # making a dummy file named 'D' -- because '-MD' means "put the output
4229 # Copy depcomp to subdir because otherwise we won't find it if we're
4230 # using a relative directory.
4231 cp "$am_depcomp" conftest.dir
4233 # We will build objects and dependencies in a subdirectory because
4234 # it helps to detect inapplicable dependency modes. For instance
4235 # both Tru64's cc and ICC support -MD to output dependencies as a
4236 # side effect of compilation, but ICC will put the dependencies in
4237 # the current directory while Tru64 will put them in the object
4241 am_cv_CC_dependencies_compiler_type=none
4242 if test "$am_compiler_list" = ""; then
4243 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4246 case " $depcc " in #(
4247 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4250 for depmode in $am_compiler_list; do
4251 # Setup a source with many dependencies, because some compilers
4252 # like to wrap large dependency lists on column 80 (with \), and
4253 # we should not choose a depcomp mode which is confused by this.
4255 # We need to recreate these files for each test, as the compiler may
4256 # overwrite some of them when testing with obscure command lines.
4257 # This happens at least with the AIX C compiler.
4259 for i in 1 2 3 4 5 6; do
4260 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4261 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4262 # Solaris 10 /bin/sh.
4263 echo '/* dummy */' > sub/conftst$i.h
4265 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4267 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4268 # mode. It turns out that the SunPro C++ compiler does not properly
4269 # handle '-M -o', and we need to detect this. Also, some Intel
4270 # versions had trouble with output in subdirs.
4271 am__obj=sub/conftest.${OBJEXT-o}
4272 am__minus_obj="-o $am__obj"
4275 # This depmode causes a compiler race in universal mode.
4276 test "$am__universal" = false || continue
4279 # After this tag, mechanisms are not by side-effect, so they'll
4280 # only be used when explicitly requested.
4281 if test "x$enable_dependency_tracking" = xyes; then
4287 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4288 # This compiler won't grok '-c -o', but also, the minuso test has
4289 # not run yet. These depmodes are late enough in the game, and
4290 # so weak that their functioning should not be impacted.
4291 am__obj=conftest.${OBJEXT-o}
4296 if depmode=$depmode \
4297 source=sub/conftest.c object=$am__obj \
4298 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4299 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4300 >/dev/null 2>conftest.err &&
4301 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4302 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4303 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4304 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4305 # icc doesn't choke on unknown options, it will just issue warnings
4306 # or remarks (even with -Werror). So we grep stderr for any message
4307 # that says an option was ignored or not supported.
4308 # When given -MP, icc 7.0 and 7.1 complain thusly:
4309 # icc: Command line warning: ignoring option '-M'; no argument required
4310 # The diagnosis changed in icc 8.0:
4311 # icc: Command line remark: option '-MP' not supported
4312 if (grep 'ignoring option' conftest.err ||
4313 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4314 am_cv_CC_dependencies_compiler_type=$depmode
4323 am_cv_CC_dependencies_compiler_type=none
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4328 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4329 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4332 test "x$enable_dependency_tracking" != xno \
4333 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4335 am__fastdepCC_FALSE='#'
4337 am__fastdepCC_TRUE='#'
4338 am__fastdepCC_FALSE=
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&5
4345 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&2;} ;;
4350 macro_version='2.4.6'
4351 macro_revision='2.4.6'
4365 ltmain=$ac_aux_dir/ltmain.sh
4367 # Backslashify metacharacters that are still active within
4368 # double-quoted strings.
4369 sed_quote_subst='s/\(["`$
\\]\
)/\\\
1/g
'
4371 # Same as above, but do not quote variable references.
4372 double_quote_subst='s
/\
(["`\\]\)/\\\1/g'
4374 # Sed substitution to delay expansion of an escaped shell variable in a
4375 # double_quote_subst'ed string.
4376 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4378 # Sed substitution to delay expansion of an escaped single quote.
4379 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4381 # Sed substitution to avoid accidental globbing in evaled expressions
4382 no_glob_subst='s/\*/\\\*/g'
4384 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4385 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4386 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print
strings" >&5
4389 $as_echo_n "checking how to print
strings...
" >&6; }
4390 # Test print first, because it will be a builtin if present.
4391 if test "X
`( print -r -- -n ) 2>/dev/null`" = X-n && \
4392 test "X
`print -r -- $ECHO 2>/dev/null`" = "X
$ECHO"; then
4394 elif test "X
`printf %s $ECHO 2>/dev/null`" = "X
$ECHO"; then
4397 # Use this function as a fallback that always works.
4398 func_fallback_echo ()
4400 eval 'cat <<_LTECHO_EOF
4404 ECHO='func_fallback_echo'
4407 # func_echo_all arg...
4408 # Invoke $ECHO with all args, space-separated.
4415 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: printf" >&5
4416 $as_echo "printf" >&6; } ;;
4417 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: print
-r" >&5
4418 $as_echo "print
-r" >&6; } ;;
4419 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: cat" >&5
4420 $as_echo "cat" >&6; } ;;
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a
sed that does not truncate output
" >&5
4437 $as_echo_n "checking
for a
sed that does not truncate output...
" >&6; }
4438 if ${ac_cv_path_SED+:} false; then :
4439 $as_echo_n "(cached
) " >&6
4441 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4442 for ac_i in 1 2 3 4 5 6 7; do
4443 ac_script="$ac_script$as_nl$ac_script"
4445 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4446 { ac_script=; unset ac_script;}
4447 if test -z "$SED"; then
4448 ac_path_SED_found=false
4449 # Loop through the user's path and test for each of PROGNAME-LIST
4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454 test -z "$as_dir" && as_dir=.
4455 for ac_prog in sed gsed; do
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4458 as_fn_executable_p "$ac_path_SED" || continue
4459 # Check for GNU ac_path_SED and select it if it is found.
4460 # Check for GNU $ac_path_SED
4461 case `"$ac_path_SED" --version 2>&1` in
4463 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4466 $as_echo_n 0123456789 >"conftest.
in"
4469 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4470 mv "conftest.tmp
" "conftest.
in"
4471 cp "conftest.
in" "conftest.
nl"
4472 $as_echo '' >> "conftest.
nl"
4473 "$ac_path_SED" -f conftest.sed < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4474 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4475 as_fn_arith $ac_count + 1 && ac_count=$as_val
4476 if test $ac_count -gt ${ac_path_SED_max-0}; then
4477 # Best one so far, save it but keep looking for a better one
4478 ac_cv_path_SED="$ac_path_SED"
4479 ac_path_SED_max=$ac_count
4481 # 10*(2^10) chars as input seems more than enough
4482 test $ac_count -gt 10 && break
4484 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4487 $ac_path_SED_found && break 3
4492 if test -z "$ac_cv_path_SED"; then
4493 as_fn_error $? "no acceptable
sed could be found
in \
$PATH" "$LINENO" 5
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_SED" >&5
4501 $as_echo "$ac_cv_path_SED" >&6; }
4502 SED="$ac_cv_path_SED"
4505 test -z "$SED" && SED=sed
4506 Xsed="$SED -e 1s
/^X
//"
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
4519 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
4520 if ${ac_cv_path_GREP+:} false; then :
4521 $as_echo_n "(cached
) " >&6
4523 if test -z "$GREP"; then
4524 ac_path_GREP_found=false
4525 # Loop through the user's path and test for each of PROGNAME-LIST
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4530 test -z "$as_dir" && as_dir=.
4531 for ac_prog in grep ggrep; do
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4534 as_fn_executable_p "$ac_path_GREP" || continue
4535 # Check for GNU ac_path_GREP and select it if it is found.
4536 # Check for GNU $ac_path_GREP
4537 case `"$ac_path_GREP" --version 2>&1` in
4539 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4542 $as_echo_n 0123456789 >"conftest.
in"
4545 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4546 mv "conftest.tmp
" "conftest.
in"
4547 cp "conftest.
in" "conftest.
nl"
4548 $as_echo 'GREP' >> "conftest.
nl"
4549 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4550 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4551 as_fn_arith $ac_count + 1 && ac_count=$as_val
4552 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4553 # Best one so far, save it but keep looking for a better one
4554 ac_cv_path_GREP="$ac_path_GREP"
4555 ac_path_GREP_max=$ac_count
4557 # 10*(2^10) chars as input seems more than enough
4558 test $ac_count -gt 10 && break
4560 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4563 $ac_path_GREP_found && break 3
4568 if test -z "$ac_cv_path_GREP"; then
4569 as_fn_error $? "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
4572 ac_cv_path_GREP=$GREP
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
4577 $as_echo "$ac_cv_path_GREP" >&6; }
4578 GREP="$ac_cv_path_GREP"
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
4582 $as_echo_n "checking
for egrep...
" >&6; }
4583 if ${ac_cv_path_EGREP+:} false; then :
4584 $as_echo_n "(cached
) " >&6
4586 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4587 then ac_cv_path_EGREP="$GREP -E"
4589 if test -z "$EGREP"; then
4590 ac_path_EGREP_found=false
4591 # Loop through the user's path and test for each of PROGNAME-LIST
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4596 test -z "$as_dir" && as_dir=.
4597 for ac_prog in egrep; do
4598 for ac_exec_ext in '' $ac_executable_extensions; do
4599 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4600 as_fn_executable_p "$ac_path_EGREP" || continue
4601 # Check for GNU ac_path_EGREP and select it if it is found.
4602 # Check for GNU $ac_path_EGREP
4603 case `"$ac_path_EGREP" --version 2>&1` in
4605 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4608 $as_echo_n 0123456789 >"conftest.
in"
4611 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4612 mv "conftest.tmp
" "conftest.
in"
4613 cp "conftest.
in" "conftest.
nl"
4614 $as_echo 'EGREP' >> "conftest.
nl"
4615 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4616 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4617 as_fn_arith $ac_count + 1 && ac_count=$as_val
4618 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4619 # Best one so far, save it but keep looking for a better one
4620 ac_cv_path_EGREP="$ac_path_EGREP"
4621 ac_path_EGREP_max=$ac_count
4623 # 10*(2^10) chars as input seems more than enough
4624 test $ac_count -gt 10 && break
4626 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4629 $ac_path_EGREP_found && break 3
4634 if test -z "$ac_cv_path_EGREP"; then
4635 as_fn_error $? "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
4638 ac_cv_path_EGREP=$EGREP
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
4644 $as_echo "$ac_cv_path_EGREP" >&6; }
4645 EGREP="$ac_cv_path_EGREP"
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for fgrep
" >&5
4649 $as_echo_n "checking
for fgrep...
" >&6; }
4650 if ${ac_cv_path_FGREP+:} false; then :
4651 $as_echo_n "(cached
) " >&6
4653 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4654 then ac_cv_path_FGREP="$GREP -F"
4656 if test -z "$FGREP"; then
4657 ac_path_FGREP_found=false
4658 # Loop through the user's path and test for each of PROGNAME-LIST
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4663 test -z "$as_dir" && as_dir=.
4664 for ac_prog in fgrep; do
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4667 as_fn_executable_p "$ac_path_FGREP" || continue
4668 # Check for GNU ac_path_FGREP and select it if it is found.
4669 # Check for GNU $ac_path_FGREP
4670 case `"$ac_path_FGREP" --version 2>&1` in
4672 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4675 $as_echo_n 0123456789 >"conftest.
in"
4678 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4679 mv "conftest.tmp
" "conftest.
in"
4680 cp "conftest.
in" "conftest.
nl"
4681 $as_echo 'FGREP' >> "conftest.
nl"
4682 "$ac_path_FGREP" FGREP < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4683 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4684 as_fn_arith $ac_count + 1 && ac_count=$as_val
4685 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4686 # Best one so far, save it but keep looking for a better one
4687 ac_cv_path_FGREP="$ac_path_FGREP"
4688 ac_path_FGREP_max=$ac_count
4690 # 10*(2^10) chars as input seems more than enough
4691 test $ac_count -gt 10 && break
4693 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4696 $ac_path_FGREP_found && break 3
4701 if test -z "$ac_cv_path_FGREP"; then
4702 as_fn_error $? "no acceptable fgrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
4705 ac_cv_path_FGREP=$FGREP
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_FGREP" >&5
4711 $as_echo "$ac_cv_path_FGREP" >&6; }
4712 FGREP="$ac_cv_path_FGREP"
4715 test -z "$GREP" && GREP=grep
4735 # Check whether --with-gnu-ld was given.
4736 if test "${with_gnu_ld+set}" = set; then :
4737 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4743 if test yes = "$GCC"; then
4744 # Check if gcc -print-prog-name=ld gives a path.
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld used by
$CC" >&5
4746 $as_echo_n "checking
for ld used by
$CC...
" >&6; }
4749 # gcc leaves a trailing carriage return, which upsets mingw
4750 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4752 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4755 # Accept absolute paths.
4757 re_direlt='/[^/][^/]*/\.\./'
4758 # Canonicalize the pathname of ld
4759 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4760 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4761 ac_prog=`$ECHO $ac_prog| $SED "s
%$re_direlt%/%"`
4763 test -z "$LD" && LD=$ac_prog
4766 # If it fails, then pretend we aren't using GCC.
4770 # If it is relative, then search for the first ld in PATH.
4774 elif test yes = "$with_gnu_ld"; then
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for GNU ld
" >&5
4776 $as_echo_n "checking
for GNU ld...
" >&6; }
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for non-GNU ld
" >&5
4779 $as_echo_n "checking
for non-GNU ld...
" >&6; }
4781 if ${lt_cv_path_LD+:} false; then :
4782 $as_echo_n "(cached
) " >&6
4784 if test -z "$LD"; then
4785 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4786 for ac_dir in $PATH; do
4788 test -z "$ac_dir" && ac_dir=.
4789 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4790 lt_cv_path_LD=$ac_dir/$ac_prog
4791 # Check to see if the program is GNU ld. I'd rather use --version,
4792 # but apparently some variants of GNU ld only accept -v.
4793 # Break only if it was the GNU/non-GNU ld that we prefer.
4794 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4795 *GNU* | *'with BFD'*)
4796 test no != "$with_gnu_ld" && break
4799 test yes != "$with_gnu_ld" && break
4806 lt_cv_path_LD=$LD # Let the user override the test with a path.
4811 if test -n "$LD"; then
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
4813 $as_echo "$LD" >&6; }
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4816 $as_echo "no
" >&6; }
4818 test -z "$LD" && as_fn_error $? "no acceptable ld found
in \
$PATH" "$LINENO" 5
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if the linker
($LD) is GNU ld
" >&5
4820 $as_echo_n "checking
if the linker
($LD) is GNU ld...
" >&6; }
4821 if ${lt_cv_prog_gnu_ld+:} false; then :
4822 $as_echo_n "(cached
) " >&6
4824 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4825 case `$LD -v 2>&1 </dev/null` in
4826 *GNU* | *'with BFD'*)
4827 lt_cv_prog_gnu_ld=yes
4830 lt_cv_prog_gnu_ld=no
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_gnu_ld" >&5
4835 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4836 with_gnu_ld=$lt_cv_prog_gnu_ld
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for BSD- or MS-compatible name lister
(nm
)" >&5
4847 $as_echo_n "checking
for BSD- or MS-compatible name lister
(nm
)...
" >&6; }
4848 if ${lt_cv_path_NM+:} false; then :
4849 $as_echo_n "(cached
) " >&6
4851 if test -n "$NM"; then
4852 # Let the user override the test.
4855 lt_nm_to_check=${ac_tool_prefix}nm
4856 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4857 lt_nm_to_check="$lt_nm_to_check nm
"
4859 for lt_tmp_nm in $lt_nm_to_check; do
4860 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4861 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4863 test -z "$ac_dir" && ac_dir=.
4864 tmp_nm=$ac_dir/$lt_tmp_nm
4865 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4866 # Check to see if the nm accepts a BSD-compat flag.
4867 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4868 # nm: unknown option "B
" ignored
4869 # Tru64's nm complains that /dev/null is an invalid object file
4870 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4872 mingw*) lt_bad_file=conftest.nm/nofile ;;
4873 *) lt_bad_file=/dev/null ;;
4875 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4876 *$lt_bad_file* | *'Invalid file or object type'*)
4877 lt_cv_path_NM="$tmp_nm -B"
4881 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4883 lt_cv_path_NM="$tmp_nm -p"
4887 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4888 continue # so that we can try to find one that supports BSD flags
4897 : ${lt_cv_path_NM=no}
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_NM" >&5
4901 $as_echo "$lt_cv_path_NM" >&6; }
4902 if test no != "$lt_cv_path_NM"; then
4905 # Didn't find any BSD compatible name lister, look for dumpbin.
4906 if test -n "$DUMPBIN"; then :
4907 # Let the user override the test.
4909 if test -n "$ac_tool_prefix"; then
4910 for ac_prog in dumpbin "link
-dump"
4912 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4913 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
4915 $as_echo_n "checking
for $ac_word...
" >&6; }
4916 if ${ac_cv_prog_DUMPBIN+:} false; then :
4917 $as_echo_n "(cached
) " >&6
4919 if test -n "$DUMPBIN"; then
4920 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926 test -z "$as_dir" && as_dir=.
4927 for ac_exec_ext in '' $ac_executable_extensions; do
4928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4929 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4930 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
4939 DUMPBIN=$ac_cv_prog_DUMPBIN
4940 if test -n "$DUMPBIN"; then
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DUMPBIN" >&5
4942 $as_echo "$DUMPBIN" >&6; }
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4945 $as_echo "no
" >&6; }
4949 test -n "$DUMPBIN" && break
4952 if test -z "$DUMPBIN"; then
4953 ac_ct_DUMPBIN=$DUMPBIN
4954 for ac_prog in dumpbin "link
-dump"
4956 # Extract the first word of "$ac_prog", so it can be a program name with args.
4957 set dummy $ac_prog; ac_word=$2
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
4959 $as_echo_n "checking
for $ac_word...
" >&6; }
4960 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4961 $as_echo_n "(cached
) " >&6
4963 if test -n "$ac_ct_DUMPBIN"; then
4964 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4970 test -z "$as_dir" && as_dir=.
4971 for ac_exec_ext in '' $ac_executable_extensions; do
4972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4973 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4974 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
4983 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4984 if test -n "$ac_ct_DUMPBIN"; then
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DUMPBIN" >&5
4986 $as_echo "$ac_ct_DUMPBIN" >&6; }
4988 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4989 $as_echo "no
" >&6; }
4993 test -n "$ac_ct_DUMPBIN" && break
4996 if test "x
$ac_ct_DUMPBIN" = x; then
4999 case $cross_compiling:$ac_tool_warned in
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5002 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5003 ac_tool_warned=yes ;;
5005 DUMPBIN=$ac_ct_DUMPBIN
5009 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
5011 DUMPBIN="$DUMPBIN -symbols -headers"
5019 if test : != "$DUMPBIN"; then
5023 test -z "$NM" && NM=nm
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister
($NM) interface
" >&5
5031 $as_echo_n "checking the name lister
($NM) interface...
" >&6; }
5032 if ${lt_cv_nm_interface+:} false; then :
5033 $as_echo_n "(cached
) " >&6
5035 lt_cv_nm_interface="BSD nm
"
5036 echo "int some_variable
= 0;" > conftest.$ac_ext
5037 (eval echo "\"\
$as_me:$LINENO: $ac_compile\"" >&5)
5038 (eval "$ac_compile" 2>conftest.err)
5039 cat conftest.err >&5
5040 (eval echo "\"\
$as_me:$LINENO: $NM \\\"conftest.
$ac_objext\\\"\"" >&5)
5041 (eval "$NM \"conftest.
$ac_objext\"" 2>conftest.err > conftest.out)
5042 cat conftest.err >&5
5043 (eval echo "\"\
$as_me:$LINENO: output
\"" >&5)
5044 cat conftest.out >&5
5045 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5046 lt_cv_nm_interface="MS dumpbin
"
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_nm_interface" >&5
5051 $as_echo "$lt_cv_nm_interface" >&6; }
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
ln -s works
" >&5
5054 $as_echo_n "checking whether
ln -s works...
" >&6; }
5056 if test "$LN_S" = "ln -s"; then
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
5058 $as_echo "yes" >&6; }
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
, using
$LN_S" >&5
5061 $as_echo "no
, using
$LN_S" >&6; }
5064 # find the maximum length of command line arguments
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of
command line arguments
" >&5
5066 $as_echo_n "checking the maximum length of
command line arguments...
" >&6; }
5067 if ${lt_cv_sys_max_cmd_len+:} false; then :
5068 $as_echo_n "(cached
) " >&6
5075 # On DJGPP, this test can blow up pretty badly due to problems in libc
5076 # (any single argument exceeding 2000 bytes causes a buffer overrun
5077 # during glob expansion). Even if it were fixed, the result of this
5078 # check would be larger than it should be.
5079 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5083 # Under GNU Hurd, this test is not required because there is
5084 # no limit to the length of command line arguments.
5085 # Libtool will interpret -1 as no limit whatsoever
5086 lt_cv_sys_max_cmd_len=-1;
5089 cygwin* | mingw* | cegcc*)
5090 # On Win9x/ME, this test blows up -- it succeeds, but takes
5091 # about 5 minutes as the teststring grows exponentially.
5092 # Worse, since 9x/ME are not pre-emptively multitasking,
5093 # you end up with a "frozen
" computer, even though with patience
5094 # the test eventually succeeds (with a max line length of 256k).
5095 # Instead, let's just punt: use the minimum linelength reported by
5096 # all of the supported platforms: 8192 (on NT/2K/XP).
5097 lt_cv_sys_max_cmd_len=8192;
5101 # On MiNT this can take a long time and run out of memory.
5102 lt_cv_sys_max_cmd_len=8192;
5106 # On AmigaOS with pdksh, this test takes hours, literally.
5107 # So we just punt and use a minimum line length of 8192.
5108 lt_cv_sys_max_cmd_len=8192;
5111 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5112 # This has been around since 386BSD, at least. Likely further.
5113 if test -x /sbin/sysctl; then
5114 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5115 elif test -x /usr/sbin/sysctl; then
5116 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5118 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5120 # And add a safety zone
5121 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5122 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5126 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5127 lt_cv_sys_max_cmd_len=196608
5131 # The test takes a long time on OS/2.
5132 lt_cv_sys_max_cmd_len=8192
5136 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5137 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5138 # nice to cause kernel panics so lets avoid the loop below.
5139 # First set a reasonable default.
5140 lt_cv_sys_max_cmd_len=16384
5142 if test -x /sbin/sysconfig; then
5143 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5144 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5149 lt_cv_sys_max_cmd_len=102400
5151 sysv5* | sco5v6* | sysv4.2uw2*)
5152 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5153 if test -n "$kargmax"; then
5154 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5156 lt_cv_sys_max_cmd_len=32768
5160 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5161 if test -n "$lt_cv_sys_max_cmd_len" && \
5162 test undefined != "$lt_cv_sys_max_cmd_len"; then
5163 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5164 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5166 # Make teststring a little bigger before we do anything with it.
5167 # a 1K string should be a reasonable start.
5168 for i in 1 2 3 4 5 6 7 8; do
5169 teststring=$teststring$teststring
5171 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5172 # If test is not a shell built-in, we'll probably end up computing a
5173 # maximum length that is only half of the actual maximum length, but
5175 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5176 = "X
$teststring$teststring"; } >/dev/null 2>&1 &&
5177 test 17 != "$i" # 1/2 MB should be enough
5180 teststring=$teststring$teststring
5182 # Only check the string length outside the loop.
5183 lt_cv_sys_max_cmd_len=`expr "X
$teststring" : ".
*" 2>&1`
5185 # Add a significant safety factor because C++ compilers can tack on
5186 # massive amounts of additional arguments before passing them to the
5187 # linker. It appears as though 1/2 is a usable value.
5188 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5195 if test -n "$lt_cv_sys_max_cmd_len"; then
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sys_max_cmd_len" >&5
5197 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none
" >&5
5200 $as_echo "none
" >&6; }
5202 max_cmd_len=$lt_cv_sys_max_cmd_len
5213 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5223 # test EBCDIC or ASCII
5224 case `echo X|tr X '\101'` in
5225 A) # ASCII based system
5226 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5227 lt_SP2NL='tr \040 \012'
5228 lt_NL2SP='tr \015\012 \040\040'
5230 *) # EBCDIC based system
5231 lt_SP2NL='tr \100 \n'
5232 lt_NL2SP='tr \r\n \100\100'
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to
$host format
" >&5
5245 $as_echo_n "checking how to convert
$build file names to
$host format...
" >&6; }
5246 if ${lt_cv_to_host_file_cmd+:} false; then :
5247 $as_echo_n "(cached
) " >&6
5252 *-*-mingw* ) # actually msys
5253 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5256 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5258 * ) # otherwise, assume *nix
5259 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5265 *-*-mingw* ) # actually msys
5266 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5269 lt_cv_to_host_file_cmd=func_convert_file_noop
5271 * ) # otherwise, assume *nix
5272 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5276 * ) # unhandled hosts (and "normal
" native builds)
5277 lt_cv_to_host_file_cmd=func_convert_file_noop
5283 to_host_file_cmd=$lt_cv_to_host_file_cmd
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_host_file_cmd" >&5
5285 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to toolchain format
" >&5
5292 $as_echo_n "checking how to convert
$build file names to toolchain format...
" >&6; }
5293 if ${lt_cv_to_tool_file_cmd+:} false; then :
5294 $as_echo_n "(cached
) " >&6
5296 #assume ordinary cross tools, or native build.
5297 lt_cv_to_tool_file_cmd=func_convert_file_noop
5301 *-*-mingw* ) # actually msys
5302 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5310 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_tool_file_cmd" >&5
5312 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
5319 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5320 if ${lt_cv_ld_reload_flag+:} false; then :
5321 $as_echo_n "(cached
) " >&6
5323 lt_cv_ld_reload_flag='-r'
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
5326 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5327 reload_flag=$lt_cv_ld_reload_flag
5328 case $reload_flag in
5330 *) reload_flag=" $reload_flag" ;;
5332 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5334 cygwin* | mingw* | pw32* | cegcc*)
5335 if test yes != "$GCC"; then
5340 if test yes = "$GCC"; then
5341 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5343 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5356 if test -n "$ac_tool_prefix"; then
5357 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5358 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5360 $as_echo_n "checking
for $ac_word...
" >&6; }
5361 if ${ac_cv_prog_OBJDUMP+:} false; then :
5362 $as_echo_n "(cached
) " >&6
5364 if test -n "$OBJDUMP"; then
5365 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5371 test -z "$as_dir" && as_dir=.
5372 for ac_exec_ext in '' $ac_executable_extensions; do
5373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5374 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5375 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5384 OBJDUMP=$ac_cv_prog_OBJDUMP
5385 if test -n "$OBJDUMP"; then
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
5387 $as_echo "$OBJDUMP" >&6; }
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5390 $as_echo "no
" >&6; }
5395 if test -z "$ac_cv_prog_OBJDUMP"; then
5396 ac_ct_OBJDUMP=$OBJDUMP
5397 # Extract the first word of "objdump
", so it can be a program name with args.
5398 set dummy objdump; ac_word=$2
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5400 $as_echo_n "checking
for $ac_word...
" >&6; }
5401 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5402 $as_echo_n "(cached
) " >&6
5404 if test -n "$ac_ct_OBJDUMP"; then
5405 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5411 test -z "$as_dir" && as_dir=.
5412 for ac_exec_ext in '' $ac_executable_extensions; do
5413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5414 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5415 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5424 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5425 if test -n "$ac_ct_OBJDUMP"; then
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
5427 $as_echo "$ac_ct_OBJDUMP" >&6; }
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5430 $as_echo "no
" >&6; }
5433 if test "x
$ac_ct_OBJDUMP" = x; then
5436 case $cross_compiling:$ac_tool_warned in
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5439 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5440 ac_tool_warned=yes ;;
5442 OBJDUMP=$ac_ct_OBJDUMP
5445 OBJDUMP="$ac_cv_prog_OBJDUMP"
5448 test -z "$OBJDUMP" && OBJDUMP=objdump
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
5459 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5460 if ${lt_cv_deplibs_check_method+:} false; then :
5461 $as_echo_n "(cached
) " >&6
5463 lt_cv_file_magic_cmd='$MAGIC_CMD'
5464 lt_cv_file_magic_test_file=
5465 lt_cv_deplibs_check_method='unknown'
5466 # Need to set the preceding variable on all platforms that support
5467 # interlibrary dependencies.
5468 # 'none' -- dependencies not supported.
5469 # 'unknown' -- same as none, but documents that we really don't know.
5470 # 'pass_all' -- all dependencies passed with no checks.
5471 # 'test_compile' -- check by making test program.
5472 # 'file_magic [[regex]]' -- check by looking for files in library path
5473 # that responds to the $file_magic_cmd with a given extended regex.
5474 # If you have 'file' or equivalent on your system and you're not sure
5475 # whether 'pass_all' will *always* work, you probably want this one.
5479 lt_cv_deplibs_check_method=pass_all
5483 lt_cv_deplibs_check_method=pass_all
5487 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5488 lt_cv_file_magic_cmd='/usr/bin/file -L'
5489 lt_cv_file_magic_test_file=/shlib/libc.so
5493 # func_win32_libid is a shell function defined in ltmain.sh
5494 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5495 lt_cv_file_magic_cmd='func_win32_libid'
5499 # Base MSYS/MinGW do not provide the 'file' command needed by
5500 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5501 # unless we find 'file', for example because we are cross-compiling.
5502 if ( file / ) >/dev/null 2>&1; then
5503 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5504 lt_cv_file_magic_cmd='func_win32_libid'
5506 # Keep this pattern in sync with the one in func_win32_libid.
5507 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5508 lt_cv_file_magic_cmd='$OBJDUMP -f'
5513 # use the weaker test based on 'objdump'. See mingw*.
5514 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5515 lt_cv_file_magic_cmd='$OBJDUMP -f'
5518 darwin* | rhapsody*)
5519 lt_cv_deplibs_check_method=pass_all
5522 freebsd* | dragonfly*)
5523 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5526 # Not sure whether the presence of OpenBSD here was a mistake.
5527 # Let's accept both of them until this is cleared up.
5528 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5529 lt_cv_file_magic_cmd=/usr/bin/file
5530 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5534 lt_cv_deplibs_check_method=pass_all
5539 lt_cv_deplibs_check_method=pass_all
5542 hpux10.20* | hpux11*)
5543 lt_cv_file_magic_cmd=/usr/bin/file
5546 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5547 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5550 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]'
5551 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5554 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5555 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5561 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5562 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5565 irix5* | irix6* | nonstopux*)
5567 *-32|*"-32 ") libmagic=32-bit;;
5568 *-n32|*"-n32 ") libmagic=N32;;
5569 *-64|*"-64 ") libmagic=64-bit;;
5570 *) libmagic=never-match;;
5572 lt_cv_deplibs_check_method=pass_all
5575 # This must be glibc/ELF.
5576 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5577 lt_cv_deplibs_check_method=pass_all
5580 netbsd* | netbsdelf*-gnu)
5581 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5582 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5584 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5589 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5590 lt_cv_file_magic_cmd=/usr/bin/file
5591 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5595 lt_cv_deplibs_check_method=pass_all
5599 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5600 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5602 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5606 osf3* | osf4* | osf5*)
5607 lt_cv_deplibs_check_method=pass_all
5611 lt_cv_deplibs_check_method=pass_all
5615 lt_cv_deplibs_check_method=pass_all
5618 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5619 lt_cv_deplibs_check_method=pass_all
5623 case $host_vendor in
5625 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]'
5626 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5629 lt_cv_deplibs_check_method=pass_all
5632 lt_cv_file_magic_cmd='/bin/file'
5633 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5636 lt_cv_file_magic_cmd='/bin/file'
5637 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5638 lt_cv_file_magic_test_file=/lib/libc.so
5641 lt_cv_deplibs_check_method=pass_all
5644 lt_cv_deplibs_check_method=pass_all
5650 lt_cv_deplibs_check_method=pass_all
5653 lt_cv_deplibs_check_method=pass_all
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
5659 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5663 if test "$build" = "$host"; then
5666 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5669 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s
/\
(..\
)/s\
/[\
1]\
/[\
1]\
/g
;/g
"`
5675 file_magic_cmd=$lt_cv_file_magic_cmd
5676 deplibs_check_method=$lt_cv_deplibs_check_method
5677 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5700 if test -n "$ac_tool_prefix"; then
5701 # Extract the first word of "${ac_tool_prefix}dlltool
", so it can be a program name with args.
5702 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5704 $as_echo_n "checking
for $ac_word...
" >&6; }
5705 if ${ac_cv_prog_DLLTOOL+:} false; then :
5706 $as_echo_n "(cached
) " >&6
5708 if test -n "$DLLTOOL"; then
5709 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 test -z "$as_dir" && as_dir=.
5716 for ac_exec_ext in '' $ac_executable_extensions; do
5717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5718 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool
"
5719 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5728 DLLTOOL=$ac_cv_prog_DLLTOOL
5729 if test -n "$DLLTOOL"; then
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
5731 $as_echo "$DLLTOOL" >&6; }
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5734 $as_echo "no
" >&6; }
5739 if test -z "$ac_cv_prog_DLLTOOL"; then
5740 ac_ct_DLLTOOL=$DLLTOOL
5741 # Extract the first word of "dlltool
", so it can be a program name with args.
5742 set dummy dlltool; ac_word=$2
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5744 $as_echo_n "checking
for $ac_word...
" >&6; }
5745 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5746 $as_echo_n "(cached
) " >&6
5748 if test -n "$ac_ct_DLLTOOL"; then
5749 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5755 test -z "$as_dir" && as_dir=.
5756 for ac_exec_ext in '' $ac_executable_extensions; do
5757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5758 ac_cv_prog_ac_ct_DLLTOOL="dlltool
"
5759 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5768 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5769 if test -n "$ac_ct_DLLTOOL"; then
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DLLTOOL" >&5
5771 $as_echo "$ac_ct_DLLTOOL" >&6; }
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5774 $as_echo "no
" >&6; }
5777 if test "x
$ac_ct_DLLTOOL" = x; then
5780 case $cross_compiling:$ac_tool_warned in
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5783 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5784 ac_tool_warned=yes ;;
5786 DLLTOOL=$ac_ct_DLLTOOL
5789 DLLTOOL="$ac_cv_prog_DLLTOOL"
5792 test -z "$DLLTOOL" && DLLTOOL=dlltool
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries
" >&5
5804 $as_echo_n "checking how to associate runtime and link libraries...
" >&6; }
5805 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5806 $as_echo_n "(cached
) " >&6
5808 lt_cv_sharedlib_from_linklib_cmd='unknown'
5811 cygwin* | mingw* | pw32* | cegcc*)
5812 # two different shell functions defined in ltmain.sh;
5813 # decide which one to use based on capabilities of $DLLTOOL
5814 case `$DLLTOOL --help 2>&1` in
5815 *--identify-strict*)
5816 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5819 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5824 # fallback: assume linklib IS sharedlib
5825 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sharedlib_from_linklib_cmd" >&5
5831 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5832 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5833 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5842 if test -n "$ac_tool_prefix"; then
5845 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5846 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5848 $as_echo_n "checking
for $ac_word...
" >&6; }
5849 if ${ac_cv_prog_AR+:} false; then :
5850 $as_echo_n "(cached
) " >&6
5852 if test -n "$AR"; then
5853 ac_cv_prog_AR="$AR" # Let the user override the test.
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 test -z "$as_dir" && as_dir=.
5860 for ac_exec_ext in '' $ac_executable_extensions; do
5861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5862 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5863 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5873 if test -n "$AR"; then
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
5875 $as_echo "$AR" >&6; }
5877 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5878 $as_echo "no
" >&6; }
5882 test -n "$AR" && break
5885 if test -z "$AR"; then
5889 # Extract the first word of "$ac_prog", so it can be a program name with args.
5890 set dummy $ac_prog; ac_word=$2
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5892 $as_echo_n "checking
for $ac_word...
" >&6; }
5893 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5894 $as_echo_n "(cached
) " >&6
5896 if test -n "$ac_ct_AR"; then
5897 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5903 test -z "$as_dir" && as_dir=.
5904 for ac_exec_ext in '' $ac_executable_extensions; do
5905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5906 ac_cv_prog_ac_ct_AR="$ac_prog"
5907 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5916 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5917 if test -n "$ac_ct_AR"; then
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
5919 $as_echo "$ac_ct_AR" >&6; }
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5922 $as_echo "no
" >&6; }
5926 test -n "$ac_ct_AR" && break
5929 if test "x
$ac_ct_AR" = x; then
5932 case $cross_compiling:$ac_tool_warned in
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5935 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5936 ac_tool_warned=yes ;;
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for archiver @FILE support
" >&5
5956 $as_echo_n "checking
for archiver @FILE support...
" >&6; }
5957 if ${lt_cv_ar_at_file+:} false; then :
5958 $as_echo_n "(cached
) " >&6
5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962 /* end confdefs.h. */
5972 if ac_fn_c_try_compile "$LINENO"; then :
5973 echo conftest.$ac_objext > conftest.lst
5974 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5975 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5976 (eval $lt_ar_try) 2>&5
5978 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5979 test $ac_status = 0; }
5980 if test 0 -eq "$ac_status"; then
5981 # Ensure the archiver fails upon bogus file names.
5982 rm -f conftest.$ac_objext libconftest.a
5983 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5984 (eval $lt_ar_try) 2>&5
5986 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5987 test $ac_status = 0; }
5988 if test 0 -ne "$ac_status"; then
5992 rm -f conftest.* libconftest.a
5995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ar_at_file" >&5
5999 $as_echo "$lt_cv_ar_at_file" >&6; }
6001 if test no = "$lt_cv_ar_at_file"; then
6004 archiver_list_spec=$lt_cv_ar_at_file
6013 if test -n "$ac_tool_prefix"; then
6014 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
6015 set dummy ${ac_tool_prefix}strip; ac_word=$2
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6017 $as_echo_n "checking
for $ac_word...
" >&6; }
6018 if ${ac_cv_prog_STRIP+:} false; then :
6019 $as_echo_n "(cached
) " >&6
6021 if test -n "$STRIP"; then
6022 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028 test -z "$as_dir" && as_dir=.
6029 for ac_exec_ext in '' $ac_executable_extensions; do
6030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6031 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6032 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6041 STRIP=$ac_cv_prog_STRIP
6042 if test -n "$STRIP"; then
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
6044 $as_echo "$STRIP" >&6; }
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6047 $as_echo "no
" >&6; }
6052 if test -z "$ac_cv_prog_STRIP"; then
6054 # Extract the first word of "strip
", so it can be a program name with args.
6055 set dummy strip; ac_word=$2
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6057 $as_echo_n "checking
for $ac_word...
" >&6; }
6058 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6059 $as_echo_n "(cached
) " >&6
6061 if test -n "$ac_ct_STRIP"; then
6062 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068 test -z "$as_dir" && as_dir=.
6069 for ac_exec_ext in '' $ac_executable_extensions; do
6070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6071 ac_cv_prog_ac_ct_STRIP="strip
"
6072 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6081 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6082 if test -n "$ac_ct_STRIP"; then
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6084 $as_echo "$ac_ct_STRIP" >&6; }
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6087 $as_echo "no
" >&6; }
6090 if test "x
$ac_ct_STRIP" = x; then
6093 case $cross_compiling:$ac_tool_warned in
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6096 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6097 ac_tool_warned=yes ;;
6102 STRIP="$ac_cv_prog_STRIP"
6105 test -z "$STRIP" && STRIP=:
6112 if test -n "$ac_tool_prefix"; then
6113 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6114 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6116 $as_echo_n "checking
for $ac_word...
" >&6; }
6117 if ${ac_cv_prog_RANLIB+:} false; then :
6118 $as_echo_n "(cached
) " >&6
6120 if test -n "$RANLIB"; then
6121 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6127 test -z "$as_dir" && as_dir=.
6128 for ac_exec_ext in '' $ac_executable_extensions; do
6129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6130 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6131 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6140 RANLIB=$ac_cv_prog_RANLIB
6141 if test -n "$RANLIB"; then
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
6143 $as_echo "$RANLIB" >&6; }
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6146 $as_echo "no
" >&6; }
6151 if test -z "$ac_cv_prog_RANLIB"; then
6152 ac_ct_RANLIB=$RANLIB
6153 # Extract the first word of "ranlib
", so it can be a program name with args.
6154 set dummy ranlib; ac_word=$2
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6156 $as_echo_n "checking
for $ac_word...
" >&6; }
6157 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6158 $as_echo_n "(cached
) " >&6
6160 if test -n "$ac_ct_RANLIB"; then
6161 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6167 test -z "$as_dir" && as_dir=.
6168 for ac_exec_ext in '' $ac_executable_extensions; do
6169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6170 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6171 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6180 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6181 if test -n "$ac_ct_RANLIB"; then
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
6183 $as_echo "$ac_ct_RANLIB" >&6; }
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6186 $as_echo "no
" >&6; }
6189 if test "x
$ac_ct_RANLIB" = x; then
6192 case $cross_compiling:$ac_tool_warned in
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6195 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6196 ac_tool_warned=yes ;;
6198 RANLIB=$ac_ct_RANLIB
6201 RANLIB="$ac_cv_prog_RANLIB"
6204 test -z "$RANLIB" && RANLIB=:
6211 # Determine commands to create old-style static archives.
6212 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6213 old_postinstall_cmds='chmod 644 $oldlib'
6214 old_postuninstall_cmds=
6216 if test -n "$RANLIB"; then
6219 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$tool_oldlib"
6222 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$tool_oldlib"
6225 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$tool_oldlib"
6230 lock_old_archive_extraction=yes ;;
6232 lock_old_archive_extraction=no ;;
6273 # If no C compiler was specified, use CC.
6276 # If no C compiler flags were specified, use CFLAGS.
6277 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6279 # Allow CC to be a program name with arguments.
6283 # Check for command to grab the raw symbol name followed by C symbol from nm.
6284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
6285 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
6286 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6287 $as_echo_n "(cached
) " >&6
6290 # These are sane defaults that work on at least a few old systems.
6291 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6293 # Character class describing NM global symbol codes.
6294 symcode='[BCDEGRST]'
6296 # Regexp to match symbols that can be accessed directly from C.
6297 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6299 # Define system-specific variables.
6304 cygwin* | mingw* | pw32* | cegcc*)
6305 symcode='[ABCDGISTW]'
6308 if test ia64 = "$host_cpu"; then
6309 symcode='[ABCDEGRST]'
6313 symcode='[BCDEGRST]'
6316 symcode='[BCDEGQRST]'
6327 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6335 # If we're using GNU nm, then use its standard symbol codes.
6336 case `$NM -V 2>&1` in
6337 *GNU* | *'with BFD'*)
6338 symcode='[ABCDGIRSTW]' ;;
6341 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6342 # Gets list of data symbols to import.
6343 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6344 # Adjust the below global symbol transforms to fixup imported variables.
6345 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6346 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6347 lt_c_name_lib_hook="\
6348 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6349 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6351 # Disable hooks by default.
6352 lt_cv_sys_global_symbol_to_import=
6358 # Transform an extracted symbol line into a proper C declaration.
6359 # Some systems (esp. on ia64) link data and code symbols differently,
6360 # so use this general approach.
6361 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6363 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6364 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6366 # Transform an extracted symbol line into symbol name and symbol address
6367 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6369 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6370 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6372 # Transform an extracted symbol line into symbol name with lib prefix and
6374 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6375 $lt_c_name_lib_hook\
6376 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6377 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6378 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6380 # Handle CRLF in mingw tool chain
6384 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6388 # Try without a prefix underscore, then with it.
6389 for ac_symprfx in "" "_
"; do
6391 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6392 symxfrm="\\1 $ac_symprfx\\2 \\2"
6394 # Write the raw and C identifiers.
6395 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6396 # Fake it for dumpbin and say T for any non-static function,
6397 # D for any global variable and I for any imported variable.
6398 # Also find C++ and __fastcall symbols from MSVC++,
6399 # which start with @ or ?.
6400 lt_cv_sys_global_symbol_pipe="$AWK '"\
6401 " {last_section=section; section=\$ 3};"\
6402 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6403 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6404 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6405 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6406 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6407 " \$ 0!~/External *\|/{next};"\
6408 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6409 " {if(hide[section]) next};"\
6410 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6411 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6412 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6413 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6414 " ' prfx
=^
$ac_symprfx"
6416 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6418 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe |
sed '/ __gnu_lto/d'"
6420 # Check to see that the pipe works correctly.
6424 cat > conftest.$ac_ext <<_LT_EOF
6429 void nm_test_func(void);
6430 void nm_test_func(void){}
6434 int main(){nm_test_var='a';nm_test_func();return(0);}
6437 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6438 (eval $ac_compile) 2>&5
6440 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6441 test $ac_status = 0; }; then
6442 # Now try to grab the symbols.
6444 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
6445 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6447 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6448 test $ac_status = 0; } && test -s "$nlist"; then
6449 # Try sorting and uniquifying the output.
6450 if sort "$nlist" | uniq > "$nlist"T; then
6451 mv -f "$nlist"T "$nlist"
6456 # Make sure that we snagged all the symbols we need.
6457 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6458 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6459 cat <<_LT_EOF > conftest.$ac_ext
6460 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6461 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6462 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6463 relocations are performed -- see ld's documentation on pseudo-relocs. */
6464 # define LT_DLSYM_CONST
6465 #elif defined __osf__
6466 /* This system does not cope well with relocations in const data. */
6467 # define LT_DLSYM_CONST
6469 # define LT_DLSYM_CONST const
6477 # Now generate the symbol file.
6478 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6480 cat <<_LT_EOF >> conftest.$ac_ext
6482 /* The mapping between symbol names and symbols. */
6483 LT_DLSYM_CONST struct {
6487 lt__PROGRAM__LTX_preloaded_symbols[] =
6489 { "@PROGRAM@
", (void *) 0 },
6491 $SED "s
/^
$symcode$symcode* .
* \
(.
*\
)$
/ {\"\
1\", (void
*) \
&\
1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6492 cat <<\_LT_EOF >> conftest.$ac_ext
6496 /* This works around a problem in FreeBSD linker */
6497 #ifdef FREEBSD_WORKAROUND
6498 static const void *lt_preloaded_setup() {
6499 return lt__PROGRAM__LTX_preloaded_symbols;
6507 # Now try linking the two files.
6508 mv conftest.$ac_objext conftstm.$ac_objext
6509 lt_globsym_save_LIBS=$LIBS
6510 lt_globsym_save_CFLAGS=$CFLAGS
6511 LIBS=conftstm.$ac_objext
6512 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6513 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6514 (eval $ac_link) 2>&5
6516 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6517 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6520 LIBS=$lt_globsym_save_LIBS
6521 CFLAGS=$lt_globsym_save_CFLAGS
6523 echo "cannot
find nm_test_func
in $nlist" >&5
6526 echo "cannot
find nm_test_var
in $nlist" >&5
6529 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
6532 echo "$progname: failed program was
:" >&5
6533 cat conftest.$ac_ext >&5
6535 rm -rf conftest* conftst*
6537 # Do not use the global_symbol_pipe unless it works.
6538 if test yes = "$pipe_works"; then
6541 lt_cv_sys_global_symbol_pipe=
6547 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6548 lt_cv_sys_global_symbol_to_cdecl=
6550 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
6552 $as_echo "failed
" >&6; }
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
6555 $as_echo "ok
" >&6; }
6558 # Response file support.
6559 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6560 nm_file_list_spec='@'
6561 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6562 nm_file_list_spec='@'
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for sysroot
" >&5
6602 $as_echo_n "checking
for sysroot...
" >&6; }
6604 # Check whether --with-sysroot was given.
6605 if test "${with_sysroot+set}" = set; then :
6606 withval=$with_sysroot;
6613 case $with_sysroot in #(
6615 if test yes = "$GCC"; then
6616 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6620 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $with_sysroot" >&5
6626 $as_echo "$with_sysroot" >&6; }
6627 as_fn_error $? "The sysroot must be an absolute path.
" "$LINENO" 5
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${lt_sysroot:-no}" >&5
6632 $as_echo "${lt_sysroot:-no}" >&6; }
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a working
dd" >&5
6639 $as_echo_n "checking
for a working
dd...
" >&6; }
6640 if ${ac_cv_path_lt_DD+:} false; then :
6641 $as_echo_n "(cached
) " >&6
6643 printf 0123456789abcdef0123456789abcdef >conftest.i
6644 cat conftest.i conftest.i >conftest2.i
6646 if test -z "$lt_DD"; then
6647 ac_path_lt_DD_found=false
6648 # Loop through the user's path and test for each of PROGNAME-LIST
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6653 test -z "$as_dir" && as_dir=.
6654 for ac_prog in dd; do
6655 for ac_exec_ext in '' $ac_executable_extensions; do
6656 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6657 as_fn_executable_p "$ac_path_lt_DD" || continue
6658 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6659 cmp -s conftest.i conftest.out \
6660 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6662 $ac_path_lt_DD_found && break 3
6667 if test -z "$ac_cv_path_lt_DD"; then
6671 ac_cv_path_lt_DD=$lt_DD
6674 rm -f conftest.i conftest2.i conftest.out
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_lt_DD" >&5
6677 $as_echo "$ac_cv_path_lt_DD" >&6; }
6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes
" >&5
6681 $as_echo_n "checking how to truncate binary pipes...
" >&6; }
6682 if ${lt_cv_truncate_bin+:} false; then :
6683 $as_echo_n "(cached
) " >&6
6685 printf 0123456789abcdef0123456789abcdef >conftest.i
6686 cat conftest.i conftest.i >conftest2.i
6688 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6689 cmp -s conftest.i conftest.out \
6690 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs
=4096 count
=1"
6692 rm -f conftest.i conftest2.i conftest.out
6693 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q
"
6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_truncate_bin" >&5
6696 $as_echo "$lt_cv_truncate_bin" >&6; }
6704 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6707 for cc_temp in $*""; do
6709 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6710 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6715 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
6718 # Check whether --enable-libtool-lock was given.
6719 if test "${enable_libtool_lock+set}" = set; then :
6720 enableval=$enable_libtool_lock;
6723 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6725 # Some flags need to be propagated to the compiler or linker for good
6729 # Find out what ABI is being produced by ac_compile, and set mode
6730 # options accordingly.
6731 echo 'int i;' > conftest.$ac_ext
6732 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6733 (eval $ac_compile) 2>&5
6735 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6736 test $ac_status = 0; }; then
6737 case `/usr/bin/file conftest.$ac_objext` in
6749 # Find out what ABI is being produced by ac_compile, and set linker
6750 # options accordingly.
6751 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6752 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6753 (eval $ac_compile) 2>&5
6755 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6756 test $ac_status = 0; }; then
6757 if test yes = "$lt_cv_prog_gnu_ld"; then
6758 case `/usr/bin/file conftest.$ac_objext` in
6760 LD="${LD-ld} -melf32bsmip"
6763 LD="${LD-ld} -melf32bmipn32"
6766 LD="${LD-ld} -melf64bmip"
6770 case `/usr/bin/file conftest.$ac_objext` in
6787 # Find out what ABI is being produced by ac_compile, and set linker
6788 # options accordingly.
6789 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6790 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6791 (eval $ac_compile) 2>&5
6793 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6794 test $ac_status = 0; }; then
6796 case `/usr/bin/file conftest.$ac_objext` in
6804 case `/usr/bin/file conftest.$ac_objext` in
6806 emul="${emul}btsmip
"
6809 emul="${emul}ltsmip
"
6812 case `/usr/bin/file conftest.$ac_objext` in
6817 LD="${LD-ld} -m $emul"
6822 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6823 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6824 # Find out what ABI is being produced by ac_compile, and set linker
6825 # options accordingly. Note that the listed cases only cover the
6826 # situations where additional linker options are needed (such as when
6827 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6828 # vice versa); the common cases where no linker options are needed do
6829 # not appear in the list.
6830 echo 'int i;' > conftest.$ac_ext
6831 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6832 (eval $ac_compile) 2>&5
6834 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6835 test $ac_status = 0; }; then
6836 case `/usr/bin/file conftest.o` in
6839 x86_64-*kfreebsd*-gnu)
6840 LD="${LD-ld} -m elf_i386_fbsd
"
6843 case `/usr/bin/file conftest.o` in
6845 LD="${LD-ld} -m elf32_x86_64
"
6848 LD="${LD-ld} -m elf_i386
"
6852 powerpc64le-*linux*)
6853 LD="${LD-ld} -m elf32lppclinux
"
6856 LD="${LD-ld} -m elf32ppclinux
"
6859 LD="${LD-ld} -m elf_s390
"
6862 LD="${LD-ld} -m elf32_sparc
"
6868 x86_64-*kfreebsd*-gnu)
6869 LD="${LD-ld} -m elf_x86_64_fbsd
"
6872 LD="${LD-ld} -m elf_x86_64
"
6875 LD="${LD-ld} -m elf64lppc
"
6878 LD="${LD-ld} -m elf64ppc
"
6880 s390*-*linux*|s390*-*tpf*)
6881 LD="${LD-ld} -m elf64_s390
"
6884 LD="${LD-ld} -m elf64_sparc
"
6894 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6896 CFLAGS="$CFLAGS -belf"
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
6898 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6899 if ${lt_cv_cc_needs_belf+:} false; then :
6900 $as_echo_n "(cached
) " >&6
6903 ac_cpp='$CPP $CPPFLAGS'
6904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6909 /* end confdefs.h. */
6919 if ac_fn_c_try_link "$LINENO"; then :
6920 lt_cv_cc_needs_belf=yes
6922 lt_cv_cc_needs_belf=no
6924 rm -f core conftest.err conftest.$ac_objext \
6925 conftest$ac_exeext conftest.$ac_ext
6927 ac_cpp='$CPP $CPPFLAGS'
6928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
6934 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6935 if test yes != "$lt_cv_cc_needs_belf"; then
6936 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6941 # Find out what ABI is being produced by ac_compile, and set linker
6942 # options accordingly.
6943 echo 'int i;' > conftest.$ac_ext
6944 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6945 (eval $ac_compile) 2>&5
6947 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6948 test $ac_status = 0; }; then
6949 case `/usr/bin/file conftest.o` in
6951 case $lt_cv_prog_gnu_ld in
6954 i?86-*-solaris*|x86_64-*-solaris*)
6955 LD="${LD-ld} -m elf_x86_64
"
6958 LD="${LD-ld} -m elf64_sparc
"
6961 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6962 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6967 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6979 need_locks=$enable_libtool_lock
6981 if test -n "$ac_tool_prefix"; then
6982 # Extract the first word of "${ac_tool_prefix}mt
", so it can be a program name with args.
6983 set dummy ${ac_tool_prefix}mt; ac_word=$2
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6985 $as_echo_n "checking
for $ac_word...
" >&6; }
6986 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6987 $as_echo_n "(cached
) " >&6
6989 if test -n "$MANIFEST_TOOL"; then
6990 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6996 test -z "$as_dir" && as_dir=.
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6999 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt
"
7000 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7009 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7010 if test -n "$MANIFEST_TOOL"; then
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MANIFEST_TOOL" >&5
7012 $as_echo "$MANIFEST_TOOL" >&6; }
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7015 $as_echo "no
" >&6; }
7020 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7021 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7022 # Extract the first word of "mt
", so it can be a program name with args.
7023 set dummy mt; ac_word=$2
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7025 $as_echo_n "checking
for $ac_word...
" >&6; }
7026 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7027 $as_echo_n "(cached
) " >&6
7029 if test -n "$ac_ct_MANIFEST_TOOL"; then
7030 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7036 test -z "$as_dir" && as_dir=.
7037 for ac_exec_ext in '' $ac_executable_extensions; do
7038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7039 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt
"
7040 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7049 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7050 if test -n "$ac_ct_MANIFEST_TOOL"; then
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_MANIFEST_TOOL" >&5
7052 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7055 $as_echo "no
" >&6; }
7058 if test "x
$ac_ct_MANIFEST_TOOL" = x; then
7061 case $cross_compiling:$ac_tool_warned in
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7064 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7065 ac_tool_warned=yes ;;
7067 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7070 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7073 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $MANIFEST_TOOL is a manifest tool
" >&5
7075 $as_echo_n "checking
if $MANIFEST_TOOL is a manifest tool...
" >&6; }
7076 if ${lt_cv_path_mainfest_tool+:} false; then :
7077 $as_echo_n "(cached
) " >&6
7079 lt_cv_path_mainfest_tool=no
7080 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7081 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7082 cat conftest.err >&5
7083 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7084 lt_cv_path_mainfest_tool=yes
7088 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_mainfest_tool" >&5
7089 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7090 if test yes != "$lt_cv_path_mainfest_tool"; then
7100 rhapsody* | darwin*)
7101 if test -n "$ac_tool_prefix"; then
7102 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7103 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7105 $as_echo_n "checking
for $ac_word...
" >&6; }
7106 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7107 $as_echo_n "(cached
) " >&6
7109 if test -n "$DSYMUTIL"; then
7110 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116 test -z "$as_dir" && as_dir=.
7117 for ac_exec_ext in '' $ac_executable_extensions; do
7118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7119 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7120 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7129 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7130 if test -n "$DSYMUTIL"; then
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7132 $as_echo "$DSYMUTIL" >&6; }
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7135 $as_echo "no
" >&6; }
7140 if test -z "$ac_cv_prog_DSYMUTIL"; then
7141 ac_ct_DSYMUTIL=$DSYMUTIL
7142 # Extract the first word of "dsymutil
", so it can be a program name with args.
7143 set dummy dsymutil; ac_word=$2
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7145 $as_echo_n "checking
for $ac_word...
" >&6; }
7146 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7147 $as_echo_n "(cached
) " >&6
7149 if test -n "$ac_ct_DSYMUTIL"; then
7150 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156 test -z "$as_dir" && as_dir=.
7157 for ac_exec_ext in '' $ac_executable_extensions; do
7158 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7159 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7160 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7169 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7170 if test -n "$ac_ct_DSYMUTIL"; then
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7172 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7175 $as_echo "no
" >&6; }
7178 if test "x
$ac_ct_DSYMUTIL" = x; then
7181 case $cross_compiling:$ac_tool_warned in
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7184 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7185 ac_tool_warned=yes ;;
7187 DSYMUTIL=$ac_ct_DSYMUTIL
7190 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7193 if test -n "$ac_tool_prefix"; then
7194 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7195 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7197 $as_echo_n "checking
for $ac_word...
" >&6; }
7198 if ${ac_cv_prog_NMEDIT+:} false; then :
7199 $as_echo_n "(cached
) " >&6
7201 if test -n "$NMEDIT"; then
7202 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 test -z "$as_dir" && as_dir=.
7209 for ac_exec_ext in '' $ac_executable_extensions; do
7210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7211 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7212 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7221 NMEDIT=$ac_cv_prog_NMEDIT
7222 if test -n "$NMEDIT"; then
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7224 $as_echo "$NMEDIT" >&6; }
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7227 $as_echo "no
" >&6; }
7232 if test -z "$ac_cv_prog_NMEDIT"; then
7233 ac_ct_NMEDIT=$NMEDIT
7234 # Extract the first word of "nmedit
", so it can be a program name with args.
7235 set dummy nmedit; ac_word=$2
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7237 $as_echo_n "checking
for $ac_word...
" >&6; }
7238 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7239 $as_echo_n "(cached
) " >&6
7241 if test -n "$ac_ct_NMEDIT"; then
7242 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248 test -z "$as_dir" && as_dir=.
7249 for ac_exec_ext in '' $ac_executable_extensions; do
7250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7251 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7252 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7261 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7262 if test -n "$ac_ct_NMEDIT"; then
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
7264 $as_echo "$ac_ct_NMEDIT" >&6; }
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7267 $as_echo "no
" >&6; }
7270 if test "x
$ac_ct_NMEDIT" = x; then
7273 case $cross_compiling:$ac_tool_warned in
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7276 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7277 ac_tool_warned=yes ;;
7279 NMEDIT=$ac_ct_NMEDIT
7282 NMEDIT="$ac_cv_prog_NMEDIT"
7285 if test -n "$ac_tool_prefix"; then
7286 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
7287 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7289 $as_echo_n "checking
for $ac_word...
" >&6; }
7290 if ${ac_cv_prog_LIPO+:} false; then :
7291 $as_echo_n "(cached
) " >&6
7293 if test -n "$LIPO"; then
7294 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 test -z "$as_dir" && as_dir=.
7301 for ac_exec_ext in '' $ac_executable_extensions; do
7302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7303 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
7304 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7313 LIPO=$ac_cv_prog_LIPO
7314 if test -n "$LIPO"; then
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
7316 $as_echo "$LIPO" >&6; }
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7319 $as_echo "no
" >&6; }
7324 if test -z "$ac_cv_prog_LIPO"; then
7326 # Extract the first word of "lipo
", so it can be a program name with args.
7327 set dummy lipo; ac_word=$2
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7329 $as_echo_n "checking
for $ac_word...
" >&6; }
7330 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7331 $as_echo_n "(cached
) " >&6
7333 if test -n "$ac_ct_LIPO"; then
7334 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7340 test -z "$as_dir" && as_dir=.
7341 for ac_exec_ext in '' $ac_executable_extensions; do
7342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7343 ac_cv_prog_ac_ct_LIPO="lipo
"
7344 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7353 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7354 if test -n "$ac_ct_LIPO"; then
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
7356 $as_echo "$ac_ct_LIPO" >&6; }
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7359 $as_echo "no
" >&6; }
7362 if test "x
$ac_ct_LIPO" = x; then
7365 case $cross_compiling:$ac_tool_warned in
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7368 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7369 ac_tool_warned=yes ;;
7374 LIPO="$ac_cv_prog_LIPO"
7377 if test -n "$ac_tool_prefix"; then
7378 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7379 set dummy ${ac_tool_prefix}otool; ac_word=$2
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7381 $as_echo_n "checking
for $ac_word...
" >&6; }
7382 if ${ac_cv_prog_OTOOL+:} false; then :
7383 $as_echo_n "(cached
) " >&6
7385 if test -n "$OTOOL"; then
7386 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392 test -z "$as_dir" && as_dir=.
7393 for ac_exec_ext in '' $ac_executable_extensions; do
7394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7395 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7396 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7405 OTOOL=$ac_cv_prog_OTOOL
7406 if test -n "$OTOOL"; then
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7408 $as_echo "$OTOOL" >&6; }
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7411 $as_echo "no
" >&6; }
7416 if test -z "$ac_cv_prog_OTOOL"; then
7418 # Extract the first word of "otool
", so it can be a program name with args.
7419 set dummy otool; ac_word=$2
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7421 $as_echo_n "checking
for $ac_word...
" >&6; }
7422 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7423 $as_echo_n "(cached
) " >&6
7425 if test -n "$ac_ct_OTOOL"; then
7426 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432 test -z "$as_dir" && as_dir=.
7433 for ac_exec_ext in '' $ac_executable_extensions; do
7434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7435 ac_cv_prog_ac_ct_OTOOL="otool
"
7436 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7445 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7446 if test -n "$ac_ct_OTOOL"; then
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7448 $as_echo "$ac_ct_OTOOL" >&6; }
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7451 $as_echo "no
" >&6; }
7454 if test "x
$ac_ct_OTOOL" = x; then
7457 case $cross_compiling:$ac_tool_warned in
7459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7460 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7461 ac_tool_warned=yes ;;
7466 OTOOL="$ac_cv_prog_OTOOL"
7469 if test -n "$ac_tool_prefix"; then
7470 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7471 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7473 $as_echo_n "checking
for $ac_word...
" >&6; }
7474 if ${ac_cv_prog_OTOOL64+:} false; then :
7475 $as_echo_n "(cached
) " >&6
7477 if test -n "$OTOOL64"; then
7478 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484 test -z "$as_dir" && as_dir=.
7485 for ac_exec_ext in '' $ac_executable_extensions; do
7486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7487 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7488 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7497 OTOOL64=$ac_cv_prog_OTOOL64
7498 if test -n "$OTOOL64"; then
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7500 $as_echo "$OTOOL64" >&6; }
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7503 $as_echo "no
" >&6; }
7508 if test -z "$ac_cv_prog_OTOOL64"; then
7509 ac_ct_OTOOL64=$OTOOL64
7510 # Extract the first word of "otool64
", so it can be a program name with args.
7511 set dummy otool64; ac_word=$2
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7513 $as_echo_n "checking
for $ac_word...
" >&6; }
7514 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7515 $as_echo_n "(cached
) " >&6
7517 if test -n "$ac_ct_OTOOL64"; then
7518 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524 test -z "$as_dir" && as_dir=.
7525 for ac_exec_ext in '' $ac_executable_extensions; do
7526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7527 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7528 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7537 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7538 if test -n "$ac_ct_OTOOL64"; then
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7540 $as_echo "$ac_ct_OTOOL64" >&6; }
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7543 $as_echo "no
" >&6; }
7546 if test "x
$ac_ct_OTOOL64" = x; then
7549 case $cross_compiling:$ac_tool_warned in
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7552 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7553 ac_tool_warned=yes ;;
7555 OTOOL64=$ac_ct_OTOOL64
7558 OTOOL64="$ac_cv_prog_OTOOL64"
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
7588 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
7589 if ${lt_cv_apple_cc_single_mod+:} false; then :
7590 $as_echo_n "(cached
) " >&6
7592 lt_cv_apple_cc_single_mod=no
7593 if test -z "$LT_MULTI_MODULE"; then
7594 # By default we will add the -single_module flag. You can override
7595 # by either setting the environment variable LT_MULTI_MODULE
7596 # non-empty at configure time, or by adding -multi_module to the
7598 rm -rf libconftest.dylib*
7599 echo "int foo
(void
){return 1;}" > conftest.c
7600 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7601 -dynamiclib -Wl,-single_module conftest.c
" >&5
7602 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7603 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7605 # If there is a non-empty error log, and "single_module
"
7606 # appears in it, assume the flag caused a linker warning
7607 if test -s conftest.err && $GREP single_module conftest.err; then
7608 cat conftest.err >&5
7609 # Otherwise, if the output was created with a 0 exit code from
7610 # the compiler, it worked.
7611 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7612 lt_cv_apple_cc_single_mod=yes
7614 cat conftest.err >&5
7616 rm -rf libconftest.dylib*
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
7621 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
7624 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
7625 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7626 $as_echo_n "(cached
) " >&6
7628 lt_cv_ld_exported_symbols_list=no
7629 save_LDFLAGS=$LDFLAGS
7630 echo "_main
" > conftest.sym
7631 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
7632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7633 /* end confdefs.h. */
7643 if ac_fn_c_try_link "$LINENO"; then :
7644 lt_cv_ld_exported_symbols_list=yes
7646 lt_cv_ld_exported_symbols_list=no
7648 rm -f core conftest.err conftest.$ac_objext \
7649 conftest$ac_exeext conftest.$ac_ext
7650 LDFLAGS=$save_LDFLAGS
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
7654 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
7657 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
7658 if ${lt_cv_ld_force_load+:} false; then :
7659 $as_echo_n "(cached
) " >&6
7661 lt_cv_ld_force_load=no
7662 cat > conftest.c << _LT_EOF
7663 int forced_loaded() { return 2;}
7665 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
7666 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7667 echo "$AR cru libconftest.a conftest.o
" >&5
7668 $AR cru libconftest.a conftest.o 2>&5
7669 echo "$RANLIB libconftest.a
" >&5
7670 $RANLIB libconftest.a 2>&5
7671 cat > conftest.c << _LT_EOF
7672 int main() { return 0;}
7674 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
7675 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7677 if test -s conftest.err && $GREP force_load conftest.err; then
7678 cat conftest.err >&5
7679 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7680 lt_cv_ld_force_load=yes
7682 cat conftest.err >&5
7684 rm -f conftest.err libconftest.a conftest conftest.c
7685 rm -rf conftest.dSYM
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
7689 $as_echo "$lt_cv_ld_force_load" >&6; }
7691 rhapsody* | darwin1.[012])
7692 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7694 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7695 darwin*) # darwin 5.x on
7696 # if running on 10.5 or later, the deployment target defaults
7697 # to the OS version, if on x86, and 10.4, the deployment
7698 # target defaults to 10.4. Don't you love it?
7699 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7700 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7701 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7703 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7705 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7709 if test yes = "$lt_cv_apple_cc_single_mod"; then
7710 _lt_dar_single_mod='$single_module'
7712 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7713 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7715 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7717 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7718 _lt_dsymutil='~$DSYMUTIL $lib || :'
7725 # func_munge_path_list VARIABLE PATH
7726 # -----------------------------------
7727 # VARIABLE is name of variable containing _space_ separated list of
7728 # directories to be munged by the contents of PATH, which is string
7731 # string "DIR
[ DIR
]" will be prepended to VARIABLE
7733 # string "DIR
[ DIR
]" will be appended to VARIABLE
7734 # "DIRP
[:DIRP
]::[DIRA
:]DIRA
"
7735 # string "DIRP
[ DIRP
]" will be prepended to VARIABLE and string
7736 # "DIRA
[ DIRA
]" will be appended to VARIABLE
7738 # VARIABLE will be replaced by "DIR
[ DIR
]"
7739 func_munge_path_list ()
7745 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7748 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7751 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7752 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7755 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7761 ac_cpp='$CPP $CPPFLAGS'
7762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
7766 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
7767 # On Suns, sometimes $CPP names a directory.
7768 if test -n "$CPP" && test -d "$CPP"; then
7771 if test -z "$CPP"; then
7772 if ${ac_cv_prog_CPP+:} false; then :
7773 $as_echo_n "(cached
) " >&6
7775 # Double quotes because CPP needs to be expanded
7776 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
7779 for ac_c_preproc_warn_flag in '' yes
7781 # Use a header file that comes with gcc, so configuring glibc
7782 # with a fresh cross-compiler works.
7783 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7784 # <limits.h> exists even on freestanding compilers.
7785 # On the NeXT, cc -E runs the code through the compiler's parser,
7786 # not just through cpp. "Syntax error
" is here to catch this case.
7787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7788 /* end confdefs.h. */
7790 # include <limits.h>
7792 # include <assert.h>
7796 if ac_fn_c_try_cpp "$LINENO"; then :
7799 # Broken: fails on valid input.
7802 rm -f conftest.err conftest.i conftest.$ac_ext
7804 # OK, works on sane cases. Now check whether nonexistent headers
7805 # can be detected and how.
7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807 /* end confdefs.h. */
7808 #include <ac_nonexistent.h>
7810 if ac_fn_c_try_cpp "$LINENO"; then :
7811 # Broken: success on invalid input.
7814 # Passes both tests.
7818 rm -f conftest.err conftest.i conftest.$ac_ext
7821 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7822 rm -f conftest.i conftest.err conftest.$ac_ext
7823 if $ac_preproc_ok; then :
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
7836 $as_echo "$CPP" >&6; }
7838 for ac_c_preproc_warn_flag in '' yes
7840 # Use a header file that comes with gcc, so configuring glibc
7841 # with a fresh cross-compiler works.
7842 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7843 # <limits.h> exists even on freestanding compilers.
7844 # On the NeXT, cc -E runs the code through the compiler's parser,
7845 # not just through cpp. "Syntax error
" is here to catch this case.
7846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7847 /* end confdefs.h. */
7849 # include <limits.h>
7851 # include <assert.h>
7855 if ac_fn_c_try_cpp "$LINENO"; then :
7858 # Broken: fails on valid input.
7861 rm -f conftest.err conftest.i conftest.$ac_ext
7863 # OK, works on sane cases. Now check whether nonexistent headers
7864 # can be detected and how.
7865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7866 /* end confdefs.h. */
7867 #include <ac_nonexistent.h>
7869 if ac_fn_c_try_cpp "$LINENO"; then :
7870 # Broken: success on invalid input.
7873 # Passes both tests.
7877 rm -f conftest.err conftest.i conftest.$ac_ext
7880 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7881 rm -f conftest.i conftest.err conftest.$ac_ext
7882 if $ac_preproc_ok; then :
7885 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
7886 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7887 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7888 See \`config.log' for more details
" "$LINENO" 5; }
7892 ac_cpp='$CPP $CPPFLAGS'
7893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
7899 $as_echo_n "checking
for ANSI C header files...
" >&6; }
7900 if ${ac_cv_header_stdc+:} false; then :
7901 $as_echo_n "(cached
) " >&6
7903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904 /* end confdefs.h. */
7918 if ac_fn_c_try_compile "$LINENO"; then :
7919 ac_cv_header_stdc=yes
7921 ac_cv_header_stdc=no
7923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7925 if test $ac_cv_header_stdc = yes; then
7926 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7928 /* end confdefs.h. */
7932 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7933 $EGREP "memchr
" >/dev/null 2>&1; then :
7936 ac_cv_header_stdc=no
7942 if test $ac_cv_header_stdc = yes; then
7943 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7945 /* end confdefs.h. */
7949 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7950 $EGREP "free
" >/dev/null 2>&1; then :
7953 ac_cv_header_stdc=no
7959 if test $ac_cv_header_stdc = yes; then
7960 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7961 if test "$cross_compiling" = yes; then :
7964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965 /* end confdefs.h. */
7968 #if ((' ' & 0x0FF) == 0x020)
7969 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7970 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7972 # define ISLOWER(c) \
7973 (('a' <= (c) && (c) <= 'i') \
7974 || ('j' <= (c) && (c) <= 'r') \
7975 || ('s' <= (c) && (c) <= 'z'))
7976 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7979 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7984 for (i = 0; i < 256; i++)
7985 if (XOR (islower (i), ISLOWER (i))
7986 || toupper (i) != TOUPPER (i))
7991 if ac_fn_c_try_run "$LINENO"; then :
7994 ac_cv_header_stdc=no
7996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7997 conftest.$ac_objext conftest.beam conftest.$ac_ext
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
8003 $as_echo "$ac_cv_header_stdc" >&6; }
8004 if test $ac_cv_header_stdc = yes; then
8006 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8010 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8011 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
8012 inttypes.h stdint.h unistd.h
8014 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8015 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8017 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8018 cat >>confdefs.h
<<_ACEOF
8019 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8027 for ac_header
in dlfcn.h
8029 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8031 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
8032 cat >>confdefs.h
<<_ACEOF
8033 #define HAVE_DLFCN_H 1
8054 # Check whether --enable-shared was given.
8055 if test "${enable_shared+set}" = set; then :
8056 enableval
=$enable_shared; p
=${PACKAGE-default}
8058 yes) enable_shared
=yes ;;
8059 no
) enable_shared
=no
;;
8062 # Look at the argument we got. We use all the common list separators.
8063 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8064 for pkg
in $enableval; do
8066 if test "X$pkg" = "X$p"; then
8085 # Check whether --enable-static was given.
8086 if test "${enable_static+set}" = set; then :
8087 enableval
=$enable_static; p
=${PACKAGE-default}
8089 yes) enable_static
=yes ;;
8090 no
) enable_static
=no
;;
8093 # Look at the argument we got. We use all the common list separators.
8094 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8095 for pkg
in $enableval; do
8097 if test "X$pkg" = "X$p"; then
8117 # Check whether --with-pic was given.
8118 if test "${with_pic+set}" = set; then :
8119 withval
=$with_pic; lt_p
=${PACKAGE-default}
8121 yes|no
) pic_mode
=$withval ;;
8124 # Look at the argument we got. We use all the common list separators.
8125 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8126 for lt_pkg
in $withval; do
8128 if test "X$lt_pkg" = "X$lt_p"; then
8146 # Check whether --enable-fast-install was given.
8147 if test "${enable_fast_install+set}" = set; then :
8148 enableval
=$enable_fast_install; p
=${PACKAGE-default}
8150 yes) enable_fast_install
=yes ;;
8151 no
) enable_fast_install
=no
;;
8153 enable_fast_install
=no
8154 # Look at the argument we got. We use all the common list separators.
8155 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8156 for pkg
in $enableval; do
8158 if test "X$pkg" = "X$p"; then
8159 enable_fast_install
=yes
8166 enable_fast_install
=yes
8176 shared_archive_member_spec
=
8177 case $host,$enable_shared in
8178 power
*-*-aix[5-9]*,yes)
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8180 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8182 # Check whether --with-aix-soname was given.
8183 if test "${with_aix_soname+set}" = set; then :
8184 withval
=$with_aix_soname; case $withval in
8188 as_fn_error $?
"Unknown argument to --with-aix-soname" "$LINENO" 5
8191 lt_cv_with_aix_soname
=$with_aix_soname
8193 if ${lt_cv_with_aix_soname+:} false
; then :
8194 $as_echo_n "(cached) " >&6
8196 lt_cv_with_aix_soname
=aix
8199 with_aix_soname
=$lt_cv_with_aix_soname
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8203 $as_echo "$with_aix_soname" >&6; }
8204 if test aix
!= "$with_aix_soname"; then
8205 # For the AIX way of multilib, we name the shared archive member
8206 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8207 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8208 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8209 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8210 if test 64 = "${OBJECT_MODE-32}"; then
8211 shared_archive_member_spec
=shr_64
8213 shared_archive_member_spec
=shr
8231 # This can be used to rebuild libtool when needed
8232 LIBTOOL_DEPS
=$ltmain
8234 # Always use our own libtool.
8235 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
8266 test -z "$LN_S" && LN_S
="ln -s"
8281 if test -n "${ZSH_VERSION+set}"; then
8282 setopt NO_GLOB_SUBST
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8286 $as_echo_n "checking for objdir... " >&6; }
8287 if ${lt_cv_objdir+:} false
; then :
8288 $as_echo_n "(cached) " >&6
8290 rm -f .libs
2>/dev
/null
8291 mkdir .libs
2>/dev
/null
8292 if test -d .libs
; then
8295 # MS-DOS does not allow filenames that begin with a dot.
8298 rmdir .libs
2>/dev
/null
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8301 $as_echo "$lt_cv_objdir" >&6; }
8302 objdir
=$lt_cv_objdir
8308 cat >>confdefs.h
<<_ACEOF
8309 #define LT_OBJDIR "$lt_cv_objdir/"
8317 # AIX sometimes has problems with the GCC collect2 program. For some
8318 # reason, if we set the COLLECT_NAMES environment variable, the problems
8319 # vanish in a puff of smoke.
8320 if test set != "${COLLECT_NAMES+set}"; then
8322 export COLLECT_NAMES
8329 can_build_shared
=yes
8331 # All known linkers require a '.a' archive for static linking (except MSVC,
8332 # which needs '.lib').
8335 with_gnu_ld
=$lt_cv_prog_gnu_ld
8340 # Set sane defaults for various variables
8341 test -z "$CC" && CC
=cc
8342 test -z "$LTCC" && LTCC
=$CC
8343 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8344 test -z "$LD" && LD
=ld
8345 test -z "$ac_objext" && ac_objext
=o
8347 func_cc_basename
$compiler
8348 cc_basename
=$func_cc_basename_result
8351 # Only perform the check for file, if the check method requires it
8352 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8353 case $deplibs_check_method in
8355 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8357 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8358 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8359 $as_echo_n "(cached) " >&6
8363 lt_cv_path_MAGIC_CMD
=$MAGIC_CMD # Let the user override the test with a path.
8366 lt_save_MAGIC_CMD
=$MAGIC_CMD
8367 lt_save_ifs
=$IFS; IFS
=$PATH_SEPARATOR
8368 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8369 for ac_dir
in $ac_dummy; do
8371 test -z "$ac_dir" && ac_dir
=.
8372 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8373 lt_cv_path_MAGIC_CMD
=$ac_dir/"${ac_tool_prefix}file"
8374 if test -n "$file_magic_test_file"; then
8375 case $deplibs_check_method in
8377 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8378 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8379 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8380 $EGREP "$file_magic_regex" > /dev
/null
; then
8385 *** Warning: the command libtool uses to detect shared libraries,
8386 *** $file_magic_cmd, produces output that libtool cannot recognize.
8387 *** The result is that libtool may fail to recognize shared libraries
8388 *** as such. This will affect the creation of libtool libraries that
8389 *** depend on shared libraries, but programs linked with such libtool
8390 *** libraries will work regardless of this problem. Nevertheless, you
8391 *** may want to report the problem to your system manager and/or to
8392 *** bug-libtool@gnu.org
8402 MAGIC_CMD
=$lt_save_MAGIC_CMD
8407 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8408 if test -n "$MAGIC_CMD"; then
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8410 $as_echo "$MAGIC_CMD" >&6; }
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8413 $as_echo "no" >&6; }
8420 if test -z "$lt_cv_path_MAGIC_CMD"; then
8421 if test -n "$ac_tool_prefix"; then
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8423 $as_echo_n "checking for file... " >&6; }
8424 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8425 $as_echo_n "(cached) " >&6
8429 lt_cv_path_MAGIC_CMD
=$MAGIC_CMD # Let the user override the test with a path.
8432 lt_save_MAGIC_CMD
=$MAGIC_CMD
8433 lt_save_ifs
=$IFS; IFS
=$PATH_SEPARATOR
8434 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8435 for ac_dir
in $ac_dummy; do
8437 test -z "$ac_dir" && ac_dir
=.
8438 if test -f "$ac_dir/file"; then
8439 lt_cv_path_MAGIC_CMD
=$ac_dir/"file"
8440 if test -n "$file_magic_test_file"; then
8441 case $deplibs_check_method in
8443 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8444 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8445 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8446 $EGREP "$file_magic_regex" > /dev
/null
; then
8451 *** Warning: the command libtool uses to detect shared libraries,
8452 *** $file_magic_cmd, produces output that libtool cannot recognize.
8453 *** The result is that libtool may fail to recognize shared libraries
8454 *** as such. This will affect the creation of libtool libraries that
8455 *** depend on shared libraries, but programs linked with such libtool
8456 *** libraries will work regardless of this problem. Nevertheless, you
8457 *** may want to report the problem to your system manager and/or to
8458 *** bug-libtool@gnu.org
8468 MAGIC_CMD
=$lt_save_MAGIC_CMD
8473 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8474 if test -n "$MAGIC_CMD"; then
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8476 $as_echo "$MAGIC_CMD" >&6; }
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8479 $as_echo "no" >&6; }
8492 # Use C for the default configuration in the libtool script
8496 ac_cpp
='$CPP $CPPFLAGS'
8497 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8498 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8499 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8502 # Source file extension for C test sources.
8505 # Object file extension for compiled C test sources.
8509 # Code to be used in simple compile tests
8510 lt_simple_compile_test_code
="int some_variable = 0;"
8512 # Code to be used in simple link tests
8513 lt_simple_link_test_code
='int main(){return(0);}'
8521 # If no C compiler was specified, use CC.
8524 # If no C compiler flags were specified, use CFLAGS.
8525 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8527 # Allow CC to be a program name with arguments.
8530 # Save the default compiler, since it gets overwritten when the other
8531 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8532 compiler_DEFAULT
=$CC
8534 # save warnings/boilerplate of simple test code
8535 ac_outfile
=conftest.
$ac_objext
8536 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8537 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8538 _lt_compiler_boilerplate
=`cat conftest.err`
8541 ac_outfile
=conftest.
$ac_objext
8542 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8543 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8544 _lt_linker_boilerplate
=`cat conftest.err`
8549 ## There is no encapsulation within the following macros, do not change
8550 ## the running order or otherwise move them around unless you know exactly
8551 ## what you are doing...
8552 if test -n "$compiler"; then
8554 lt_prog_compiler_no_builtin_flag
=
8556 if test yes = "$GCC"; then
8557 case $cc_basename in
8559 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8561 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8565 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8566 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
8567 $as_echo_n "(cached) " >&6
8569 lt_cv_prog_compiler_rtti_exceptions
=no
8570 ac_outfile
=conftest.
$ac_objext
8571 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8572 lt_compiler_flag
="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8573 # Insert the option either (1) after the last *FLAGS variable, or
8574 # (2) before a word containing "conftest.", or (3) at the end.
8575 # Note that $ac_compile itself does not contain backslashes and begins
8576 # with a dollar sign (not a hyphen), so the echo should work correctly.
8577 # The option is referenced via a variable to avoid confusing sed.
8578 lt_compile
=`echo "$ac_compile" | $SED \
8579 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8580 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8581 -e 's:$: $lt_compiler_flag:'`
8582 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8583 (eval "$lt_compile" 2>conftest.err
)
8585 cat conftest.err
>&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 if (exit $ac_status) && test -s "$ac_outfile"; then
8588 # The compiler can only warn and ignore the option if not recognized
8589 # So say no if there are warnings other than the usual output.
8590 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8591 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8592 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8593 lt_cv_prog_compiler_rtti_exceptions
=yes
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8600 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8602 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8603 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8615 lt_prog_compiler_wl
=
8616 lt_prog_compiler_pic
=
8617 lt_prog_compiler_static
=
8620 if test yes = "$GCC"; then
8621 lt_prog_compiler_wl
='-Wl,'
8622 lt_prog_compiler_static
='-static'
8626 # All AIX code is PIC.
8627 if test ia64
= "$host_cpu"; then
8628 # AIX 5 now supports IA64 processor
8629 lt_prog_compiler_static
='-Bstatic'
8631 lt_prog_compiler_pic
='-fPIC'
8637 # see comment about AmigaOS4 .so support
8638 lt_prog_compiler_pic
='-fPIC'
8641 # FIXME: we need at least 68020 code to build shared libraries, but
8642 # adding the '-m68020' flag to GCC prevents building anything better,
8644 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8649 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8650 # PIC is the default for these OSes.
8653 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8654 # This hack is so that the source file can tell whether it is being
8655 # built for inclusion in a dll (and should export symbols for example).
8656 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8657 # (--disable-auto-import) libraries
8658 lt_prog_compiler_pic
='-DDLL_EXPORT'
8661 lt_prog_compiler_static
='$wl-static'
8666 darwin
* | rhapsody
*)
8667 # PIC is the default on this platform
8668 # Common symbols not allowed in MH_DYLIB files
8669 lt_prog_compiler_pic
='-fno-common'
8673 # PIC is the default for Haiku.
8674 # The "-static" flag exists, but is broken.
8675 lt_prog_compiler_static
=
8679 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8680 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8681 # sets the default TLS model and affects inlining.
8687 lt_prog_compiler_pic
='-fPIC'
8693 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8694 # Instead, we relocate shared libraries at runtime.
8698 # Just because we use GCC doesn't mean we suddenly get shared libraries
8699 # on systems that don't support them.
8700 lt_prog_compiler_can_build_shared
=no
8705 # QNX uses GNU C++, but need to define -shared option too, otherwise
8707 lt_prog_compiler_pic
='-fPIC -shared'
8711 if test -d /usr
/nec
; then
8712 lt_prog_compiler_pic
=-Kconform_pic
8717 lt_prog_compiler_pic
='-fPIC'
8721 case $cc_basename in
8722 nvcc
*) # Cuda Compiler Driver 2.2
8723 lt_prog_compiler_wl
='-Xlinker '
8724 if test -n "$lt_prog_compiler_pic"; then
8725 lt_prog_compiler_pic
="-Xcompiler $lt_prog_compiler_pic"
8730 # PORTME Check for flag to pass linker flags through the system compiler.
8733 lt_prog_compiler_wl
='-Wl,'
8734 if test ia64
= "$host_cpu"; then
8735 # AIX 5 now supports IA64 processor
8736 lt_prog_compiler_static
='-Bstatic'
8738 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8742 darwin
* | rhapsody
*)
8743 # PIC is the default on this platform
8744 # Common symbols not allowed in MH_DYLIB files
8745 lt_prog_compiler_pic
='-fno-common'
8746 case $cc_basename in
8748 # NAG Fortran compiler
8749 lt_prog_compiler_wl
='-Wl,-Wl,,'
8750 lt_prog_compiler_pic
='-PIC'
8751 lt_prog_compiler_static
='-Bstatic'
8756 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8757 # This hack is so that the source file can tell whether it is being
8758 # built for inclusion in a dll (and should export symbols for example).
8759 lt_prog_compiler_pic
='-DDLL_EXPORT'
8762 lt_prog_compiler_static
='$wl-static'
8767 hpux9
* | hpux10
* | hpux11
*)
8768 lt_prog_compiler_wl
='-Wl,'
8769 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8776 lt_prog_compiler_pic
='+Z'
8779 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8780 lt_prog_compiler_static
='$wl-a ${wl}archive'
8783 irix5
* | irix6
* | nonstopux
*)
8784 lt_prog_compiler_wl
='-Wl,'
8785 # PIC (with -KPIC) is the default.
8786 lt_prog_compiler_static
='-non_shared'
8789 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
8790 case $cc_basename in
8791 # old Intel for x86_64, which still supported -KPIC.
8793 lt_prog_compiler_wl
='-Wl,'
8794 lt_prog_compiler_pic
='-KPIC'
8795 lt_prog_compiler_static
='-static'
8797 # icc used to be incompatible with GCC.
8798 # ICC 10 doesn't accept -KPIC any more.
8800 lt_prog_compiler_wl
='-Wl,'
8801 lt_prog_compiler_pic
='-fPIC'
8802 lt_prog_compiler_static
='-static'
8804 # Lahey Fortran 8.1.
8806 lt_prog_compiler_wl
='-Wl,'
8807 lt_prog_compiler_pic
='--shared'
8808 lt_prog_compiler_static
='--static'
8811 # NAG Fortran compiler
8812 lt_prog_compiler_wl
='-Wl,-Wl,,'
8813 lt_prog_compiler_pic
='-PIC'
8814 lt_prog_compiler_static
='-Bstatic'
8817 # Fabrice Bellard et al's Tiny C Compiler
8818 lt_prog_compiler_wl
='-Wl,'
8819 lt_prog_compiler_pic
='-fPIC'
8820 lt_prog_compiler_static
='-static'
8822 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8823 # Portland Group compilers (*not* the Pentium gcc compiler,
8824 # which looks to be a dead project)
8825 lt_prog_compiler_wl
='-Wl,'
8826 lt_prog_compiler_pic
='-fpic'
8827 lt_prog_compiler_static
='-Bstatic'
8830 lt_prog_compiler_wl
='-Wl,'
8831 # All Alpha code is PIC.
8832 lt_prog_compiler_static
='-non_shared'
8834 xl
* | bgxl
* | bgf
* | mpixl
*)
8835 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8836 lt_prog_compiler_wl
='-Wl,'
8837 lt_prog_compiler_pic
='-qpic'
8838 lt_prog_compiler_static
='-qstaticlink'
8841 case `$CC -V 2>&1 | sed 5q` in
8842 *Sun\ Ceres\ Fortran
* |
*Sun
*Fortran
*\
[1-7].
* |
*Sun
*Fortran
*\
8.
[0-3]*)
8843 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8844 lt_prog_compiler_pic
='-KPIC'
8845 lt_prog_compiler_static
='-Bstatic'
8846 lt_prog_compiler_wl
=''
8848 *Sun\ F
* |
*Sun
*Fortran
*)
8849 lt_prog_compiler_pic
='-KPIC'
8850 lt_prog_compiler_static
='-Bstatic'
8851 lt_prog_compiler_wl
='-Qoption ld '
8855 lt_prog_compiler_pic
='-KPIC'
8856 lt_prog_compiler_static
='-Bstatic'
8857 lt_prog_compiler_wl
='-Wl,'
8859 *Intel
*\
[CF
]*Compiler
*)
8860 lt_prog_compiler_wl
='-Wl,'
8861 lt_prog_compiler_pic
='-fPIC'
8862 lt_prog_compiler_static
='-static'
8865 lt_prog_compiler_wl
='-Wl,'
8866 lt_prog_compiler_pic
='-fpic'
8867 lt_prog_compiler_static
='-Bstatic'
8875 lt_prog_compiler_pic
='-KPIC'
8876 lt_prog_compiler_static
='-Bstatic'
8880 # QNX uses GNU C++, but need to define -shared option too, otherwise
8882 lt_prog_compiler_pic
='-fPIC -shared'
8885 osf3
* | osf4
* | osf5
*)
8886 lt_prog_compiler_wl
='-Wl,'
8887 # All OSF/1 code is PIC.
8888 lt_prog_compiler_static
='-non_shared'
8892 lt_prog_compiler_static
='-non_shared'
8896 lt_prog_compiler_pic
='-KPIC'
8897 lt_prog_compiler_static
='-Bstatic'
8898 case $cc_basename in
8899 f77
* | f90
* | f95
* | sunf77
* | sunf90
* | sunf95
*)
8900 lt_prog_compiler_wl
='-Qoption ld ';;
8902 lt_prog_compiler_wl
='-Wl,';;
8907 lt_prog_compiler_wl
='-Qoption ld '
8908 lt_prog_compiler_pic
='-PIC'
8909 lt_prog_compiler_static
='-Bstatic'
8912 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8913 lt_prog_compiler_wl
='-Wl,'
8914 lt_prog_compiler_pic
='-KPIC'
8915 lt_prog_compiler_static
='-Bstatic'
8919 if test -d /usr
/nec
; then
8920 lt_prog_compiler_pic
='-Kconform_pic'
8921 lt_prog_compiler_static
='-Bstatic'
8925 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8926 lt_prog_compiler_wl
='-Wl,'
8927 lt_prog_compiler_pic
='-KPIC'
8928 lt_prog_compiler_static
='-Bstatic'
8932 lt_prog_compiler_wl
='-Wl,'
8933 lt_prog_compiler_can_build_shared
=no
8937 lt_prog_compiler_pic
='-pic'
8938 lt_prog_compiler_static
='-Bstatic'
8942 lt_prog_compiler_can_build_shared
=no
8948 # For platforms that do not support PIC, -DPIC is meaningless:
8950 lt_prog_compiler_pic
=
8953 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8958 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8959 if ${lt_cv_prog_compiler_pic+:} false
; then :
8960 $as_echo_n "(cached) " >&6
8962 lt_cv_prog_compiler_pic
=$lt_prog_compiler_pic
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8965 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8966 lt_prog_compiler_pic
=$lt_cv_prog_compiler_pic
8969 # Check to make sure the PIC flag actually works.
8971 if test -n "$lt_prog_compiler_pic"; then
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8973 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8974 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
8975 $as_echo_n "(cached) " >&6
8977 lt_cv_prog_compiler_pic_works
=no
8978 ac_outfile
=conftest.
$ac_objext
8979 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8980 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8981 # Insert the option either (1) after the last *FLAGS variable, or
8982 # (2) before a word containing "conftest.", or (3) at the end.
8983 # Note that $ac_compile itself does not contain backslashes and begins
8984 # with a dollar sign (not a hyphen), so the echo should work correctly.
8985 # The option is referenced via a variable to avoid confusing sed.
8986 lt_compile
=`echo "$ac_compile" | $SED \
8987 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8988 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8989 -e 's:$: $lt_compiler_flag:'`
8990 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8991 (eval "$lt_compile" 2>conftest.err
)
8993 cat conftest.err
>&5
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 if (exit $ac_status) && test -s "$ac_outfile"; then
8996 # The compiler can only warn and ignore the option if not recognized
8997 # So say no if there are warnings other than the usual output.
8998 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8999 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9000 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
9001 lt_cv_prog_compiler_pic_works
=yes
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9008 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9010 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9011 case $lt_prog_compiler_pic in
9013 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
9016 lt_prog_compiler_pic
=
9017 lt_prog_compiler_can_build_shared
=no
9033 # Check to make sure the static flag actually works.
9035 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9037 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9038 if ${lt_cv_prog_compiler_static_works+:} false
; then :
9039 $as_echo_n "(cached) " >&6
9041 lt_cv_prog_compiler_static_works
=no
9042 save_LDFLAGS
=$LDFLAGS
9043 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
9044 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9045 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9046 # The linker can only warn and ignore the option if not recognized
9047 # So say no if there are warnings
9048 if test -s conftest.err
; then
9049 # Append any errors to the config.log.
9050 cat conftest.err
1>&5
9051 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9052 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9053 if diff conftest.exp conftest.er2
>/dev
/null
; then
9054 lt_cv_prog_compiler_static_works
=yes
9057 lt_cv_prog_compiler_static_works
=yes
9061 LDFLAGS
=$save_LDFLAGS
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9065 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9067 if test yes = "$lt_cv_prog_compiler_static_works"; then
9070 lt_prog_compiler_static
=
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9080 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9081 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9082 $as_echo_n "(cached) " >&6
9084 lt_cv_prog_compiler_c_o
=no
9085 $RM -r conftest
2>/dev
/null
9089 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9091 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9092 # Insert the option either (1) after the last *FLAGS variable, or
9093 # (2) before a word containing "conftest.", or (3) at the end.
9094 # Note that $ac_compile itself does not contain backslashes and begins
9095 # with a dollar sign (not a hyphen), so the echo should work correctly.
9096 lt_compile
=`echo "$ac_compile" | $SED \
9097 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9098 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9099 -e 's:$: $lt_compiler_flag:'`
9100 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9101 (eval "$lt_compile" 2>out
/conftest.err
)
9103 cat out
/conftest.err
>&5
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9107 # The compiler can only warn and ignore the option if not recognized
9108 # So say no if there are warnings
9109 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
9110 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9111 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9112 lt_cv_prog_compiler_c_o
=yes
9117 # SGI C++ compiler will create directory out/ii_files/ for
9118 # template instantiation
9119 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9120 $RM out
/* && rmdir out
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9127 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9135 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9136 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9137 $as_echo_n "(cached) " >&6
9139 lt_cv_prog_compiler_c_o
=no
9140 $RM -r conftest
2>/dev
/null
9144 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9146 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9147 # Insert the option either (1) after the last *FLAGS variable, or
9148 # (2) before a word containing "conftest.", or (3) at the end.
9149 # Note that $ac_compile itself does not contain backslashes and begins
9150 # with a dollar sign (not a hyphen), so the echo should work correctly.
9151 lt_compile
=`echo "$ac_compile" | $SED \
9152 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9153 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9154 -e 's:$: $lt_compiler_flag:'`
9155 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9156 (eval "$lt_compile" 2>out
/conftest.err
)
9158 cat out
/conftest.err
>&5
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9162 # The compiler can only warn and ignore the option if not recognized
9163 # So say no if there are warnings
9164 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
9165 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9166 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9167 lt_cv_prog_compiler_c_o
=yes
9172 # SGI C++ compiler will create directory out/ii_files/ for
9173 # template instantiation
9174 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9175 $RM out
/* && rmdir out
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9182 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9187 hard_links
=nottested
9188 if test no
= "$lt_cv_prog_compiler_c_o" && test no
!= "$need_locks"; then
9189 # do not overwrite the value of need_locks provided by the user
9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9191 $as_echo_n "checking if we can lock with hard links... " >&6; }
9194 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9196 ln conftest.a conftest.b
2>&5 || hard_links
=no
9197 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9199 $as_echo "$hard_links" >&6; }
9200 if test no
= "$hard_links"; then
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9202 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9215 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9218 allow_undefined_flag
=
9219 always_export_symbols
=no
9221 archive_expsym_cmds
=
9222 compiler_needs_object
=no
9223 enable_shared_with_static_runtimes
=no
9224 export_dynamic_flag_spec
=
9225 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9226 hardcode_automatic
=no
9228 hardcode_direct_absolute
=no
9229 hardcode_libdir_flag_spec
=
9230 hardcode_libdir_separator
=
9232 hardcode_shlibpath_var
=unsupported
9234 link_all_deplibs
=unknown
9237 old_archive_from_new_cmds
=
9238 old_archive_from_expsyms_cmds
=
9239 thread_safe_flag_spec
=
9240 whole_archive_flag_spec
=
9241 # include_expsyms should be a list of space-separated symbols to be *always*
9242 # included in the symbol list
9244 # exclude_expsyms can be an extended regexp of symbols to exclude
9245 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9246 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9247 # as well as any symbol that contains 'd'.
9248 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9249 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9250 # platforms (ab)use it in PIC code, but their linkers get confused if
9251 # the symbol is explicitly referenced. Since portable code cannot
9252 # rely on this symbol name, it's probably fine to never include it in
9253 # preloaded symbol tables.
9254 # Exclude shared library initialization/finalization symbols.
9255 extract_expsyms_cmds
=
9258 cygwin
* | mingw
* | pw32
* | cegcc
*)
9259 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9260 # When not using gcc, we currently assume that we are using
9261 # Microsoft Visual C++.
9262 if test yes != "$GCC"; then
9267 # we just hope/assume this is gcc and not c89 (= MSVC++)
9273 linux
* | k
*bsd
*-gnu | gnu
*)
9280 # On some targets, GNU ld is compatible enough with the native linker
9281 # that we're better off using the native interface for both.
9282 lt_use_gnu_ld_interface
=no
9283 if test yes = "$with_gnu_ld"; then
9286 # The AIX port of GNU ld has always aspired to compatibility
9287 # with the native linker. However, as the warning in the GNU ld
9288 # block says, versions before 2.19.5* couldn't really create working
9289 # shared libraries, regardless of the interface used.
9290 case `$LD -v 2>&1` in
9291 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
9292 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
9293 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
9295 lt_use_gnu_ld_interface
=yes
9300 lt_use_gnu_ld_interface
=yes
9305 if test yes = "$lt_use_gnu_ld_interface"; then
9306 # If archive_cmds runs LD, not CC, wlarc should be empty
9309 # Set some defaults for GNU ld with shared library support. These
9310 # are reset later if shared libraries are not supported. Putting them
9311 # here allows them to be overridden if necessary.
9312 runpath_var
=LD_RUN_PATH
9313 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
9314 export_dynamic_flag_spec
='$wl--export-dynamic'
9315 # ancient GNU ld didn't support --whole-archive et. al.
9316 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
9317 whole_archive_flag_spec
=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9319 whole_archive_flag_spec
=
9321 supports_anon_versioning
=no
9322 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9323 *GNU\ gold
*) supports_anon_versioning
=yes ;;
9324 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
9325 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9326 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9327 *\
2.11.
*) ;; # other 2.11 versions
9328 *) supports_anon_versioning
=yes ;;
9331 # See if GNU ld supports shared libraries.
9334 # On AIX/PPC, the GNU linker is very broken
9335 if test ia64
!= "$host_cpu"; then
9339 *** Warning: the GNU linker, at least up to release 2.19, is reported
9340 *** to be unable to reliably create shared libraries on AIX.
9341 *** Therefore, libtool is disabling shared libraries support. If you
9342 *** really care for shared libraries, you may want to install binutils
9343 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9344 *** You will then need to restart the configuration process.
9353 # see comment about AmigaOS4 .so support
9354 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9355 archive_expsym_cmds
=''
9358 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)'
9359 hardcode_libdir_flag_spec
='-L$libdir'
9360 hardcode_minus_L
=yes
9366 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9367 allow_undefined_flag
=unsupported
9368 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9369 # support --undefined. This deserves some investigation. FIXME
9370 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9376 cygwin
* | mingw
* | pw32
* | cegcc
*)
9377 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9378 # as there is no search path for DLLs.
9379 hardcode_libdir_flag_spec
='-L$libdir'
9380 export_dynamic_flag_spec
='$wl--export-all-symbols'
9381 allow_undefined_flag
=unsupported
9382 always_export_symbols
=no
9383 enable_shared_with_static_runtimes
=yes
9384 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'
9385 exclude_expsyms
='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9387 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9388 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9389 # If the export-symbols file already is a .def file, use it as
9390 # is; otherwise, prepend EXPORTS...
9391 archive_expsym_cmds
='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9392 cp $export_symbols $output_objdir/$soname.def;
9394 echo EXPORTS > $output_objdir/$soname.def;
9395 cat $export_symbols >> $output_objdir/$soname.def;
9397 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9404 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9405 link_all_deplibs
=yes
9409 hardcode_libdir_flag_spec
='-L$libdir'
9410 hardcode_minus_L
=yes
9411 allow_undefined_flag
=unsupported
9413 archive_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9414 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9415 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9416 $ECHO EXPORTS >> $output_objdir/$libname.def~
9417 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9418 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9419 emximp -o $lib $output_objdir/$libname.def'
9420 archive_expsym_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9421 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9422 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9423 $ECHO EXPORTS >> $output_objdir/$libname.def~
9425 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9426 prefix_cmds="$prefix_cmds -e 1d";
9428 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9429 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9430 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9431 emximp -o $lib $output_objdir/$libname.def'
9432 old_archive_From_new_cmds
='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9433 enable_shared_with_static_runtimes
=yes
9438 hardcode_shlibpath_var
=no
9439 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
9440 export_dynamic_flag_spec
='$wl-E'
9441 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9442 # Instead, shared libraries are loaded at an image base (0x10000000 by
9443 # default) and relocated if they conflict, which is a slow very memory
9444 # consuming and fragmenting process. To avoid this, we pick a random,
9445 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9446 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9447 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9448 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'
9451 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9453 if test linux-dietlibc
= "$host_os"; then
9454 case $cc_basename in
9455 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9458 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9459 && test no
= "$tmp_diet"
9461 tmp_addflag
=' $pic_flag'
9462 tmp_sharedflag
='-shared'
9463 case $cc_basename,$host_cpu in
9464 pgcc
*) # Portland Group C compiler
9465 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'
9466 tmp_addflag
=' $pic_flag'
9468 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9469 # Portland Group f77 and f90 compilers
9470 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'
9471 tmp_addflag
=' $pic_flag -Mnomain' ;;
9472 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9473 tmp_addflag
=' -i_dynamic' ;;
9474 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9475 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9476 ifc
* | ifort
*) # Intel Fortran compiler
9477 tmp_addflag
=' -nofor_main' ;;
9478 lf95
*) # Lahey Fortran 8.1
9479 whole_archive_flag_spec
=
9480 tmp_sharedflag
='--shared' ;;
9481 nagfor
*) # NAGFOR 5.3
9482 tmp_sharedflag
='-Wl,-shared' ;;
9483 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9484 tmp_sharedflag
='-qmkshrobj'
9486 nvcc
*) # Cuda Compiler Driver 2.2
9487 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'
9488 compiler_needs_object
=yes
9491 case `$CC -V 2>&1 | sed 5q` in
9492 *Sun\ C
*) # Sun C 5.9
9493 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'
9494 compiler_needs_object
=yes
9495 tmp_sharedflag
='-G' ;;
9496 *Sun\ F
*) # Sun Fortran 8.3
9497 tmp_sharedflag
='-G' ;;
9499 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9501 if test yes = "$supports_anon_versioning"; then
9502 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9503 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9504 echo "local: *; };" >> $output_objdir/$libname.ver~
9505 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9508 case $cc_basename in
9510 export_dynamic_flag_spec
='-rdynamic'
9512 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9513 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9514 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9515 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
9516 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9517 if test yes = "$supports_anon_versioning"; then
9518 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9519 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9520 echo "local: *; };" >> $output_objdir/$libname.ver~
9521 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9530 netbsd
* | netbsdelf
*-gnu)
9531 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9532 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9535 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9536 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9541 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9545 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9546 *** create shared libraries on Solaris systems. Therefore, libtool
9547 *** is disabling shared libraries support. We urge you to upgrade GNU
9548 *** binutils to release 2.9.1 or newer. Another option is to modify
9549 *** your PATH or compiler configuration so that the native linker is
9550 *** used, and then restart.
9553 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9554 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9555 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9561 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9562 case `$LD -v 2>&1` in
9563 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9567 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9568 *** reliably create shared libraries on SCO systems. Therefore, libtool
9569 *** is disabling shared libraries support. We urge you to upgrade GNU
9570 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9571 *** your PATH or compiler configuration so that the native linker is
9572 *** used, and then restart.
9577 # For security reasons, it is highly recommended that you always
9578 # use absolute paths for naming shared libraries, and exclude the
9579 # DT_RUNPATH tag from executables and libraries. But doing so
9580 # requires that you compile everything twice, which is a pain.
9581 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9582 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
9583 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9584 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9593 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9596 hardcode_shlibpath_var
=no
9600 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9601 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9602 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9609 if test no
= "$ld_shlibs"; then
9611 hardcode_libdir_flag_spec
=
9612 export_dynamic_flag_spec
=
9613 whole_archive_flag_spec
=
9616 # PORTME fill in a description of your system's linker (not GNU ld)
9619 allow_undefined_flag
=unsupported
9620 always_export_symbols
=yes
9621 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'
9622 # Note: this linker hardcodes the directories in LIBPATH if there
9623 # are no directories specified by -L.
9624 hardcode_minus_L
=yes
9625 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9626 # Neither direct hardcoding nor static linking is supported with a
9628 hardcode_direct
=unsupported
9633 if test ia64
= "$host_cpu"; then
9634 # On IA64, the linker does run time linking by default, so we don't
9635 # have to do anything special.
9636 aix_use_runtimelinking
=no
9637 exp_sym_flag
='-Bexport'
9640 # If we're using GNU nm, then we don't want the "-C" option.
9641 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9642 # Without the "-l" option, or with the "-B" option, AIX nm treats
9643 # weak defined symbols like other global defined symbols, whereas
9644 # GNU nm marks them as "W".
9645 # While the 'weak' keyword is ignored in the Export File, we need
9646 # it in the Import File for the 'aix-soname' feature, so we have
9647 # to replace the "-B" option with "-P" for AIX nm.
9648 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9649 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'
9651 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'
9653 aix_use_runtimelinking
=no
9655 # Test if we are trying to use run time linking or normal
9656 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9657 # have runtime linking enabled, and use it for executables.
9658 # For shared libraries, we enable/disable runtime linking
9659 # depending on the kind of the shared library created -
9660 # when "with_aix_soname,aix_use_runtimelinking" is:
9661 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9662 # "aix,yes" lib.so shared, rtl:yes, for executables
9663 # lib.a static archive
9664 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9665 # lib.a(lib.so.V) shared, rtl:no, for executables
9666 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9667 # lib.a(lib.so.V) shared, rtl:no
9668 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9669 # lib.a static archive
9670 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9671 for ld_flag
in $LDFLAGS; do
9672 if (test x-brtl
= "x$ld_flag" ||
test x-Wl
,-brtl = "x$ld_flag"); then
9673 aix_use_runtimelinking
=yes
9677 if test svr4
,no
= "$with_aix_soname,$aix_use_runtimelinking"; then
9678 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9679 # so we don't have lib.a shared libs to link our executables.
9680 # We have to force runtime linking in this case.
9681 aix_use_runtimelinking
=yes
9682 LDFLAGS
="$LDFLAGS -Wl,-brtl"
9687 exp_sym_flag
='-bexport'
9688 no_entry_flag
='-bnoentry'
9691 # When large executables or shared objects are built, AIX ld can
9692 # have problems creating the table of contents. If linking a library
9693 # or program results in "error TOC overflow" add -mminimal-toc to
9694 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9695 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9699 hardcode_direct_absolute
=yes
9700 hardcode_libdir_separator
=':'
9701 link_all_deplibs
=yes
9702 file_list_spec
='$wl-f,'
9703 case $with_aix_soname,$aix_use_runtimelinking in
9704 aix
,*) ;; # traditional, no import file
9705 svr4
,* |
*,yes) # use import file
9706 # The Import File defines what to hardcode.
9708 hardcode_direct_absolute
=no
9712 if test yes = "$GCC"; then
9713 case $host_os in aix4.
[012]|aix4.
[012].
*)
9714 # We only want to do this on AIX 4.2 and lower, the check
9715 # below for broken collect2 doesn't work under 4.3+
9716 collect2name
=`$CC -print-prog-name=collect2`
9717 if test -f "$collect2name" &&
9718 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9720 # We have reworked collect2
9723 # We have old collect2
9724 hardcode_direct
=unsupported
9725 # It fails to find uninstalled libraries when the uninstalled
9726 # path is not listed in the libpath. Setting hardcode_minus_L
9727 # to unsupported forces relinking
9728 hardcode_minus_L
=yes
9729 hardcode_libdir_flag_spec
='-L$libdir'
9730 hardcode_libdir_separator
=
9734 shared_flag
='-shared'
9735 if test yes = "$aix_use_runtimelinking"; then
9736 shared_flag
="$shared_flag "'$wl-G'
9738 # Need to ensure runtime linking is disabled for the traditional
9739 # shared library, or the linker may eventually find shared libraries
9740 # /with/ Import File - we do not want to mix them.
9741 shared_flag_aix
='-shared'
9742 shared_flag_svr4
='-shared $wl-G'
9745 if test ia64
= "$host_cpu"; then
9746 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9747 # chokes on -Wl,-G. The following line is correct:
9750 if test yes = "$aix_use_runtimelinking"; then
9753 shared_flag
='$wl-bM:SRE'
9755 shared_flag_aix
='$wl-bM:SRE'
9756 shared_flag_svr4
='$wl-G'
9760 export_dynamic_flag_spec
='$wl-bexpall'
9761 # It seems that -bexpall does not export symbols beginning with
9762 # underscore (_), so it is better to generate a list of symbols to export.
9763 always_export_symbols
=yes
9764 if test aix
,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9765 # Warning - without using the other runtime loading flags (-brtl),
9766 # -berok will link without error, but may produce a broken library.
9767 allow_undefined_flag
='-berok'
9768 # Determine the default libpath from the value encoded in an
9770 if test set = "${lt_cv_aix_libpath+set}"; then
9771 aix_libpath
=$lt_cv_aix_libpath
9773 if ${lt_cv_aix_libpath_+:} false
; then :
9774 $as_echo_n "(cached) " >&6
9776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9777 /* end confdefs.h. */
9787 if ac_fn_c_try_link
"$LINENO"; then :
9789 lt_aix_libpath_sed
='
9790 /Import File Strings/,/^$/ {
9792 s/^0 *\([^ ]*\) *$/\1/
9796 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9797 # Check for a 64-bit object if we didn't find anything.
9798 if test -z "$lt_cv_aix_libpath_"; then
9799 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9802 rm -f core conftest.err conftest.
$ac_objext \
9803 conftest
$ac_exeext conftest.
$ac_ext
9804 if test -z "$lt_cv_aix_libpath_"; then
9805 lt_cv_aix_libpath_
=/usr
/lib
:/lib
9810 aix_libpath
=$lt_cv_aix_libpath_
9813 hardcode_libdir_flag_spec
='$wl-blibpath:$libdir:'"$aix_libpath"
9814 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
9816 if test ia64
= "$host_cpu"; then
9817 hardcode_libdir_flag_spec
='$wl-R $libdir:/usr/lib:/lib'
9818 allow_undefined_flag
="-z nodefs"
9819 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"
9821 # Determine the default libpath from the value encoded in an
9823 if test set = "${lt_cv_aix_libpath+set}"; then
9824 aix_libpath
=$lt_cv_aix_libpath
9826 if ${lt_cv_aix_libpath_+:} false
; then :
9827 $as_echo_n "(cached) " >&6
9829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9830 /* end confdefs.h. */
9840 if ac_fn_c_try_link
"$LINENO"; then :
9842 lt_aix_libpath_sed
='
9843 /Import File Strings/,/^$/ {
9845 s/^0 *\([^ ]*\) *$/\1/
9849 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9850 # Check for a 64-bit object if we didn't find anything.
9851 if test -z "$lt_cv_aix_libpath_"; then
9852 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9855 rm -f core conftest.err conftest.
$ac_objext \
9856 conftest
$ac_exeext conftest.
$ac_ext
9857 if test -z "$lt_cv_aix_libpath_"; then
9858 lt_cv_aix_libpath_
=/usr
/lib
:/lib
9863 aix_libpath
=$lt_cv_aix_libpath_
9866 hardcode_libdir_flag_spec
='$wl-blibpath:$libdir:'"$aix_libpath"
9867 # Warning - without using the other run time loading flags,
9868 # -berok will link without error, but may produce a broken library.
9869 no_undefined_flag
=' $wl-bernotok'
9870 allow_undefined_flag
=' $wl-berok'
9871 if test yes = "$with_gnu_ld"; then
9872 # We only use this code for GNU lds that support --whole-archive.
9873 whole_archive_flag_spec
='$wl--whole-archive$convenience $wl--no-whole-archive'
9875 # Exported symbols can be pulled into shared objects from archives
9876 whole_archive_flag_spec
='$convenience'
9878 archive_cmds_need_lc
=yes
9879 archive_expsym_cmds
='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9880 # -brtl affects multiple linker settings, -berok does not and is overridden later
9881 compiler_flags_filtered
='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9882 if test svr4
!= "$with_aix_soname"; then
9883 # This is similar to how AIX traditionally builds its shared libraries.
9884 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'
9886 if test aix
!= "$with_aix_soname"; then
9887 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'
9889 # used by -dlpreopen to get the symbols
9890 archive_expsym_cmds
="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9892 archive_expsym_cmds
="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9900 # see comment about AmigaOS4 .so support
9901 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9902 archive_expsym_cmds
=''
9905 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)'
9906 hardcode_libdir_flag_spec
='-L$libdir'
9907 hardcode_minus_L
=yes
9913 export_dynamic_flag_spec
=-rdynamic
9916 cygwin
* | mingw
* | pw32
* | cegcc
*)
9917 # When not using gcc, we currently assume that we are using
9918 # Microsoft Visual C++.
9919 # hardcode_libdir_flag_spec is actually meaningless, as there is
9920 # no search path for DLLs.
9921 case $cc_basename in
9924 hardcode_libdir_flag_spec
=' '
9925 allow_undefined_flag
=unsupported
9926 always_export_symbols
=yes
9928 # Tell ltmain to make .lib files, not .a files.
9930 # Tell ltmain to make .dll files, not .so files.
9932 # FIXME: Setting linknames here is a bad hack.
9933 archive_cmds
='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9934 archive_expsym_cmds
='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9935 cp "$export_symbols" "$output_objdir/$soname.def";
9936 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9938 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9940 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9942 # The linker will not automatically build a static lib if we build a DLL.
9943 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9944 enable_shared_with_static_runtimes
=yes
9945 exclude_expsyms
='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9946 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9948 old_postinstall_cmds
='chmod 644 $oldlib'
9949 postlink_cmds
='lt_outputfile="@OUTPUT@"~
9950 lt_tool_outputfile="@TOOL_OUTPUT@"~
9951 case $lt_outputfile in
9954 lt_outputfile=$lt_outputfile.exe
9955 lt_tool_outputfile=$lt_tool_outputfile.exe
9958 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9959 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9960 $RM "$lt_outputfile.manifest";
9964 # Assume MSVC wrapper
9965 hardcode_libdir_flag_spec
=' '
9966 allow_undefined_flag
=unsupported
9967 # Tell ltmain to make .lib files, not .a files.
9969 # Tell ltmain to make .dll files, not .so files.
9971 # FIXME: Setting linknames here is a bad hack.
9972 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9973 # The linker will automatically build a .lib file if we build a DLL.
9974 old_archive_from_new_cmds
='true'
9975 # FIXME: Should let the user specify the lib program.
9976 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9977 enable_shared_with_static_runtimes
=yes
9982 darwin
* | rhapsody
*)
9985 archive_cmds_need_lc
=no
9987 hardcode_automatic
=yes
9988 hardcode_shlibpath_var
=unsupported
9989 if test yes = "$lt_cv_ld_force_load"; then
9990 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\"`'
9993 whole_archive_flag_spec
=''
9995 link_all_deplibs
=yes
9996 allow_undefined_flag
=$_lt_dar_allow_undefined
9997 case $cc_basename in
9998 ifort
*|nagfor
*) _lt_dar_can_shared
=yes ;;
9999 *) _lt_dar_can_shared
=$GCC ;;
10001 if test yes = "$_lt_dar_can_shared"; then
10002 output_verbose_link_cmd
=func_echo_all
10003 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10004 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10005 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"
10006 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"
10015 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10016 hardcode_libdir_flag_spec
='-L$libdir'
10017 hardcode_shlibpath_var
=no
10020 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10021 # support. Future versions do this automatically, but an explicit c++rt0.o
10022 # does not break anything, and helps significantly (at the cost of a little
10025 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10026 hardcode_libdir_flag_spec
='-R$libdir'
10027 hardcode_direct
=yes
10028 hardcode_shlibpath_var
=no
10031 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10033 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10034 hardcode_direct
=yes
10035 hardcode_minus_L
=yes
10036 hardcode_shlibpath_var
=no
10039 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10040 freebsd
* | dragonfly
*)
10041 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10042 hardcode_libdir_flag_spec
='-R$libdir'
10043 hardcode_direct
=yes
10044 hardcode_shlibpath_var
=no
10048 if test yes = "$GCC"; then
10049 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'
10051 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'
10053 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
10054 hardcode_libdir_separator
=:
10055 hardcode_direct
=yes
10057 # hardcode_minus_L: Not really in the search PATH,
10058 # but as the default location of the library.
10059 hardcode_minus_L
=yes
10060 export_dynamic_flag_spec
='$wl-E'
10064 if test yes,no
= "$GCC,$with_gnu_ld"; then
10065 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10067 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10069 if test no
= "$with_gnu_ld"; then
10070 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
10071 hardcode_libdir_separator
=:
10072 hardcode_direct
=yes
10073 hardcode_direct_absolute
=yes
10074 export_dynamic_flag_spec
='$wl-E'
10075 # hardcode_minus_L: Not really in the search PATH,
10076 # but as the default location of the library.
10077 hardcode_minus_L
=yes
10082 if test yes,no
= "$GCC,$with_gnu_ld"; then
10085 archive_cmds
='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10088 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10091 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10097 archive_cmds
='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10100 archive_cmds
='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10104 # Older versions of the 11.00 compiler do not understand -b yet
10105 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10107 $as_echo_n "checking if $CC understands -b... " >&6; }
10108 if ${lt_cv_prog_compiler__b+:} false
; then :
10109 $as_echo_n "(cached) " >&6
10111 lt_cv_prog_compiler__b
=no
10112 save_LDFLAGS
=$LDFLAGS
10113 LDFLAGS
="$LDFLAGS -b"
10114 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
10115 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
10116 # The linker can only warn and ignore the option if not recognized
10117 # So say no if there are warnings
10118 if test -s conftest.err
; then
10119 # Append any errors to the config.log.
10120 cat conftest.err
1>&5
10121 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
10122 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10123 if diff conftest.exp conftest.er2
>/dev
/null
; then
10124 lt_cv_prog_compiler__b
=yes
10127 lt_cv_prog_compiler__b
=yes
10131 LDFLAGS
=$save_LDFLAGS
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10135 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10137 if test yes = "$lt_cv_prog_compiler__b"; then
10138 archive_cmds
='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10140 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10146 if test no
= "$with_gnu_ld"; then
10147 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
10148 hardcode_libdir_separator
=:
10153 hardcode_shlibpath_var
=no
10156 hardcode_direct
=yes
10157 hardcode_direct_absolute
=yes
10158 export_dynamic_flag_spec
='$wl-E'
10160 # hardcode_minus_L: Not really in the search PATH,
10161 # but as the default location of the library.
10162 hardcode_minus_L
=yes
10168 irix5
* | irix6
* | nonstopux
*)
10169 if test yes = "$GCC"; then
10170 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'
10171 # Try to use the -exported_symbol ld option, if it does not
10172 # work, assume that -exports_file does not work either and
10173 # implicitly export all symbols.
10174 # This should be the same for all languages, so no per-tag cache variable.
10175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10176 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10177 if ${lt_cv_irix_exported_symbol+:} false
; then :
10178 $as_echo_n "(cached) " >&6
10180 save_LDFLAGS
=$LDFLAGS
10181 LDFLAGS
="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10183 /* end confdefs.h. */
10184 int foo (void) { return 0; }
10186 if ac_fn_c_try_link
"$LINENO"; then :
10187 lt_cv_irix_exported_symbol
=yes
10189 lt_cv_irix_exported_symbol
=no
10191 rm -f core conftest.err conftest.
$ac_objext \
10192 conftest
$ac_exeext conftest.
$ac_ext
10193 LDFLAGS
=$save_LDFLAGS
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10196 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10197 if test yes = "$lt_cv_irix_exported_symbol"; then
10198 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'
10200 link_all_deplibs
=no
10202 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'
10203 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'
10205 archive_cmds_need_lc
='no'
10206 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10207 hardcode_libdir_separator
=:
10209 link_all_deplibs
=yes
10213 case $cc_basename in
10215 # Fabrice Bellard et al's Tiny C Compiler
10217 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10222 netbsd
* | netbsdelf
*-gnu)
10223 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10224 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10226 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10228 hardcode_libdir_flag_spec
='-R$libdir'
10229 hardcode_direct
=yes
10230 hardcode_shlibpath_var
=no
10234 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10235 hardcode_direct
=yes
10236 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10237 hardcode_libdir_separator
=:
10238 hardcode_shlibpath_var
=no
10244 openbsd
* | bitrig
*)
10245 if test -f /usr
/libexec
/ld.so
; then
10246 hardcode_direct
=yes
10247 hardcode_shlibpath_var
=no
10248 hardcode_direct_absolute
=yes
10249 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10250 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10251 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10252 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
10253 export_dynamic_flag_spec
='$wl-E'
10255 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10256 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
10264 hardcode_libdir_flag_spec
='-L$libdir'
10265 hardcode_minus_L
=yes
10266 allow_undefined_flag
=unsupported
10268 archive_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10269 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10270 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10271 $ECHO EXPORTS >> $output_objdir/$libname.def~
10272 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10273 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10274 emximp -o $lib $output_objdir/$libname.def'
10275 archive_expsym_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10276 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10277 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10278 $ECHO EXPORTS >> $output_objdir/$libname.def~
10279 prefix_cmds="$SED"~
10280 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10281 prefix_cmds="$prefix_cmds -e 1d";
10283 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10284 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10285 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10286 emximp -o $lib $output_objdir/$libname.def'
10287 old_archive_From_new_cmds
='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10288 enable_shared_with_static_runtimes
=yes
10292 if test yes = "$GCC"; then
10293 allow_undefined_flag
=' $wl-expect_unresolved $wl\*'
10294 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'
10296 allow_undefined_flag
=' -expect_unresolved \*'
10297 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'
10299 archive_cmds_need_lc
='no'
10300 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10301 hardcode_libdir_separator
=:
10304 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
10305 if test yes = "$GCC"; then
10306 allow_undefined_flag
=' $wl-expect_unresolved $wl\*'
10307 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'
10308 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10310 allow_undefined_flag
=' -expect_unresolved \*'
10311 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'
10312 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~
10313 $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'
10315 # Both c and cxx compiler support -rpath directly
10316 hardcode_libdir_flag_spec
='-rpath $libdir'
10318 archive_cmds_need_lc
='no'
10319 hardcode_libdir_separator
=:
10323 no_undefined_flag
=' -z defs'
10324 if test yes = "$GCC"; then
10326 archive_cmds
='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10327 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10328 $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'
10330 case `$CC -V 2>&1` in
10333 archive_cmds
='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10334 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10335 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10339 archive_cmds
='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10340 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10341 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10345 hardcode_libdir_flag_spec
='-R$libdir'
10346 hardcode_shlibpath_var
=no
10348 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10350 # The compiler driver will combine and reorder linker options,
10351 # but understands '-z linker_flag'. GCC discards it without '$wl',
10352 # but is careful enough not to reorder.
10353 # Supported since Solaris 2.6 (maybe 2.5.1?)
10354 if test yes = "$GCC"; then
10355 whole_archive_flag_spec
='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10357 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10361 link_all_deplibs
=yes
10365 if test sequent
= "$host_vendor"; then
10366 # Use $CC to link under sequent, because it throws in some extra .o
10367 # files that make .init and .fini sections work.
10368 archive_cmds
='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10370 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10372 hardcode_libdir_flag_spec
='-L$libdir'
10373 hardcode_direct
=yes
10374 hardcode_minus_L
=yes
10375 hardcode_shlibpath_var
=no
10379 case $host_vendor in
10381 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10382 hardcode_direct
=yes # is this really true???
10385 ## LD is ld it makes a PLAMLIB
10386 ## CC just makes a GrossModule.
10387 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10388 reload_cmds
='$CC -r -o $output$reload_objs'
10392 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10393 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10396 runpath_var
='LD_RUN_PATH'
10397 hardcode_shlibpath_var
=no
10401 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10402 hardcode_shlibpath_var
=no
10403 export_dynamic_flag_spec
='-Bexport'
10407 if test -d /usr
/nec
; then
10408 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10409 hardcode_shlibpath_var
=no
10410 runpath_var
=LD_RUN_PATH
10411 hardcode_runpath_var
=yes
10416 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10417 no_undefined_flag
='$wl-z,text'
10418 archive_cmds_need_lc
=no
10419 hardcode_shlibpath_var
=no
10420 runpath_var
='LD_RUN_PATH'
10422 if test yes = "$GCC"; then
10423 archive_cmds
='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10424 archive_expsym_cmds
='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10426 archive_cmds
='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10427 archive_expsym_cmds
='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10431 sysv5
* | sco3.2v5
* | sco5v6
*)
10432 # Note: We CANNOT use -z defs as we might desire, because we do not
10433 # link with -lc, and that would cause any symbols used from libc to
10434 # always be unresolved, which means just about no library would
10435 # ever link correctly. If we're not using GNU ld we use -z text
10436 # though, which does catch some bad symbols but isn't as heavy-handed
10438 no_undefined_flag
='$wl-z,text'
10439 allow_undefined_flag
='$wl-z,nodefs'
10440 archive_cmds_need_lc
=no
10441 hardcode_shlibpath_var
=no
10442 hardcode_libdir_flag_spec
='$wl-R,$libdir'
10443 hardcode_libdir_separator
=':'
10444 link_all_deplibs
=yes
10445 export_dynamic_flag_spec
='$wl-Bexport'
10446 runpath_var
='LD_RUN_PATH'
10448 if test yes = "$GCC"; then
10449 archive_cmds
='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10450 archive_expsym_cmds
='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10452 archive_cmds
='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10453 archive_expsym_cmds
='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10458 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10459 hardcode_libdir_flag_spec
='-L$libdir'
10460 hardcode_shlibpath_var
=no
10468 if test sni
= "$host_vendor"; then
10470 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10471 export_dynamic_flag_spec
='$wl-Blargedynsym'
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10478 $as_echo "$ld_shlibs" >&6; }
10479 test no
= "$ld_shlibs" && can_build_shared
=no
10481 with_gnu_ld
=$with_gnu_ld
10498 # Do we need to explicitly link libc?
10500 case "x$archive_cmds_need_lc" in
10502 # Assume -lc should be added
10503 archive_cmds_need_lc
=yes
10505 if test yes,yes = "$GCC,$enable_shared"; then
10506 case $archive_cmds in
10508 # FIXME: we may have to deal with multi-command sequences.
10511 # Test whether the compiler implicitly links with -lc since on some
10512 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10513 # to ld, don't add -lc before -lgcc.
10514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10515 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10516 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10517 $as_echo_n "(cached) " >&6
10520 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10523 (eval $ac_compile) 2>&5
10525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10526 test $ac_status = 0; } 2>conftest.err
; then
10529 libobjs
=conftest.
$ac_objext
10531 wl
=$lt_prog_compiler_wl
10532 pic_flag
=$lt_prog_compiler_pic
10538 lt_save_allow_undefined_flag
=$allow_undefined_flag
10539 allow_undefined_flag
=
10540 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10541 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10544 test $ac_status = 0; }
10546 lt_cv_archive_cmds_need_lc
=no
10548 lt_cv_archive_cmds_need_lc
=yes
10550 allow_undefined_flag
=$lt_save_allow_undefined_flag
10552 cat conftest.err
1>&5
10557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10558 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10559 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10718 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10720 if test yes = "$GCC"; then
10722 darwin
*) lt_awk_arg
='/^libraries:/,/LR/' ;;
10723 *) lt_awk_arg
='/^libraries:/' ;;
10726 mingw
* | cegcc
*) lt_sed_strip_eq
='s|=\([A-Za-z]:\)|\1|g' ;;
10727 *) lt_sed_strip_eq
='s|=/|/|g' ;;
10729 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10730 case $lt_search_path_spec in
10732 # if the path contains ";" then we assume it to be the separator
10733 # otherwise default to the standard path separator (i.e. ":") - it is
10734 # assumed that no part of a normal pathname contains ";" but that should
10735 # okay in the real world where ";" in dirpaths is itself problematic.
10736 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10739 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10742 # Ok, now we have the path, separated by spaces, we can step through it
10743 # and add multilib dir if necessary...
10744 lt_tmp_lt_search_path_spec
=
10745 lt_multi_os_dir
=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10746 # ...but if some path component already ends with the multilib dir we assume
10747 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10748 case "$lt_multi_os_dir; $lt_search_path_spec " in
10749 "/; "* |
"/.; "* |
"/./; "* |
*"$lt_multi_os_dir "* |
*"$lt_multi_os_dir/ "*)
10753 for lt_sys_path
in $lt_search_path_spec; do
10754 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10755 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10756 elif test -n "$lt_multi_os_dir"; then
10757 test -d "$lt_sys_path" && \
10758 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10761 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10762 BEGIN {RS = " "; FS = "/|\n";} {
10765 for (lt_i = NF; lt_i > 0; lt_i--) {
10766 if ($lt_i != "" && $lt_i != ".") {
10767 if ($lt_i == "..") {
10770 if (lt_count == 0) {
10771 lt_foo = "/" $lt_i lt_foo;
10778 if (lt_foo != "") { lt_freq[lt_foo]++; }
10779 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10781 # AWK program above erroneously prepends '/' to C:/dos/paths
10784 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10785 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10787 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10789 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10791 library_names_spec
=
10792 libname_spec
='lib$name'
10796 postuninstall_cmds
=
10800 shlibpath_overrides_runpath
=unknown
10802 dynamic_linker
="$host_os ld.so"
10803 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10804 need_lib_prefix
=unknown
10805 hardcode_into_libs
=no
10807 # when you set need_version to no, make sure it does not cause -set_version
10808 # flags to be left without arguments
10809 need_version
=unknown
10815 version_type
=linux
# correct to gnu/linux during the next big refactor
10816 library_names_spec
='$libname$release$shared_ext$versuffix $libname.a'
10817 shlibpath_var
=LIBPATH
10819 # AIX 3 has no versioning support, so we append a major version to the name.
10820 soname_spec
='$libname$release$shared_ext$major'
10824 version_type
=linux
# correct to gnu/linux during the next big refactor
10827 hardcode_into_libs
=yes
10828 if test ia64
= "$host_cpu"; then
10829 # AIX 5 supports IA64
10830 library_names_spec
='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10831 shlibpath_var
=LD_LIBRARY_PATH
10833 # With GCC up to 2.95.x, collect2 would create an import file
10834 # for dependence libraries. The import file would start with
10835 # the line '#! .'. This would cause the generated library to
10836 # depend on '.', always an invalid library. This was fixed in
10837 # development snapshots of GCC prior to 3.0.
10839 aix4 | aix4.
[01] | aix4.
[01].
*)
10840 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10842 echo '#endif'; } |
$CC -E - |
$GREP yes > /dev
/null
; then
10845 can_build_shared
=no
10849 # Using Import Files as archive members, it is possible to support
10850 # filename-based versioning of shared library archives on AIX. While
10851 # this would work for both with and without runtime linking, it will
10852 # prevent static linking of such archives. So we do filename-based
10853 # shared library versioning with .so extension only, which is used
10854 # when both runtime linking and shared linking is enabled.
10855 # Unfortunately, runtime linking may impact performance, so we do
10856 # not want this to be the default eventually. Also, we use the
10857 # versioned .so libs for executables only if there is the -brtl
10858 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10859 # To allow for filename-based versioning support, we need to create
10860 # libNAME.so.V as an archive file, containing:
10861 # *) an Import File, referring to the versioned filename of the
10862 # archive as well as the shared archive member, telling the
10863 # bitwidth (32 or 64) of that shared object, and providing the
10864 # list of exported symbols of that shared object, eventually
10865 # decorated with the 'weak' keyword
10866 # *) the shared object with the F_LOADONLY flag set, to really avoid
10867 # it being seen by the linker.
10868 # At run time we better use the real file rather than another symlink,
10869 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10871 case $with_aix_soname,$aix_use_runtimelinking in
10872 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10873 # soname into executable. Probably we can add versioning support to
10874 # collect2, so additional links can be useful in future.
10875 aix
,yes) # traditional libtool
10876 dynamic_linker
='AIX unversionable lib.so'
10877 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10878 # instead of lib<name>.a to let people know that these are not
10879 # typical AIX shared libraries.
10880 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10882 aix
,no
) # traditional AIX only
10883 dynamic_linker
='AIX lib.a(lib.so.V)'
10884 # We preserve .a as extension for shared libraries through AIX4.2
10885 # and later when we are not doing run time linking.
10886 library_names_spec
='$libname$release.a $libname.a'
10887 soname_spec
='$libname$release$shared_ext$major'
10889 svr4
,*) # full svr4 only
10890 dynamic_linker
="AIX lib.so.V($shared_archive_member_spec.o)"
10891 library_names_spec
='$libname$release$shared_ext$major $libname$shared_ext'
10892 # We do not specify a path in Import Files, so LIBPATH fires.
10893 shlibpath_overrides_runpath
=yes
10895 *,yes) # both, prefer svr4
10896 dynamic_linker
="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10897 library_names_spec
='$libname$release$shared_ext$major $libname$shared_ext'
10898 # unpreferred sharedlib libNAME.a needs extra handling
10899 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"'
10900 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"'
10901 # We do not specify a path in Import Files, so LIBPATH fires.
10902 shlibpath_overrides_runpath
=yes
10904 *,no
) # both, prefer aix
10905 dynamic_linker
="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10906 library_names_spec
='$libname$release.a $libname.a'
10907 soname_spec
='$libname$release$shared_ext$major'
10908 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10909 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)'
10910 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"'
10913 shlibpath_var
=LIBPATH
10920 # Since July 2007 AmigaOS4 officially supports .so libraries.
10921 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10922 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10925 library_names_spec
='$libname.ixlibrary $libname.a'
10926 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10927 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'
10933 library_names_spec
='$libname$shared_ext'
10934 dynamic_linker
="$host_os ld.so"
10935 shlibpath_var
=LIBRARY_PATH
10939 version_type
=linux
# correct to gnu/linux during the next big refactor
10941 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10942 soname_spec
='$libname$release$shared_ext$major'
10943 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10944 shlibpath_var
=LD_LIBRARY_PATH
10945 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10946 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10947 # the default ld.so.conf also contains /usr/contrib/lib and
10948 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10949 # libtool to hard-code these into programs
10952 cygwin
* | mingw
* | pw32
* | cegcc
*)
10953 version_type
=windows
10958 case $GCC,$cc_basename in
10961 library_names_spec
='$libname.dll.a'
10962 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10963 postinstall_cmds
='base_file=`basename \$file`~
10964 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10965 dldir=$destdir/`dirname \$dlpath`~
10966 test -d \$dldir || mkdir -p \$dldir~
10967 $install_prog $dir/$dlname \$dldir/$dlname~
10968 chmod a+x \$dldir/$dlname~
10969 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10970 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10972 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10973 dlpath=$dir/\$dldll~
10975 shlibpath_overrides_runpath
=yes
10979 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10980 soname_spec
='`echo $libname | sed -e 's
/^lib
/cyg
/'``echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
10982 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10985 # MinGW DLLs use traditional 'lib' prefix
10986 soname_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
10989 # pw32 DLLs use 'pw' prefix rather than 'lib'
10990 library_names_spec
='`echo $libname | sed -e 's
/^lib
/pw
/'``echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
10993 dynamic_linker
='Win32 ld.exe'
10998 libname_spec
='$name'
10999 soname_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
11000 library_names_spec
='$libname.dll.lib'
11004 sys_lib_search_path_spec
=
11007 for lt_path
in $LIB
11010 # Let DOS variable expansion print the short 8.3 style file name.
11011 lt_path
=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11012 sys_lib_search_path_spec
="$sys_lib_search_path_spec $lt_path"
11015 # Convert to MSYS style.
11016 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11019 # Convert to unix form, then to dos form, then back to unix form
11020 # but this time dos style (no spaces!) so that the unix form looks
11021 # like /cygdrive/c/PROGRA~1:/cygdr...
11022 sys_lib_search_path_spec
=`cygpath --path --unix "$LIB"`
11023 sys_lib_search_path_spec
=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11024 sys_lib_search_path_spec
=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11027 sys_lib_search_path_spec
=$LIB
11028 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
11029 # It is most probably a Windows format PATH.
11030 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11032 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11034 # FIXME: find the short name or the path components, as spaces are
11035 # common. (e.g. "Program Files" -> "PROGRA~1")
11039 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11040 postinstall_cmds
='base_file=`basename \$file`~
11041 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11042 dldir=$destdir/`dirname \$dlpath`~
11043 test -d \$dldir || mkdir -p \$dldir~
11044 $install_prog $dir/$dlname \$dldir/$dlname'
11045 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11046 dlpath=$dir/\$dldll~
11048 shlibpath_overrides_runpath
=yes
11049 dynamic_linker
='Win32 link.exe'
11053 # Assume MSVC wrapper
11054 library_names_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext $libname.lib'
11055 dynamic_linker
='Win32 ld.exe'
11058 # FIXME: first we should search . and the directory the executable is in
11062 darwin
* | rhapsody
*)
11063 dynamic_linker
="$host_os dyld"
11064 version_type
=darwin
11067 library_names_spec
='$libname$release$major$shared_ext $libname$shared_ext'
11068 soname_spec
='$libname$release$major$shared_ext'
11069 shlibpath_overrides_runpath
=yes
11070 shlibpath_var
=DYLD_LIBRARY_PATH
11071 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
11073 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
11074 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
11078 version_type
=linux
# correct to gnu/linux during the next big refactor
11081 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11082 soname_spec
='$libname$release$shared_ext$major'
11083 shlibpath_var
=LD_LIBRARY_PATH
11086 freebsd
* | dragonfly
*)
11087 # DragonFly does not have aout. When/if they implement a new
11088 # versioning mechanism, adjust this.
11089 if test -x /usr
/bin
/objformat
; then
11090 objformat
=`/usr/bin/objformat`
11093 freebsd
[23].
*) objformat
=aout
;;
11094 *) objformat
=elf
;;
11097 version_type
=freebsd-
$objformat
11098 case $version_type in
11100 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11101 soname_spec
='$libname$release$shared_ext$major'
11106 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11110 shlibpath_var
=LD_LIBRARY_PATH
11113 shlibpath_overrides_runpath
=yes
11115 freebsd3.
[01]* | freebsdelf3.
[01]*)
11116 shlibpath_overrides_runpath
=yes
11117 hardcode_into_libs
=yes
11119 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
11120 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
11121 shlibpath_overrides_runpath
=no
11122 hardcode_into_libs
=yes
11124 *) # from 4.6 on, and DragonFly
11125 shlibpath_overrides_runpath
=yes
11126 hardcode_into_libs
=yes
11132 version_type
=linux
# correct to gnu/linux during the next big refactor
11135 dynamic_linker
="$host_os runtime_loader"
11136 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11137 soname_spec
='$libname$release$shared_ext$major'
11138 shlibpath_var
=LIBRARY_PATH
11139 shlibpath_overrides_runpath
=no
11140 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11141 hardcode_into_libs
=yes
11144 hpux9
* | hpux10
* | hpux11
*)
11145 # Give a soname corresponding to the major version so that dld.sl refuses to
11146 # link against other versions.
11153 hardcode_into_libs
=yes
11154 dynamic_linker
="$host_os dld.so"
11155 shlibpath_var
=LD_LIBRARY_PATH
11156 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11157 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11158 soname_spec
='$libname$release$shared_ext$major'
11159 if test 32 = "$HPUX_IA64_MODE"; then
11160 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11161 sys_lib_dlsearch_path_spec
=/usr
/lib
/hpux32
11163 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
11164 sys_lib_dlsearch_path_spec
=/usr
/lib
/hpux64
11169 hardcode_into_libs
=yes
11170 dynamic_linker
="$host_os dld.sl"
11171 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
11172 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11173 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11174 soname_spec
='$libname$release$shared_ext$major'
11175 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11176 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11180 dynamic_linker
="$host_os dld.sl"
11181 shlibpath_var
=SHLIB_PATH
11182 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
11183 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11184 soname_spec
='$libname$release$shared_ext$major'
11187 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11188 postinstall_cmds
='chmod 555 $lib'
11189 # or fails outright, so override atomically:
11190 install_override_mode
=555
11194 version_type
=linux
# correct to gnu/linux during the next big refactor
11197 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11198 soname_spec
='$libname$release$shared_ext$major'
11199 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
11200 shlibpath_var
=LD_LIBRARY_PATH
11201 shlibpath_overrides_runpath
=no
11202 hardcode_into_libs
=yes
11205 irix5
* | irix6
* | nonstopux
*)
11207 nonstopux
*) version_type
=nonstopux
;;
11209 if test yes = "$lt_cv_prog_gnu_ld"; then
11210 version_type
=linux
# correct to gnu/linux during the next big refactor
11217 soname_spec
='$libname$release$shared_ext$major'
11218 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11220 irix5
* | nonstopux
*)
11221 libsuff
= shlibsuff
=
11224 case $LD in # libtool.m4 will add one of these switches to LD
11225 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
11226 libsuff
= shlibsuff
= libmagic
=32-bit;;
11227 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
11228 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
11229 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
11230 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
11231 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
11235 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
11236 shlibpath_overrides_runpath
=no
11237 sys_lib_search_path_spec
="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11238 sys_lib_dlsearch_path_spec
="/usr/lib$libsuff /lib$libsuff"
11239 hardcode_into_libs
=yes
11242 # No shared lib support for Linux oldld, aout, or coff.
11243 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
11248 version_type
=none
# Android doesn't support versioned libraries.
11251 library_names_spec
='$libname$release$shared_ext'
11252 soname_spec
='$libname$release$shared_ext'
11254 shlibpath_var
=LD_LIBRARY_PATH
11255 shlibpath_overrides_runpath
=yes
11257 # This implies no fast_install, which is unacceptable.
11258 # Some rework will be needed to allow for fast_install
11259 # before this can be enabled.
11260 hardcode_into_libs
=yes
11262 dynamic_linker
='Android linker'
11263 # Don't embed -rpath directories since the linker doesn't support them.
11264 hardcode_libdir_flag_spec
='-L$libdir'
11267 # This must be glibc/ELF.
11268 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
11269 version_type
=linux
# correct to gnu/linux during the next big refactor
11272 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11273 soname_spec
='$libname$release$shared_ext$major'
11274 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11275 shlibpath_var
=LD_LIBRARY_PATH
11276 shlibpath_overrides_runpath
=no
11278 # Some binutils ld are patched to set DT_RUNPATH
11279 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
11280 $as_echo_n "(cached) " >&6
11282 lt_cv_shlibpath_overrides_runpath
=no
11283 save_LDFLAGS
=$LDFLAGS
11284 save_libdir
=$libdir
11285 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11286 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11288 /* end confdefs.h. */
11298 if ac_fn_c_try_link
"$LINENO"; then :
11299 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
11300 lt_cv_shlibpath_overrides_runpath
=yes
11303 rm -f core conftest.err conftest.
$ac_objext \
11304 conftest
$ac_exeext conftest.
$ac_ext
11305 LDFLAGS
=$save_LDFLAGS
11306 libdir
=$save_libdir
11310 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
11312 # This implies no fast_install, which is unacceptable.
11313 # Some rework will be needed to allow for fast_install
11314 # before this can be enabled.
11315 hardcode_into_libs
=yes
11317 # Ideally, we could use ldconfig to report *all* directores which are
11318 # searched for libraries, however this is still not possible. Aside from not
11319 # being certain /sbin/ldconfig is available, command
11320 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11321 # even though it is searched at run-time. Try to do the best guess by
11322 # appending ld.so.conf contents (and includes) to the search path.
11323 if test -f /etc
/ld.so.conf
; then
11324 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' ' '`
11325 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
11328 # We used to test for /lib/ld.so.1 and disable shared libraries on
11329 # powerpc, because MkLinux only supported shared libraries with the
11330 # GNU dynamic linker. Since this was broken with cross compilers,
11331 # most powerpc-linux boxes support dynamic linking these days and
11332 # people can always --disable-shared, the test was removed, and we
11333 # assume the GNU/Linux dynamic linker is in use.
11334 dynamic_linker
='GNU/Linux ld.so'
11341 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11342 soname_spec
='${libname}${release}${shared_ext}$major'
11343 shlibpath_var
=LD_LIBRARY_PATH
11344 shlibpath_overrides_runpath
=no
11345 hardcode_into_libs
=yes
11346 dynamic_linker
='NetBSD ld.elf_so'
11353 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11354 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11355 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11356 dynamic_linker
='NetBSD (a.out) ld.so'
11358 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11359 soname_spec
='$libname$release$shared_ext$major'
11360 dynamic_linker
='NetBSD ld.elf_so'
11362 shlibpath_var
=LD_LIBRARY_PATH
11363 shlibpath_overrides_runpath
=yes
11364 hardcode_into_libs
=yes
11368 version_type
=linux
# correct to gnu/linux during the next big refactor
11369 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11370 shlibpath_var
=LD_LIBRARY_PATH
11371 shlibpath_overrides_runpath
=yes
11378 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11379 soname_spec
='$libname$release$shared_ext$major'
11380 shlibpath_var
=LD_LIBRARY_PATH
11381 shlibpath_overrides_runpath
=no
11382 hardcode_into_libs
=yes
11383 dynamic_linker
='ldqnx.so'
11386 openbsd
* | bitrig
*)
11388 sys_lib_dlsearch_path_spec
=/usr
/lib
11390 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11395 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11396 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11397 shlibpath_var
=LD_LIBRARY_PATH
11398 shlibpath_overrides_runpath
=yes
11402 libname_spec
='$name'
11403 version_type
=windows
11407 # OS/2 can only load a DLL with a base name of 8 characters or less.
11408 soname_spec
='`test -n "$os2dllname" && libname="$os2dllname";
11409 v=$($ECHO $release$versuffix | tr -d .-);
11410 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11411 $ECHO $n$v`$shared_ext'
11412 library_names_spec
='${libname}_dll.$libext'
11413 dynamic_linker
='OS/2 ld.exe'
11414 shlibpath_var
=BEGINLIBPATH
11415 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
11416 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11417 postinstall_cmds
='base_file=`basename \$file`~
11418 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11419 dldir=$destdir/`dirname \$dlpath`~
11420 test -d \$dldir || mkdir -p \$dldir~
11421 $install_prog $dir/$dlname \$dldir/$dlname~
11422 chmod a+x \$dldir/$dlname~
11423 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11424 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11426 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11427 dlpath=$dir/\$dldll~
11431 osf3
* | osf4
* | osf5
*)
11435 soname_spec
='$libname$release$shared_ext$major'
11436 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11437 shlibpath_var
=LD_LIBRARY_PATH
11438 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11439 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11447 version_type
=linux
# correct to gnu/linux during the next big refactor
11450 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11451 soname_spec
='$libname$release$shared_ext$major'
11452 shlibpath_var
=LD_LIBRARY_PATH
11453 shlibpath_overrides_runpath
=yes
11454 hardcode_into_libs
=yes
11455 # ldd complains unless libraries are executable
11456 postinstall_cmds
='chmod +x $lib'
11461 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11462 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11463 shlibpath_var
=LD_LIBRARY_PATH
11464 shlibpath_overrides_runpath
=yes
11465 if test yes = "$with_gnu_ld"; then
11472 version_type
=linux
# correct to gnu/linux during the next big refactor
11473 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11474 soname_spec
='$libname$release$shared_ext$major'
11475 shlibpath_var
=LD_LIBRARY_PATH
11476 case $host_vendor in
11478 shlibpath_overrides_runpath
=no
11480 runpath_var
=LD_RUN_PATH
11488 shlibpath_overrides_runpath
=no
11489 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11495 if test -d /usr
/nec
; then
11496 version_type
=linux
# correct to gnu/linux during the next big refactor
11497 library_names_spec
='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11498 soname_spec
='$libname$shared_ext.$major'
11499 shlibpath_var
=LD_LIBRARY_PATH
11503 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11507 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11508 soname_spec
='$libname$release$shared_ext$major'
11509 shlibpath_var
=LD_LIBRARY_PATH
11510 shlibpath_overrides_runpath
=yes
11511 hardcode_into_libs
=yes
11512 if test yes = "$with_gnu_ld"; then
11513 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11515 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11518 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11522 sys_lib_dlsearch_path_spec
='/usr/lib'
11526 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11527 version_type
=linux
# correct to gnu/linux during the next big refactor
11530 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11531 shlibpath_var
=LD_LIBRARY_PATH
11532 shlibpath_overrides_runpath
=no
11533 hardcode_into_libs
=yes
11537 version_type
=linux
# correct to gnu/linux during the next big refactor
11538 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11539 soname_spec
='$libname$release$shared_ext$major'
11540 shlibpath_var
=LD_LIBRARY_PATH
11547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11548 $as_echo "$dynamic_linker" >&6; }
11549 test no
= "$dynamic_linker" && can_build_shared
=no
11551 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11552 if test yes = "$GCC"; then
11553 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11556 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11557 sys_lib_search_path_spec
=$lt_cv_sys_lib_search_path_spec
11560 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11561 sys_lib_dlsearch_path_spec
=$lt_cv_sys_lib_dlsearch_path_spec
11564 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11565 configure_time_dlsearch_path
=$sys_lib_dlsearch_path_spec
11567 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11568 func_munge_path_list sys_lib_dlsearch_path_spec
"$LT_SYS_LIBRARY_PATH"
11570 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11571 configure_time_lt_sys_library_path
=$LT_SYS_LIBRARY_PATH
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11670 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11672 if test -n "$hardcode_libdir_flag_spec" ||
11673 test -n "$runpath_var" ||
11674 test yes = "$hardcode_automatic"; then
11676 # We can hardcode non-existent directories.
11677 if test no
!= "$hardcode_direct" &&
11678 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11679 # have to relink, otherwise we might link with an installed library
11680 # when we should be linking with a yet-to-be-installed one
11681 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11682 test no
!= "$hardcode_minus_L"; then
11683 # Linking always hardcodes the temporary library directory.
11684 hardcode_action
=relink
11686 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11687 hardcode_action
=immediate
11690 # We cannot hardcode anything, or else we can only hardcode existing
11692 hardcode_action
=unsupported
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11695 $as_echo "$hardcode_action" >&6; }
11697 if test relink
= "$hardcode_action" ||
11698 test yes = "$inherit_rpath"; then
11699 # Fast installation is not supported
11700 enable_fast_install
=no
11701 elif test yes = "$shlibpath_overrides_runpath" ||
11702 test no
= "$enable_shared"; then
11703 # Fast installation is not necessary
11704 enable_fast_install
=needless
11712 if test yes != "$enable_dlopen"; then
11713 enable_dlopen
=unknown
11714 enable_dlopen_self
=unknown
11715 enable_dlopen_self_static
=unknown
11722 lt_cv_dlopen
=load_add_on
11724 lt_cv_dlopen_self
=yes
11727 mingw
* | pw32
* | cegcc
*)
11728 lt_cv_dlopen
=LoadLibrary
11733 lt_cv_dlopen
=dlopen
11738 # if libdl is installed we need to link against it
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11740 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11741 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11742 $as_echo_n "(cached) " >&6
11744 ac_check_lib_save_LIBS
=$LIBS
11746 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11747 /* end confdefs.h. */
11749 /* Override any GCC internal prototype to avoid an error.
11750 Use char because int might match the return type of a GCC
11751 builtin and then its argument prototype would still apply. */
11764 if ac_fn_c_try_link
"$LINENO"; then :
11765 ac_cv_lib_dl_dlopen
=yes
11767 ac_cv_lib_dl_dlopen
=no
11769 rm -f core conftest.err conftest.
$ac_objext \
11770 conftest
$ac_exeext conftest.
$ac_ext
11771 LIBS
=$ac_check_lib_save_LIBS
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11774 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11775 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11776 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-ldl
11781 lt_cv_dlopen_self
=yes
11788 # Don't try to run any link tests for TPF. We know it's impossible
11789 # because TPF is a cross-compiler, and we know how we open DSOs.
11790 lt_cv_dlopen
=dlopen
11792 lt_cv_dlopen_self
=no
11796 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11797 if test "x$ac_cv_func_shl_load" = xyes
; then :
11798 lt_cv_dlopen
=shl_load
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11801 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11802 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11803 $as_echo_n "(cached) " >&6
11805 ac_check_lib_save_LIBS
=$LIBS
11807 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11808 /* end confdefs.h. */
11810 /* Override any GCC internal prototype to avoid an error.
11811 Use char because int might match the return type of a GCC
11812 builtin and then its argument prototype would still apply. */
11820 return shl_load ();
11825 if ac_fn_c_try_link
"$LINENO"; then :
11826 ac_cv_lib_dld_shl_load
=yes
11828 ac_cv_lib_dld_shl_load
=no
11830 rm -f core conftest.err conftest.
$ac_objext \
11831 conftest
$ac_exeext conftest.
$ac_ext
11832 LIBS
=$ac_check_lib_save_LIBS
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11835 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11836 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11837 lt_cv_dlopen
=shl_load lt_cv_dlopen_libs
=-ldld
11839 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11840 if test "x$ac_cv_func_dlopen" = xyes
; then :
11841 lt_cv_dlopen
=dlopen
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11844 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11845 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11846 $as_echo_n "(cached) " >&6
11848 ac_check_lib_save_LIBS
=$LIBS
11850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11851 /* end confdefs.h. */
11853 /* Override any GCC internal prototype to avoid an error.
11854 Use char because int might match the return type of a GCC
11855 builtin and then its argument prototype would still apply. */
11868 if ac_fn_c_try_link
"$LINENO"; then :
11869 ac_cv_lib_dl_dlopen
=yes
11871 ac_cv_lib_dl_dlopen
=no
11873 rm -f core conftest.err conftest.
$ac_objext \
11874 conftest
$ac_exeext conftest.
$ac_ext
11875 LIBS
=$ac_check_lib_save_LIBS
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11878 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11879 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11880 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-ldl
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11883 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11884 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11885 $as_echo_n "(cached) " >&6
11887 ac_check_lib_save_LIBS
=$LIBS
11888 LIBS
="-lsvld $LIBS"
11889 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11890 /* end confdefs.h. */
11892 /* Override any GCC internal prototype to avoid an error.
11893 Use char because int might match the return type of a GCC
11894 builtin and then its argument prototype would still apply. */
11907 if ac_fn_c_try_link
"$LINENO"; then :
11908 ac_cv_lib_svld_dlopen
=yes
11910 ac_cv_lib_svld_dlopen
=no
11912 rm -f core conftest.err conftest.
$ac_objext \
11913 conftest
$ac_exeext conftest.
$ac_ext
11914 LIBS
=$ac_check_lib_save_LIBS
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11917 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11918 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11919 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-lsvld
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11922 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11923 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11924 $as_echo_n "(cached) " >&6
11926 ac_check_lib_save_LIBS
=$LIBS
11928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11929 /* end confdefs.h. */
11931 /* Override any GCC internal prototype to avoid an error.
11932 Use char because int might match the return type of a GCC
11933 builtin and then its argument prototype would still apply. */
11941 return dld_link ();
11946 if ac_fn_c_try_link
"$LINENO"; then :
11947 ac_cv_lib_dld_dld_link
=yes
11949 ac_cv_lib_dld_dld_link
=no
11951 rm -f core conftest.err conftest.
$ac_objext \
11952 conftest
$ac_exeext conftest.
$ac_ext
11953 LIBS
=$ac_check_lib_save_LIBS
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11956 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11957 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11958 lt_cv_dlopen
=dld_link lt_cv_dlopen_libs
=-ldld
11979 if test no
= "$lt_cv_dlopen"; then
11985 case $lt_cv_dlopen in
11987 save_CPPFLAGS
=$CPPFLAGS
11988 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11990 save_LDFLAGS
=$LDFLAGS
11991 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11994 LIBS
="$lt_cv_dlopen_libs $LIBS"
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11997 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11998 if ${lt_cv_dlopen_self+:} false
; then :
11999 $as_echo_n "(cached) " >&6
12001 if test yes = "$cross_compiling"; then :
12002 lt_cv_dlopen_self
=cross
12004 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12005 lt_status
=$lt_dlunknown
12006 cat > conftest.
$ac_ext <<_LT_EOF
12007 #line $LINENO "configure"
12008 #include "confdefs.h"
12017 # define LT_DLGLOBAL RTLD_GLOBAL
12020 # define LT_DLGLOBAL DL_GLOBAL
12022 # define LT_DLGLOBAL 0
12026 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12027 find out it does not work in some platform. */
12028 #ifndef LT_DLLAZY_OR_NOW
12030 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12033 # define LT_DLLAZY_OR_NOW DL_LAZY
12036 # define LT_DLLAZY_OR_NOW RTLD_NOW
12039 # define LT_DLLAZY_OR_NOW DL_NOW
12041 # define LT_DLLAZY_OR_NOW 0
12048 /* When -fvisibility=hidden is used, assume the code has been annotated
12049 correspondingly for the symbols needed. */
12050 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12051 int fnord () __attribute__((visibility("default")));
12054 int fnord () { return 42; }
12057 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12058 int status = $lt_dlunknown;
12062 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12065 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12066 else puts (dlerror ());
12068 /* dlclose (self); */
12076 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12077 (eval $ac_link) 2>&5
12079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12080 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev
/null
; then
12081 (.
/conftest
; exit; ) >&5 2>/dev
/null
12083 case x
$lt_status in
12084 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
12085 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
12086 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
12089 # compilation failed
12090 lt_cv_dlopen_self
=no
12097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12098 $as_echo "$lt_cv_dlopen_self" >&6; }
12100 if test yes = "$lt_cv_dlopen_self"; then
12101 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12103 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12104 if ${lt_cv_dlopen_self_static+:} false
; then :
12105 $as_echo_n "(cached) " >&6
12107 if test yes = "$cross_compiling"; then :
12108 lt_cv_dlopen_self_static
=cross
12110 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12111 lt_status
=$lt_dlunknown
12112 cat > conftest.
$ac_ext <<_LT_EOF
12113 #line $LINENO "configure"
12114 #include "confdefs.h"
12123 # define LT_DLGLOBAL RTLD_GLOBAL
12126 # define LT_DLGLOBAL DL_GLOBAL
12128 # define LT_DLGLOBAL 0
12132 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12133 find out it does not work in some platform. */
12134 #ifndef LT_DLLAZY_OR_NOW
12136 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12139 # define LT_DLLAZY_OR_NOW DL_LAZY
12142 # define LT_DLLAZY_OR_NOW RTLD_NOW
12145 # define LT_DLLAZY_OR_NOW DL_NOW
12147 # define LT_DLLAZY_OR_NOW 0
12154 /* When -fvisibility=hidden is used, assume the code has been annotated
12155 correspondingly for the symbols needed. */
12156 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12157 int fnord () __attribute__((visibility("default")));
12160 int fnord () { return 42; }
12163 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12164 int status = $lt_dlunknown;
12168 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12171 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12172 else puts (dlerror ());
12174 /* dlclose (self); */
12182 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12183 (eval $ac_link) 2>&5
12185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12186 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev
/null
; then
12187 (.
/conftest
; exit; ) >&5 2>/dev
/null
12189 case x
$lt_status in
12190 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
12191 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
12192 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
12195 # compilation failed
12196 lt_cv_dlopen_self_static
=no
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12204 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12207 CPPFLAGS
=$save_CPPFLAGS
12208 LDFLAGS
=$save_LDFLAGS
12213 case $lt_cv_dlopen_self in
12214 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
12215 *) enable_dlopen_self
=unknown
;;
12218 case $lt_cv_dlopen_self_static in
12219 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
12220 *) enable_dlopen_self_static
=unknown
;;
12242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12243 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12244 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
12245 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
12246 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12248 $as_echo "yes" >&6; }
12250 # FIXME - insert some real tests, host_os isn't really good enough
12253 if test -n "$STRIP"; then
12254 striplib
="$STRIP -x"
12255 old_striplib
="$STRIP -S"
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12257 $as_echo "yes" >&6; }
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12260 $as_echo "no" >&6; }
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12265 $as_echo "no" >&6; }
12281 # Report what library types will actually be built
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12283 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12285 $as_echo "$can_build_shared" >&6; }
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12288 $as_echo_n "checking whether to build shared libraries... " >&6; }
12289 test no
= "$can_build_shared" && enable_shared
=no
12291 # On AIX, shared libraries and static libraries use the same namespace, and
12292 # are all built from PIC.
12295 test yes = "$enable_shared" && enable_static
=no
12296 if test -n "$RANLIB"; then
12297 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12298 postinstall_cmds
='$RANLIB $lib'
12303 if test ia64
!= "$host_cpu"; then
12304 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12305 yes,aix
,yes) ;; # shared object as lib.so file only
12306 yes,svr4
,*) ;; # shared object as lib.so archive member only
12307 yes,*) enable_static
=no
;; # shared object in lib.a archive as well
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12313 $as_echo "$enable_shared" >&6; }
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12316 $as_echo_n "checking whether to build static libraries... " >&6; }
12317 # Make sure either enable_shared or enable_static is yes.
12318 test yes = "$enable_shared" || enable_static
=yes
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12320 $as_echo "$enable_static" >&6; }
12327 ac_cpp
='$CPP $CPPFLAGS'
12328 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12329 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12330 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12348 ac_config_commands
="$ac_config_commands libtool"
12353 # Only expand once:
12356 # By default we simply use the C compiler to build assembly code.
12358 test "${CCAS+set}" = set || CCAS
=$CC
12359 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
12363 depcc
="$CCAS" am_compiler_list
=
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12366 $as_echo_n "checking dependency style of $depcc... " >&6; }
12367 if ${am_cv_CCAS_dependencies_compiler_type+:} false
; then :
12368 $as_echo_n "(cached) " >&6
12370 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12371 # We make a subdir and do the tests there. Otherwise we can end up
12372 # making bogus files that we don't know about and never remove. For
12373 # instance it was reported that on HP-UX the gcc test will end up
12374 # making a dummy file named 'D' -- because '-MD' means "put the output
12376 rm -rf conftest.dir
12378 # Copy depcomp to subdir because otherwise we won't find it if we're
12379 # using a relative directory.
12380 cp "$am_depcomp" conftest.dir
12382 # We will build objects and dependencies in a subdirectory because
12383 # it helps to detect inapplicable dependency modes. For instance
12384 # both Tru64's cc and ICC support -MD to output dependencies as a
12385 # side effect of compilation, but ICC will put the dependencies in
12386 # the current directory while Tru64 will put them in the object
12390 am_cv_CCAS_dependencies_compiler_type
=none
12391 if test "$am_compiler_list" = ""; then
12392 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12394 am__universal
=false
12397 for depmode
in $am_compiler_list; do
12398 # Setup a source with many dependencies, because some compilers
12399 # like to wrap large dependency lists on column 80 (with \), and
12400 # we should not choose a depcomp mode which is confused by this.
12402 # We need to recreate these files for each test, as the compiler may
12403 # overwrite some of them when testing with obscure command lines.
12404 # This happens at least with the AIX C compiler.
12406 for i
in 1 2 3 4 5 6; do
12407 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
12408 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12409 # Solaris 10 /bin/sh.
12410 echo '/* dummy */' > sub
/conftst
$i.h
12412 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12414 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12415 # mode. It turns out that the SunPro C++ compiler does not properly
12416 # handle '-M -o', and we need to detect this. Also, some Intel
12417 # versions had trouble with output in subdirs.
12418 am__obj
=sub
/conftest.
${OBJEXT-o}
12419 am__minus_obj
="-o $am__obj"
12422 # This depmode causes a compiler race in universal mode.
12423 test "$am__universal" = false ||
continue
12426 # After this tag, mechanisms are not by side-effect, so they'll
12427 # only be used when explicitly requested.
12428 if test "x$enable_dependency_tracking" = xyes
; then
12434 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
12435 # This compiler won't grok '-c -o', but also, the minuso test has
12436 # not run yet. These depmodes are late enough in the game, and
12437 # so weak that their functioning should not be impacted.
12438 am__obj
=conftest.
${OBJEXT-o}
12443 if depmode
=$depmode \
12444 source=sub
/conftest.c object
=$am__obj \
12445 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
12446 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
12447 >/dev
/null
2>conftest.err
&&
12448 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
12449 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
12450 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
12451 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
12452 # icc doesn't choke on unknown options, it will just issue warnings
12453 # or remarks (even with -Werror). So we grep stderr for any message
12454 # that says an option was ignored or not supported.
12455 # When given -MP, icc 7.0 and 7.1 complain thusly:
12456 # icc: Command line warning: ignoring option '-M'; no argument required
12457 # The diagnosis changed in icc 8.0:
12458 # icc: Command line remark: option '-MP' not supported
12459 if (grep 'ignoring option' conftest.err ||
12460 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
12461 am_cv_CCAS_dependencies_compiler_type
=$depmode
12468 rm -rf conftest.dir
12470 am_cv_CCAS_dependencies_compiler_type
=none
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
12475 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
12476 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
12479 test "x$enable_dependency_tracking" != xno \
12480 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
12481 am__fastdepCCAS_TRUE
=
12482 am__fastdepCCAS_FALSE
='#'
12484 am__fastdepCCAS_TRUE
='#'
12485 am__fastdepCCAS_FALSE
=
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs author" >&5
12493 $as_echo_n "checking zfs author... " >&6; }
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_AUTHOR" >&5
12495 $as_echo "$ZFS_META_AUTHOR" >&6; }
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs license" >&5
12498 $as_echo_n "checking zfs license... " >&6; }
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_LICENSE" >&5
12500 $as_echo "$ZFS_META_LICENSE" >&6; }
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linux distribution" >&5
12505 $as_echo_n "checking linux distribution... " >&6; }
12506 if test -f /etc
/toss-release
; then
12508 elif test -f /etc
/fedora-release
; then
12510 elif test -f /etc
/redhat-release
; then
12512 elif test -f /etc
/gentoo-release
; then
12514 elif test -f /etc
/arch-release
; then
12516 elif test -f /etc
/SuSE-release
; then
12518 elif test -f /etc
/slackware-version
; then
12520 elif test -f /etc
/lunar.release
; then
12522 elif test -f /etc
/lsb-release
; then
12524 elif test -f /etc
/debian_version
; then
12526 elif test -f /etc
/alpine-release
; then
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VENDOR" >&5
12532 $as_echo "$VENDOR" >&6; }
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default package type" >&5
12536 $as_echo_n "checking default package type... " >&6; }
12538 toss
) DEFAULT_PACKAGE
=rpm
;;
12539 redhat
) DEFAULT_PACKAGE
=rpm
;;
12540 fedora
) DEFAULT_PACKAGE
=rpm
;;
12541 gentoo
) DEFAULT_PACKAGE
=tgz
;;
12542 alpine
) DEFAULT_PACKAGE
=tgz
;;
12543 arch
) DEFAULT_PACKAGE
=tgz
;;
12544 sles
) DEFAULT_PACKAGE
=rpm
;;
12545 slackware
) DEFAULT_PACKAGE
=tgz
;;
12546 lunar
) DEFAULT_PACKAGE
=tgz
;;
12547 ubuntu
) DEFAULT_PACKAGE
=deb
;;
12548 debian
) DEFAULT_PACKAGE
=deb
;;
12549 *) DEFAULT_PACKAGE
=rpm
;;
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_PACKAGE" >&5
12552 $as_echo "$DEFAULT_PACKAGE" >&6; }
12555 DEFAULT_INIT_DIR
=$sysconfdir/init.d
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init directory" >&5
12557 $as_echo_n "checking default init directory... " >&6; }
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_DIR" >&5
12559 $as_echo "$DEFAULT_INIT_DIR" >&6; }
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init script type" >&5
12563 $as_echo_n "checking default init script type... " >&6; }
12565 toss
) DEFAULT_INIT_SCRIPT
=redhat
;;
12566 redhat
) DEFAULT_INIT_SCRIPT
=redhat
;;
12567 fedora
) DEFAULT_INIT_SCRIPT
=fedora
;;
12568 gentoo
) DEFAULT_INIT_SCRIPT
=openrc
;;
12569 alpine
) DEFAULT_INIT_SCRIPT
=openrc
;;
12570 arch
) DEFAULT_INIT_SCRIPT
=lsb
;;
12571 sles
) DEFAULT_INIT_SCRIPT
=lsb
;;
12572 slackware
) DEFAULT_INIT_SCRIPT
=lsb
;;
12573 lunar
) DEFAULT_INIT_SCRIPT
=lunar
;;
12574 ubuntu
) DEFAULT_INIT_SCRIPT
=lsb
;;
12575 debian
) DEFAULT_INIT_SCRIPT
=lsb
;;
12576 *) DEFAULT_INIT_SCRIPT
=lsb
;;
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_SCRIPT" >&5
12579 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init config direectory" >&5
12583 $as_echo_n "checking default init config direectory... " >&6; }
12585 alpine
) DEFAULT_INITCONF_DIR
=/etc
/conf.d
;;
12586 gentoo
) DEFAULT_INITCONF_DIR
=/etc
/conf.d
;;
12587 toss
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12588 redhat
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12589 fedora
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12590 sles
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12591 ubuntu
) DEFAULT_INITCONF_DIR
=/etc
/default
;;
12592 debian
) DEFAULT_INITCONF_DIR
=/etc
/default
;;
12593 *) DEFAULT_INITCONF_DIR
=/etc
/default
;;
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INITCONF_DIR" >&5
12596 $as_echo "$DEFAULT_INITCONF_DIR" >&6; }
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether initramfs-tools is available" >&5
12600 $as_echo_n "checking whether initramfs-tools is available... " >&6; }
12601 if test -d /usr
/share
/initramfs-tools
; then
12602 DEFINE_INITRAMFS
='--define "_initramfs 1"'
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12604 $as_echo "yes" >&6; }
12606 DEFINE_INITRAMFS
=''
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12608 $as_echo "no" >&6; }
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPM is available" >&5
12617 $as_echo_n "checking whether $RPM is available... " >&6; }
12618 if tmp
=$
($RPM --version 2>/dev
/null
); then :
12620 RPM_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM ($RPM_VERSION)" >&5
12623 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM" >&5
12629 $as_echo "$HAVE_RPM" >&6; }
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPMBUILD is available" >&5
12634 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
12635 if tmp
=$
($RPMBUILD --version 2>/dev
/null
); then :
12637 RPMBUILD_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
12640 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD" >&5
12646 $as_echo "$HAVE_RPMBUILD" >&6; }
12650 RPM_DEFINE_COMMON
='--define "$(DEBUG_ZFS) 1"'
12651 RPM_DEFINE_UTIL
='--define "_dracutdir $(dracutdir)" --define "_udevdir $(udevdir)" --define "_udevruledir $(udevruledir)" --define "_initconfdir $(DEFAULT_INITCONF_DIR)" $(DEFINE_INITRAMFS)'
12652 RPM_DEFINE_KMOD
='--define "kernels $(LINUX_VERSION)" --define "require_spldir $(SPL)" --define "require_splobj $(SPL_OBJ)" --define "ksrc $(LINUX)" --define "kobj $(LINUX_OBJ)"'
12655 SRPM_DEFINE_COMMON
='--define "build_src_rpm 1"'
12660 RPM_SPEC_DIR
="rpm/generic"
12662 # Check whether --with-spec was given.
12663 if test "${with_spec+set}" = set; then :
12664 withval
=$with_spec; RPM_SPEC_DIR
="rpm/$withval"
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spec files are available" >&5
12669 $as_echo_n "checking whether spec files are available... " >&6; }
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
12671 $as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
12693 DPKGBUILD
=dpkg-buildpackage
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKG is available" >&5
12696 $as_echo_n "checking whether $DPKG is available... " >&6; }
12697 if tmp
=$
($DPKG --version 2>/dev
/null
); then :
12699 DPKG_VERSION
=$
(echo $tmp |
$AWK '/Debian/ { print $7 }')
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
12702 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG" >&5
12708 $as_echo "$HAVE_DPKG" >&6; }
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKGBUILD is available" >&5
12713 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
12714 if tmp
=$
($DPKGBUILD --version 2>/dev
/null
); then :
12716 DPKGBUILD_VERSION
=$
(echo $tmp | \
12717 $AWK '/Debian/ { print $4 }' | cut
-f-4 -d'.')
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
12720 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD" >&5
12726 $as_echo "$HAVE_DPKGBUILD" >&6; }
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ALIEN is available" >&5
12742 $as_echo_n "checking whether $ALIEN is available... " >&6; }
12743 if tmp
=$
($ALIEN --version 2>/dev
/null
); then :
12745 ALIEN_VERSION
=$
(echo $tmp |
$AWK '{ print $3 }')
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
12748 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN" >&5
12754 $as_echo "$HAVE_ALIEN" >&6; }
12766 # Check whether --with-config was given.
12767 if test "${with_config+set}" = set; then :
12768 withval
=$with_config; ZFS_CONFIG
="$withval"
12771 # Check whether --enable-linux-builtin was given.
12772 if test "${enable_linux_builtin+set}" = set; then :
12773 enableval
=$enable_linux_builtin;
12775 enable_linux_builtin
=no
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs config" >&5
12780 $as_echo_n "checking zfs config... " >&6; }
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_CONFIG" >&5
12782 $as_echo "$ZFS_CONFIG" >&6; };
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-unused-but-set-variable support" >&5
12788 $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
12790 saved_flags
="$CFLAGS"
12791 CFLAGS
="$CFLAGS -Wunused-but-set-variable"
12793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12794 /* end confdefs.h. */
12804 if ac_fn_c_try_compile
"$LINENO"; then :
12806 NO_UNUSED_BUT_SET_VARIABLE
=-Wno-unused-but-set-variable
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12808 $as_echo "yes" >&6; }
12812 NO_UNUSED_BUT_SET_VARIABLE
=
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12814 $as_echo "no" >&6; }
12817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12819 CFLAGS
="$saved_flags"
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-bool-compare support" >&5
12824 $as_echo_n "checking for -Wno-bool-compare support... " >&6; }
12826 saved_flags
="$CFLAGS"
12827 CFLAGS
="$CFLAGS -Wbool-compare"
12829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12830 /* end confdefs.h. */
12840 if ac_fn_c_try_compile
"$LINENO"; then :
12842 NO_BOOL_COMPARE
=-Wno-bool-compare
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12844 $as_echo "yes" >&6; }
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12850 $as_echo "no" >&6; }
12853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12855 CFLAGS
="$saved_flags"
12859 case "$host_cpu" in
12860 x86_64 | x86 | i686
)
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSE" >&5
12863 $as_echo_n "checking whether host toolchain supports SSE... " >&6; }
12865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12866 /* end confdefs.h. */
12870 __asm__ __volatile__("xorps %xmm0, %xmm1");
12874 if ac_fn_c_try_link
"$LINENO"; then :
12877 $as_echo "#define HAVE_SSE 1" >>confdefs.h
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12880 $as_echo "yes" >&6; }
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12885 $as_echo "no" >&6; }
12888 rm -f core conftest.err conftest.
$ac_objext \
12889 conftest
$ac_exeext conftest.
$ac_ext
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSE2" >&5
12893 $as_echo_n "checking whether host toolchain supports SSE2... " >&6; }
12895 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12896 /* end confdefs.h. */
12900 __asm__ __volatile__("pxor %xmm0, %xmm1");
12904 if ac_fn_c_try_link
"$LINENO"; then :
12907 $as_echo "#define HAVE_SSE2 1" >>confdefs.h
12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12910 $as_echo "yes" >&6; }
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12915 $as_echo "no" >&6; }
12918 rm -f core conftest.err conftest.
$ac_objext \
12919 conftest
$ac_exeext conftest.
$ac_ext
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSE3" >&5
12923 $as_echo_n "checking whether host toolchain supports SSE3... " >&6; }
12925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12926 /* end confdefs.h. */
12931 __asm__ __volatile__("lddqu %0,%%xmm0" :: "m"(v[0]));
12935 if ac_fn_c_try_link
"$LINENO"; then :
12938 $as_echo "#define HAVE_SSE3 1" >>confdefs.h
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12941 $as_echo "yes" >&6; }
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12946 $as_echo "no" >&6; }
12949 rm -f core conftest.err conftest.
$ac_objext \
12950 conftest
$ac_exeext conftest.
$ac_ext
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSSE3" >&5
12954 $as_echo_n "checking whether host toolchain supports SSSE3... " >&6; }
12956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12957 /* end confdefs.h. */
12961 __asm__ __volatile__("pshufb %xmm0,%xmm1");
12965 if ac_fn_c_try_link
"$LINENO"; then :
12968 $as_echo "#define HAVE_SSSE3 1" >>confdefs.h
12970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12971 $as_echo "yes" >&6; }
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12976 $as_echo "no" >&6; }
12979 rm -f core conftest.err conftest.
$ac_objext \
12980 conftest
$ac_exeext conftest.
$ac_ext
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSE4.1" >&5
12984 $as_echo_n "checking whether host toolchain supports SSE4.1... " >&6; }
12986 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12987 /* end confdefs.h. */
12991 __asm__ __volatile__("pmaxsb %xmm0,%xmm1");
12995 if ac_fn_c_try_link
"$LINENO"; then :
12998 $as_echo "#define HAVE_SSE4_1 1" >>confdefs.h
13000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13001 $as_echo "yes" >&6; }
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13006 $as_echo "no" >&6; }
13009 rm -f core conftest.err conftest.
$ac_objext \
13010 conftest
$ac_exeext conftest.
$ac_ext
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports SSE4.2" >&5
13014 $as_echo_n "checking whether host toolchain supports SSE4.2... " >&6; }
13016 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13017 /* end confdefs.h. */
13021 __asm__ __volatile__("pcmpgtq %xmm0, %xmm1");
13025 if ac_fn_c_try_link
"$LINENO"; then :
13028 $as_echo "#define HAVE_SSE4_2 1" >>confdefs.h
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13031 $as_echo "yes" >&6; }
13035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13036 $as_echo "no" >&6; }
13039 rm -f core conftest.err conftest.
$ac_objext \
13040 conftest
$ac_exeext conftest.
$ac_ext
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX" >&5
13044 $as_echo_n "checking whether host toolchain supports AVX... " >&6; }
13046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13047 /* end confdefs.h. */
13052 __asm__ __volatile__("vmovdqa %0,%%ymm0" :: "m"(v[0]));
13056 if ac_fn_c_try_link
"$LINENO"; then :
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13059 $as_echo "yes" >&6; }
13061 $as_echo "#define HAVE_AVX 1" >>confdefs.h
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13067 $as_echo "no" >&6; }
13070 rm -f core conftest.err conftest.
$ac_objext \
13071 conftest
$ac_exeext conftest.
$ac_ext
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX2" >&5
13075 $as_echo_n "checking whether host toolchain supports AVX2... " >&6; }
13077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13078 /* end confdefs.h. */
13083 __asm__ __volatile__("vpshufb %ymm0,%ymm1,%ymm2");
13087 if ac_fn_c_try_link
"$LINENO"; then :
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13090 $as_echo "yes" >&6; }
13092 $as_echo "#define HAVE_AVX2 1" >>confdefs.h
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13098 $as_echo "no" >&6; }
13101 rm -f core conftest.err conftest.
$ac_objext \
13102 conftest
$ac_exeext conftest.
$ac_ext
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512F" >&5
13106 $as_echo_n "checking whether host toolchain supports AVX512F... " >&6; }
13108 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13109 /* end confdefs.h. */
13114 __asm__ __volatile__("vpandd %zmm0,%zmm1,%zmm2");
13118 if ac_fn_c_try_link
"$LINENO"; then :
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13121 $as_echo "yes" >&6; }
13123 $as_echo "#define HAVE_AVX512F 1" >>confdefs.h
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13129 $as_echo "no" >&6; }
13132 rm -f core conftest.err conftest.
$ac_objext \
13133 conftest
$ac_exeext conftest.
$ac_ext
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512CD" >&5
13137 $as_echo_n "checking whether host toolchain supports AVX512CD... " >&6; }
13139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13140 /* end confdefs.h. */
13145 __asm__ __volatile__("vplzcntd %zmm0,%zmm1");
13149 if ac_fn_c_try_link
"$LINENO"; then :
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13152 $as_echo "yes" >&6; }
13154 $as_echo "#define HAVE_AVX512CD 1" >>confdefs.h
13159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13160 $as_echo "no" >&6; }
13163 rm -f core conftest.err conftest.
$ac_objext \
13164 conftest
$ac_exeext conftest.
$ac_ext
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512DQ" >&5
13168 $as_echo_n "checking whether host toolchain supports AVX512DQ... " >&6; }
13170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13171 /* end confdefs.h. */
13176 __asm__ __volatile__("vandpd %zmm0,%zmm1,%zmm2");
13180 if ac_fn_c_try_link
"$LINENO"; then :
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13183 $as_echo "yes" >&6; }
13185 $as_echo "#define HAVE_AVX512DQ 1" >>confdefs.h
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13191 $as_echo "no" >&6; }
13194 rm -f core conftest.err conftest.
$ac_objext \
13195 conftest
$ac_exeext conftest.
$ac_ext
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512BW" >&5
13199 $as_echo_n "checking whether host toolchain supports AVX512BW... " >&6; }
13201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13202 /* end confdefs.h. */
13207 __asm__ __volatile__("vpshufb %zmm0,%zmm1,%zmm2");
13211 if ac_fn_c_try_link
"$LINENO"; then :
13213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13214 $as_echo "yes" >&6; }
13216 $as_echo "#define HAVE_AVX512BW 1" >>confdefs.h
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13222 $as_echo "no" >&6; }
13225 rm -f core conftest.err conftest.
$ac_objext \
13226 conftest
$ac_exeext conftest.
$ac_ext
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512IFMA" >&5
13230 $as_echo_n "checking whether host toolchain supports AVX512IFMA... " >&6; }
13232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13233 /* end confdefs.h. */
13238 __asm__ __volatile__("vpmadd52luq %zmm0,%zmm1,%zmm2");
13242 if ac_fn_c_try_link
"$LINENO"; then :
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13245 $as_echo "yes" >&6; }
13247 $as_echo "#define HAVE_AVX512IFMA 1" >>confdefs.h
13252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13253 $as_echo "no" >&6; }
13256 rm -f core conftest.err conftest.
$ac_objext \
13257 conftest
$ac_exeext conftest.
$ac_ext
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512VBMI" >&5
13261 $as_echo_n "checking whether host toolchain supports AVX512VBMI... " >&6; }
13263 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13264 /* end confdefs.h. */
13269 __asm__ __volatile__("vpermb %zmm0,%zmm1,%zmm2");
13273 if ac_fn_c_try_link
"$LINENO"; then :
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13276 $as_echo "yes" >&6; }
13278 $as_echo "#define HAVE_AVX512VBMI 1" >>confdefs.h
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13284 $as_echo "no" >&6; }
13287 rm -f core conftest.err conftest.
$ac_objext \
13288 conftest
$ac_exeext conftest.
$ac_ext
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512PF" >&5
13292 $as_echo_n "checking whether host toolchain supports AVX512PF... " >&6; }
13294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13295 /* end confdefs.h. */
13300 __asm__ __volatile__("vgatherpf0dps (%rsi,%zmm0,4){%k1}");
13304 if ac_fn_c_try_link
"$LINENO"; then :
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13307 $as_echo "yes" >&6; }
13309 $as_echo "#define HAVE_AVX512PF 1" >>confdefs.h
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13315 $as_echo "no" >&6; }
13318 rm -f core conftest.err conftest.
$ac_objext \
13319 conftest
$ac_exeext conftest.
$ac_ext
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512ER" >&5
13323 $as_echo_n "checking whether host toolchain supports AVX512ER... " >&6; }
13325 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13326 /* end confdefs.h. */
13331 __asm__ __volatile__("vexp2pd %zmm0,%zmm1");
13335 if ac_fn_c_try_link
"$LINENO"; then :
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13338 $as_echo "yes" >&6; }
13340 $as_echo "#define HAVE_AVX512ER 1" >>confdefs.h
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13346 $as_echo "no" >&6; }
13349 rm -f core conftest.err conftest.
$ac_objext \
13350 conftest
$ac_exeext conftest.
$ac_ext
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether host toolchain supports AVX512VL" >&5
13354 $as_echo_n "checking whether host toolchain supports AVX512VL... " >&6; }
13356 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13357 /* end confdefs.h. */
13362 __asm__ __volatile__("vpabsq %zmm0,%zmm1");
13366 if ac_fn_c_try_link
"$LINENO"; then :
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13369 $as_echo "yes" >&6; }
13371 $as_echo "#define HAVE_AVX512VL 1" >>confdefs.h
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13377 $as_echo "no" >&6; }
13380 rm -f core conftest.err conftest.
$ac_objext \
13381 conftest
$ac_exeext conftest.
$ac_ext
13387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
13388 $as_echo_n "checking for target asm dir... " >&6; }
13389 TARGET_ARCH
=`echo ${target_cpu} | sed -e s/i.86/i386/`
13391 case $TARGET_ARCH in
13393 TARGET_ASM_DIR
=asm-
${TARGET_ARCH}
13396 TARGET_ASM_DIR
=asm-generic
13401 if test $TARGET_ASM_DIR = asm-x86_64
; then
13402 TARGET_ASM_X86_64_TRUE
=
13403 TARGET_ASM_X86_64_FALSE
='#'
13405 TARGET_ASM_X86_64_TRUE
='#'
13406 TARGET_ASM_X86_64_FALSE
=
13409 if test $TARGET_ASM_DIR = asm-i386
; then
13410 TARGET_ASM_I386_TRUE
=
13411 TARGET_ASM_I386_FALSE
='#'
13413 TARGET_ASM_I386_TRUE
='#'
13414 TARGET_ASM_I386_FALSE
=
13417 if test $TARGET_ASM_DIR = asm-generic
; then
13418 TARGET_ASM_GENERIC_TRUE
=
13419 TARGET_ASM_GENERIC_FALSE
='#'
13421 TARGET_ASM_GENERIC_TRUE
='#'
13422 TARGET_ASM_GENERIC_FALSE
=
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
13426 $as_echo "$TARGET_ASM_DIR" >&6; }
13430 case "$ZFS_CONFIG" in
13434 # Check whether --with-linux was given.
13435 if test "${with_linux+set}" = set; then :
13436 withval
=$with_linux; kernelsrc
="$withval"
13441 # Check whether --with-linux-obj was given.
13442 if test "${with_linux_obj+set}" = set; then :
13443 withval
=$with_linux_obj; kernelbuild
="$withval"
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
13448 $as_echo_n "checking kernel source directory... " >&6; }
13449 if test -z "$kernelsrc"; then :
13451 if test -e "/lib/modules/$(uname -r)/source"; then :
13453 headersdir
="/lib/modules/$(uname -r)/source"
13454 sourcelink
=$
(readlink
-f "$headersdir")
13456 elif test -e "/lib/modules/$(uname -r)/build"; then :
13458 headersdir
="/lib/modules/$(uname -r)/build"
13459 sourcelink
=$
(readlink
-f "$headersdir")
13463 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
13465 2>/dev
/null |
grep -v obj |
tail -1)
13469 if test -n "$sourcelink" && test -e ${sourcelink}; then :
13471 kernelsrc
=`readlink -f ${sourcelink}`
13475 kernelsrc
="Not found"
13481 if test "$kernelsrc" = "NONE"; then :
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
13491 $as_echo "$kernelsrc" >&6; }
13492 if test ! -d "$kernelsrc"; then :
13495 *** Please make sure the kernel devel package for your distribution
13496 *** is installed and then try again. If that fails, you can specify the
13497 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
13502 $as_echo_n "checking kernel build directory... " >&6; }
13503 if test -z "$kernelbuild"; then :
13505 if test x
$withlinux != xyes
-a -e "/lib/modules/$(uname -r)/build"; then :
13507 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
13509 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
13511 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
13513 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then :
13515 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
13517 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then :
13519 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
13523 kernelbuild
=${kernelsrc}
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
13529 $as_echo "$kernelbuild" >&6; }
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
13532 $as_echo_n "checking kernel source version... " >&6; }
13533 utsrelease1
=$kernelbuild/include
/linux
/version.h
13534 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
13535 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
13536 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then :
13538 utsrelease
=linux
/version.h
13540 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then :
13542 utsrelease
=linux
/utsrelease.h
13544 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then :
13546 utsrelease
=generated
/utsrelease.h
13550 if test "$utsrelease"; then :
13552 kernsrcver
=`(echo "#include <$utsrelease>";
13553 echo "kernsrcver=UTS_RELEASE") |
13554 cpp -I $kernelbuild/include |
13555 grep "^kernsrcver=" | cut -d \" -f 2`
13557 if test -z "$kernsrcver"; then :
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13560 $as_echo "Not found" >&6; }
13561 as_fn_error $?
"*** Cannot determine kernel version." "$LINENO" 5
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13568 $as_echo "Not found" >&6; }
13569 if test "x$enable_linux_builtin" != xyes
; then
13570 as_fn_error $?
"*** Cannot find UTS_RELEASE definition." "$LINENO" 5
13573 *** Cannot find UTS_RELEASE definition.
13574 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
13580 $as_echo "$kernsrcver" >&6; }
13583 LINUX_OBJ
=${kernelbuild}
13584 LINUX_VERSION
=${kernsrcver}
13591 modpost
=$LINUX/scripts
/Makefile.modpost
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
13593 $as_echo_n "checking kernel file name for module symbols... " >&6; }
13594 if test "x$enable_linux_builtin" != xyes
-a -f "$modpost"; then :
13596 if grep -q Modules.symvers
$modpost; then :
13598 LINUX_SYMBOLS
=Modules.symvers
13602 LINUX_SYMBOLS
=Module.symvers
13606 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
13609 *** Please make sure the kernel devel package for your distribution
13610 *** is installed. If you are building with a custom kernel, make sure the
13611 *** kernel is configured, built, and the '--with-linux=PATH' configure
13612 *** option refers to the location of the kernel source." "$LINENO" 5
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
13622 $as_echo "$LINUX_SYMBOLS" >&6; }
13628 # Check whether --with-spl was given.
13629 if test "${with_spl+set}" = set; then :
13630 withval
=$with_spl; if test "$withval" = "yes"; then :
13631 as_fn_error $?
"--with-spl=PATH requires a PATH" "$LINENO" 5
13639 # Check whether --with-spl-obj was given.
13640 if test "${with_spl_obj+set}" = set; then :
13641 withval
=$with_spl_obj; splbuild
="$withval"
13646 # Check whether --with-spl-timeout was given.
13647 if test "${with_spl_timeout+set}" = set; then :
13648 withval
=$with_spl_timeout; timeout
="$withval"
13654 splsrc0
="/var/lib/dkms/spl/${VERSION}/build"
13655 splsrc1
="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
13656 splsrc2
="/usr/local/src/spl-${VERSION}"
13657 splsrc3
="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
13658 splsrc4
="/usr/src/spl-${VERSION}"
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
13663 $as_echo_n "checking spl source directory... " >&6; }
13664 if test -z "${splsrc}"; then :
13674 if test -e "${splsrc0}/spl.release.in"; then :
13678 elif test -e "${splsrc1}/spl.release.in"; then :
13682 elif test -e "${splsrc2}/spl.release.in"; then :
13686 elif test -e "${splsrc3}/spl.release.in"; then :
13688 splsrc
=$
(readlink
-f "${splsrc3}")
13690 elif test -e "${splsrc4}/spl.release.in" ; then :
13694 elif test -e "${splsrc5}/spl.release.in"; then :
13696 splsrc
=$
(readlink
-f "${splsrc5}")
13698 elif test -e "${splsrc6}/spl.release.in" ; then :
13710 all_spl_sources
="$withval",
13711 if test "$splsrc" = "NONE"; then :
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
13721 $as_echo "$splsrc" >&6; }
13722 if test ! -e "$splsrc/spl.release.in"; then :
13725 *** Please make sure the kmod spl devel package for your distribution
13726 *** is installed then try again. If that fails you can specify the
13727 *** location of the spl source with the '--with-spl=PATH' option.
13728 *** The spl version must match the version of ZFS you are building,
13729 *** ${VERSION}. Failed to find spl.release.in in the following:
13730 $all_spl_sources" "$LINENO" 5
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
13735 $as_echo_n "checking spl build directory... " >&6; }
13737 all_spl_config_locs
="${splsrc}/${LINUX_VERSION}
13741 if test -z "$splbuild"; then :
13743 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
13745 splbuild
="${splsrc}/${LINUX_VERSION}"
13747 elif test -e "${splsrc}/spl_config.h" ; then :
13749 splbuild
="${splsrc}"
13751 elif find -L "${splsrc}" -name spl_config.h
2> /dev
/null |
grep -wq spl_config.h
; then :
13753 splbuild
=$
(find -L "${splsrc}" -name spl_config.h |
sed 's,/spl_config.h,,')
13757 splbuild
="Not found"
13762 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
13769 timeout
=$
((timeout-1
))
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
13775 $as_echo "$splbuild" >&6; }
13776 if ! test -e "$splbuild/spl_config.h"; then :
13779 *** Please make sure the kmod spl devel <kernel> package for your
13780 *** distribution is installed then try again. If that fails you
13781 *** can specify the location of the spl objects with the
13782 *** '--with-spl-obj=PATH' option. Failed to find spl_config.h in
13783 *** any of the following:
13784 $all_spl_config_locs" "$LINENO" 5
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
13789 $as_echo_n "checking spl source version... " >&6; }
13790 if test -r $splbuild/spl_config.h
&&
13791 fgrep
-q SPL_META_VERSION
$splbuild/spl_config.h
; then :
13794 splsrcver
=`(echo "#include <spl_config.h>";
13795 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
13797 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
13801 if test -z "$splsrcver"; then :
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13804 $as_echo "Not found" >&6; }
13806 *** Cannot determine the version of the spl source.
13807 *** Please prepare the spl source before running this script" "$LINENO" 5
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
13812 $as_echo "$splsrcver" >&6; }
13815 SPL_OBJ
=${splbuild}
13816 SPL_VERSION
=${splsrcver}
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
13823 $as_echo_n "checking spl file name for module symbols... " >&6; }
13827 if test -r $SPL_OBJ/Module.symvers
; then :
13829 SPL_SYMBOLS
=Module.symvers
13831 elif test -r $SPL_OBJ/Modules.symvers
; then :
13833 SPL_SYMBOLS
=Modules.symvers
13835 elif test -r $SPL_OBJ/module
/Module.symvers
; then :
13837 SPL_SYMBOLS
=Module.symvers
13839 elif test -r $SPL_OBJ/module
/Modules.symvers
; then :
13841 SPL_SYMBOLS
=Modules.symvers
13845 if test $SPL_SYMBOLS != NONE
-o $timeout -le 0; then :
13852 timeout
=$
((timeout-1
))
13857 if test "$SPL_SYMBOLS" = NONE
; then :
13859 SPL_SYMBOLS
=$LINUX_SYMBOLS
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
13864 $as_echo "$SPL_SYMBOLS" >&6; }
13869 # Check whether --with-qat was given.
13870 if test "${with_qat+set}" = set; then :
13871 withval
=$with_qat; if test "$withval" = "yes"; then :
13872 as_fn_error $?
"--with-qat=PATH requires a PATH" "$LINENO" 5
13880 # Check whether --with-qat-obj was given.
13881 if test "${with_qat_obj+set}" = set; then :
13882 withval
=$with_qat_obj; qatbuild
="$withval"
13886 if test ! -z "${qatsrc}"; then :
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat source directory" >&5
13889 $as_echo_n "checking qat source directory... " >&6; }
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qatsrc" >&5
13891 $as_echo "$qatsrc" >&6; }
13892 QAT_SRC
="${qatsrc}/quickassist"
13893 if test ! -e "$QAT_SRC/include/cpa.h"; then :
13896 *** Please make sure the qat driver package is installed
13897 *** and specify the location of the qat source with the
13898 *** '--with-qat=PATH' option then try again. Failed to
13900 ${QAT_SRC}/include" "$LINENO" 5
13906 if test ! -z "${qatsrc}"; then :
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat build directory" >&5
13909 $as_echo_n "checking qat build directory... " >&6; }
13910 if test -z "$qatbuild"; then :
13912 qatbuild
="${qatsrc}/build"
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qatbuild" >&5
13917 $as_echo "$qatbuild" >&6; }
13918 QAT_OBJ
=${qatbuild}
13919 if ! test -e "$QAT_OBJ/icp_qa_al.ko" && ! test -e "$QAT_OBJ/qat_api.ko"; then :
13922 *** Please make sure the qat driver is installed then try again.
13923 *** Failed to find icp_qa_al.ko or qat_api.ko in:
13924 $QAT_OBJ" "$LINENO" 5
13932 $as_echo "#define HAVE_QAT 1" >>confdefs.h
13937 if test ! -z "${qatsrc}"; then :
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat file for module symbols" >&5
13940 $as_echo_n "checking qat file for module symbols... " >&6; }
13941 QAT_SYMBOLS
=$QAT_SRC/lookaside
/access_layer
/src
/Module.symvers
13943 if test -r $QAT_SYMBOLS; then :
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QAT_SYMBOLS" >&5
13946 $as_echo "$QAT_SYMBOLS" >&6; }
13952 *** Please make sure the qat driver is installed then try again.
13953 *** Failed to find Module.symvers in:
13954 $QAT_SYMBOLS" "$LINENO" 5
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
13962 $as_echo_n "checking whether modules can be built... " >&6; }
13965 cat confdefs.h
- <<_ACEOF >conftest.c
13980 cat - <<_ACEOF >conftest.h
13985 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13986 echo "obj-m := conftest.o" >build
/Makefile
13988 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13989 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13991 (eval $ac_try) 2>&5
13993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13994 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13996 (eval $ac_try) 2>&5
13998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13999 test $ac_status = 0; }; }; then :
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14002 $as_echo "yes" >&6; }
14005 $as_echo "$as_me: failed program was:" >&5
14006 sed 's/^/| /' conftest.
$ac_ext >&5
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14009 $as_echo "no" >&6; }
14010 if test "x$enable_linux_builtin" != xyes
; then
14011 as_fn_error $?
"*** Unable to build an empty module." "$LINENO" 5
14014 *** Unable to build an empty module.
14015 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile-time stack validation (objtool)" >&5
14027 $as_echo_n "checking for compile-time stack validation (objtool)... " >&6; }
14030 cat confdefs.h
- <<_ACEOF >conftest.c
14033 #undef __ASSEMBLY__
14034 #include <asm/frame.h>
14040 #if !defined(FRAME_BEGIN)
14052 cat - <<_ACEOF >conftest.h
14057 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14058 echo "obj-m := conftest.o" >build
/Makefile
14060 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14061 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14063 (eval $ac_try) 2>&5
14065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14066 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14068 (eval $ac_try) 2>&5
14070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14071 test $ac_status = 0; }; }; then :
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14074 $as_echo "yes" >&6; }
14076 $as_echo "#define HAVE_KERNEL_OBJTOOL 1" >>confdefs.h
14080 $as_echo "$as_me: failed program was:" >&5
14081 sed 's/^/| /' conftest.
$ac_ext >&5
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14084 $as_echo "no" >&6; }
14094 if test "x$cross_compiling" != xyes
; then :
14096 if test "$cross_compiling" = yes; then :
14097 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14098 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14099 as_fn_error $?
"cannot run test program while cross compiling
14100 See \`config.log' for more details" "$LINENO" 5; }
14102 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14103 /* end confdefs.h. */
14106 #include "$LINUX/include/linux/license.h"
14112 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
14119 if ac_fn_c_try_run
"$LINENO"; then :
14122 $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
14126 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14127 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with 16K or larger stacks" >&5
14135 $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
14138 cat confdefs.h
- <<_ACEOF >conftest.c
14141 #include <linux/module.h>
14147 #if (THREAD_SIZE < 16384)
14148 #error "THREAD_SIZE is less than 16K"
14159 cat - <<_ACEOF >conftest.h
14164 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14165 echo "obj-m := conftest.o" >build
/Makefile
14167 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14168 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14170 (eval $ac_try) 2>&5
14172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14173 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14175 (eval $ac_try) 2>&5
14177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14178 test $ac_status = 0; }; }; then :
14180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14181 $as_echo "yes" >&6; }
14183 $as_echo "#define HAVE_LARGE_STACKS 1" >>confdefs.h
14187 $as_echo "$as_me: failed program was:" >&5
14188 sed 's/^/| /' conftest.
$ac_ext >&5
14190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14191 $as_echo "no" >&6; }
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
14203 $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
14206 cat confdefs.h
- <<_ACEOF >conftest.c
14209 #include <linux/module.h>
14215 #ifndef CONFIG_DEBUG_LOCK_ALLOC
14216 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
14227 cat - <<_ACEOF >conftest.h
14232 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14233 echo "obj-m := conftest.o" >build
/Makefile
14235 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14236 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14238 (eval $ac_try) 2>&5
14240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14241 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14242 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14243 (eval $ac_try) 2>&5
14245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14246 test $ac_status = 0; }; }; then :
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14249 $as_echo "yes" >&6; }
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
14252 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
14253 tmp_flags
="$EXTRA_KCFLAGS"
14256 cat confdefs.h
- <<_ACEOF >conftest.c
14259 #include <linux/module.h>
14260 #include <linux/mutex.h>
14262 MODULE_LICENSE("$ZFS_META_LICENSE");
14272 mutex_unlock(&lock);
14282 cat - <<_ACEOF >conftest.h
14287 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14288 echo "obj-m := conftest.o" >build
/Makefile
14290 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14291 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14293 (eval $ac_try) 2>&5
14295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14296 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14298 (eval $ac_try) 2>&5
14300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14301 test $ac_status = 0; }; }; then :
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14304 $as_echo "no" >&6; }
14307 $as_echo "$as_me: failed program was:" >&5
14308 sed 's/^/| /' conftest.
$ac_ext >&5
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14311 $as_echo "yes" >&6; }
14313 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
14314 *** with the CDDL license and will prevent the module linking stage
14315 *** from succeeding. You must rebuild your kernel without this
14316 *** option enabled." "$LINENO" 5
14324 EXTRA_KCFLAGS
="$tmp_flags"
14328 $as_echo "$as_me: failed program was:" >&5
14329 sed 's/^/| /' conftest.
$ac_ext >&5
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14332 $as_echo "no" >&6; }
14345 tmp_flags
="$EXTRA_KCFLAGS"
14346 EXTRA_KCFLAGS
="-I\$(src)"
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
14349 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
14352 cat confdefs.h
- <<_ACEOF >conftest.c
14355 #include <linux/module.h>
14356 MODULE_LICENSE(ZFS_META_LICENSE);
14358 #define CREATE_TRACE_POINTS
14359 #include "conftest.h"
14365 trace_zfs_autoconf_event_one(1UL);
14366 trace_zfs_autoconf_event_two(2UL);
14376 cat - <<_ACEOF >conftest.h
14378 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
14379 #define _CONFTEST_H
14381 #undef TRACE_SYSTEM
14382 #define TRACE_SYSTEM zfs
14383 #include <linux/tracepoint.h>
14385 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
14386 TP_PROTO(unsigned long i),
14389 __field(unsigned long, i)
14394 TP_printk("i = %lu", __entry->i)
14397 #define DEFINE_AUTOCONF_EVENT(name) \
14398 DEFINE_EVENT(zfs_autoconf_event_class, name, \
14399 TP_PROTO(unsigned long i), \
14401 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
14402 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
14404 #endif /* _CONFTEST_H */
14406 #undef TRACE_INCLUDE_PATH
14407 #define TRACE_INCLUDE_PATH .
14408 #define TRACE_INCLUDE_FILE conftest
14409 #include <trace/define_trace.h>
14414 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14415 echo "obj-m := conftest.o" >build
/Makefile
14417 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14418 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14420 (eval $ac_try) 2>&5
14422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14423 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14425 (eval $ac_try) 2>&5
14427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14428 test $ac_status = 0; }; }; then :
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14431 $as_echo "yes" >&6; }
14433 $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
14437 $as_echo "$as_me: failed program was:" >&5
14438 sed 's/^/| /' conftest.
$ac_ext >&5
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14441 $as_echo "no" >&6; }
14449 EXTRA_KCFLAGS
="$tmp_flags"
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5
14453 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
14456 cat confdefs.h
- <<_ACEOF >conftest.c
14459 #include <linux/sched.h>
14465 current->bio_tail = (struct bio **) NULL;
14475 cat - <<_ACEOF >conftest.h
14480 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14481 echo "obj-m := conftest.o" >build
/Makefile
14483 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14484 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14485 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14486 (eval $ac_try) 2>&5
14488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14489 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14490 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14491 (eval $ac_try) 2>&5
14493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14494 test $ac_status = 0; }; }; then :
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14497 $as_echo "yes" >&6; }
14499 $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h
14503 $as_echo "$as_me: failed program was:" >&5
14504 sed 's/^/| /' conftest.
$ac_ext >&5
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14507 $as_echo "no" >&6; }
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5
14509 $as_echo_n "checking whether current->bio_list exists... " >&6; }
14512 cat confdefs.h
- <<_ACEOF >conftest.c
14515 #include <linux/sched.h>
14521 current->bio_list = (struct bio_list *) NULL;
14531 cat - <<_ACEOF >conftest.h
14536 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14537 echo "obj-m := conftest.o" >build
/Makefile
14539 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14540 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14542 (eval $ac_try) 2>&5
14544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14545 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14547 (eval $ac_try) 2>&5
14549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14550 test $ac_status = 0; }; }; then :
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14553 $as_echo "yes" >&6; }
14555 $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h
14559 $as_echo "$as_me: failed program was:" >&5
14560 sed 's/^/| /' conftest.
$ac_ext >&5
14562 as_fn_error $?
"no - Please file a bug report at
14563 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block->s_user_ns exists" >&5
14581 $as_echo_n "checking whether super_block->s_user_ns exists... " >&6; }
14584 cat confdefs.h
- <<_ACEOF >conftest.c
14587 #include <linux/fs.h>
14588 #include <linux/user_namespace.h>
14594 struct super_block super;
14595 super.s_user_ns = (struct user_namespace *)NULL;
14605 cat - <<_ACEOF >conftest.h
14610 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14611 echo "obj-m := conftest.o" >build
/Makefile
14613 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14614 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14616 (eval $ac_try) 2>&5
14618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14619 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14621 (eval $ac_try) 2>&5
14623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14624 test $ac_status = 0; }; }; then :
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14627 $as_echo "yes" >&6; }
14629 $as_echo "#define HAVE_SUPER_USER_NS 1" >>confdefs.h
14633 $as_echo "$as_me: failed program was:" >&5
14634 sed 's/^/| /' conftest.
$ac_ext >&5
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14637 $as_echo "no" >&6; }
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether submit_bio() wants 1 arg" >&5
14648 $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
14651 cat confdefs.h
- <<_ACEOF >conftest.c
14654 #include <linux/bio.h>
14661 struct bio *bio = NULL;
14662 blk_qc = submit_bio(bio);
14672 cat - <<_ACEOF >conftest.h
14677 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14678 echo "obj-m := conftest.o" >build
/Makefile
14680 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14681 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14683 (eval $ac_try) 2>&5
14685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14686 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14688 (eval $ac_try) 2>&5
14690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14691 test $ac_status = 0; }; }; then :
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14694 $as_echo "yes" >&6; }
14696 $as_echo "#define HAVE_1ARG_SUBMIT_BIO 1" >>confdefs.h
14700 $as_echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.
$ac_ext >&5
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14704 $as_echo "no" >&6; }
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
14715 $as_echo_n "checking block device operation prototypes... " >&6; }
14716 tmp_flags
="$EXTRA_KCFLAGS"
14717 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14720 cat confdefs.h
- <<_ACEOF >conftest.c
14723 #include <linux/blkdev.h>
14725 int blk_open(struct block_device *bdev, fmode_t mode)
14727 int blk_ioctl(struct block_device *bdev, fmode_t mode,
14728 unsigned x, unsigned long y) { return 0; }
14729 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
14730 unsigned x, unsigned long y) { return 0; }
14732 static const struct block_device_operations
14733 bops __attribute__ ((unused)) = {
14736 .ioctl = blk_ioctl,
14737 .compat_ioctl = blk_compat_ioctl,
14753 cat - <<_ACEOF >conftest.h
14758 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14759 echo "obj-m := conftest.o" >build
/Makefile
14761 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14762 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14764 (eval $ac_try) 2>&5
14766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14767 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14769 (eval $ac_try) 2>&5
14771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14772 test $ac_status = 0; }; }; then :
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
14775 $as_echo "struct block_device" >&6; }
14777 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
14781 $as_echo "$as_me: failed program was:" >&5
14782 sed 's/^/| /' conftest.
$ac_ext >&5
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
14785 $as_echo "struct inode" >&6; }
14793 EXTRA_KCFLAGS
="$tmp_flags"
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
14797 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
14798 tmp_flags
="$EXTRA_KCFLAGS"
14799 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14802 cat confdefs.h
- <<_ACEOF >conftest.c
14805 #include <linux/blkdev.h>
14807 void blk_release(struct gendisk *g, fmode_t mode) { return; }
14809 static const struct block_device_operations
14810 bops __attribute__ ((unused)) = {
14812 .release = blk_release,
14814 .compat_ioctl = NULL,
14830 cat - <<_ACEOF >conftest.h
14835 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14836 echo "obj-m := conftest.o" >build
/Makefile
14838 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14839 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14841 (eval $ac_try) 2>&5
14843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14844 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14846 (eval $ac_try) 2>&5
14848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14849 test $ac_status = 0; }; }; then :
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
14852 $as_echo "void" >&6; }
14854 $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
14858 $as_echo "$as_me: failed program was:" >&5
14859 sed 's/^/| /' conftest.
$ac_ext >&5
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
14862 $as_echo "int" >&6; }
14870 EXTRA_KCFLAGS
="$tmp_flags"
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
14873 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
14876 cat confdefs.h
- <<_ACEOF >conftest.c
14879 #include <linux/types.h>
14885 fmode_t *ptr __attribute__ ((unused));
14895 cat - <<_ACEOF >conftest.h
14900 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14901 echo "obj-m := conftest.o" >build
/Makefile
14903 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14904 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14906 (eval $ac_try) 2>&5
14908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14909 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14911 (eval $ac_try) 2>&5
14913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14914 test $ac_status = 0; }; }; then :
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14917 $as_echo "yes" >&6; }
14919 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
14923 $as_echo "$as_me: failed program was:" >&5
14924 sed 's/^/| /' conftest.
$ac_ext >&5
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14927 $as_echo "no" >&6; }
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
14938 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
14941 cat confdefs.h
- <<_ACEOF >conftest.c
14944 #include <linux/fs.h>
14950 struct block_device *bdev = NULL;
14951 (void) blkdev_get(bdev, 0, NULL);
14961 cat - <<_ACEOF >conftest.h
14966 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14967 echo "obj-m := conftest.o" >build
/Makefile
14969 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14970 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14972 (eval $ac_try) 2>&5
14974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14975 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14977 (eval $ac_try) 2>&5
14979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14980 test $ac_status = 0; }; }; then :
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14983 $as_echo "yes" >&6; }
14985 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
14989 $as_echo "$as_me: failed program was:" >&5
14990 sed 's/^/| /' conftest.
$ac_ext >&5
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14993 $as_echo "no" >&6; }
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
15003 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
15007 cat confdefs.h
- <<_ACEOF >conftest.c
15010 #include <linux/fs.h>
15016 blkdev_get_by_path(NULL, 0, NULL);
15026 cat - <<_ACEOF >conftest.h
15031 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15032 echo "obj-m := conftest.o" >build
/Makefile
15034 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15035 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15037 (eval $ac_try) 2>&5
15039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15040 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15042 (eval $ac_try) 2>&5
15044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15045 test $ac_status = 0; }; }; then :
15048 $as_echo "$as_me: failed program was:" >&5
15049 sed 's/^/| /' conftest.
$ac_ext >&5
15057 if test $rc -ne 0; then :
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15060 $as_echo "no" >&6; }
15063 if test "x$enable_linux_builtin" != xyes
; then
15065 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
15066 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15068 if test $rc -ne 0; then
15070 for file in fs
/block_dev.c
; do
15071 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
15072 "$LINUX/$file" 2>/dev
/null
15074 if test $rc -eq 0; then
15079 if test $export -eq 0; then :
15089 if test $rc -ne 0; then :
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15092 $as_echo "no" >&6; }
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15097 $as_echo "yes" >&6; }
15099 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
15107 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
15111 cat confdefs.h
- <<_ACEOF >conftest.c
15114 #include <linux/fs.h>
15120 open_bdev_exclusive(NULL, 0, NULL);
15130 cat - <<_ACEOF >conftest.h
15135 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15136 echo "obj-m := conftest.o" >build
/Makefile
15138 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15139 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15141 (eval $ac_try) 2>&5
15143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15144 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15146 (eval $ac_try) 2>&5
15148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15149 test $ac_status = 0; }; }; then :
15152 $as_echo "$as_me: failed program was:" >&5
15153 sed 's/^/| /' conftest.
$ac_ext >&5
15161 if test $rc -ne 0; then :
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15164 $as_echo "no" >&6; }
15167 if test "x$enable_linux_builtin" != xyes
; then
15169 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
15170 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15172 if test $rc -ne 0; then
15174 for file in fs
/block_dev.c
; do
15175 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
15176 "$LINUX/$file" 2>/dev
/null
15178 if test $rc -eq 0; then
15183 if test $export -eq 0; then :
15193 if test $rc -ne 0; then :
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15196 $as_echo "no" >&6; }
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15201 $as_echo "yes" >&6; }
15203 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
15210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 1 arg" >&5
15211 $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
15215 cat confdefs.h
- <<_ACEOF >conftest.c
15218 #include <linux/fs.h>
15234 cat - <<_ACEOF >conftest.h
15239 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15240 echo "obj-m := conftest.o" >build
/Makefile
15242 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15243 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15245 (eval $ac_try) 2>&5
15247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15248 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15250 (eval $ac_try) 2>&5
15252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15253 test $ac_status = 0; }; }; then :
15256 $as_echo "$as_me: failed program was:" >&5
15257 sed 's/^/| /' conftest.
$ac_ext >&5
15265 if test $rc -ne 0; then :
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15268 $as_echo "no" >&6; }
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
15270 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
15274 cat confdefs.h
- <<_ACEOF >conftest.c
15277 #include <linux/fs.h>
15283 lookup_bdev(NULL, FMODE_READ);
15293 cat - <<_ACEOF >conftest.h
15298 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15299 echo "obj-m := conftest.o" >build
/Makefile
15301 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15302 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15304 (eval $ac_try) 2>&5
15306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15307 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15308 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15309 (eval $ac_try) 2>&5
15311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15312 test $ac_status = 0; }; }; then :
15315 $as_echo "$as_me: failed program was:" >&5
15316 sed 's/^/| /' conftest.
$ac_ext >&5
15324 if test $rc -ne 0; then :
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15327 $as_echo "no" >&6; }
15330 if test "x$enable_linux_builtin" != xyes
; then
15332 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15333 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15335 if test $rc -ne 0; then
15337 for file in fs
/block_dev.c
; do
15338 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15339 "$LINUX/$file" 2>/dev
/null
15341 if test $rc -eq 0; then
15346 if test $export -eq 0; then :
15356 if test $rc -ne 0; then :
15358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15359 $as_echo "no" >&6; }
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15364 $as_echo "yes" >&6; }
15366 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
15374 if test "x$enable_linux_builtin" != xyes
; then
15376 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15377 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15379 if test $rc -ne 0; then
15381 for file in fs
/block_dev.c
; do
15382 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15383 "$LINUX/$file" 2>/dev
/null
15385 if test $rc -eq 0; then
15390 if test $export -eq 0; then :
15400 if test $rc -ne 0; then :
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15403 $as_echo "no" >&6; }
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
15405 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
15409 cat confdefs.h
- <<_ACEOF >conftest.c
15412 #include <linux/fs.h>
15418 lookup_bdev(NULL, FMODE_READ);
15428 cat - <<_ACEOF >conftest.h
15433 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15434 echo "obj-m := conftest.o" >build
/Makefile
15436 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15437 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15438 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15439 (eval $ac_try) 2>&5
15441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15442 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15444 (eval $ac_try) 2>&5
15446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15447 test $ac_status = 0; }; }; then :
15450 $as_echo "$as_me: failed program was:" >&5
15451 sed 's/^/| /' conftest.
$ac_ext >&5
15459 if test $rc -ne 0; then :
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15462 $as_echo "no" >&6; }
15465 if test "x$enable_linux_builtin" != xyes
; then
15467 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15468 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15470 if test $rc -ne 0; then
15472 for file in fs
/block_dev.c
; do
15473 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15474 "$LINUX/$file" 2>/dev
/null
15476 if test $rc -eq 0; then
15481 if test $export -eq 0; then :
15491 if test $rc -ne 0; then :
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15494 $as_echo "no" >&6; }
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15499 $as_echo "yes" >&6; }
15501 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15511 $as_echo "yes" >&6; }
15513 $as_echo "#define HAVE_1ARG_LOOKUP_BDEV 1" >>confdefs.h
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
15522 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
15525 cat confdefs.h
- <<_ACEOF >conftest.c
15528 #include <linux/buffer_head.h>
15534 struct block_device *bdev = NULL;
15535 invalidate_bdev(bdev);
15545 cat - <<_ACEOF >conftest.h
15550 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15551 echo "obj-m := conftest.o" >build
/Makefile
15553 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15554 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15556 (eval $ac_try) 2>&5
15558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15559 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15561 (eval $ac_try) 2>&5
15563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15564 test $ac_status = 0; }; }; then :
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15567 $as_echo "yes" >&6; }
15569 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
15573 $as_echo "$as_me: failed program was:" >&5
15574 sed 's/^/| /' conftest.
$ac_ext >&5
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15577 $as_echo "no" >&6; }
15587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
15588 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
15589 tmp_flags
="$EXTRA_KCFLAGS"
15590 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15593 cat confdefs.h
- <<_ACEOF >conftest.c
15596 #include <linux/blkdev.h>
15602 struct block_device *bdev = NULL;
15603 bdev_logical_block_size(bdev);
15613 cat - <<_ACEOF >conftest.h
15618 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15619 echo "obj-m := conftest.o" >build
/Makefile
15621 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15622 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15624 (eval $ac_try) 2>&5
15626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15627 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15628 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15629 (eval $ac_try) 2>&5
15631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15632 test $ac_status = 0; }; }; then :
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15635 $as_echo "yes" >&6; }
15637 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
15641 $as_echo "$as_me: failed program was:" >&5
15642 sed 's/^/| /' conftest.
$ac_ext >&5
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15645 $as_echo "no" >&6; }
15653 EXTRA_KCFLAGS
="$tmp_flags"
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
15657 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
15658 tmp_flags
="$EXTRA_KCFLAGS"
15659 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15662 cat confdefs.h
- <<_ACEOF >conftest.c
15665 #include <linux/blkdev.h>
15671 struct block_device *bdev = NULL;
15672 bdev_physical_block_size(bdev);
15682 cat - <<_ACEOF >conftest.h
15687 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15688 echo "obj-m := conftest.o" >build
/Makefile
15690 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15691 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15693 (eval $ac_try) 2>&5
15695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15696 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15698 (eval $ac_try) 2>&5
15700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15701 test $ac_status = 0; }; }; then :
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15704 $as_echo "yes" >&6; }
15706 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
15710 $as_echo "$as_me: failed program was:" >&5
15711 sed 's/^/| /' conftest.
$ac_ext >&5
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15714 $as_echo "no" >&6; }
15722 EXTRA_KCFLAGS
="$tmp_flags"
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
15726 $as_echo_n "checking whether bio has bi_iter... " >&6; }
15729 cat confdefs.h
- <<_ACEOF >conftest.c
15732 #include <linux/bio.h>
15739 bio.bi_iter.bi_sector = 0;
15749 cat - <<_ACEOF >conftest.h
15754 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15755 echo "obj-m := conftest.o" >build
/Makefile
15757 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15758 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15760 (eval $ac_try) 2>&5
15762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15763 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15765 (eval $ac_try) 2>&5
15767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15768 test $ac_status = 0; }; }; then :
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15771 $as_echo "yes" >&6; }
15773 $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
15777 $as_echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.
$ac_ext >&5
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15781 $as_echo "no" >&6; }
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
15792 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
15795 cat confdefs.h
- <<_ACEOF >conftest.c
15798 #include <linux/bio.h>
15804 int flags __attribute__ ((unused));
15805 flags = ((1 << BIO_RW_FAILFAST_DEV) |
15806 (1 << BIO_RW_FAILFAST_TRANSPORT) |
15807 (1 << BIO_RW_FAILFAST_DRIVER));
15817 cat - <<_ACEOF >conftest.h
15822 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15823 echo "obj-m := conftest.o" >build
/Makefile
15825 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15826 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15828 (eval $ac_try) 2>&5
15830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15831 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15833 (eval $ac_try) 2>&5
15835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15836 test $ac_status = 0; }; }; then :
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15839 $as_echo "yes" >&6; }
15841 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
15845 $as_echo "$as_me: failed program was:" >&5
15846 sed 's/^/| /' conftest.
$ac_ext >&5
15848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15849 $as_echo "no" >&6; }
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_dev() exists" >&5
15860 $as_echo_n "checking whether bio_set_dev() exists... " >&6; }
15863 cat confdefs.h
- <<_ACEOF >conftest.c
15866 #include <linux/bio.h>
15867 #include <linux/fs.h>
15873 struct block_device *bdev = NULL;
15874 struct bio *bio = NULL;
15875 bio_set_dev(bio, bdev);
15885 cat - <<_ACEOF >conftest.h
15890 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15891 echo "obj-m := conftest.o" >build
/Makefile
15893 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15894 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15895 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15896 (eval $ac_try) 2>&5
15898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15899 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15901 (eval $ac_try) 2>&5
15903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15904 test $ac_status = 0; }; }; then :
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15907 $as_echo "yes" >&6; }
15909 $as_echo "#define HAVE_BIO_SET_DEV 1" >>confdefs.h
15913 $as_echo "$as_me: failed program was:" >&5
15914 sed 's/^/| /' conftest.
$ac_ext >&5
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15917 $as_echo "no" >&6; }
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
15928 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
15931 cat confdefs.h
- <<_ACEOF >conftest.c
15934 #include <linux/bio.h>
15940 int flags __attribute__ ((unused));
15941 flags = REQ_FAILFAST_MASK;
15951 cat - <<_ACEOF >conftest.h
15956 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15957 echo "obj-m := conftest.o" >build
/Makefile
15959 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15960 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15962 (eval $ac_try) 2>&5
15964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15965 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15967 (eval $ac_try) 2>&5
15969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15970 test $ac_status = 0; }; }; then :
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15973 $as_echo "yes" >&6; }
15975 $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h
15979 $as_echo "$as_me: failed program was:" >&5
15980 sed 's/^/| /' conftest.
$ac_ext >&5
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15983 $as_echo "no" >&6; }
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_DISCARD is defined" >&5
15994 $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
15997 cat confdefs.h
- <<_ACEOF >conftest.c
16000 #include <linux/blk_types.h>
16006 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
16016 cat - <<_ACEOF >conftest.h
16021 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16022 echo "obj-m := conftest.o" >build
/Makefile
16024 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16025 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16027 (eval $ac_try) 2>&5
16029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16030 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16032 (eval $ac_try) 2>&5
16034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16035 test $ac_status = 0; }; }; then :
16037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16038 $as_echo "yes" >&6; }
16040 $as_echo "#define HAVE_REQ_OP_DISCARD 1" >>confdefs.h
16044 $as_echo "$as_me: failed program was:" >&5
16045 sed 's/^/| /' conftest.
$ac_ext >&5
16047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16048 $as_echo "no" >&6; }
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_SECURE_ERASE is defined" >&5
16059 $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
16062 cat confdefs.h
- <<_ACEOF >conftest.c
16065 #include <linux/blk_types.h>
16071 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
16081 cat - <<_ACEOF >conftest.h
16086 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16087 echo "obj-m := conftest.o" >build
/Makefile
16089 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16090 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16092 (eval $ac_try) 2>&5
16094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16095 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16097 (eval $ac_try) 2>&5
16099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16100 test $ac_status = 0; }; }; then :
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16103 $as_echo "yes" >&6; }
16105 $as_echo "#define HAVE_REQ_OP_SECURE_ERASE 1" >>confdefs.h
16109 $as_echo "$as_me: failed program was:" >&5
16110 sed 's/^/| /' conftest.
$ac_ext >&5
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16113 $as_echo "no" >&6; }
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_FLUSH is defined" >&5
16124 $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
16127 cat confdefs.h
- <<_ACEOF >conftest.c
16130 #include <linux/blk_types.h>
16136 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
16146 cat - <<_ACEOF >conftest.h
16151 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16152 echo "obj-m := conftest.o" >build
/Makefile
16154 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16155 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16157 (eval $ac_try) 2>&5
16159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16160 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16162 (eval $ac_try) 2>&5
16164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16165 test $ac_status = 0; }; }; then :
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16168 $as_echo "yes" >&6; }
16170 $as_echo "#define HAVE_REQ_OP_FLUSH 1" >>confdefs.h
16174 $as_echo "$as_me: failed program was:" >&5
16175 sed 's/^/| /' conftest.
$ac_ext >&5
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16178 $as_echo "no" >&6; }
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_opf is defined" >&5
16189 $as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
16192 cat confdefs.h
- <<_ACEOF >conftest.c
16195 #include <linux/bio.h>
16201 struct bio bio __attribute__ ((unused));
16212 cat - <<_ACEOF >conftest.h
16217 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16218 echo "obj-m := conftest.o" >build
/Makefile
16220 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16221 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16223 (eval $ac_try) 2>&5
16225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16226 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16227 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16228 (eval $ac_try) 2>&5
16230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16231 test $ac_status = 0; }; }; then :
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16234 $as_echo "yes" >&6; }
16236 $as_echo "#define HAVE_BIO_BI_OPF 1" >>confdefs.h
16240 $as_echo "$as_me: failed program was:" >&5
16241 sed 's/^/| /' conftest.
$ac_ext >&5
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16244 $as_echo "no" >&6; }
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5
16255 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
16258 cat confdefs.h
- <<_ACEOF >conftest.c
16261 #include <linux/bio.h>
16263 void wanted_end_io(struct bio *bio) { return; }
16265 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
16280 cat - <<_ACEOF >conftest.h
16285 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16286 echo "obj-m := conftest.o" >build
/Makefile
16288 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16289 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16291 (eval $ac_try) 2>&5
16293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16294 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16296 (eval $ac_try) 2>&5
16298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16299 test $ac_status = 0; }; }; then :
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16302 $as_echo "yes" >&6; }
16304 $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h
16308 $as_echo "$as_me: failed program was:" >&5
16309 sed 's/^/| /' conftest.
$ac_ext >&5
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16312 $as_echo "no" >&6; }
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_status exists" >&5
16323 $as_echo_n "checking whether bio->bi_status exists... " >&6; }
16326 cat confdefs.h
- <<_ACEOF >conftest.c
16329 #include <linux/bio.h>
16335 struct bio bio __attribute__ ((unused));
16336 blk_status_t status __attribute__ ((unused)) = BLK_STS_OK;
16338 bio.bi_status = status;
16348 cat - <<_ACEOF >conftest.h
16353 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16354 echo "obj-m := conftest.o" >build
/Makefile
16356 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16357 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16359 (eval $ac_try) 2>&5
16361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16362 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16364 (eval $ac_try) 2>&5
16366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16367 test $ac_status = 0; }; }; then :
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16370 $as_echo "yes" >&6; }
16372 $as_echo "#define HAVE_BIO_BI_STATUS 1" >>confdefs.h
16376 $as_echo "$as_me: failed program was:" >&5
16377 sed 's/^/| /' conftest.
$ac_ext >&5
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16380 $as_echo "no" >&6; }
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5
16391 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
16394 cat confdefs.h
- <<_ACEOF >conftest.c
16397 #include <linux/bio.h>
16403 int flags __attribute__ ((unused));
16404 flags = BIO_RW_BARRIER;
16414 cat - <<_ACEOF >conftest.h
16419 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16420 echo "obj-m := conftest.o" >build
/Makefile
16422 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16423 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16425 (eval $ac_try) 2>&5
16427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16428 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16429 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16430 (eval $ac_try) 2>&5
16432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16433 test $ac_status = 0; }; }; then :
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16436 $as_echo "yes" >&6; }
16438 $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h
16442 $as_echo "$as_me: failed program was:" >&5
16443 sed 's/^/| /' conftest.
$ac_ext >&5
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16446 $as_echo "no" >&6; }
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5
16457 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
16460 cat confdefs.h
- <<_ACEOF >conftest.c
16463 #include <linux/bio.h>
16469 int flags __attribute__ ((unused));
16470 flags = BIO_RW_DISCARD;
16480 cat - <<_ACEOF >conftest.h
16485 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16486 echo "obj-m := conftest.o" >build
/Makefile
16488 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16489 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16490 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16491 (eval $ac_try) 2>&5
16493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16494 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16496 (eval $ac_try) 2>&5
16498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16499 test $ac_status = 0; }; }; then :
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16502 $as_echo "yes" >&6; }
16504 $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h
16508 $as_echo "$as_me: failed program was:" >&5
16509 sed 's/^/| /' conftest.
$ac_ext >&5
16511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16512 $as_echo "no" >&6; }
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue bdi is dynamic" >&5
16523 $as_echo_n "checking whether blk_queue bdi is dynamic... " >&6; }
16526 cat confdefs.h
- <<_ACEOF >conftest.c
16529 #include <linux/blkdev.h>
16535 struct request_queue q;
16536 struct backing_dev_info bdi;
16537 q.backing_dev_info = &bdi;
16547 cat - <<_ACEOF >conftest.h
16552 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16553 echo "obj-m := conftest.o" >build
/Makefile
16555 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16556 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16558 (eval $ac_try) 2>&5
16560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16561 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16563 (eval $ac_try) 2>&5
16565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16566 test $ac_status = 0; }; }; then :
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16569 $as_echo "yes" >&6; }
16571 $as_echo "#define HAVE_BLK_QUEUE_BDI_DYNAMIC 1" >>confdefs.h
16575 $as_echo "$as_me: failed program was:" >&5
16576 sed 's/^/| /' conftest.
$ac_ext >&5
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16579 $as_echo "no" >&6; }
16589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
16590 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
16591 tmp_flags
="$EXTRA_KCFLAGS"
16592 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16595 cat confdefs.h
- <<_ACEOF >conftest.c
16598 #include <linux/blkdev.h>
16604 struct request_queue *q = NULL;
16605 (void) blk_queue_flush(q, REQ_FLUSH);
16615 cat - <<_ACEOF >conftest.h
16620 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16621 echo "obj-m := conftest.o" >build
/Makefile
16623 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16624 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16626 (eval $ac_try) 2>&5
16628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16629 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16631 (eval $ac_try) 2>&5
16633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16634 test $ac_status = 0; }; }; then :
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16637 $as_echo "yes" >&6; }
16639 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
16643 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
16646 cat confdefs.h
- <<_ACEOF >conftest.c
16649 #include <linux/module.h>
16650 #include <linux/blkdev.h>
16652 MODULE_LICENSE("$ZFS_META_LICENSE");
16658 struct request_queue *q = NULL;
16659 (void) blk_queue_flush(q, REQ_FLUSH);
16669 cat - <<_ACEOF >conftest.h
16674 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16675 echo "obj-m := conftest.o" >build
/Makefile
16677 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16678 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16680 (eval $ac_try) 2>&5
16682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16683 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16685 (eval $ac_try) 2>&5
16687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16688 test $ac_status = 0; }; }; then :
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16691 $as_echo "no" >&6; }
16694 $as_echo "$as_me: failed program was:" >&5
16695 sed 's/^/| /' conftest.
$ac_ext >&5
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16698 $as_echo "yes" >&6; }
16700 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
16711 $as_echo "$as_me: failed program was:" >&5
16712 sed 's/^/| /' conftest.
$ac_ext >&5
16714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16715 $as_echo "no" >&6; }
16724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() exists" >&5
16725 $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
16728 cat confdefs.h
- <<_ACEOF >conftest.c
16731 #include <linux/kernel.h>
16732 #include <linux/blkdev.h>
16739 struct request_queue *q = NULL;
16740 blk_queue_write_cache(q, true, true);
16750 cat - <<_ACEOF >conftest.h
16755 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16756 echo "obj-m := conftest.o" >build
/Makefile
16758 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16759 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16761 (eval $ac_try) 2>&5
16763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16764 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16766 (eval $ac_try) 2>&5
16768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16769 test $ac_status = 0; }; }; then :
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16772 $as_echo "yes" >&6; }
16774 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE 1" >>confdefs.h
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() is GPL-only" >&5
16778 $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
16781 cat confdefs.h
- <<_ACEOF >conftest.c
16784 #include <linux/kernel.h>
16785 #include <linux/module.h>
16786 #include <linux/blkdev.h>
16788 MODULE_LICENSE("$ZFS_META_LICENSE");
16794 struct request_queue *q = NULL;
16795 blk_queue_write_cache(q, true, true);
16805 cat - <<_ACEOF >conftest.h
16810 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16811 echo "obj-m := conftest.o" >build
/Makefile
16813 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16814 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16816 (eval $ac_try) 2>&5
16818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16819 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16821 (eval $ac_try) 2>&5
16823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16824 test $ac_status = 0; }; }; then :
16826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16827 $as_echo "no" >&6; }
16830 $as_echo "$as_me: failed program was:" >&5
16831 sed 's/^/| /' conftest.
$ac_ext >&5
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16834 $as_echo "yes" >&6; }
16836 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1" >>confdefs.h
16847 $as_echo "$as_me: failed program was:" >&5
16848 sed 's/^/| /' conftest.
$ac_ext >&5
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16851 $as_echo "no" >&6; }
16860 EXTRA_KCFLAGS
="$tmp_flags"
16863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
16864 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
16865 tmp_flags
="$EXTRA_KCFLAGS"
16866 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16869 cat confdefs.h
- <<_ACEOF >conftest.c
16872 #include <linux/blkdev.h>
16878 struct request_queue *q = NULL;
16879 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
16889 cat - <<_ACEOF >conftest.h
16894 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16895 echo "obj-m := conftest.o" >build
/Makefile
16897 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16898 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16900 (eval $ac_try) 2>&5
16902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16903 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16905 (eval $ac_try) 2>&5
16907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16908 test $ac_status = 0; }; }; then :
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16911 $as_echo "yes" >&6; }
16913 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
16917 $as_echo "$as_me: failed program was:" >&5
16918 sed 's/^/| /' conftest.
$ac_ext >&5
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16921 $as_echo "no" >&6; }
16929 EXTRA_KCFLAGS
="$tmp_flags"
16932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
16933 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
16934 tmp_flags
="$EXTRA_KCFLAGS"
16935 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16938 cat confdefs.h
- <<_ACEOF >conftest.c
16941 #include <linux/blkdev.h>
16947 struct request_queue *q = NULL;
16948 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
16958 cat - <<_ACEOF >conftest.h
16963 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16964 echo "obj-m := conftest.o" >build
/Makefile
16966 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16967 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16968 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16969 (eval $ac_try) 2>&5
16971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16972 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16973 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16974 (eval $ac_try) 2>&5
16976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16977 test $ac_status = 0; }; }; then :
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16980 $as_echo "yes" >&6; }
16982 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
16986 $as_echo "$as_me: failed program was:" >&5
16987 sed 's/^/| /' conftest.
$ac_ext >&5
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16990 $as_echo "no" >&6; }
16998 EXTRA_KCFLAGS
="$tmp_flags"
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the BIO_RW_UNPLUG enum is available" >&5
17002 $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
17003 tmp_flags
="$EXTRA_KCFLAGS"
17004 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
17007 cat confdefs.h
- <<_ACEOF >conftest.c
17010 #include <linux/blkdev.h>
17016 extern enum bio_rw_flags rw;
17018 rw = BIO_RW_UNPLUG;
17028 cat - <<_ACEOF >conftest.h
17033 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17034 echo "obj-m := conftest.o" >build
/Makefile
17036 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17037 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17039 (eval $ac_try) 2>&5
17041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17042 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17044 (eval $ac_try) 2>&5
17046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17047 test $ac_status = 0; }; }; then :
17049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17050 $as_echo "yes" >&6; }
17052 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1" >>confdefs.h
17056 $as_echo "$as_me: failed program was:" >&5
17057 sed 's/^/| /' conftest.
$ac_ext >&5
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17060 $as_echo "no" >&6; }
17068 EXTRA_KCFLAGS
="$tmp_flags"
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct blk_plug is available" >&5
17072 $as_echo_n "checking whether struct blk_plug is available... " >&6; }
17073 tmp_flags
="$EXTRA_KCFLAGS"
17074 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
17077 cat confdefs.h
- <<_ACEOF >conftest.c
17080 #include <linux/blkdev.h>
17086 struct blk_plug plug;
17088 blk_start_plug(&plug);
17089 blk_finish_plug(&plug);
17099 cat - <<_ACEOF >conftest.h
17104 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17105 echo "obj-m := conftest.o" >build
/Makefile
17107 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17108 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17110 (eval $ac_try) 2>&5
17112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17113 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17115 (eval $ac_try) 2>&5
17117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17118 test $ac_status = 0; }; }; then :
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17121 $as_echo "yes" >&6; }
17123 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1" >>confdefs.h
17127 $as_echo "$as_me: failed program was:" >&5
17128 sed 's/^/| /' conftest.
$ac_ext >&5
17130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17131 $as_echo "no" >&6; }
17139 EXTRA_KCFLAGS
="$tmp_flags"
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
17143 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
17144 tmp_flags
="$EXTRA_KCFLAGS"
17145 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
17148 cat confdefs.h
- <<_ACEOF >conftest.c
17151 #include <linux/blkdev.h>
17157 struct gendisk *disk = NULL;
17158 (void) get_disk_ro(disk);
17168 cat - <<_ACEOF >conftest.h
17173 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17174 echo "obj-m := conftest.o" >build
/Makefile
17176 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17177 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17178 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17179 (eval $ac_try) 2>&5
17181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17182 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17183 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17184 (eval $ac_try) 2>&5
17186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17187 test $ac_status = 0; }; }; then :
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17190 $as_echo "yes" >&6; }
17192 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
17196 $as_echo "$as_me: failed program was:" >&5
17197 sed 's/^/| /' conftest.
$ac_ext >&5
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17200 $as_echo "no" >&6; }
17208 EXTRA_KCFLAGS
="$tmp_flags"
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
17211 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
17215 cat confdefs.h
- <<_ACEOF >conftest.c
17218 #include <linux/genhd.h>
17224 get_gendisk(0, NULL);
17234 cat - <<_ACEOF >conftest.h
17239 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17240 echo "obj-m := conftest.o" >build
/Makefile
17242 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17243 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17245 (eval $ac_try) 2>&5
17247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17248 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17250 (eval $ac_try) 2>&5
17252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17253 test $ac_status = 0; }; }; then :
17256 $as_echo "$as_me: failed program was:" >&5
17257 sed 's/^/| /' conftest.
$ac_ext >&5
17265 if test $rc -ne 0; then :
17267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17268 $as_echo "no" >&6; }
17271 if test "x$enable_linux_builtin" != xyes
; then
17273 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
17274 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
17276 if test $rc -ne 0; then
17278 for file in block
/genhd.c
; do
17279 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
17280 "$LINUX/$file" 2>/dev
/null
17282 if test $rc -eq 0; then
17287 if test $export -eq 0; then :
17297 if test $rc -ne 0; then :
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17300 $as_echo "no" >&6; }
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17305 $as_echo "yes" >&6; }
17307 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_op_attrs is available" >&5
17316 $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
17319 cat confdefs.h
- <<_ACEOF >conftest.c
17322 #include <linux/bio.h>
17328 struct bio *bio __attribute__ ((unused)) = NULL;
17330 bio_set_op_attrs(bio, 0, 0);
17340 cat - <<_ACEOF >conftest.h
17345 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17346 echo "obj-m := conftest.o" >build
/Makefile
17348 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17349 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17351 (eval $ac_try) 2>&5
17353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17354 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17356 (eval $ac_try) 2>&5
17358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17359 test $ac_status = 0; }; }; then :
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17362 $as_echo "yes" >&6; }
17364 $as_echo "#define HAVE_BIO_SET_OP_ATTRS 1" >>confdefs.h
17368 $as_echo "$as_me: failed program was:" >&5
17369 sed 's/^/| /' conftest.
$ac_ext >&5
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17372 $as_echo "no" >&6; }
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_readlink is global" >&5
17383 $as_echo_n "checking whether generic_readlink is global... " >&6; }
17386 cat confdefs.h
- <<_ACEOF >conftest.c
17389 #include <linux/fs.h>
17395 int i __attribute__ ((unused));
17397 i = generic_readlink(NULL, NULL, 0);
17407 cat - <<_ACEOF >conftest.h
17412 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17413 echo "obj-m := conftest.o" >build
/Makefile
17415 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17416 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17418 (eval $ac_try) 2>&5
17420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17421 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17423 (eval $ac_try) 2>&5
17425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17426 test $ac_status = 0; }; }; then :
17428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17429 $as_echo "yes" >&6; }
17431 $as_echo "#define HAVE_GENERIC_READLINK 1" >>confdefs.h
17435 $as_echo "$as_me: failed program was:" >&5
17436 sed 's/^/| /' conftest.
$ac_ext >&5
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17439 $as_echo "no" >&6; }
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
17450 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
17453 cat confdefs.h
- <<_ACEOF >conftest.c
17456 #include <linux/blkdev.h>
17462 struct queue_limits ql __attribute__ ((unused));
17464 ql.discard_granularity = 0;
17474 cat - <<_ACEOF >conftest.h
17479 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17480 echo "obj-m := conftest.o" >build
/Makefile
17482 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17483 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17485 (eval $ac_try) 2>&5
17487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17488 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17490 (eval $ac_try) 2>&5
17492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17493 test $ac_status = 0; }; }; then :
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17496 $as_echo "yes" >&6; }
17498 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
17502 $as_echo "$as_me: failed program was:" >&5
17503 sed 's/^/| /' conftest.
$ac_ext >&5
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17506 $as_echo "no" >&6; }
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5
17517 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
17520 cat confdefs.h
- <<_ACEOF >conftest.c
17523 #include <linux/fs.h>
17524 #include <linux/xattr.h>
17526 const struct xattr_handler xattr_test_handler = {
17532 const struct xattr_handler *xattr_handlers[] = {
17533 &xattr_test_handler,
17536 const struct super_block sb __attribute__ ((unused)) = {
17537 .s_xattr = xattr_handlers,
17553 cat - <<_ACEOF >conftest.h
17558 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17559 echo "obj-m := conftest.o" >build
/Makefile
17561 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17562 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17564 (eval $ac_try) 2>&5
17566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17567 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17569 (eval $ac_try) 2>&5
17571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17572 test $ac_status = 0; }; }; then :
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17575 $as_echo "yes" >&6; }
17577 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
17581 $as_echo "$as_me: failed program was:" >&5
17582 sed 's/^/| /' conftest.
$ac_ext >&5
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17585 $as_echo "no" >&6; }
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler has name" >&5
17596 $as_echo_n "checking whether xattr_handler has name... " >&6; }
17599 cat confdefs.h
- <<_ACEOF >conftest.c
17602 #include <linux/xattr.h>
17604 static const struct xattr_handler
17605 xops __attribute__ ((unused)) = {
17606 .name = XATTR_NAME_POSIX_ACL_ACCESS,
17622 cat - <<_ACEOF >conftest.h
17627 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17628 echo "obj-m := conftest.o" >build
/Makefile
17630 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17631 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17633 (eval $ac_try) 2>&5
17635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17636 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17638 (eval $ac_try) 2>&5
17640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17641 test $ac_status = 0; }; }; then :
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17644 $as_echo "yes" >&6; }
17646 $as_echo "#define HAVE_XATTR_HANDLER_NAME 1" >>confdefs.h
17650 $as_echo "$as_me: failed program was:" >&5
17651 sed 's/^/| /' conftest.
$ac_ext >&5
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17654 $as_echo "no" >&6; }
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants both dentry and inode" >&5
17665 $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
17668 cat confdefs.h
- <<_ACEOF >conftest.c
17671 #include <linux/xattr.h>
17673 int get(const struct xattr_handler *handler,
17674 struct dentry *dentry, struct inode *inode,
17675 const char *name, void *buffer, size_t size) { return 0; }
17676 static const struct xattr_handler
17677 xops __attribute__ ((unused)) = {
17694 cat - <<_ACEOF >conftest.h
17699 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17700 echo "obj-m := conftest.o" >build
/Makefile
17702 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17703 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17705 (eval $ac_try) 2>&5
17707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17708 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17710 (eval $ac_try) 2>&5
17712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17713 test $ac_status = 0; }; }; then :
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17716 $as_echo "yes" >&6; }
17718 $as_echo "#define HAVE_XATTR_GET_DENTRY_INODE 1" >>confdefs.h
17722 $as_echo "$as_me: failed program was:" >&5
17723 sed 's/^/| /' conftest.
$ac_ext >&5
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17726 $as_echo "no" >&6; }
17727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5
17728 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
17731 cat confdefs.h
- <<_ACEOF >conftest.c
17734 #include <linux/xattr.h>
17736 int get(const struct xattr_handler *handler,
17737 struct dentry *dentry, const char *name,
17738 void *buffer, size_t size) { return 0; }
17739 static const struct xattr_handler
17740 xops __attribute__ ((unused)) = {
17757 cat - <<_ACEOF >conftest.h
17762 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17763 echo "obj-m := conftest.o" >build
/Makefile
17765 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17766 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17767 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17768 (eval $ac_try) 2>&5
17770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17771 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17773 (eval $ac_try) 2>&5
17775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17776 test $ac_status = 0; }; }; then :
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17779 $as_echo "yes" >&6; }
17781 $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h
17785 $as_echo "$as_me: failed program was:" >&5
17786 sed 's/^/| /' conftest.
$ac_ext >&5
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17789 $as_echo "no" >&6; }
17790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
17791 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
17794 cat confdefs.h
- <<_ACEOF >conftest.c
17797 #include <linux/xattr.h>
17799 int get(struct dentry *dentry, const char *name,
17800 void *buffer, size_t size, int handler_flags)
17802 static const struct xattr_handler
17803 xops __attribute__ ((unused)) = {
17820 cat - <<_ACEOF >conftest.h
17825 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17826 echo "obj-m := conftest.o" >build
/Makefile
17828 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17829 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17831 (eval $ac_try) 2>&5
17833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17834 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17836 (eval $ac_try) 2>&5
17838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17839 test $ac_status = 0; }; }; then :
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17842 $as_echo "yes" >&6; }
17844 $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h
17848 $as_echo "$as_me: failed program was:" >&5
17849 sed 's/^/| /' conftest.
$ac_ext >&5
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17852 $as_echo "no" >&6; }
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5
17854 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
17857 cat confdefs.h
- <<_ACEOF >conftest.c
17860 #include <linux/xattr.h>
17862 int get(struct inode *ip, const char *name,
17863 void *buffer, size_t size) { return 0; }
17864 static const struct xattr_handler
17865 xops __attribute__ ((unused)) = {
17882 cat - <<_ACEOF >conftest.h
17887 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17888 echo "obj-m := conftest.o" >build
/Makefile
17890 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17891 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17893 (eval $ac_try) 2>&5
17895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17896 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17898 (eval $ac_try) 2>&5
17900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17901 test $ac_status = 0; }; }; then :
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17904 $as_echo "yes" >&6; }
17906 $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h
17910 $as_echo "$as_me: failed program was:" >&5
17911 sed 's/^/| /' conftest.
$ac_ext >&5
17913 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants both dentry and inode" >&5
17945 $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
17948 cat confdefs.h
- <<_ACEOF >conftest.c
17951 #include <linux/xattr.h>
17953 int set(const struct xattr_handler *handler,
17954 struct dentry *dentry, struct inode *inode,
17955 const char *name, const void *buffer,
17956 size_t size, int flags)
17958 static const struct xattr_handler
17959 xops __attribute__ ((unused)) = {
17976 cat - <<_ACEOF >conftest.h
17981 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17982 echo "obj-m := conftest.o" >build
/Makefile
17984 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17985 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17987 (eval $ac_try) 2>&5
17989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17990 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17992 (eval $ac_try) 2>&5
17994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17995 test $ac_status = 0; }; }; then :
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17998 $as_echo "yes" >&6; }
18000 $as_echo "#define HAVE_XATTR_SET_DENTRY_INODE 1" >>confdefs.h
18004 $as_echo "$as_me: failed program was:" >&5
18005 sed 's/^/| /' conftest.
$ac_ext >&5
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18008 $as_echo "no" >&6; }
18009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5
18010 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
18013 cat confdefs.h
- <<_ACEOF >conftest.c
18016 #include <linux/xattr.h>
18018 int set(const struct xattr_handler *handler,
18019 struct dentry *dentry, const char *name,
18020 const void *buffer, size_t size, int flags)
18022 static const struct xattr_handler
18023 xops __attribute__ ((unused)) = {
18040 cat - <<_ACEOF >conftest.h
18045 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18046 echo "obj-m := conftest.o" >build
/Makefile
18048 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18049 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18051 (eval $ac_try) 2>&5
18053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18054 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18056 (eval $ac_try) 2>&5
18058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18059 test $ac_status = 0; }; }; then :
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18062 $as_echo "yes" >&6; }
18064 $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h
18068 $as_echo "$as_me: failed program was:" >&5
18069 sed 's/^/| /' conftest.
$ac_ext >&5
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18072 $as_echo "no" >&6; }
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
18074 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
18077 cat confdefs.h
- <<_ACEOF >conftest.c
18080 #include <linux/xattr.h>
18082 int set(struct dentry *dentry, const char *name,
18083 const void *buffer, size_t size, int flags,
18084 int handler_flags) { return 0; }
18085 static const struct xattr_handler
18086 xops __attribute__ ((unused)) = {
18103 cat - <<_ACEOF >conftest.h
18108 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18109 echo "obj-m := conftest.o" >build
/Makefile
18111 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18112 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18114 (eval $ac_try) 2>&5
18116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18117 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18119 (eval $ac_try) 2>&5
18121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18122 test $ac_status = 0; }; }; then :
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18125 $as_echo "yes" >&6; }
18127 $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h
18131 $as_echo "$as_me: failed program was:" >&5
18132 sed 's/^/| /' conftest.
$ac_ext >&5
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18135 $as_echo "no" >&6; }
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5
18137 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
18140 cat confdefs.h
- <<_ACEOF >conftest.c
18143 #include <linux/xattr.h>
18145 int set(struct inode *ip, const char *name,
18146 const void *buffer, size_t size, int flags)
18148 static const struct xattr_handler
18149 xops __attribute__ ((unused)) = {
18166 cat - <<_ACEOF >conftest.h
18171 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18172 echo "obj-m := conftest.o" >build
/Makefile
18174 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18175 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18177 (eval $ac_try) 2>&5
18179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18180 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18182 (eval $ac_try) 2>&5
18184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18185 test $ac_status = 0; }; }; then :
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18188 $as_echo "yes" >&6; }
18190 $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h
18194 $as_echo "$as_me: failed program was:" >&5
18195 sed 's/^/| /' conftest.
$ac_ext >&5
18197 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5
18229 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
18232 cat confdefs.h
- <<_ACEOF >conftest.c
18235 #include <linux/xattr.h>
18237 bool list(struct dentry *dentry) { return 0; }
18238 static const struct xattr_handler
18239 xops __attribute__ ((unused)) = {
18256 cat - <<_ACEOF >conftest.h
18261 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18262 echo "obj-m := conftest.o" >build
/Makefile
18264 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18265 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18267 (eval $ac_try) 2>&5
18269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18270 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18272 (eval $ac_try) 2>&5
18274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18275 test $ac_status = 0; }; }; then :
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18278 $as_echo "yes" >&6; }
18280 $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h
18284 $as_echo "$as_me: failed program was:" >&5
18285 sed 's/^/| /' conftest.
$ac_ext >&5
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18288 $as_echo "no" >&6; }
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5
18290 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
18293 cat confdefs.h
- <<_ACEOF >conftest.c
18296 #include <linux/xattr.h>
18298 size_t list(const struct xattr_handler *handler,
18299 struct dentry *dentry, char *list, size_t list_size,
18300 const char *name, size_t name_len) { return 0; }
18301 static const struct xattr_handler
18302 xops __attribute__ ((unused)) = {
18319 cat - <<_ACEOF >conftest.h
18324 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18325 echo "obj-m := conftest.o" >build
/Makefile
18327 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18328 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18329 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18330 (eval $ac_try) 2>&5
18332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18333 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18335 (eval $ac_try) 2>&5
18337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18338 test $ac_status = 0; }; }; then :
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18341 $as_echo "yes" >&6; }
18343 $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h
18347 $as_echo "$as_me: failed program was:" >&5
18348 sed 's/^/| /' conftest.
$ac_ext >&5
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18351 $as_echo "no" >&6; }
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
18353 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
18356 cat confdefs.h
- <<_ACEOF >conftest.c
18359 #include <linux/xattr.h>
18361 size_t list(struct dentry *dentry,
18362 char *list, size_t list_size,
18363 const char *name, size_t name_len,
18364 int handler_flags) { return 0; }
18365 static const struct xattr_handler
18366 xops __attribute__ ((unused)) = {
18383 cat - <<_ACEOF >conftest.h
18388 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18389 echo "obj-m := conftest.o" >build
/Makefile
18391 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18392 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18394 (eval $ac_try) 2>&5
18396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18397 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18398 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18399 (eval $ac_try) 2>&5
18401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18402 test $ac_status = 0; }; }; then :
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18405 $as_echo "yes" >&6; }
18407 $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h
18411 $as_echo "$as_me: failed program was:" >&5
18412 sed 's/^/| /' conftest.
$ac_ext >&5
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18415 $as_echo "no" >&6; }
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5
18417 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
18420 cat confdefs.h
- <<_ACEOF >conftest.c
18423 #include <linux/xattr.h>
18425 size_t list(struct inode *ip, char *lst,
18426 size_t list_size, const char *name,
18427 size_t name_len) { return 0; }
18428 static const struct xattr_handler
18429 xops __attribute__ ((unused)) = {
18446 cat - <<_ACEOF >conftest.h
18451 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18452 echo "obj-m := conftest.o" >build
/Makefile
18454 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18455 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18457 (eval $ac_try) 2>&5
18459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18460 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18462 (eval $ac_try) 2>&5
18464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18465 test $ac_status = 0; }; }; then :
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18468 $as_echo "yes" >&6; }
18470 $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h
18474 $as_echo "$as_me: failed program was:" >&5
18475 sed 's/^/| /' conftest.
$ac_ext >&5
18477 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
18508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
18509 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
18512 cat confdefs.h
- <<_ACEOF >conftest.c
18515 #include <linux/fs.h>
18521 struct inode *ip = NULL;
18522 (void) inode_owner_or_capable(ip);
18532 cat - <<_ACEOF >conftest.h
18537 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18538 echo "obj-m := conftest.o" >build
/Makefile
18540 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18541 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18542 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18543 (eval $ac_try) 2>&5
18545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18546 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18548 (eval $ac_try) 2>&5
18550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18551 test $ac_status = 0; }; }; then :
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18554 $as_echo "yes" >&6; }
18556 $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
18560 $as_echo "$as_me: failed program was:" >&5
18561 sed 's/^/| /' conftest.
$ac_ext >&5
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18564 $as_echo "no" >&6; }
18565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
18566 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
18569 cat confdefs.h
- <<_ACEOF >conftest.c
18572 #include <linux/fs.h>
18573 #include <linux/sched.h>
18579 struct inode *ip = NULL;
18580 (void) is_owner_or_cap(ip);
18590 cat - <<_ACEOF >conftest.h
18595 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18596 echo "obj-m := conftest.o" >build
/Makefile
18598 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18599 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18601 (eval $ac_try) 2>&5
18603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18604 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18606 (eval $ac_try) 2>&5
18608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18609 test $ac_status = 0; }; }; then :
18611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18612 $as_echo "yes" >&6; }
18614 $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
18618 $as_echo "$as_me: failed program was:" >&5
18619 sed 's/^/| /' conftest.
$ac_ext >&5
18621 as_fn_error $?
"no - Please file a bug report at
18622 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
18640 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
18643 cat confdefs.h
- <<_ACEOF >conftest.c
18646 #include <linux/cred.h>
18647 #include <linux/fs.h>
18648 #include <linux/posix_acl_xattr.h>
18654 posix_acl_from_xattr(&init_user_ns, NULL, 0);
18664 cat - <<_ACEOF >conftest.h
18669 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18670 echo "obj-m := conftest.o" >build
/Makefile
18672 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18673 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18674 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18675 (eval $ac_try) 2>&5
18677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18678 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18680 (eval $ac_try) 2>&5
18682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18683 test $ac_status = 0; }; }; then :
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18686 $as_echo "yes" >&6; }
18688 $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
18692 $as_echo "$as_me: failed program was:" >&5
18693 sed 's/^/| /' conftest.
$ac_ext >&5
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18696 $as_echo "no" >&6; }
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
18707 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
18710 cat confdefs.h
- <<_ACEOF >conftest.c
18713 #include <linux/cred.h>
18714 #include <linux/fs.h>
18715 #include <linux/posix_acl.h>
18721 struct posix_acl* tmp = posix_acl_alloc(1, 0);
18722 posix_acl_release(tmp);
18732 cat - <<_ACEOF >conftest.h
18737 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18738 echo "obj-m := conftest.o" >build
/Makefile
18740 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18741 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18743 (eval $ac_try) 2>&5
18745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18746 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18748 (eval $ac_try) 2>&5
18750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18751 test $ac_status = 0; }; }; then :
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18754 $as_echo "yes" >&6; }
18756 $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
18760 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
18763 cat confdefs.h
- <<_ACEOF >conftest.c
18766 #include <linux/module.h>
18767 #include <linux/cred.h>
18768 #include <linux/fs.h>
18769 #include <linux/posix_acl.h>
18771 MODULE_LICENSE("$ZFS_META_LICENSE");
18777 struct posix_acl* tmp = posix_acl_alloc(1, 0);
18778 posix_acl_release(tmp);
18788 cat - <<_ACEOF >conftest.h
18793 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18794 echo "obj-m := conftest.o" >build
/Makefile
18796 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18797 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18799 (eval $ac_try) 2>&5
18801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18802 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18804 (eval $ac_try) 2>&5
18806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18807 test $ac_status = 0; }; }; then :
18809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18810 $as_echo "no" >&6; }
18813 $as_echo "$as_me: failed program was:" >&5
18814 sed 's/^/| /' conftest.
$ac_ext >&5
18816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18817 $as_echo "yes" >&6; }
18819 $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
18830 $as_echo "$as_me: failed program was:" >&5
18831 sed 's/^/| /' conftest.
$ac_ext >&5
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18834 $as_echo "no" >&6; }
18844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_cached_acl() is usable" >&5
18845 $as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
18848 cat confdefs.h
- <<_ACEOF >conftest.c
18851 #include <linux/module.h>
18852 #include <linux/cred.h>
18853 #include <linux/fs.h>
18854 #include <linux/posix_acl.h>
18856 MODULE_LICENSE("$ZFS_META_LICENSE");
18862 struct inode *ip = NULL;
18863 struct posix_acl *acl = posix_acl_alloc(1, 0);
18864 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
18865 forget_cached_acl(ip, ACL_TYPE_ACCESS);
18875 cat - <<_ACEOF >conftest.h
18880 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18881 echo "obj-m := conftest.o" >build
/Makefile
18883 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18884 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18886 (eval $ac_try) 2>&5
18888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18889 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18891 (eval $ac_try) 2>&5
18893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18894 test $ac_status = 0; }; }; then :
18896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18897 $as_echo "yes" >&6; }
18899 $as_echo "#define HAVE_SET_CACHED_ACL_USABLE 1" >>confdefs.h
18903 $as_echo "$as_me: failed program was:" >&5
18904 sed 's/^/| /' conftest.
$ac_ext >&5
18906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18907 $as_echo "no" >&6; }
18917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
18918 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
18921 cat confdefs.h
- <<_ACEOF >conftest.c
18924 #include <linux/fs.h>
18925 #include <linux/posix_acl.h>
18931 posix_acl_chmod(NULL, 0, 0)
18941 cat - <<_ACEOF >conftest.h
18946 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18947 echo "obj-m := conftest.o" >build
/Makefile
18949 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18950 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18952 (eval $ac_try) 2>&5
18954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18955 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18956 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18957 (eval $ac_try) 2>&5
18959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18960 test $ac_status = 0; }; }; then :
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18963 $as_echo "yes" >&6; }
18965 $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
18969 $as_echo "$as_me: failed program was:" >&5
18970 sed 's/^/| /' conftest.
$ac_ext >&5
18972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18973 $as_echo "no" >&6; }
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
18983 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
18986 cat confdefs.h
- <<_ACEOF >conftest.c
18989 #include <linux/fs.h>
18990 #include <linux/posix_acl.h>
18996 __posix_acl_chmod(NULL, 0, 0)
19006 cat - <<_ACEOF >conftest.h
19011 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19012 echo "obj-m := conftest.o" >build
/Makefile
19014 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19015 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19017 (eval $ac_try) 2>&5
19019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19020 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19021 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19022 (eval $ac_try) 2>&5
19024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19025 test $ac_status = 0; }; }; then :
19027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19028 $as_echo "yes" >&6; }
19030 $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
19034 $as_echo "$as_me: failed program was:" >&5
19035 sed 's/^/| /' conftest.
$ac_ext >&5
19037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19038 $as_echo "no" >&6; }
19048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
19049 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
19052 cat confdefs.h
- <<_ACEOF >conftest.c
19055 #include <linux/fs.h>
19056 #include <linux/posix_acl.h>
19063 posix_acl_equiv_mode(NULL,&tmp);
19073 cat - <<_ACEOF >conftest.h
19078 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19079 echo "obj-m := conftest.o" >build
/Makefile
19081 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19082 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19084 (eval $ac_try) 2>&5
19086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19087 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19088 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19089 (eval $ac_try) 2>&5
19091 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19092 test $ac_status = 0; }; }; then :
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19095 $as_echo "yes" >&6; }
19097 $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
19101 $as_echo "$as_me: failed program was:" >&5
19102 sed 's/^/| /' conftest.
$ac_ext >&5
19104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19105 $as_echo "no" >&6; }
19115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5
19116 $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
19119 cat confdefs.h
- <<_ACEOF >conftest.c
19122 #include <linux/fs.h>
19123 #include <linux/posix_acl.h>
19129 struct user_namespace *user_ns = NULL;
19130 const struct posix_acl *acl = NULL;
19133 error = posix_acl_valid(user_ns, acl);
19143 cat - <<_ACEOF >conftest.h
19148 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19149 echo "obj-m := conftest.o" >build
/Makefile
19151 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19152 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19153 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19154 (eval $ac_try) 2>&5
19156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19157 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19159 (eval $ac_try) 2>&5
19161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19162 test $ac_status = 0; }; }; then :
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19165 $as_echo "yes" >&6; }
19167 $as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h
19171 $as_echo "$as_me: failed program was:" >&5
19172 sed 's/^/| /' conftest.
$ac_ext >&5
19174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19175 $as_echo "no" >&6; }
19185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
19186 $as_echo_n "checking whether iops->permission() exists... " >&6; }
19189 cat confdefs.h
- <<_ACEOF >conftest.c
19192 #include <linux/fs.h>
19194 int permission_fn(struct inode *inode, int mask) { return 0; }
19196 static const struct inode_operations
19197 iops __attribute__ ((unused)) = {
19198 .permission = permission_fn,
19214 cat - <<_ACEOF >conftest.h
19219 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19220 echo "obj-m := conftest.o" >build
/Makefile
19222 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19223 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19224 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19225 (eval $ac_try) 2>&5
19227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19228 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19229 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19230 (eval $ac_try) 2>&5
19232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19233 test $ac_status = 0; }; }; then :
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19236 $as_echo "yes" >&6; }
19238 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
19242 $as_echo "$as_me: failed program was:" >&5
19243 sed 's/^/| /' conftest.
$ac_ext >&5
19245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19246 $as_echo "no" >&6; }
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
19257 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
19260 cat confdefs.h
- <<_ACEOF >conftest.c
19263 #include <linux/fs.h>
19265 int permission_fn(struct inode *inode, int mask,
19266 struct nameidata *nd) { return 0; }
19268 static const struct inode_operations
19269 iops __attribute__ ((unused)) = {
19270 .permission = permission_fn,
19286 cat - <<_ACEOF >conftest.h
19291 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19292 echo "obj-m := conftest.o" >build
/Makefile
19294 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19295 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19297 (eval $ac_try) 2>&5
19299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19300 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19302 (eval $ac_try) 2>&5
19304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19305 test $ac_status = 0; }; }; then :
19307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19308 $as_echo "yes" >&6; }
19310 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
19313 $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
19317 $as_echo "$as_me: failed program was:" >&5
19318 sed 's/^/| /' conftest.
$ac_ext >&5
19320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19321 $as_echo "no" >&6; }
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
19332 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
19335 cat confdefs.h
- <<_ACEOF >conftest.c
19338 #include <linux/fs.h>
19340 int check_acl_fn(struct inode *inode, int mask) { return 0; }
19342 static const struct inode_operations
19343 iops __attribute__ ((unused)) = {
19344 .check_acl = check_acl_fn,
19360 cat - <<_ACEOF >conftest.h
19365 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19366 echo "obj-m := conftest.o" >build
/Makefile
19368 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19369 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19371 (eval $ac_try) 2>&5
19373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19374 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19375 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19376 (eval $ac_try) 2>&5
19378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19379 test $ac_status = 0; }; }; then :
19381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19382 $as_echo "yes" >&6; }
19384 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
19388 $as_echo "$as_me: failed program was:" >&5
19389 sed 's/^/| /' conftest.
$ac_ext >&5
19391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19392 $as_echo "no" >&6; }
19402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
19403 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
19406 cat confdefs.h
- <<_ACEOF >conftest.c
19409 #include <linux/fs.h>
19411 int check_acl_fn(struct inode *inode, int mask,
19412 unsigned int flags) { return 0; }
19414 static const struct inode_operations
19415 iops __attribute__ ((unused)) = {
19416 .check_acl = check_acl_fn,
19432 cat - <<_ACEOF >conftest.h
19437 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19438 echo "obj-m := conftest.o" >build
/Makefile
19440 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19441 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19442 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19443 (eval $ac_try) 2>&5
19445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19446 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19447 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19448 (eval $ac_try) 2>&5
19450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19451 test $ac_status = 0; }; }; then :
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19454 $as_echo "yes" >&6; }
19456 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
19459 $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
19463 $as_echo "$as_me: failed program was:" >&5
19464 sed 's/^/| /' conftest.
$ac_ext >&5
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19467 $as_echo "no" >&6; }
19477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
19478 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
19481 cat confdefs.h
- <<_ACEOF >conftest.c
19484 #include <linux/fs.h>
19486 struct posix_acl *get_acl_fn(struct inode *inode, int type)
19489 static const struct inode_operations
19490 iops __attribute__ ((unused)) = {
19491 .get_acl = get_acl_fn,
19507 cat - <<_ACEOF >conftest.h
19512 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19513 echo "obj-m := conftest.o" >build
/Makefile
19515 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19516 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19518 (eval $ac_try) 2>&5
19520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19521 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19523 (eval $ac_try) 2>&5
19525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19526 test $ac_status = 0; }; }; then :
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19529 $as_echo "yes" >&6; }
19531 $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
19535 $as_echo "$as_me: failed program was:" >&5
19536 sed 's/^/| /' conftest.
$ac_ext >&5
19538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19539 $as_echo "no" >&6; }
19549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->set_acl() exists" >&5
19550 $as_echo_n "checking whether iops->set_acl() exists... " >&6; }
19553 cat confdefs.h
- <<_ACEOF >conftest.c
19556 #include <linux/fs.h>
19558 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
19561 static const struct inode_operations
19562 iops __attribute__ ((unused)) = {
19563 .set_acl = set_acl_fn,
19579 cat - <<_ACEOF >conftest.h
19584 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19585 echo "obj-m := conftest.o" >build
/Makefile
19587 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19588 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19589 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19590 (eval $ac_try) 2>&5
19592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19593 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19595 (eval $ac_try) 2>&5
19597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19598 test $ac_status = 0; }; }; then :
19600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19601 $as_echo "yes" >&6; }
19603 $as_echo "#define HAVE_SET_ACL 1" >>confdefs.h
19607 $as_echo "$as_me: failed program was:" >&5
19608 sed 's/^/| /' conftest.
$ac_ext >&5
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19611 $as_echo "no" >&6; }
19622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a path" >&5
19623 $as_echo_n "checking whether iops->getattr() takes a path... " >&6; }
19626 cat confdefs.h
- <<_ACEOF >conftest.c
19629 #include <linux/fs.h>
19632 const struct path *p, struct kstat *k,
19633 u32 request_mask, unsigned int query_flags)
19636 static const struct inode_operations
19637 iops __attribute__ ((unused)) = {
19638 .getattr = test_getattr,
19654 cat - <<_ACEOF >conftest.h
19659 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19660 echo "obj-m := conftest.o" >build
/Makefile
19662 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19663 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19664 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19665 (eval $ac_try) 2>&5
19667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19668 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19669 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19670 (eval $ac_try) 2>&5
19672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19673 test $ac_status = 0; }; }; then :
19675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19676 $as_echo "yes" >&6; }
19678 $as_echo "#define HAVE_PATH_IOPS_GETATTR 1" >>confdefs.h
19682 $as_echo "$as_me: failed program was:" >&5
19683 sed 's/^/| /' conftest.
$ac_ext >&5
19685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19686 $as_echo "no" >&6; }
19696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a vfsmount" >&5
19697 $as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; }
19700 cat confdefs.h
- <<_ACEOF >conftest.c
19703 #include <linux/fs.h>
19706 struct vfsmount *mnt, struct dentry *d,
19710 static const struct inode_operations
19711 iops __attribute__ ((unused)) = {
19712 .getattr = test_getattr,
19728 cat - <<_ACEOF >conftest.h
19733 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19734 echo "obj-m := conftest.o" >build
/Makefile
19736 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19737 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19739 (eval $ac_try) 2>&5
19741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19742 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19744 (eval $ac_try) 2>&5
19746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19747 test $ac_status = 0; }; }; then :
19749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19750 $as_echo "yes" >&6; }
19752 $as_echo "#define HAVE_VFSMOUNT_IOPS_GETATTR 1" >>confdefs.h
19756 $as_echo "$as_me: failed program was:" >&5
19757 sed 's/^/| /' conftest.
$ac_ext >&5
19759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19760 $as_echo "no" >&6; }
19771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_set_flags() exists" >&5
19772 $as_echo_n "checking whether inode_set_flags() exists... " >&6; }
19775 cat confdefs.h
- <<_ACEOF >conftest.c
19778 #include <linux/fs.h>
19784 struct inode inode;
19785 inode_set_flags(&inode, S_IMMUTABLE, S_IMMUTABLE);
19795 cat - <<_ACEOF >conftest.h
19800 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19801 echo "obj-m := conftest.o" >build
/Makefile
19803 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19804 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19806 (eval $ac_try) 2>&5
19808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19809 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19811 (eval $ac_try) 2>&5
19813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19814 test $ac_status = 0; }; }; then :
19816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19817 $as_echo "yes" >&6; }
19819 $as_echo "#define HAVE_INODE_SET_FLAGS 1" >>confdefs.h
19823 $as_echo "$as_me: failed program was:" >&5
19824 sed 's/^/| /' conftest.
$ac_ext >&5
19826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19827 $as_echo "no" >&6; }
19837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uncached_acl_sentinel() exists" >&5
19838 $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
19841 cat confdefs.h
- <<_ACEOF >conftest.c
19844 #include <linux/fs.h>
19850 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
19860 cat - <<_ACEOF >conftest.h
19865 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19866 echo "obj-m := conftest.o" >build
/Makefile
19868 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19869 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19871 (eval $ac_try) 2>&5
19873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19874 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19875 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19876 (eval $ac_try) 2>&5
19878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19879 test $ac_status = 0; }; }; then :
19881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19882 $as_echo "yes" >&6; }
19884 $as_echo "#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1" >>confdefs.h
19888 $as_echo "$as_me: failed program was:" >&5
19889 sed 's/^/| /' conftest.
$ac_ext >&5
19891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19892 $as_echo "no" >&6; }
19902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
19903 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
19907 cat confdefs.h
- <<_ACEOF >conftest.c
19910 #include <linux/fs.h>
19912 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
19913 static struct super_operations sops __attribute__ ((unused)) = {
19914 .show_options = show_options,
19930 cat - <<_ACEOF >conftest.h
19935 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19936 echo "obj-m := conftest.o" >build
/Makefile
19938 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19939 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19941 (eval $ac_try) 2>&5
19943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19944 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19945 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19946 (eval $ac_try) 2>&5
19948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19949 test $ac_status = 0; }; }; then :
19951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19952 $as_echo "yes" >&6; }
19954 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
19958 $as_echo "$as_me: failed program was:" >&5
19959 sed 's/^/| /' conftest.
$ac_ext >&5
19961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19962 $as_echo "no" >&6; }
19972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
19973 $as_echo_n "checking whether file_inode() is available... " >&6; }
19976 cat confdefs.h
- <<_ACEOF >conftest.c
19979 #include <linux/fs.h>
19985 struct file *f = NULL;
19996 cat - <<_ACEOF >conftest.h
20001 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20002 echo "obj-m := conftest.o" >build
/Makefile
20004 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20005 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20007 (eval $ac_try) 2>&5
20009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20010 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20012 (eval $ac_try) 2>&5
20014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20015 test $ac_status = 0; }; }; then :
20017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20018 $as_echo "yes" >&6; }
20020 $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
20024 $as_echo "$as_me: failed program was:" >&5
20025 sed 's/^/| /' conftest.
$ac_ext >&5
20027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20028 $as_echo "no" >&6; }
20038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_dentry() is available" >&5
20039 $as_echo_n "checking whether file_dentry() is available... " >&6; }
20042 cat confdefs.h
- <<_ACEOF >conftest.c
20045 #include <linux/fs.h>
20051 struct file *f = NULL;
20062 cat - <<_ACEOF >conftest.h
20067 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20068 echo "obj-m := conftest.o" >build
/Makefile
20070 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20071 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20072 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20073 (eval $ac_try) 2>&5
20075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20076 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20077 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20078 (eval $ac_try) 2>&5
20080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20081 test $ac_status = 0; }; }; then :
20083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20084 $as_echo "yes" >&6; }
20086 $as_echo "#define HAVE_FILE_DENTRY 1" >>confdefs.h
20090 $as_echo "$as_me: failed program was:" >&5
20091 sed 's/^/| /' conftest.
$ac_ext >&5
20093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20094 $as_echo "no" >&6; }
20104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
20105 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
20109 cat confdefs.h
- <<_ACEOF >conftest.c
20112 #include <linux/fs.h>
20114 int test_fsync(struct file *f, struct dentry *dentry, int x)
20117 static const struct file_operations
20118 fops __attribute__ ((unused)) = {
20119 .fsync = test_fsync,
20135 cat - <<_ACEOF >conftest.h
20140 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20141 echo "obj-m := conftest.o" >build
/Makefile
20143 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20144 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20146 (eval $ac_try) 2>&5
20148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20149 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20151 (eval $ac_try) 2>&5
20153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20154 test $ac_status = 0; }; }; then :
20156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
20157 $as_echo "dentry" >&6; }
20159 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
20163 $as_echo "$as_me: failed program was:" >&5
20164 sed 's/^/| /' conftest.
$ac_ext >&5
20177 cat confdefs.h
- <<_ACEOF >conftest.c
20180 #include <linux/fs.h>
20182 int test_fsync(struct file *f, int x) { return 0; }
20184 static const struct file_operations
20185 fops __attribute__ ((unused)) = {
20186 .fsync = test_fsync,
20202 cat - <<_ACEOF >conftest.h
20207 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20208 echo "obj-m := conftest.o" >build
/Makefile
20210 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20211 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20213 (eval $ac_try) 2>&5
20215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20216 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20218 (eval $ac_try) 2>&5
20220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20221 test $ac_status = 0; }; }; then :
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
20224 $as_echo "no dentry" >&6; }
20226 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
20230 $as_echo "$as_me: failed program was:" >&5
20231 sed 's/^/| /' conftest.
$ac_ext >&5
20244 cat confdefs.h
- <<_ACEOF >conftest.c
20247 #include <linux/fs.h>
20249 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
20252 static const struct file_operations
20253 fops __attribute__ ((unused)) = {
20254 .fsync = test_fsync,
20270 cat - <<_ACEOF >conftest.h
20275 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20276 echo "obj-m := conftest.o" >build
/Makefile
20278 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20279 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20281 (eval $ac_try) 2>&5
20283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20284 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20285 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20286 (eval $ac_try) 2>&5
20288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20289 test $ac_status = 0; }; }; then :
20291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
20292 $as_echo "range" >&6; }
20294 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
20298 $as_echo "$as_me: failed program was:" >&5
20299 sed 's/^/| /' conftest.
$ac_ext >&5
20311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
20312 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
20315 cat confdefs.h
- <<_ACEOF >conftest.c
20318 #include <linux/fs.h>
20319 void evict_inode (struct inode * t) { return; }
20320 static struct super_operations sops __attribute__ ((unused)) = {
20321 .evict_inode = evict_inode,
20337 cat - <<_ACEOF >conftest.h
20342 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20343 echo "obj-m := conftest.o" >build
/Makefile
20345 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20346 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20348 (eval $ac_try) 2>&5
20350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20351 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20353 (eval $ac_try) 2>&5
20355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20356 test $ac_status = 0; }; }; then :
20358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20359 $as_echo "yes" >&6; }
20361 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
20365 $as_echo "$as_me: failed program was:" >&5
20366 sed 's/^/| /' conftest.
$ac_ext >&5
20368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20369 $as_echo "no" >&6; }
20379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
20380 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
20383 cat confdefs.h
- <<_ACEOF >conftest.c
20386 #include <linux/fs.h>
20388 void dirty_inode(struct inode *a, int b) { return; }
20390 static const struct super_operations
20391 sops __attribute__ ((unused)) = {
20392 .dirty_inode = dirty_inode,
20408 cat - <<_ACEOF >conftest.h
20413 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20414 echo "obj-m := conftest.o" >build
/Makefile
20416 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20417 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20419 (eval $ac_try) 2>&5
20421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20422 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20424 (eval $ac_try) 2>&5
20426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20427 test $ac_status = 0; }; }; then :
20429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20430 $as_echo "yes" >&6; }
20432 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
20436 $as_echo "$as_me: failed program was:" >&5
20437 sed 's/^/| /' conftest.
$ac_ext >&5
20439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20440 $as_echo "no" >&6; }
20450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
20451 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
20454 cat confdefs.h
- <<_ACEOF >conftest.c
20457 #include <linux/fs.h>
20459 int nr_cached_objects(struct super_block *sb) { return 0; }
20461 static const struct super_operations
20462 sops __attribute__ ((unused)) = {
20463 .nr_cached_objects = nr_cached_objects,
20479 cat - <<_ACEOF >conftest.h
20484 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20485 echo "obj-m := conftest.o" >build
/Makefile
20487 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20488 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20490 (eval $ac_try) 2>&5
20492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20493 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20495 (eval $ac_try) 2>&5
20497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20498 test $ac_status = 0; }; }; then :
20500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20501 $as_echo "yes" >&6; }
20503 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
20507 $as_echo "$as_me: failed program was:" >&5
20508 sed 's/^/| /' conftest.
$ac_ext >&5
20510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20511 $as_echo "no" >&6; }
20521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
20522 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
20525 cat confdefs.h
- <<_ACEOF >conftest.c
20528 #include <linux/fs.h>
20530 void free_cached_objects(struct super_block *sb, int x)
20533 static const struct super_operations
20534 sops __attribute__ ((unused)) = {
20535 .free_cached_objects = free_cached_objects,
20551 cat - <<_ACEOF >conftest.h
20556 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20557 echo "obj-m := conftest.o" >build
/Makefile
20559 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20560 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20562 (eval $ac_try) 2>&5
20564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20565 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20567 (eval $ac_try) 2>&5
20569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20570 test $ac_status = 0; }; }; then :
20572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20573 $as_echo "yes" >&6; }
20575 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
20579 $as_echo "$as_me: failed program was:" >&5
20580 sed 's/^/| /' conftest.
$ac_ext >&5
20582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20583 $as_echo "no" >&6; }
20594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
20595 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
20598 cat confdefs.h
- <<_ACEOF >conftest.c
20601 #include <linux/fs.h>
20603 long test_fallocate(struct file *file, int mode,
20604 loff_t offset, loff_t len) { return 0; }
20606 static const struct file_operations
20607 fops __attribute__ ((unused)) = {
20608 .fallocate = test_fallocate,
20624 cat - <<_ACEOF >conftest.h
20629 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20630 echo "obj-m := conftest.o" >build
/Makefile
20632 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20633 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20635 (eval $ac_try) 2>&5
20637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20638 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20639 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20640 (eval $ac_try) 2>&5
20642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20643 test $ac_status = 0; }; }; then :
20645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20646 $as_echo "yes" >&6; }
20648 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
20652 $as_echo "$as_me: failed program was:" >&5
20653 sed 's/^/| /' conftest.
$ac_ext >&5
20655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20656 $as_echo "no" >&6; }
20666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
20667 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
20670 cat confdefs.h
- <<_ACEOF >conftest.c
20673 #include <linux/fs.h>
20675 long test_fallocate(struct inode *inode, int mode,
20676 loff_t offset, loff_t len) { return 0; }
20678 static const struct inode_operations
20679 fops __attribute__ ((unused)) = {
20680 .fallocate = test_fallocate,
20696 cat - <<_ACEOF >conftest.h
20701 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20702 echo "obj-m := conftest.o" >build
/Makefile
20704 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20705 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20707 (eval $ac_try) 2>&5
20709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20710 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20712 (eval $ac_try) 2>&5
20714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20715 test $ac_status = 0; }; }; then :
20717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20718 $as_echo "yes" >&6; }
20720 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
20724 $as_echo "$as_me: failed program was:" >&5
20725 sed 's/^/| /' conftest.
$ac_ext >&5
20727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20728 $as_echo "no" >&6; }
20739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->aio_fsync() exists" >&5
20740 $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
20743 cat confdefs.h
- <<_ACEOF >conftest.c
20746 #include <linux/fs.h>
20748 static const struct file_operations
20749 fops __attribute__ ((unused)) = {
20766 cat - <<_ACEOF >conftest.h
20771 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20772 echo "obj-m := conftest.o" >build
/Makefile
20774 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20775 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20777 (eval $ac_try) 2>&5
20779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20780 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20782 (eval $ac_try) 2>&5
20784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20785 test $ac_status = 0; }; }; then :
20787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20788 $as_echo "yes" >&6; }
20790 $as_echo "#define HAVE_FILE_AIO_FSYNC 1" >>confdefs.h
20794 $as_echo "$as_me: failed program was:" >&5
20795 sed 's/^/| /' conftest.
$ac_ext >&5
20797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20798 $as_echo "no" >&6; }
20808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
20809 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
20812 cat confdefs.h
- <<_ACEOF >conftest.c
20815 #include <linux/fs.h>
20817 int mkdir(struct inode *inode, struct dentry *dentry,
20818 umode_t umode) { return 0; }
20820 static const struct inode_operations
20821 iops __attribute__ ((unused)) = {
20838 cat - <<_ACEOF >conftest.h
20843 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20844 echo "obj-m := conftest.o" >build
/Makefile
20846 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20847 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20849 (eval $ac_try) 2>&5
20851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20852 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20854 (eval $ac_try) 2>&5
20856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20857 test $ac_status = 0; }; }; then :
20859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20860 $as_echo "yes" >&6; }
20862 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
20866 $as_echo "$as_me: failed program was:" >&5
20867 sed 's/^/| /' conftest.
$ac_ext >&5
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20870 $as_echo "no" >&6; }
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5
20881 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
20884 cat confdefs.h
- <<_ACEOF >conftest.c
20887 #include <linux/fs.h>
20889 struct dentry *inode_lookup(struct inode *inode,
20890 struct dentry *dentry, struct nameidata *nidata)
20893 static const struct inode_operations iops
20894 __attribute__ ((unused)) = {
20895 .lookup = inode_lookup,
20911 cat - <<_ACEOF >conftest.h
20916 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20917 echo "obj-m := conftest.o" >build
/Makefile
20919 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20920 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20921 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20922 (eval $ac_try) 2>&5
20924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20925 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20926 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20927 (eval $ac_try) 2>&5
20929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20930 test $ac_status = 0; }; }; then :
20932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20933 $as_echo "yes" >&6; }
20935 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
20939 $as_echo "$as_me: failed program was:" >&5
20940 sed 's/^/| /' conftest.
$ac_ext >&5
20942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20943 $as_echo "no" >&6; }
20953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5
20954 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
20957 cat confdefs.h
- <<_ACEOF >conftest.c
20960 #include <linux/fs.h>
20962 #ifdef HAVE_MKDIR_UMODE_T
20963 int inode_create(struct inode *inode ,struct dentry *dentry,
20964 umode_t umode, struct nameidata *nidata) { return 0; }
20966 int inode_create(struct inode *inode,struct dentry *dentry,
20967 int umode, struct nameidata * nidata) { return 0; }
20970 static const struct inode_operations
20971 iops __attribute__ ((unused)) = {
20972 .create = inode_create,
20988 cat - <<_ACEOF >conftest.h
20993 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20994 echo "obj-m := conftest.o" >build
/Makefile
20996 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20997 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20999 (eval $ac_try) 2>&5
21001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21002 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21004 (eval $ac_try) 2>&5
21006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21007 test $ac_status = 0; }; }; then :
21009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21010 $as_echo "yes" >&6; }
21012 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
21016 $as_echo "$as_me: failed program was:" >&5
21017 sed 's/^/| /' conftest.
$ac_ext >&5
21019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21020 $as_echo "no" >&6; }
21030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5
21031 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
21034 cat confdefs.h
- <<_ACEOF >conftest.c
21037 #include <linux/fs.h>
21038 const char *get_link(struct dentry *de, struct inode *ip,
21039 struct delayed_call *done) { return "symlink"; }
21040 static struct inode_operations
21041 iops __attribute__ ((unused)) = {
21042 .get_link = get_link,
21058 cat - <<_ACEOF >conftest.h
21063 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21064 echo "obj-m := conftest.o" >build
/Makefile
21066 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21067 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21069 (eval $ac_try) 2>&5
21071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21072 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21074 (eval $ac_try) 2>&5
21076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21077 test $ac_status = 0; }; }; then :
21079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21080 $as_echo "yes" >&6; }
21082 $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h
21086 $as_echo "$as_me: failed program was:" >&5
21087 sed 's/^/| /' conftest.
$ac_ext >&5
21089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21090 $as_echo "no" >&6; }
21091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5
21092 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
21095 cat confdefs.h
- <<_ACEOF >conftest.c
21098 #include <linux/fs.h>
21099 const char *get_link(struct dentry *de, struct
21100 inode *ip, void **cookie) { return "symlink"; }
21101 static struct inode_operations
21102 iops __attribute__ ((unused)) = {
21103 .get_link = get_link,
21119 cat - <<_ACEOF >conftest.h
21124 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21125 echo "obj-m := conftest.o" >build
/Makefile
21127 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21128 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21130 (eval $ac_try) 2>&5
21132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21133 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21135 (eval $ac_try) 2>&5
21137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21138 test $ac_status = 0; }; }; then :
21140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21141 $as_echo "yes" >&6; }
21143 $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h
21147 $as_echo "$as_me: failed program was:" >&5
21148 sed 's/^/| /' conftest.
$ac_ext >&5
21150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21151 $as_echo "no" >&6; }
21153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5
21154 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
21157 cat confdefs.h
- <<_ACEOF >conftest.c
21160 #include <linux/fs.h>
21161 const char *follow_link(struct dentry *de,
21162 void **cookie) { return "symlink"; }
21163 static struct inode_operations
21164 iops __attribute__ ((unused)) = {
21165 .follow_link = follow_link,
21181 cat - <<_ACEOF >conftest.h
21186 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21187 echo "obj-m := conftest.o" >build
/Makefile
21189 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21190 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21192 (eval $ac_try) 2>&5
21194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21195 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21197 (eval $ac_try) 2>&5
21199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21200 test $ac_status = 0; }; }; then :
21202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21203 $as_echo "yes" >&6; }
21205 $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h
21209 $as_echo "$as_me: failed program was:" >&5
21210 sed 's/^/| /' conftest.
$ac_ext >&5
21212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21213 $as_echo "no" >&6; }
21214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5
21215 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
21218 cat confdefs.h
- <<_ACEOF >conftest.c
21221 #include <linux/fs.h>
21222 void *follow_link(struct dentry *de, struct
21223 nameidata *nd) { return (void *)NULL; }
21224 static struct inode_operations
21225 iops __attribute__ ((unused)) = {
21226 .follow_link = follow_link,
21242 cat - <<_ACEOF >conftest.h
21247 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21248 echo "obj-m := conftest.o" >build
/Makefile
21250 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21251 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21253 (eval $ac_try) 2>&5
21255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21256 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21258 (eval $ac_try) 2>&5
21260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21261 test $ac_status = 0; }; }; then :
21263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21264 $as_echo "yes" >&6; }
21266 $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h
21270 $as_echo "$as_me: failed program was:" >&5
21271 sed 's/^/| /' conftest.
$ac_ext >&5
21273 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
21307 cat confdefs.h
- <<_ACEOF >conftest.c
21310 #if !defined(HAVE_GET_LINK_DELAYED)
21311 #error "Expecting get_link() delayed done"
21327 cat - <<_ACEOF >conftest.h
21332 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21333 echo "obj-m := conftest.o" >build
/Makefile
21335 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21336 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21337 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21338 (eval $ac_try) 2>&5
21340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21341 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21342 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21343 (eval $ac_try) 2>&5
21345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21346 test $ac_status = 0; }; }; then :
21349 $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h
21353 $as_echo "$as_me: failed program was:" >&5
21354 sed 's/^/| /' conftest.
$ac_ext >&5
21356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5
21357 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
21360 cat confdefs.h
- <<_ACEOF >conftest.c
21363 #include <linux/fs.h>
21364 void put_link(struct inode *ip, void *cookie)
21366 static struct inode_operations
21367 iops __attribute__ ((unused)) = {
21368 .put_link = put_link,
21384 cat - <<_ACEOF >conftest.h
21389 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21390 echo "obj-m := conftest.o" >build
/Makefile
21392 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21393 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21394 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21395 (eval $ac_try) 2>&5
21397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21398 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21399 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21400 (eval $ac_try) 2>&5
21402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21403 test $ac_status = 0; }; }; then :
21405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21406 $as_echo "yes" >&6; }
21408 $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h
21412 $as_echo "$as_me: failed program was:" >&5
21413 sed 's/^/| /' conftest.
$ac_ext >&5
21415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21416 $as_echo "no" >&6; }
21417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5
21418 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
21421 cat confdefs.h
- <<_ACEOF >conftest.c
21424 #include <linux/fs.h>
21425 void put_link(struct dentry *de, struct
21426 nameidata *nd, void *ptr) { return; }
21427 static struct inode_operations
21428 iops __attribute__ ((unused)) = {
21429 .put_link = put_link,
21445 cat - <<_ACEOF >conftest.h
21450 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21451 echo "obj-m := conftest.o" >build
/Makefile
21453 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21454 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21456 (eval $ac_try) 2>&5
21458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21459 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21461 (eval $ac_try) 2>&5
21463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21464 test $ac_status = 0; }; }; then :
21466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21467 $as_echo "yes" >&6; }
21469 $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h
21473 $as_echo "$as_me: failed program was:" >&5
21474 sed 's/^/| /' conftest.
$ac_ext >&5
21476 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
21500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i_op->tmpfile() exists" >&5
21501 $as_echo_n "checking whether i_op->tmpfile() exists... " >&6; }
21504 cat confdefs.h
- <<_ACEOF >conftest.c
21507 #include <linux/fs.h>
21508 int tmpfile(struct inode *inode, struct dentry *dentry,
21509 umode_t mode) { return 0; }
21510 static struct inode_operations
21511 iops __attribute__ ((unused)) = {
21512 .tmpfile = tmpfile,
21528 cat - <<_ACEOF >conftest.h
21533 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21534 echo "obj-m := conftest.o" >build
/Makefile
21536 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21537 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21539 (eval $ac_try) 2>&5
21541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21542 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21544 (eval $ac_try) 2>&5
21546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21547 test $ac_status = 0; }; }; then :
21549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21550 $as_echo "yes" >&6; }
21552 $as_echo "#define HAVE_TMPFILE 1" >>confdefs.h
21556 $as_echo "$as_me: failed program was:" >&5
21557 sed 's/^/| /' conftest.
$ac_ext >&5
21559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21560 $as_echo "no" >&6; }
21570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
21571 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
21574 cat confdefs.h
- <<_ACEOF >conftest.c
21577 #include <linux/fs.h>
21578 void truncate_range(struct inode *inode, loff_t start,
21579 loff_t end) { return; }
21580 static struct inode_operations iops __attribute__ ((unused)) = {
21581 .truncate_range = truncate_range,
21597 cat - <<_ACEOF >conftest.h
21602 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21603 echo "obj-m := conftest.o" >build
/Makefile
21605 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21606 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21608 (eval $ac_try) 2>&5
21610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21611 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21613 (eval $ac_try) 2>&5
21615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21616 test $ac_status = 0; }; }; then :
21618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21619 $as_echo "yes" >&6; }
21621 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
21625 $as_echo "$as_me: failed program was:" >&5
21626 sed 's/^/| /' conftest.
$ac_ext >&5
21628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21629 $as_echo "no" >&6; }
21639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
21640 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
21643 cat confdefs.h
- <<_ACEOF >conftest.c
21646 #include <linux/dcache.h>
21647 struct vfsmount *d_automount(struct path *p) { return NULL; }
21648 struct dentry_operations dops __attribute__ ((unused)) = {
21649 .d_automount = d_automount,
21665 cat - <<_ACEOF >conftest.h
21670 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21671 echo "obj-m := conftest.o" >build
/Makefile
21673 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21674 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21676 (eval $ac_try) 2>&5
21678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21679 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21681 (eval $ac_try) 2>&5
21683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21684 test $ac_status = 0; }; }; then :
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21687 $as_echo "yes" >&6; }
21689 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
21693 $as_echo "$as_me: failed program was:" >&5
21694 sed 's/^/| /' conftest.
$ac_ext >&5
21696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21697 $as_echo "no" >&6; }
21707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
21708 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
21711 cat confdefs.h
- <<_ACEOF >conftest.c
21714 #include <linux/exportfs.h>
21715 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
21716 struct inode *parent) { return 0; }
21717 static struct export_operations eops __attribute__ ((unused))={
21718 .encode_fh = encode_fh,
21734 cat - <<_ACEOF >conftest.h
21739 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21740 echo "obj-m := conftest.o" >build
/Makefile
21742 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21743 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21745 (eval $ac_try) 2>&5
21747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21748 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21750 (eval $ac_try) 2>&5
21752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21753 test $ac_status = 0; }; }; then :
21755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21756 $as_echo "yes" >&6; }
21758 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
21762 $as_echo "$as_me: failed program was:" >&5
21763 sed 's/^/| /' conftest.
$ac_ext >&5
21765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21766 $as_echo "no" >&6; }
21776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
21777 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
21780 cat confdefs.h
- <<_ACEOF >conftest.c
21783 #include <linux/exportfs.h>
21784 int commit_metadata(struct inode *inode) { return 0; }
21785 static struct export_operations eops __attribute__ ((unused))={
21786 .commit_metadata = commit_metadata,
21802 cat - <<_ACEOF >conftest.h
21807 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21808 echo "obj-m := conftest.o" >build
/Makefile
21810 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21811 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21813 (eval $ac_try) 2>&5
21815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21816 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21818 (eval $ac_try) 2>&5
21820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21821 test $ac_status = 0; }; }; then :
21823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21824 $as_echo "yes" >&6; }
21826 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
21830 $as_echo "$as_me: failed program was:" >&5
21831 sed 's/^/| /' conftest.
$ac_ext >&5
21833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21834 $as_echo "no" >&6; }
21843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
21844 $as_echo_n "checking whether clear_inode() is available... " >&6; }
21848 cat confdefs.h
- <<_ACEOF >conftest.c
21851 #include <linux/fs.h>
21867 cat - <<_ACEOF >conftest.h
21872 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21873 echo "obj-m := conftest.o" >build
/Makefile
21875 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21876 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21878 (eval $ac_try) 2>&5
21880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21881 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21882 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21883 (eval $ac_try) 2>&5
21885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21886 test $ac_status = 0; }; }; then :
21889 $as_echo "$as_me: failed program was:" >&5
21890 sed 's/^/| /' conftest.
$ac_ext >&5
21898 if test $rc -ne 0; then :
21900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21901 $as_echo "no" >&6; }
21904 if test "x$enable_linux_builtin" != xyes
; then
21906 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
21907 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21909 if test $rc -ne 0; then
21911 for file in fs
/inode.c
; do
21912 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
21913 "$LINUX/$file" 2>/dev
/null
21915 if test $rc -eq 0; then
21920 if test $export -eq 0; then :
21930 if test $rc -ne 0; then :
21932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21933 $as_echo "no" >&6; }
21937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21938 $as_echo "yes" >&6; }
21940 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
21947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setattr_prepare() is available" >&5
21948 $as_echo_n "checking whether setattr_prepare() is available... " >&6; }
21952 cat confdefs.h
- <<_ACEOF >conftest.c
21955 #include <linux/fs.h>
21961 struct dentry *dentry = NULL;
21962 struct iattr *attr = NULL;
21965 error = setattr_prepare(dentry, attr);
21975 cat - <<_ACEOF >conftest.h
21980 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21981 echo "obj-m := conftest.o" >build
/Makefile
21983 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21984 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21986 (eval $ac_try) 2>&5
21988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21989 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21990 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21991 (eval $ac_try) 2>&5
21993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21994 test $ac_status = 0; }; }; then :
21997 $as_echo "$as_me: failed program was:" >&5
21998 sed 's/^/| /' conftest.
$ac_ext >&5
22006 if test $rc -ne 0; then :
22008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22009 $as_echo "no" >&6; }
22012 if test "x$enable_linux_builtin" != xyes
; then
22014 grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \
22015 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22017 if test $rc -ne 0; then
22019 for file in fs
/attr.c
; do
22020 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
22021 "$LINUX/$file" 2>/dev
/null
22023 if test $rc -eq 0; then
22028 if test $export -eq 0; then :
22038 if test $rc -ne 0; then :
22040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22041 $as_echo "no" >&6; }
22045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22046 $as_echo "yes" >&6; }
22048 $as_echo "#define HAVE_SETATTR_PREPARE 1" >>confdefs.h
22055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
22056 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
22060 cat confdefs.h
- <<_ACEOF >conftest.c
22063 #include <linux/fs.h>
22069 insert_inode_locked(NULL);
22079 cat - <<_ACEOF >conftest.h
22084 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22085 echo "obj-m := conftest.o" >build
/Makefile
22087 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22088 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22090 (eval $ac_try) 2>&5
22092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22093 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22095 (eval $ac_try) 2>&5
22097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22098 test $ac_status = 0; }; }; then :
22101 $as_echo "$as_me: failed program was:" >&5
22102 sed 's/^/| /' conftest.
$ac_ext >&5
22110 if test $rc -ne 0; then :
22112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22113 $as_echo "no" >&6; }
22116 if test "x$enable_linux_builtin" != xyes
; then
22118 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
22119 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22121 if test $rc -ne 0; then
22123 for file in fs
/inode.c
; do
22124 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
22125 "$LINUX/$file" 2>/dev
/null
22127 if test $rc -eq 0; then
22132 if test $export -eq 0; then :
22142 if test $rc -ne 0; then :
22144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22145 $as_echo "no" >&6; }
22149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22150 $as_echo "yes" >&6; }
22152 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
22159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
22160 $as_echo_n "checking whether d_make_root() is available... " >&6; }
22164 cat confdefs.h
- <<_ACEOF >conftest.c
22167 #include <linux/dcache.h>
22183 cat - <<_ACEOF >conftest.h
22188 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22189 echo "obj-m := conftest.o" >build
/Makefile
22191 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22192 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22194 (eval $ac_try) 2>&5
22196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22197 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22199 (eval $ac_try) 2>&5
22201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22202 test $ac_status = 0; }; }; then :
22205 $as_echo "$as_me: failed program was:" >&5
22206 sed 's/^/| /' conftest.
$ac_ext >&5
22214 if test $rc -ne 0; then :
22216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22217 $as_echo "no" >&6; }
22220 if test "x$enable_linux_builtin" != xyes
; then
22222 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
22223 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22225 if test $rc -ne 0; then
22227 for file in fs
/dcache.c
; do
22228 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
22229 "$LINUX/$file" 2>/dev
/null
22231 if test $rc -eq 0; then
22236 if test $export -eq 0; then :
22246 if test $rc -ne 0; then :
22248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22249 $as_echo "no" >&6; }
22253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22254 $as_echo "yes" >&6; }
22256 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
22263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
22264 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
22268 cat confdefs.h
- <<_ACEOF >conftest.c
22271 #include <linux/dcache.h>
22277 d_obtain_alias(NULL);
22287 cat - <<_ACEOF >conftest.h
22292 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22293 echo "obj-m := conftest.o" >build
/Makefile
22295 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22296 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22298 (eval $ac_try) 2>&5
22300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22301 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22303 (eval $ac_try) 2>&5
22305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22306 test $ac_status = 0; }; }; then :
22309 $as_echo "$as_me: failed program was:" >&5
22310 sed 's/^/| /' conftest.
$ac_ext >&5
22318 if test $rc -ne 0; then :
22320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22321 $as_echo "no" >&6; }
22324 if test "x$enable_linux_builtin" != xyes
; then
22326 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
22327 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22329 if test $rc -ne 0; then
22331 for file in fs
/dcache.c
; do
22332 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
22333 "$LINUX/$file" 2>/dev
/null
22335 if test $rc -eq 0; then
22340 if test $export -eq 0; then :
22350 if test $rc -ne 0; then :
22352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22353 $as_echo "no" >&6; }
22357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22358 $as_echo "yes" >&6; }
22360 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
22367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
22368 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
22372 cat confdefs.h
- <<_ACEOF >conftest.c
22375 #include <linux/dcache.h>
22381 struct inode *ip = NULL;
22382 d_prune_aliases(ip);
22392 cat - <<_ACEOF >conftest.h
22397 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22398 echo "obj-m := conftest.o" >build
/Makefile
22400 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22401 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22403 (eval $ac_try) 2>&5
22405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22406 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22408 (eval $ac_try) 2>&5
22410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22411 test $ac_status = 0; }; }; then :
22414 $as_echo "$as_me: failed program was:" >&5
22415 sed 's/^/| /' conftest.
$ac_ext >&5
22423 if test $rc -ne 0; then :
22425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22426 $as_echo "no" >&6; }
22429 if test "x$enable_linux_builtin" != xyes
; then
22431 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
22432 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22434 if test $rc -ne 0; then
22436 for file in fs
/dcache.c
; do
22437 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
22438 "$LINUX/$file" 2>/dev
/null
22440 if test $rc -eq 0; then
22445 if test $export -eq 0; then :
22455 if test $rc -ne 0; then :
22457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22458 $as_echo "no" >&6; }
22462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22463 $as_echo "yes" >&6; }
22465 $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
22472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
22473 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
22477 cat confdefs.h
- <<_ACEOF >conftest.c
22480 #include <linux/dcache.h>
22486 d_set_d_op(NULL, NULL);
22496 cat - <<_ACEOF >conftest.h
22501 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22502 echo "obj-m := conftest.o" >build
/Makefile
22504 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22505 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22506 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22507 (eval $ac_try) 2>&5
22509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22510 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22511 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22512 (eval $ac_try) 2>&5
22514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22515 test $ac_status = 0; }; }; then :
22518 $as_echo "$as_me: failed program was:" >&5
22519 sed 's/^/| /' conftest.
$ac_ext >&5
22527 if test $rc -ne 0; then :
22529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22530 $as_echo "no" >&6; }
22533 if test "x$enable_linux_builtin" != xyes
; then
22535 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
22536 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22538 if test $rc -ne 0; then
22540 for file in fs
/dcache.c
; do
22541 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
22542 "$LINUX/$file" 2>/dev
/null
22544 if test $rc -eq 0; then
22549 if test $export -eq 0; then :
22559 if test $rc -ne 0; then :
22561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22562 $as_echo "no" >&6; }
22566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22567 $as_echo "yes" >&6; }
22569 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
22577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
22578 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
22581 cat confdefs.h
- <<_ACEOF >conftest.c
22584 #include <linux/dcache.h>
22586 int revalidate (struct dentry *dentry,
22587 struct nameidata *nidata) { return 0; }
22589 static const struct dentry_operations
22590 dops __attribute__ ((unused)) = {
22591 .d_revalidate = revalidate,
22607 cat - <<_ACEOF >conftest.h
22612 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22613 echo "obj-m := conftest.o" >build
/Makefile
22615 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22616 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22618 (eval $ac_try) 2>&5
22620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22621 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22623 (eval $ac_try) 2>&5
22625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22626 test $ac_status = 0; }; }; then :
22628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22629 $as_echo "yes" >&6; }
22631 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
22635 $as_echo "$as_me: failed program was:" >&5
22636 sed 's/^/| /' conftest.
$ac_ext >&5
22638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22639 $as_echo "no" >&6; }
22649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
22650 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
22653 cat confdefs.h
- <<_ACEOF >conftest.c
22656 #include <linux/dcache.h>
22658 const struct dentry_operations test_d_op = {
22659 .d_revalidate = NULL,
22666 struct dentry d __attribute__ ((unused));
22668 d.d_op = &test_d_op;
22678 cat - <<_ACEOF >conftest.h
22683 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22684 echo "obj-m := conftest.o" >build
/Makefile
22686 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22687 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22689 (eval $ac_try) 2>&5
22691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22692 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22694 (eval $ac_try) 2>&5
22696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22697 test $ac_status = 0; }; }; then :
22699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22700 $as_echo "yes" >&6; }
22702 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
22706 $as_echo "$as_me: failed program was:" >&5
22707 sed 's/^/| /' conftest.
$ac_ext >&5
22709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22710 $as_echo "no" >&6; }
22719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
22720 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
22724 cat confdefs.h
- <<_ACEOF >conftest.c
22727 #include <linux/mm.h>
22733 truncate_setsize(NULL, 0);
22743 cat - <<_ACEOF >conftest.h
22748 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22749 echo "obj-m := conftest.o" >build
/Makefile
22751 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22752 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22754 (eval $ac_try) 2>&5
22756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22757 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22759 (eval $ac_try) 2>&5
22761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22762 test $ac_status = 0; }; }; then :
22765 $as_echo "$as_me: failed program was:" >&5
22766 sed 's/^/| /' conftest.
$ac_ext >&5
22774 if test $rc -ne 0; then :
22776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22777 $as_echo "no" >&6; }
22780 if test "x$enable_linux_builtin" != xyes
; then
22782 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
22783 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22785 if test $rc -ne 0; then
22787 for file in mm
/truncate.c
; do
22788 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
22789 "$LINUX/$file" 2>/dev
/null
22791 if test $rc -eq 0; then
22796 if test $export -eq 0; then :
22806 if test $rc -ne 0; then :
22808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22809 $as_echo "no" >&6; }
22813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22814 $as_echo "yes" >&6; }
22816 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
22824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
22825 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
22828 cat confdefs.h
- <<_ACEOF >conftest.c
22831 #include <linux/security.h>
22837 struct inode *ip __attribute__ ((unused)) = NULL;
22838 struct inode *dip __attribute__ ((unused)) = NULL;
22839 const struct qstr *str __attribute__ ((unused)) = NULL;
22840 char *name __attribute__ ((unused)) = NULL;
22841 void *value __attribute__ ((unused)) = NULL;
22842 size_t len __attribute__ ((unused)) = 0;
22844 security_inode_init_security(ip, dip, str, &name, &value, &len);
22854 cat - <<_ACEOF >conftest.h
22859 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22860 echo "obj-m := conftest.o" >build
/Makefile
22862 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22863 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22865 (eval $ac_try) 2>&5
22867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22868 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22870 (eval $ac_try) 2>&5
22872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22873 test $ac_status = 0; }; }; then :
22875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22876 $as_echo "yes" >&6; }
22878 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
22882 $as_echo "$as_me: failed program was:" >&5
22883 sed 's/^/| /' conftest.
$ac_ext >&5
22885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22886 $as_echo "no" >&6; }
22896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
22897 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
22900 cat confdefs.h
- <<_ACEOF >conftest.c
22903 #include <linux/security.h>
22909 struct inode *ip __attribute__ ((unused)) = NULL;
22910 struct inode *dip __attribute__ ((unused)) = NULL;
22911 const struct qstr *str __attribute__ ((unused)) = NULL;
22912 initxattrs func __attribute__ ((unused)) = NULL;
22914 security_inode_init_security(ip, dip, str, func, NULL);
22924 cat - <<_ACEOF >conftest.h
22929 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22930 echo "obj-m := conftest.o" >build
/Makefile
22932 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22933 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22935 (eval $ac_try) 2>&5
22937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22938 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22939 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22940 (eval $ac_try) 2>&5
22942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22943 test $ac_status = 0; }; }; then :
22945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22946 $as_echo "yes" >&6; }
22948 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
22952 $as_echo "$as_me: failed program was:" >&5
22953 sed 's/^/| /' conftest.
$ac_ext >&5
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22956 $as_echo "no" >&6; }
22965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
22966 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
22970 cat confdefs.h
- <<_ACEOF >conftest.c
22973 #include <linux/fs.h>
22979 mount_nodev(NULL, 0, NULL, NULL);
22989 cat - <<_ACEOF >conftest.h
22994 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22995 echo "obj-m := conftest.o" >build
/Makefile
22997 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22998 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23000 (eval $ac_try) 2>&5
23002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23003 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23005 (eval $ac_try) 2>&5
23007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23008 test $ac_status = 0; }; }; then :
23011 $as_echo "$as_me: failed program was:" >&5
23012 sed 's/^/| /' conftest.
$ac_ext >&5
23020 if test $rc -ne 0; then :
23022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23023 $as_echo "no" >&6; }
23026 if test "x$enable_linux_builtin" != xyes
; then
23028 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
23029 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23031 if test $rc -ne 0; then
23033 for file in fs
/super.c
; do
23034 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
23035 "$LINUX/$file" 2>/dev
/null
23037 if test $rc -eq 0; then
23042 if test $export -eq 0; then :
23052 if test $rc -ne 0; then :
23054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23055 $as_echo "no" >&6; }
23059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23060 $as_echo "yes" >&6; }
23062 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
23070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
23071 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
23074 cat confdefs.h
- <<_ACEOF >conftest.c
23077 #include <linux/fs.h>
23079 int shrink(struct shrinker *s, struct shrink_control *sc)
23082 static const struct super_block
23083 sb __attribute__ ((unused)) = {
23084 .s_shrink.shrink = shrink,
23085 .s_shrink.seeks = DEFAULT_SEEKS,
23086 .s_shrink.batch = 0,
23102 cat - <<_ACEOF >conftest.h
23107 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23108 echo "obj-m := conftest.o" >build
/Makefile
23110 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23111 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23113 (eval $ac_try) 2>&5
23115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23116 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23118 (eval $ac_try) 2>&5
23120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23121 test $ac_status = 0; }; }; then :
23123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23124 $as_echo "yes" >&6; }
23126 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
23131 $as_echo "$as_me: failed program was:" >&5
23132 sed 's/^/| /' conftest.
$ac_ext >&5
23134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23135 $as_echo "no" >&6; }
23145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
23146 $as_echo_n "checking whether shrink_control has nid... " >&6; }
23149 cat confdefs.h
- <<_ACEOF >conftest.c
23152 #include <linux/fs.h>
23158 struct shrink_control sc __attribute__ ((unused));
23159 unsigned long scnidsize __attribute__ ((unused)) =
23170 cat - <<_ACEOF >conftest.h
23175 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23176 echo "obj-m := conftest.o" >build
/Makefile
23178 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23179 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23181 (eval $ac_try) 2>&5
23183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23184 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23185 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23186 (eval $ac_try) 2>&5
23188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23189 test $ac_status = 0; }; }; then :
23191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23192 $as_echo "yes" >&6; }
23194 $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
23198 $as_echo "$as_me: failed program was:" >&5
23199 sed 's/^/| /' conftest.
$ac_ext >&5
23201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23202 $as_echo "no" >&6; }
23212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
23213 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
23216 cat confdefs.h
- <<_ACEOF >conftest.c
23219 #include <linux/fs.h>
23225 struct super_block sb __attribute__ ((unused));
23227 INIT_LIST_HEAD(&sb.s_instances);
23237 cat - <<_ACEOF >conftest.h
23242 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23243 echo "obj-m := conftest.o" >build
/Makefile
23245 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23246 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23247 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23248 (eval $ac_try) 2>&5
23250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23251 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23253 (eval $ac_try) 2>&5
23255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23256 test $ac_status = 0; }; }; then :
23258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23259 $as_echo "yes" >&6; }
23261 $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
23265 $as_echo "$as_me: failed program was:" >&5
23266 sed 's/^/| /' conftest.
$ac_ext >&5
23268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23269 $as_echo "no" >&6; }
23278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
23279 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
23282 cat confdefs.h
- <<_ACEOF >conftest.c
23285 #include <linux/fs.h>
23291 struct super_block sb __attribute__ ((unused));
23302 cat - <<_ACEOF >conftest.h
23307 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23308 echo "obj-m := conftest.o" >build
/Makefile
23310 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23311 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23313 (eval $ac_try) 2>&5
23315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23316 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23317 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23318 (eval $ac_try) 2>&5
23320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23321 test $ac_status = 0; }; }; then :
23323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23324 $as_echo "yes" >&6; }
23326 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
23330 $as_echo "$as_me: failed program was:" >&5
23331 sed 's/^/| /' conftest.
$ac_ext >&5
23333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23334 $as_echo "no" >&6; }
23344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_setup_bdi_name() exists" >&5
23345 $as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; }
23349 cat confdefs.h
- <<_ACEOF >conftest.c
23352 #include <linux/fs.h>
23353 struct super_block sb;
23359 char *name = "bdi";
23360 atomic_long_t zfs_bdi_seq;
23361 int error __attribute__((unused)) =
23362 super_setup_bdi_name(&sb, "%.28s-%ld", name, atomic_long_inc_return(&zfs_bdi_seq));
23372 cat - <<_ACEOF >conftest.h
23377 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23378 echo "obj-m := conftest.o" >build
/Makefile
23380 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23381 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23383 (eval $ac_try) 2>&5
23385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23386 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23388 (eval $ac_try) 2>&5
23390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23391 test $ac_status = 0; }; }; then :
23394 $as_echo "$as_me: failed program was:" >&5
23395 sed 's/^/| /' conftest.
$ac_ext >&5
23403 if test $rc -ne 0; then :
23405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23406 $as_echo "no" >&6; }
23407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
23408 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
23412 cat confdefs.h
- <<_ACEOF >conftest.c
23415 #include <linux/backing-dev.h>
23416 struct backing_dev_info bdi;
23422 char *name = "bdi";
23423 int error __attribute__((unused)) =
23424 bdi_setup_and_register(&bdi, name);
23434 cat - <<_ACEOF >conftest.h
23439 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23440 echo "obj-m := conftest.o" >build
/Makefile
23442 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23443 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23445 (eval $ac_try) 2>&5
23447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23448 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23450 (eval $ac_try) 2>&5
23452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23453 test $ac_status = 0; }; }; then :
23456 $as_echo "$as_me: failed program was:" >&5
23457 sed 's/^/| /' conftest.
$ac_ext >&5
23465 if test $rc -ne 0; then :
23467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23468 $as_echo "no" >&6; }
23469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23470 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23474 cat confdefs.h
- <<_ACEOF >conftest.c
23477 #include <linux/backing-dev.h>
23478 struct backing_dev_info bdi;
23484 char *name = "bdi";
23485 unsigned int cap = BDI_CAP_MAP_COPY;
23486 int error __attribute__((unused)) =
23487 bdi_setup_and_register(&bdi, name, cap);
23497 cat - <<_ACEOF >conftest.h
23502 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23503 echo "obj-m := conftest.o" >build
/Makefile
23505 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23506 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23507 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23508 (eval $ac_try) 2>&5
23510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23511 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23512 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23513 (eval $ac_try) 2>&5
23515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23516 test $ac_status = 0; }; }; then :
23519 $as_echo "$as_me: failed program was:" >&5
23520 sed 's/^/| /' conftest.
$ac_ext >&5
23528 if test $rc -ne 0; then :
23530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23531 $as_echo "no" >&6; }
23534 if test "x$enable_linux_builtin" != xyes
; then
23536 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23537 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23539 if test $rc -ne 0; then
23541 for file in mm
/backing-dev.c
; do
23542 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23543 "$LINUX/$file" 2>/dev
/null
23545 if test $rc -eq 0; then
23550 if test $export -eq 0; then :
23560 if test $rc -ne 0; then :
23562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23563 $as_echo "no" >&6; }
23567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23568 $as_echo "yes" >&6; }
23570 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23578 if test "x$enable_linux_builtin" != xyes
; then
23580 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23581 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23583 if test $rc -ne 0; then
23585 for file in mm
/backing-dev.c
; do
23586 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23587 "$LINUX/$file" 2>/dev
/null
23589 if test $rc -eq 0; then
23594 if test $export -eq 0; then :
23604 if test $rc -ne 0; then :
23606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23607 $as_echo "no" >&6; }
23608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23609 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23613 cat confdefs.h
- <<_ACEOF >conftest.c
23616 #include <linux/backing-dev.h>
23617 struct backing_dev_info bdi;
23623 char *name = "bdi";
23624 unsigned int cap = BDI_CAP_MAP_COPY;
23625 int error __attribute__((unused)) =
23626 bdi_setup_and_register(&bdi, name, cap);
23636 cat - <<_ACEOF >conftest.h
23641 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23642 echo "obj-m := conftest.o" >build
/Makefile
23644 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23645 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23647 (eval $ac_try) 2>&5
23649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23650 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23652 (eval $ac_try) 2>&5
23654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23655 test $ac_status = 0; }; }; then :
23658 $as_echo "$as_me: failed program was:" >&5
23659 sed 's/^/| /' conftest.
$ac_ext >&5
23667 if test $rc -ne 0; then :
23669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23670 $as_echo "no" >&6; }
23673 if test "x$enable_linux_builtin" != xyes
; then
23675 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23676 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23678 if test $rc -ne 0; then
23680 for file in mm
/backing-dev.c
; do
23681 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23682 "$LINUX/$file" 2>/dev
/null
23684 if test $rc -eq 0; then
23689 if test $export -eq 0; then :
23699 if test $rc -ne 0; then :
23701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23702 $as_echo "no" >&6; }
23706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23707 $as_echo "yes" >&6; }
23709 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23719 $as_echo "yes" >&6; }
23721 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23729 if test "x$enable_linux_builtin" != xyes
; then
23731 grep -q -E '[[:space:]]super_setup_bdi_name[[:space:]]' \
23732 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23734 if test $rc -ne 0; then
23736 for file in fs
/super.c
; do
23737 grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \
23738 "$LINUX/$file" 2>/dev
/null
23740 if test $rc -eq 0; then
23745 if test $export -eq 0; then :
23755 if test $rc -ne 0; then :
23757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23758 $as_echo "no" >&6; }
23759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
23760 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
23764 cat confdefs.h
- <<_ACEOF >conftest.c
23767 #include <linux/backing-dev.h>
23768 struct backing_dev_info bdi;
23774 char *name = "bdi";
23775 int error __attribute__((unused)) =
23776 bdi_setup_and_register(&bdi, name);
23786 cat - <<_ACEOF >conftest.h
23791 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23792 echo "obj-m := conftest.o" >build
/Makefile
23794 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23795 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23797 (eval $ac_try) 2>&5
23799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23800 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23802 (eval $ac_try) 2>&5
23804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23805 test $ac_status = 0; }; }; then :
23808 $as_echo "$as_me: failed program was:" >&5
23809 sed 's/^/| /' conftest.
$ac_ext >&5
23817 if test $rc -ne 0; then :
23819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23820 $as_echo "no" >&6; }
23821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23822 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23826 cat confdefs.h
- <<_ACEOF >conftest.c
23829 #include <linux/backing-dev.h>
23830 struct backing_dev_info bdi;
23836 char *name = "bdi";
23837 unsigned int cap = BDI_CAP_MAP_COPY;
23838 int error __attribute__((unused)) =
23839 bdi_setup_and_register(&bdi, name, cap);
23849 cat - <<_ACEOF >conftest.h
23854 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23855 echo "obj-m := conftest.o" >build
/Makefile
23857 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23858 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23860 (eval $ac_try) 2>&5
23862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23863 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23865 (eval $ac_try) 2>&5
23867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23868 test $ac_status = 0; }; }; then :
23871 $as_echo "$as_me: failed program was:" >&5
23872 sed 's/^/| /' conftest.
$ac_ext >&5
23880 if test $rc -ne 0; then :
23882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23883 $as_echo "no" >&6; }
23886 if test "x$enable_linux_builtin" != xyes
; then
23888 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23889 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23891 if test $rc -ne 0; then
23893 for file in mm
/backing-dev.c
; do
23894 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23895 "$LINUX/$file" 2>/dev
/null
23897 if test $rc -eq 0; then
23902 if test $export -eq 0; then :
23912 if test $rc -ne 0; then :
23914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23915 $as_echo "no" >&6; }
23919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23920 $as_echo "yes" >&6; }
23922 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23930 if test "x$enable_linux_builtin" != xyes
; then
23932 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23933 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23935 if test $rc -ne 0; then
23937 for file in mm
/backing-dev.c
; do
23938 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23939 "$LINUX/$file" 2>/dev
/null
23941 if test $rc -eq 0; then
23946 if test $export -eq 0; then :
23956 if test $rc -ne 0; then :
23958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23959 $as_echo "no" >&6; }
23960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
23961 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
23965 cat confdefs.h
- <<_ACEOF >conftest.c
23968 #include <linux/backing-dev.h>
23969 struct backing_dev_info bdi;
23975 char *name = "bdi";
23976 unsigned int cap = BDI_CAP_MAP_COPY;
23977 int error __attribute__((unused)) =
23978 bdi_setup_and_register(&bdi, name, cap);
23988 cat - <<_ACEOF >conftest.h
23993 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23994 echo "obj-m := conftest.o" >build
/Makefile
23996 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23997 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23999 (eval $ac_try) 2>&5
24001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24002 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24004 (eval $ac_try) 2>&5
24006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24007 test $ac_status = 0; }; }; then :
24010 $as_echo "$as_me: failed program was:" >&5
24011 sed 's/^/| /' conftest.
$ac_ext >&5
24019 if test $rc -ne 0; then :
24021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24022 $as_echo "no" >&6; }
24025 if test "x$enable_linux_builtin" != xyes
; then
24027 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
24028 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
24030 if test $rc -ne 0; then
24032 for file in mm
/backing-dev.c
; do
24033 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
24034 "$LINUX/$file" 2>/dev
/null
24036 if test $rc -eq 0; then
24041 if test $export -eq 0; then :
24051 if test $rc -ne 0; then :
24053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24054 $as_echo "no" >&6; }
24058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24059 $as_echo "yes" >&6; }
24061 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
24070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24071 $as_echo "yes" >&6; }
24073 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
24082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24083 $as_echo "yes" >&6; }
24085 $as_echo "#define HAVE_SUPER_SETUP_BDI_NAME 1" >>confdefs.h
24093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
24094 $as_echo_n "checking whether set_nlink() is available... " >&6; }
24097 cat confdefs.h
- <<_ACEOF >conftest.c
24100 #include <linux/fs.h>
24107 unsigned int link = 0;
24108 (void) set_nlink(&node, link);
24118 cat - <<_ACEOF >conftest.h
24123 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24124 echo "obj-m := conftest.o" >build
/Makefile
24126 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24127 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24129 (eval $ac_try) 2>&5
24131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24132 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24134 (eval $ac_try) 2>&5
24136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24137 test $ac_status = 0; }; }; then :
24139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24140 $as_echo "yes" >&6; }
24142 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
24146 $as_echo "$as_me: failed program was:" >&5
24147 sed 's/^/| /' conftest.
$ac_ext >&5
24149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24150 $as_echo "no" >&6; }
24160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
24161 $as_echo_n "checking whether elevator_change() is available... " >&6; }
24162 tmp_flags
="$EXTRA_KCFLAGS"
24163 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
24166 cat confdefs.h
- <<_ACEOF >conftest.c
24169 #include <linux/blkdev.h>
24170 #include <linux/elevator.h>
24177 struct request_queue *q = NULL;
24178 char *elevator = NULL;
24179 ret = elevator_change(q, elevator);
24189 cat - <<_ACEOF >conftest.h
24194 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24195 echo "obj-m := conftest.o" >build
/Makefile
24197 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24198 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24199 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24200 (eval $ac_try) 2>&5
24202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24203 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24205 (eval $ac_try) 2>&5
24207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24208 test $ac_status = 0; }; }; then :
24210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24211 $as_echo "yes" >&6; }
24213 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
24217 $as_echo "$as_me: failed program was:" >&5
24218 sed 's/^/| /' conftest.
$ac_ext >&5
24220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24221 $as_echo "no" >&6; }
24229 EXTRA_KCFLAGS
="$tmp_flags"
24231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
24232 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
24235 cat confdefs.h
- <<_ACEOF >conftest.c
24238 #include <linux/fs.h>
24244 struct file_system_type *type = NULL;
24245 int (*test)(struct super_block *,void *) = NULL;
24246 int (*set)(struct super_block *,void *) = NULL;
24249 (void) sget(type, test, set, flags, data);
24259 cat - <<_ACEOF >conftest.h
24264 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24265 echo "obj-m := conftest.o" >build
/Makefile
24267 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24268 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24269 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24270 (eval $ac_try) 2>&5
24272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24273 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24275 (eval $ac_try) 2>&5
24277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24278 test $ac_status = 0; }; }; then :
24280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24281 $as_echo "yes" >&6; }
24283 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
24287 $as_echo "$as_me: failed program was:" >&5
24288 sed 's/^/| /' conftest.
$ac_ext >&5
24290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24291 $as_echo "no" >&6; }
24300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
24301 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
24305 cat confdefs.h
- <<_ACEOF >conftest.c
24308 #include <linux/fs.h>
24314 struct file *fp __attribute__ ((unused)) = NULL;
24315 struct inode *ip __attribute__ ((unused)) = NULL;
24316 loff_t offset __attribute__ ((unused)) = 0;
24317 loff_t maxsize __attribute__ ((unused)) = 0;
24319 lseek_execute(fp, ip, offset, maxsize);
24329 cat - <<_ACEOF >conftest.h
24334 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24335 echo "obj-m := conftest.o" >build
/Makefile
24337 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24338 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24340 (eval $ac_try) 2>&5
24342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24343 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24345 (eval $ac_try) 2>&5
24347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24348 test $ac_status = 0; }; }; then :
24351 $as_echo "$as_me: failed program was:" >&5
24352 sed 's/^/| /' conftest.
$ac_ext >&5
24360 if test $rc -ne 0; then :
24362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24363 $as_echo "no" >&6; }
24366 if test "x$enable_linux_builtin" != xyes
; then
24368 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
24369 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
24371 if test $rc -ne 0; then
24373 for file in fs
/read_write.c
; do
24374 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
24375 "$LINUX/$file" 2>/dev
/null
24377 if test $rc -eq 0; then
24382 if test $export -eq 0; then :
24392 if test $rc -ne 0; then :
24394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24395 $as_echo "no" >&6; }
24399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24400 $as_echo "yes" >&6; }
24402 $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
24410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate_shared() is available" >&5
24411 $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
24414 cat confdefs.h
- <<_ACEOF >conftest.c
24417 #include <linux/fs.h>
24418 int iterate(struct file *filp, struct dir_context * context)
24421 static const struct file_operations fops
24422 __attribute__ ((unused)) = {
24423 .iterate_shared = iterate,
24439 cat - <<_ACEOF >conftest.h
24444 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24445 echo "obj-m := conftest.o" >build
/Makefile
24447 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24448 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24450 (eval $ac_try) 2>&5
24452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24453 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24455 (eval $ac_try) 2>&5
24457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24458 test $ac_status = 0; }; }; then :
24460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24461 $as_echo "yes" >&6; }
24463 $as_echo "#define HAVE_VFS_ITERATE_SHARED 1" >>confdefs.h
24467 $as_echo "$as_me: failed program was:" >&5
24468 sed 's/^/| /' conftest.
$ac_ext >&5
24470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24471 $as_echo "no" >&6; }
24473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
24474 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
24477 cat confdefs.h
- <<_ACEOF >conftest.c
24480 #include <linux/fs.h>
24481 int iterate(struct file *filp, struct dir_context * context)
24484 static const struct file_operations fops
24485 __attribute__ ((unused)) = {
24486 .iterate = iterate,
24502 cat - <<_ACEOF >conftest.h
24507 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24508 echo "obj-m := conftest.o" >build
/Makefile
24510 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24511 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24512 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24513 (eval $ac_try) 2>&5
24515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24516 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24517 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24518 (eval $ac_try) 2>&5
24520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24521 test $ac_status = 0; }; }; then :
24523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24524 $as_echo "yes" >&6; }
24526 $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
24530 $as_echo "$as_me: failed program was:" >&5
24531 sed 's/^/| /' conftest.
$ac_ext >&5
24533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24534 $as_echo "no" >&6; }
24536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
24537 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
24540 cat confdefs.h
- <<_ACEOF >conftest.c
24543 #include <linux/fs.h>
24544 int readdir(struct file *filp, void *entry, filldir_t func)
24547 static const struct file_operations fops
24548 __attribute__ ((unused)) = {
24549 .readdir = readdir,
24565 cat - <<_ACEOF >conftest.h
24570 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24571 echo "obj-m := conftest.o" >build
/Makefile
24573 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24574 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24575 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24576 (eval $ac_try) 2>&5
24578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24579 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24581 (eval $ac_try) 2>&5
24583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24584 test $ac_status = 0; }; }; then :
24586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24587 $as_echo "yes" >&6; }
24589 $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
24593 $as_echo "$as_me: failed program was:" >&5
24594 sed 's/^/| /' conftest.
$ac_ext >&5
24596 as_fn_error $?
"no; file a bug report with ZFSOnLinux" "$LINENO" 5
24619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
24620 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
24623 cat confdefs.h
- <<_ACEOF >conftest.c
24626 #include <linux/fs.h>
24628 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
24630 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
24633 static const struct file_operations
24634 fops __attribute__ ((unused)) = {
24635 .read_iter = test_read,
24636 .write_iter = test_write,
24652 cat - <<_ACEOF >conftest.h
24657 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24658 echo "obj-m := conftest.o" >build
/Makefile
24660 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24661 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24663 (eval $ac_try) 2>&5
24665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24666 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24668 (eval $ac_try) 2>&5
24670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24671 test $ac_status = 0; }; }; then :
24673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24674 $as_echo "yes" >&6; }
24676 $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
24679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether new_sync_read() is available" >&5
24680 $as_echo_n "checking whether new_sync_read() is available... " >&6; }
24683 cat confdefs.h
- <<_ACEOF >conftest.c
24686 #include <linux/fs.h>
24692 new_sync_read(NULL, NULL, 0, NULL);
24702 cat - <<_ACEOF >conftest.h
24707 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24708 echo "obj-m := conftest.o" >build
/Makefile
24710 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24711 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24713 (eval $ac_try) 2>&5
24715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24716 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24718 (eval $ac_try) 2>&5
24720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24721 test $ac_status = 0; }; }; then :
24723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24724 $as_echo "yes" >&6; }
24726 $as_echo "#define HAVE_NEW_SYNC_READ 1" >>confdefs.h
24730 $as_echo "$as_me: failed program was:" >&5
24731 sed 's/^/| /' conftest.
$ac_ext >&5
24733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24734 $as_echo "no" >&6; }
24745 $as_echo "$as_me: failed program was:" >&5
24746 sed 's/^/| /' conftest.
$ac_ext >&5
24748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24749 $as_echo "no" >&6; }
24758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5
24759 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
24762 cat confdefs.h
- <<_ACEOF >conftest.c
24765 #include <linux/fs.h>
24772 struct kiocb *iocb = NULL;
24773 struct iov_iter *iov = NULL;
24774 generic_write_checks(iocb, iov);
24784 cat - <<_ACEOF >conftest.h
24789 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24790 echo "obj-m := conftest.o" >build
/Makefile
24792 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24793 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24794 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24795 (eval $ac_try) 2>&5
24797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24798 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24800 (eval $ac_try) 2>&5
24802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24803 test $ac_status = 0; }; }; then :
24805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24806 $as_echo "yes" >&6; }
24808 $as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h
24812 $as_echo "$as_me: failed program was:" >&5
24813 sed 's/^/| /' conftest.
$ac_ext >&5
24815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24816 $as_echo "no" >&6; }
24826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5
24827 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
24830 cat confdefs.h
- <<_ACEOF >conftest.c
24833 #include <linux/pagemap.h>
24840 kmap_atomic(&page);
24850 cat - <<_ACEOF >conftest.h
24855 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24856 echo "obj-m := conftest.o" >build
/Makefile
24858 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24859 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24861 (eval $ac_try) 2>&5
24863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24864 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24866 (eval $ac_try) 2>&5
24868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24869 test $ac_status = 0; }; }; then :
24871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24872 $as_echo "yes" >&6; }
24874 $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h
24878 $as_echo "$as_me: failed program was:" >&5
24879 sed 's/^/| /' conftest.
$ac_ext >&5
24881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24882 $as_echo "no" >&6; }
24892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5
24893 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
24896 cat confdefs.h
- <<_ACEOF >conftest.c
24899 #include <linux/namei.h>
24905 struct path *p = NULL;
24906 follow_down_one(p);
24916 cat - <<_ACEOF >conftest.h
24921 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24922 echo "obj-m := conftest.o" >build
/Makefile
24924 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24925 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24926 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24927 (eval $ac_try) 2>&5
24929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24930 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24932 (eval $ac_try) 2>&5
24934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24935 test $ac_status = 0; }; }; then :
24937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24938 $as_echo "yes" >&6; }
24940 $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h
24944 $as_echo "$as_me: failed program was:" >&5
24945 sed 's/^/| /' conftest.
$ac_ext >&5
24947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24948 $as_echo "no" >&6; }
24958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5
24959 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
24962 cat confdefs.h
- <<_ACEOF >conftest.c
24965 #include <linux/blkdev.h>
24967 int make_request(struct request_queue *q, struct bio *bio)
24976 blk_queue_make_request(NULL, &make_request);
24986 cat - <<_ACEOF >conftest.h
24991 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24992 echo "obj-m := conftest.o" >build
/Makefile
24994 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24995 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24997 (eval $ac_try) 2>&5
24999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25000 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25002 (eval $ac_try) 2>&5
25004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25005 test $ac_status = 0; }; }; then :
25007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25008 $as_echo "yes" >&6; }
25010 $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h
25013 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h
25017 $as_echo "$as_me: failed program was:" >&5
25018 sed 's/^/| /' conftest.
$ac_ext >&5
25020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25021 $as_echo "no" >&6; }
25022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5
25023 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
25026 cat confdefs.h
- <<_ACEOF >conftest.c
25029 #include <linux/blkdev.h>
25031 void make_request(struct request_queue *q, struct bio *bio)
25040 blk_queue_make_request(NULL, &make_request);
25050 cat - <<_ACEOF >conftest.h
25055 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25056 echo "obj-m := conftest.o" >build
/Makefile
25058 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25059 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25061 (eval $ac_try) 2>&5
25063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25064 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25066 (eval $ac_try) 2>&5
25068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25069 test $ac_status = 0; }; }; then :
25071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25072 $as_echo "yes" >&6; }
25074 $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h
25078 $as_echo "$as_me: failed program was:" >&5
25079 sed 's/^/| /' conftest.
$ac_ext >&5
25081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25082 $as_echo "no" >&6; }
25083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5
25084 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
25087 cat confdefs.h
- <<_ACEOF >conftest.c
25090 #include <linux/blkdev.h>
25092 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
25094 return (BLK_QC_T_NONE);
25101 blk_queue_make_request(NULL, &make_request);
25111 cat - <<_ACEOF >conftest.h
25116 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25117 echo "obj-m := conftest.o" >build
/Makefile
25119 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25120 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25122 (eval $ac_try) 2>&5
25124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25125 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25127 (eval $ac_try) 2>&5
25129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25130 test $ac_status = 0; }; }; then :
25132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25133 $as_echo "yes" >&6; }
25135 $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h
25138 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h
25142 $as_echo "$as_me: failed program was:" >&5
25143 sed 's/^/| /' conftest.
$ac_ext >&5
25145 as_fn_error $?
"no - Please file a bug report at
25146 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
25170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 3 arg generic IO accounting symbols are available" >&5
25171 $as_echo_n "checking whether 3 arg generic IO accounting symbols are available... " >&6; }
25175 cat confdefs.h
- <<_ACEOF >conftest.c
25178 #include <linux/bio.h>
25180 void (*generic_start_io_acct_f)(int, unsigned long,
25181 struct hd_struct *) = &generic_start_io_acct;
25182 void (*generic_end_io_acct_f)(int, struct hd_struct *,
25183 unsigned long) = &generic_end_io_acct;
25189 generic_start_io_acct(0, 0, NULL);
25190 generic_end_io_acct(0, NULL, 0);
25200 cat - <<_ACEOF >conftest.h
25205 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25206 echo "obj-m := conftest.o" >build
/Makefile
25208 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25209 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25211 (eval $ac_try) 2>&5
25213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25214 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25216 (eval $ac_try) 2>&5
25218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25219 test $ac_status = 0; }; }; then :
25222 $as_echo "$as_me: failed program was:" >&5
25223 sed 's/^/| /' conftest.
$ac_ext >&5
25231 if test $rc -ne 0; then :
25233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25234 $as_echo "no" >&6; }
25237 if test "x$enable_linux_builtin" != xyes
; then
25239 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
25240 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
25242 if test $rc -ne 0; then
25244 for file in block
/bio.c
; do
25245 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
25246 "$LINUX/$file" 2>/dev
/null
25248 if test $rc -eq 0; then
25253 if test $export -eq 0; then :
25263 if test $rc -ne 0; then :
25265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25266 $as_echo "no" >&6; }
25270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25271 $as_echo "yes" >&6; }
25273 $as_echo "#define HAVE_GENERIC_IO_ACCT_3ARG 1" >>confdefs.h
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 4 arg generic IO accounting symbols are available" >&5
25282 $as_echo_n "checking whether 4 arg generic IO accounting symbols are available... " >&6; }
25286 cat confdefs.h
- <<_ACEOF >conftest.c
25289 #include <linux/bio.h>
25291 void (*generic_start_io_acct_f)(struct request_queue *, int,
25292 unsigned long, struct hd_struct *) = &generic_start_io_acct;
25293 void (*generic_end_io_acct_f)(struct request_queue *, int,
25294 struct hd_struct *, unsigned long) = &generic_end_io_acct;
25300 generic_start_io_acct(NULL, 0, 0, NULL);
25301 generic_end_io_acct(NULL, 0, NULL, 0);
25311 cat - <<_ACEOF >conftest.h
25316 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25317 echo "obj-m := conftest.o" >build
/Makefile
25319 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25320 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25322 (eval $ac_try) 2>&5
25324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25325 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25327 (eval $ac_try) 2>&5
25329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25330 test $ac_status = 0; }; }; then :
25333 $as_echo "$as_me: failed program was:" >&5
25334 sed 's/^/| /' conftest.
$ac_ext >&5
25342 if test $rc -ne 0; then :
25344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25345 $as_echo "no" >&6; }
25348 if test "x$enable_linux_builtin" != xyes
; then
25350 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
25351 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
25353 if test $rc -ne 0; then
25355 for file in block
/bio.c
; do
25356 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
25357 "$LINUX/$file" 2>/dev
/null
25359 if test $rc -eq 0; then
25364 if test $export -eq 0; then :
25374 if test $rc -ne 0; then :
25376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25377 $as_echo "no" >&6; }
25381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25382 $as_echo "yes" >&6; }
25384 $as_echo "#define HAVE_GENERIC_IO_ACCT_4ARG 1" >>confdefs.h
25392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm/fpu/api.h exists" >&5
25393 $as_echo_n "checking whether asm/fpu/api.h exists... " >&6; }
25396 cat confdefs.h
- <<_ACEOF >conftest.c
25399 #include <linux/kernel.h>
25400 #include <asm/fpu/api.h>
25406 __kernel_fpu_begin();
25416 cat - <<_ACEOF >conftest.h
25421 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25422 echo "obj-m := conftest.o" >build
/Makefile
25424 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25425 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25427 (eval $ac_try) 2>&5
25429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25430 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25432 (eval $ac_try) 2>&5
25434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25435 test $ac_status = 0; }; }; then :
25437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25438 $as_echo "yes" >&6; }
25440 $as_echo "#define HAVE_FPU_API_H 1" >>confdefs.h
25444 $as_echo "$as_me: failed program was:" >&5
25445 sed 's/^/| /' conftest.
$ac_ext >&5
25447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25448 $as_echo "no" >&6; }
25458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i_(uid|gid)_(read|write) exist" >&5
25459 $as_echo_n "checking whether i_(uid|gid)_(read|write) exist... " >&6; }
25462 cat confdefs.h
- <<_ACEOF >conftest.c
25465 #include <linux/fs.h>
25471 struct inode *ip = NULL;
25472 (void) i_uid_read(ip);
25482 cat - <<_ACEOF >conftest.h
25487 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25488 echo "obj-m := conftest.o" >build
/Makefile
25490 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25491 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25493 (eval $ac_try) 2>&5
25495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25496 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25498 (eval $ac_try) 2>&5
25500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25501 test $ac_status = 0; }; }; then :
25503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25504 $as_echo "yes" >&6; }
25506 $as_echo "#define HAVE_KUID_HELPERS 1" >>confdefs.h
25510 $as_echo "$as_me: failed program was:" >&5
25511 sed 's/^/| /' conftest.
$ac_ext >&5
25513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25514 $as_echo "no" >&6; }
25524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether module_param_call() is hardened" >&5
25525 $as_echo_n "checking whether module_param_call() is hardened... " >&6; }
25528 cat confdefs.h
- <<_ACEOF >conftest.c
25531 #include <linux/module.h>
25532 #include <linux/moduleparam.h>
25534 int param_get(char *b, const struct kernel_param *kp)
25539 int param_set(const char *b, const struct kernel_param *kp)
25544 module_param_call(p, param_set, param_get, NULL, 0644);
25559 cat - <<_ACEOF >conftest.h
25564 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25565 echo "obj-m := conftest.o" >build
/Makefile
25567 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25568 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25570 (eval $ac_try) 2>&5
25572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25573 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25575 (eval $ac_try) 2>&5
25577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25578 test $ac_status = 0; }; }; then :
25580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25581 $as_echo "yes" >&6; }
25583 $as_echo "#define MODULE_PARAM_CALL_CONST 1" >>confdefs.h
25587 $as_echo "$as_me: failed program was:" >&5
25588 sed 's/^/| /' conftest.
$ac_ext >&5
25590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25591 $as_echo "no" >&6; }
25601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->rename() wants flags" >&5
25602 $as_echo_n "checking whether iops->rename() wants flags... " >&6; }
25605 cat confdefs.h
- <<_ACEOF >conftest.c
25608 #include <linux/fs.h>
25609 int rename_fn(struct inode *sip, struct dentry *sdp,
25610 struct inode *tip, struct dentry *tdp,
25611 unsigned int flags) { return 0; }
25613 static const struct inode_operations
25614 iops __attribute__ ((unused)) = {
25615 .rename = rename_fn,
25631 cat - <<_ACEOF >conftest.h
25636 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25637 echo "obj-m := conftest.o" >build
/Makefile
25639 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25640 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25641 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25642 (eval $ac_try) 2>&5
25644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25645 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25647 (eval $ac_try) 2>&5
25649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25650 test $ac_status = 0; }; }; then :
25652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25653 $as_echo "yes" >&6; }
25655 $as_echo "#define HAVE_RENAME_WANTS_FLAGS 1" >>confdefs.h
25659 $as_echo "$as_me: failed program was:" >&5
25660 sed 's/^/| /' conftest.
$ac_ext >&5
25662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25663 $as_echo "no" >&6; }
25673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_setxattr() exists" >&5
25674 $as_echo_n "checking whether generic_setxattr() exists... " >&6; }
25677 cat confdefs.h
- <<_ACEOF >conftest.c
25680 #include <linux/fs.h>
25681 #include <linux/xattr.h>
25683 static const struct inode_operations
25684 iops __attribute__ ((unused)) = {
25685 .setxattr = generic_setxattr
25701 cat - <<_ACEOF >conftest.h
25706 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25707 echo "obj-m := conftest.o" >build
/Makefile
25709 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25710 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25712 (eval $ac_try) 2>&5
25714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25715 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25717 (eval $ac_try) 2>&5
25719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25720 test $ac_status = 0; }; }; then :
25722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25723 $as_echo "yes" >&6; }
25725 $as_echo "#define HAVE_GENERIC_SETXATTR 1" >>confdefs.h
25729 $as_echo "$as_me: failed program was:" >&5
25730 sed 's/^/| /' conftest.
$ac_ext >&5
25732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25733 $as_echo "no" >&6; }
25742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_time() exists" >&5
25743 $as_echo_n "checking whether current_time() exists... " >&6; }
25747 cat confdefs.h
- <<_ACEOF >conftest.c
25750 #include <linux/fs.h>
25757 struct timespec now __attribute__ ((unused));
25759 now = current_time(&ip);
25769 cat - <<_ACEOF >conftest.h
25774 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25775 echo "obj-m := conftest.o" >build
/Makefile
25777 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25778 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25780 (eval $ac_try) 2>&5
25782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25783 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25785 (eval $ac_try) 2>&5
25787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25788 test $ac_status = 0; }; }; then :
25791 $as_echo "$as_me: failed program was:" >&5
25792 sed 's/^/| /' conftest.
$ac_ext >&5
25800 if test $rc -ne 0; then :
25802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25803 $as_echo "no" >&6; }
25806 if test "x$enable_linux_builtin" != xyes
; then
25808 grep -q -E '[[:space:]]current_time[[:space:]]' \
25809 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
25811 if test $rc -ne 0; then
25813 for file in fs
/inode.c
; do
25814 grep -q -E "EXPORT_SYMBOL.*(current_time)" \
25815 "$LINUX/$file" 2>/dev
/null
25817 if test $rc -eq 0; then
25822 if test $export -eq 0; then :
25832 if test $rc -ne 0; then :
25834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25835 $as_echo "no" >&6; }
25839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25840 $as_echo "yes" >&6; }
25842 $as_echo "#define HAVE_CURRENT_TIME 1" >>confdefs.h
25850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use vm_node_stat based fn's" >&5
25851 $as_echo_n "checking whether to use vm_node_stat based fn's... " >&6; }
25854 cat confdefs.h
- <<_ACEOF >conftest.c
25857 #include <linux/mm.h>
25858 #include <linux/vmstat.h>
25864 int a __attribute__ ((unused)) = NR_VM_NODE_STAT_ITEMS;
25865 long x __attribute__ ((unused)) =
25866 atomic_long_read(&vm_node_stat[0]);
25867 (void) global_node_page_state(0);
25877 cat - <<_ACEOF >conftest.h
25882 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25883 echo "obj-m := conftest.o" >build
/Makefile
25885 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25886 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25888 (eval $ac_try) 2>&5
25890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25891 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25893 (eval $ac_try) 2>&5
25895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25896 test $ac_status = 0; }; }; then :
25898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25899 $as_echo "yes" >&6; }
25901 $as_echo "#define ZFS_GLOBAL_NODE_PAGE_STATE 1" >>confdefs.h
25905 $as_echo "$as_me: failed program was:" >&5
25906 sed 's/^/| /' conftest.
$ac_ext >&5
25908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25909 $as_echo "no" >&6; }
25920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ns_capable exists" >&5
25921 $as_echo_n "checking whether ns_capable exists... " >&6; }
25924 cat confdefs.h
- <<_ACEOF >conftest.c
25927 #include <linux/capability.h>
25933 ns_capable((struct user_namespace *)NULL, CAP_SYS_ADMIN);
25943 cat - <<_ACEOF >conftest.h
25948 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25949 echo "obj-m := conftest.o" >build
/Makefile
25951 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25952 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25954 (eval $ac_try) 2>&5
25956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25957 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25959 (eval $ac_try) 2>&5
25961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25962 test $ac_status = 0; }; }; then :
25964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25965 $as_echo "yes" >&6; }
25967 $as_echo "#define HAVE_NS_CAPABLE 1" >>confdefs.h
25971 $as_echo "$as_me: failed program was:" >&5
25972 sed 's/^/| /' conftest.
$ac_ext >&5
25974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25975 $as_echo "no" >&6; }
25985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cred_t->user_ns exists" >&5
25986 $as_echo_n "checking whether cred_t->user_ns exists... " >&6; }
25989 cat confdefs.h
- <<_ACEOF >conftest.c
25992 #include <linux/cred.h>
25999 cr.user_ns = (struct user_namespace *)NULL;
26009 cat - <<_ACEOF >conftest.h
26014 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26015 echo "obj-m := conftest.o" >build
/Makefile
26017 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26018 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26020 (eval $ac_try) 2>&5
26022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26023 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26025 (eval $ac_try) 2>&5
26027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26028 test $ac_status = 0; }; }; then :
26030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26031 $as_echo "yes" >&6; }
26033 $as_echo "#define HAVE_CRED_USER_NS 1" >>confdefs.h
26037 $as_echo "$as_me: failed program was:" >&5
26038 sed 's/^/| /' conftest.
$ac_ext >&5
26040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26041 $as_echo "no" >&6; }
26051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kuid_has_mapping/kgid_has_mapping exist" >&5
26052 $as_echo_n "checking whether kuid_has_mapping/kgid_has_mapping exist... " >&6; }
26055 cat confdefs.h
- <<_ACEOF >conftest.c
26058 #include <linux/uidgid.h>
26064 kuid_has_mapping((struct user_namespace *)NULL, KUIDT_INIT(0));
26065 kgid_has_mapping((struct user_namespace *)NULL, KGIDT_INIT(0));
26075 cat - <<_ACEOF >conftest.h
26080 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26081 echo "obj-m := conftest.o" >build
/Makefile
26083 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26084 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26086 (eval $ac_try) 2>&5
26088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26089 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26090 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26091 (eval $ac_try) 2>&5
26093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26094 test $ac_status = 0; }; }; then :
26096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26097 $as_echo "yes" >&6; }
26099 $as_echo "#define HAVE_KUID_HAS_MAPPING 1" >>confdefs.h
26103 $as_echo "$as_me: failed program was:" >&5
26104 sed 's/^/| /' conftest.
$ac_ext >&5
26106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26107 $as_echo "no" >&6; }
26118 if test "$LINUX_OBJ" != "$LINUX"; then :
26120 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
26126 KERNELCPPFLAGS
="$KERNELCPPFLAGS -std=gnu99"
26127 KERNELCPPFLAGS
="$KERNELCPPFLAGS -Wno-declaration-after-statement"
26128 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
26129 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
26130 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
26131 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
26137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dkms.conf file" >&5
26138 $as_echo_n "checking for dkms.conf file... " >&6; }
26139 if test -e dkms.conf
; then :
26142 *** ZFS should not be manually built in the DKMS source tree.
26143 *** Remove all ZFS packages before compiling the ZoL sources.
26144 *** Running \"make install\" breaks ZFS packages." "$LINENO" 5
26148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
26149 $as_echo "not found" >&6; }
26155 # Check whether --with-mounthelperdir was given.
26156 if test "${with_mounthelperdir+set}" = set; then :
26157 withval
=$with_mounthelperdir; mounthelperdir
=$withval
26159 mounthelperdir
=/sbin
26166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
26167 $as_echo_n "checking for udev directories... " >&6; }
26169 # Check whether --with-udevdir was given.
26170 if test "${with_udevdir+set}" = set; then :
26171 withval
=$with_udevdir; udevdir
=$withval
26177 if test "x$udevdir" = xcheck
; then :
26180 path2
=/usr
/lib
/udev
26183 if test -d "$path1"; then :
26187 if test -d "$path2"; then :
26198 # Check whether --with-udevruledir was given.
26199 if test "${with_udevruledir+set}" = set; then :
26200 withval
=$with_udevruledir; udevruledir
=$withval
26202 udevruledir
="${udevdir}/rules.d"
26208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
26209 $as_echo "$udevdir;$udevruledir" >&6; }
26212 # Check whether --enable-systemd was given.
26213 if test "${enable_systemd+set}" = set; then :
26214 enableval
=$enable_systemd;
26221 # Check whether --with-systemdunitdir was given.
26222 if test "${with_systemdunitdir+set}" = set; then :
26223 withval
=$with_systemdunitdir; systemdunitdir
=$withval
26225 systemdunitdir
=/usr
/lib
/systemd
/system
26230 # Check whether --with-systemdpresetdir was given.
26231 if test "${with_systemdpresetdir+set}" = set; then :
26232 withval
=$with_systemdpresetdir; systemdpresetdir
=$withval
26234 systemdpresetdir
=/usr
/lib
/systemd
/system-preset
26239 # Check whether --with-systemdmodulesloaddir was given.
26240 if test "${with_systemdmodulesloaddir+set}" = set; then :
26241 withval
=$with_systemdmodulesloaddir; systemdmoduleloaddir
=$withval
26243 systemdmodulesloaddir
=/usr
/lib
/modules-load.d
26248 if test "x$enable_systemd" = xyes
; then :
26250 ZFS_INIT_SYSTEMD
=systemd
26251 ZFS_MODULE_LOAD
=modules-load.d
26252 modulesloaddir
=$systemdmodulesloaddir
26263 # Check whether --enable-sysvinit was given.
26264 if test "${enable_sysvinit+set}" = set; then :
26265 enableval
=$enable_sysvinit;
26267 enable_sysvinit
=yes
26271 if test "x$enable_sysvinit" = xyes
; then :
26272 ZFS_INIT_SYSV
=init.d
26278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
26279 $as_echo_n "checking for dracut directory... " >&6; }
26281 # Check whether --with-dracutdir was given.
26282 if test "${with_dracutdir+set}" = set; then :
26283 withval
=$with_dracutdir; dracutdir
=$withval
26289 if test "x$dracutdir" = xcheck
; then :
26291 path1
=/usr
/share
/dracut
26292 path2
=/usr
/lib
/dracut
26295 if test -d "$path1"; then :
26299 if test -d "$path2"; then :
26302 dracutdir
="$default"
26310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
26311 $as_echo "$dracutdir" >&6; }
26316 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
26317 if test "x$ac_cv_header_zlib_h" = xyes
; then :
26320 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26321 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26323 *** zlib.h missing, zlib-devel package required
26324 See \`config.log' for more details" "$LINENO" 5; }
26329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing compress2" >&5
26330 $as_echo_n "checking for library containing compress2... " >&6; }
26331 if ${ac_cv_search_compress2+:} false
; then :
26332 $as_echo_n "(cached) " >&6
26334 ac_func_search_save_LIBS
=$LIBS
26335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26336 /* end confdefs.h. */
26338 /* Override any GCC internal prototype to avoid an error.
26339 Use char because int might match the return type of a GCC
26340 builtin and then its argument prototype would still apply. */
26348 return compress2 ();
26353 for ac_lib
in '' z
; do
26354 if test -z "$ac_lib"; then
26355 ac_res
="none required"
26358 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26360 if ac_fn_c_try_link
"$LINENO"; then :
26361 ac_cv_search_compress2
=$ac_res
26363 rm -f core conftest.err conftest.
$ac_objext \
26365 if ${ac_cv_search_compress2+:} false
; then :
26369 if ${ac_cv_search_compress2+:} false
; then :
26372 ac_cv_search_compress2
=no
26374 rm conftest.
$ac_ext
26375 LIBS
=$ac_func_search_save_LIBS
26377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_compress2" >&5
26378 $as_echo "$ac_cv_search_compress2" >&6; }
26379 ac_res
=$ac_cv_search_compress2
26380 if test "$ac_res" != no
; then :
26381 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26387 *** compress2() missing, zlib-devel package required
26388 See \`config.log' for more details" "$LINENO" 5; }
26392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uncompress" >&5
26393 $as_echo_n "checking for library containing uncompress... " >&6; }
26394 if ${ac_cv_search_uncompress+:} false
; then :
26395 $as_echo_n "(cached) " >&6
26397 ac_func_search_save_LIBS
=$LIBS
26398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26399 /* end confdefs.h. */
26401 /* Override any GCC internal prototype to avoid an error.
26402 Use char because int might match the return type of a GCC
26403 builtin and then its argument prototype would still apply. */
26407 char uncompress ();
26411 return uncompress ();
26416 for ac_lib
in '' z
; do
26417 if test -z "$ac_lib"; then
26418 ac_res
="none required"
26421 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26423 if ac_fn_c_try_link
"$LINENO"; then :
26424 ac_cv_search_uncompress
=$ac_res
26426 rm -f core conftest.err conftest.
$ac_objext \
26428 if ${ac_cv_search_uncompress+:} false
; then :
26432 if ${ac_cv_search_uncompress+:} false
; then :
26435 ac_cv_search_uncompress
=no
26437 rm conftest.
$ac_ext
26438 LIBS
=$ac_func_search_save_LIBS
26440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uncompress" >&5
26441 $as_echo "$ac_cv_search_uncompress" >&6; }
26442 ac_res
=$ac_cv_search_uncompress
26443 if test "$ac_res" != no
; then :
26444 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26447 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26450 *** uncompress() missing, zlib-devel package required
26451 See \`config.log' for more details" "$LINENO" 5; }
26455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crc32" >&5
26456 $as_echo_n "checking for library containing crc32... " >&6; }
26457 if ${ac_cv_search_crc32+:} false
; then :
26458 $as_echo_n "(cached) " >&6
26460 ac_func_search_save_LIBS
=$LIBS
26461 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26462 /* end confdefs.h. */
26464 /* Override any GCC internal prototype to avoid an error.
26465 Use char because int might match the return type of a GCC
26466 builtin and then its argument prototype would still apply. */
26479 for ac_lib
in '' z
; do
26480 if test -z "$ac_lib"; then
26481 ac_res
="none required"
26484 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26486 if ac_fn_c_try_link
"$LINENO"; then :
26487 ac_cv_search_crc32
=$ac_res
26489 rm -f core conftest.err conftest.
$ac_objext \
26491 if ${ac_cv_search_crc32+:} false
; then :
26495 if ${ac_cv_search_crc32+:} false
; then :
26498 ac_cv_search_crc32
=no
26500 rm conftest.
$ac_ext
26501 LIBS
=$ac_func_search_save_LIBS
26503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crc32" >&5
26504 $as_echo "$ac_cv_search_crc32" >&6; }
26505 ac_res
=$ac_cv_search_crc32
26506 if test "$ac_res" != no
; then :
26507 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26513 *** crc32() missing, zlib-devel package required
26514 See \`config.log' for more details" "$LINENO" 5; }
26521 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
26527 ac_fn_c_check_header_mongrel
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
26528 if test "x$ac_cv_header_uuid_uuid_h" = xyes
; then :
26531 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26534 *** uuid/uuid.h missing, libuuid-devel package required
26535 See \`config.log' for more details" "$LINENO" 5; }
26540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
26541 $as_echo_n "checking for library containing uuid_generate... " >&6; }
26542 if ${ac_cv_search_uuid_generate+:} false
; then :
26543 $as_echo_n "(cached) " >&6
26545 ac_func_search_save_LIBS
=$LIBS
26546 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26547 /* end confdefs.h. */
26549 /* Override any GCC internal prototype to avoid an error.
26550 Use char because int might match the return type of a GCC
26551 builtin and then its argument prototype would still apply. */
26555 char uuid_generate ();
26559 return uuid_generate ();
26564 for ac_lib
in '' uuid
; do
26565 if test -z "$ac_lib"; then
26566 ac_res
="none required"
26569 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26571 if ac_fn_c_try_link
"$LINENO"; then :
26572 ac_cv_search_uuid_generate
=$ac_res
26574 rm -f core conftest.err conftest.
$ac_objext \
26576 if ${ac_cv_search_uuid_generate+:} false
; then :
26580 if ${ac_cv_search_uuid_generate+:} false
; then :
26583 ac_cv_search_uuid_generate
=no
26585 rm conftest.
$ac_ext
26586 LIBS
=$ac_func_search_save_LIBS
26588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
26589 $as_echo "$ac_cv_search_uuid_generate" >&6; }
26590 ac_res
=$ac_cv_search_uuid_generate
26591 if test "$ac_res" != no
; then :
26592 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26598 *** uuid_generate() missing, libuuid-devel package required
26599 See \`config.log' for more details" "$LINENO" 5; }
26603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_is_null" >&5
26604 $as_echo_n "checking for library containing uuid_is_null... " >&6; }
26605 if ${ac_cv_search_uuid_is_null+:} false
; then :
26606 $as_echo_n "(cached) " >&6
26608 ac_func_search_save_LIBS
=$LIBS
26609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26610 /* end confdefs.h. */
26612 /* Override any GCC internal prototype to avoid an error.
26613 Use char because int might match the return type of a GCC
26614 builtin and then its argument prototype would still apply. */
26618 char uuid_is_null ();
26622 return uuid_is_null ();
26627 for ac_lib
in '' uuid
; do
26628 if test -z "$ac_lib"; then
26629 ac_res
="none required"
26632 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26634 if ac_fn_c_try_link
"$LINENO"; then :
26635 ac_cv_search_uuid_is_null
=$ac_res
26637 rm -f core conftest.err conftest.
$ac_objext \
26639 if ${ac_cv_search_uuid_is_null+:} false
; then :
26643 if ${ac_cv_search_uuid_is_null+:} false
; then :
26646 ac_cv_search_uuid_is_null
=no
26648 rm conftest.
$ac_ext
26649 LIBS
=$ac_func_search_save_LIBS
26651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_is_null" >&5
26652 $as_echo "$ac_cv_search_uuid_is_null" >&6; }
26653 ac_res
=$ac_cv_search_uuid_is_null
26654 if test "$ac_res" != no
; then :
26655 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26661 *** uuid_is_null() missing, libuuid-devel package required
26662 See \`config.log' for more details" "$LINENO" 5; }
26669 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
26674 # Check whether --with-tirpc was given.
26675 if test "${with_tirpc+set}" = set; then :
26676 withval
=$with_tirpc;
26685 if test "x$with_tirpc" != xno
; then :
26686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xdrmem_create in -ltirpc" >&5
26687 $as_echo_n "checking for xdrmem_create in -ltirpc... " >&6; }
26688 if ${ac_cv_lib_tirpc_xdrmem_create+:} false
; then :
26689 $as_echo_n "(cached) " >&6
26691 ac_check_lib_save_LIBS
=$LIBS
26692 LIBS
="-ltirpc $LIBS"
26693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26694 /* end confdefs.h. */
26696 /* Override any GCC internal prototype to avoid an error.
26697 Use char because int might match the return type of a GCC
26698 builtin and then its argument prototype would still apply. */
26702 char xdrmem_create ();
26706 return xdrmem_create ();
26711 if ac_fn_c_try_link
"$LINENO"; then :
26712 ac_cv_lib_tirpc_xdrmem_create
=yes
26714 ac_cv_lib_tirpc_xdrmem_create
=no
26716 rm -f core conftest.err conftest.
$ac_objext \
26717 conftest
$ac_exeext conftest.
$ac_ext
26718 LIBS
=$ac_check_lib_save_LIBS
26720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tirpc_xdrmem_create" >&5
26721 $as_echo "$ac_cv_lib_tirpc_xdrmem_create" >&6; }
26722 if test "x$ac_cv_lib_tirpc_xdrmem_create" = xyes
; then :
26725 LIBTIRPC_CFLAGS
=-I/usr
/include
/tirpc
26728 $as_echo "#define HAVE_LIBTIRPC 1" >>confdefs.h
26732 if test "x$with_tirpc" != xcheck
; then
26733 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26734 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26735 as_fn_error $?
"--with-tirpc was given, but test for tirpc failed
26736 See \`config.log' for more details" "$LINENO" 5; }
26738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing xdrmem_create" >&5
26739 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
26740 if ${ac_cv_search_xdrmem_create+:} false
; then :
26741 $as_echo_n "(cached) " >&6
26743 ac_func_search_save_LIBS
=$LIBS
26744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26745 /* end confdefs.h. */
26747 /* Override any GCC internal prototype to avoid an error.
26748 Use char because int might match the return type of a GCC
26749 builtin and then its argument prototype would still apply. */
26753 char xdrmem_create ();
26757 return xdrmem_create ();
26762 for ac_lib
in '' tirpc
; do
26763 if test -z "$ac_lib"; then
26764 ac_res
="none required"
26767 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26769 if ac_fn_c_try_link
"$LINENO"; then :
26770 ac_cv_search_xdrmem_create
=$ac_res
26772 rm -f core conftest.err conftest.
$ac_objext \
26774 if ${ac_cv_search_xdrmem_create+:} false
; then :
26778 if ${ac_cv_search_xdrmem_create+:} false
; then :
26781 ac_cv_search_xdrmem_create
=no
26783 rm conftest.
$ac_ext
26784 LIBS
=$ac_func_search_save_LIBS
26786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xdrmem_create" >&5
26787 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
26788 ac_res
=$ac_cv_search_xdrmem_create
26789 if test "$ac_res" != no
; then :
26790 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26796 as_fn_error $?
"xdrmem_create() requires tirpc or libc
26797 See \`config.log' for more details" "$LINENO" 5; }
26804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing xdrmem_create" >&5
26805 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
26806 if ${ac_cv_search_xdrmem_create+:} false
; then :
26807 $as_echo_n "(cached) " >&6
26809 ac_func_search_save_LIBS
=$LIBS
26810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26811 /* end confdefs.h. */
26813 /* Override any GCC internal prototype to avoid an error.
26814 Use char because int might match the return type of a GCC
26815 builtin and then its argument prototype would still apply. */
26819 char xdrmem_create ();
26823 return xdrmem_create ();
26828 for ac_lib
in '' tirpc
; do
26829 if test -z "$ac_lib"; then
26830 ac_res
="none required"
26833 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26835 if ac_fn_c_try_link
"$LINENO"; then :
26836 ac_cv_search_xdrmem_create
=$ac_res
26838 rm -f core conftest.err conftest.
$ac_objext \
26840 if ${ac_cv_search_xdrmem_create+:} false
; then :
26844 if ${ac_cv_search_xdrmem_create+:} false
; then :
26847 ac_cv_search_xdrmem_create
=no
26849 rm conftest.
$ac_ext
26850 LIBS
=$ac_func_search_save_LIBS
26852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xdrmem_create" >&5
26853 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
26854 ac_res
=$ac_cv_search_xdrmem_create
26855 if test "$ac_res" != no
; then :
26856 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26862 as_fn_error $?
"xdrmem_create() requires libc
26863 See \`config.log' for more details" "$LINENO" 5; }
26872 ac_fn_c_check_header_mongrel
"$LINENO" "blkid/blkid.h" "ac_cv_header_blkid_blkid_h" "$ac_includes_default"
26873 if test "x$ac_cv_header_blkid_blkid_h" = xyes
; then :
26876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26879 *** blkid.h missing, libblkid-devel package required
26880 See \`config.log' for more details" "$LINENO" 5; }
26888 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
26894 ac_fn_c_check_header_mongrel
"$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
26895 if test "x$ac_cv_header_attr_xattr_h" = xyes
; then :
26898 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26899 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26901 *** attr/xattr.h missing, libattr-devel package required
26902 See \`config.log' for more details" "$LINENO" 5; }
26910 $as_echo "#define HAVE_LIBATTR 1" >>confdefs.h
26916 ac_fn_c_check_header_mongrel
"$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
26917 if test "x$ac_cv_header_libudev_h" = xyes
; then :
26923 $as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
26934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing udev_device_get_is_initialized" >&5
26935 $as_echo_n "checking for library containing udev_device_get_is_initialized... " >&6; }
26936 if ${ac_cv_search_udev_device_get_is_initialized+:} false
; then :
26937 $as_echo_n "(cached) " >&6
26939 ac_func_search_save_LIBS
=$LIBS
26940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
26941 /* end confdefs.h. */
26943 /* Override any GCC internal prototype to avoid an error.
26944 Use char because int might match the return type of a GCC
26945 builtin and then its argument prototype would still apply. */
26949 char udev_device_get_is_initialized ();
26953 return udev_device_get_is_initialized ();
26958 for ac_lib
in '' udev
; do
26959 if test -z "$ac_lib"; then
26960 ac_res
="none required"
26963 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
26965 if ac_fn_c_try_link
"$LINENO"; then :
26966 ac_cv_search_udev_device_get_is_initialized
=$ac_res
26968 rm -f core conftest.err conftest.
$ac_objext \
26970 if ${ac_cv_search_udev_device_get_is_initialized+:} false
; then :
26974 if ${ac_cv_search_udev_device_get_is_initialized+:} false
; then :
26977 ac_cv_search_udev_device_get_is_initialized
=no
26979 rm conftest.
$ac_ext
26980 LIBS
=$ac_func_search_save_LIBS
26982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_udev_device_get_is_initialized" >&5
26983 $as_echo "$ac_cv_search_udev_device_get_is_initialized" >&6; }
26984 ac_res
=$ac_cv_search_udev_device_get_is_initialized
26985 if test "$ac_res" != no
; then :
26986 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
26989 $as_echo "#define HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED 1" >>confdefs.h
26998 ac_fn_c_check_header_mongrel
"$LINENO" "libaio.h" "ac_cv_header_libaio_h" "$ac_includes_default"
26999 if test "x$ac_cv_header_libaio_h" = xyes
; then :
27005 $as_echo "#define HAVE_LIBAIO 1" >>confdefs.h
27017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
27018 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
27020 saved_flags
="$CFLAGS"
27021 CFLAGS
="$CFLAGS -Wframe-larger-than=1024"
27023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27024 /* end confdefs.h. */
27034 if ac_fn_c_try_compile
"$LINENO"; then :
27036 FRAME_LARGER_THAN
=-Wframe-larger-than=1024
27037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27038 $as_echo "yes" >&6; }
27043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27044 $as_echo "no" >&6; }
27047 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27049 CFLAGS
="$saved_flags"
27053 if test "x$runstatedir" = x
; then
27054 runstatedir
='${localstatedir}/run'
27059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/sysmacros.h" >&5
27060 $as_echo_n "checking makedev() is declared in sys/sysmacros.h... " >&6; }
27061 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27062 /* end confdefs.h. */
27064 #include <sys/sysmacros.h>
27077 if ac_fn_c_try_compile
"$LINENO"; then :
27079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27080 $as_echo "yes" >&6; }
27082 $as_echo "#define HAVE_MAKEDEV_IN_SYSMACROS 1" >>confdefs.h
27087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27088 $as_echo "no" >&6; }
27091 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/mkdev.h" >&5
27095 $as_echo_n "checking makedev() is declared in sys/mkdev.h... " >&6; }
27096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27097 /* end confdefs.h. */
27099 #include <sys/mkdev.h>
27112 if ac_fn_c_try_compile
"$LINENO"; then :
27114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27115 $as_echo "yes" >&6; }
27117 $as_echo "#define HAVE_MAKEDEV_IN_MKDEV 1" >>confdefs.h
27122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27123 $as_echo "no" >&6; }
27126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-format-truncation support" >&5
27130 $as_echo_n "checking for -Wno-format-truncation support... " >&6; }
27132 saved_flags
="$CFLAGS"
27133 CFLAGS
="$CFLAGS -Wno-format-truncation"
27135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27136 /* end confdefs.h. */
27146 if ac_fn_c_try_compile
"$LINENO"; then :
27148 NO_FORMAT_TRUNCATION
=-Wno-format-truncation
27149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27150 $as_echo "yes" >&6; }
27154 NO_FORMAT_TRUNCATION
=
27155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27156 $as_echo "no" >&6; }
27159 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
27161 CFLAGS
="$saved_flags"
27166 ZONENAME
="echo global"
27172 for ac_func
in mlockall
27174 ac_fn_c_check_func
"$LINENO" "mlockall" "ac_cv_func_mlockall"
27175 if test "x$ac_cv_func_mlockall" = xyes
; then :
27176 cat >>confdefs.h
<<_ACEOF
27177 #define HAVE_MLOCKALL 1
27186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dkms.conf file" >&5
27187 $as_echo_n "checking for dkms.conf file... " >&6; }
27188 if test -e dkms.conf
; then :
27191 *** ZFS should not be manually built in the DKMS source tree.
27192 *** Remove all ZFS packages before compiling the ZoL sources.
27193 *** Running \"make install\" breaks ZFS packages." "$LINENO" 5
27197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
27198 $as_echo "not found" >&6; }
27204 # Check whether --with-mounthelperdir was given.
27205 if test "${with_mounthelperdir+set}" = set; then :
27206 withval
=$with_mounthelperdir; mounthelperdir
=$withval
27208 mounthelperdir
=/sbin
27215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
27216 $as_echo_n "checking for udev directories... " >&6; }
27218 # Check whether --with-udevdir was given.
27219 if test "${with_udevdir+set}" = set; then :
27220 withval
=$with_udevdir; udevdir
=$withval
27226 if test "x$udevdir" = xcheck
; then :
27229 path2
=/usr
/lib
/udev
27232 if test -d "$path1"; then :
27236 if test -d "$path2"; then :
27247 # Check whether --with-udevruledir was given.
27248 if test "${with_udevruledir+set}" = set; then :
27249 withval
=$with_udevruledir; udevruledir
=$withval
27251 udevruledir
="${udevdir}/rules.d"
27257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
27258 $as_echo "$udevdir;$udevruledir" >&6; }
27261 # Check whether --enable-systemd was given.
27262 if test "${enable_systemd+set}" = set; then :
27263 enableval
=$enable_systemd;
27270 # Check whether --with-systemdunitdir was given.
27271 if test "${with_systemdunitdir+set}" = set; then :
27272 withval
=$with_systemdunitdir; systemdunitdir
=$withval
27274 systemdunitdir
=/usr
/lib
/systemd
/system
27279 # Check whether --with-systemdpresetdir was given.
27280 if test "${with_systemdpresetdir+set}" = set; then :
27281 withval
=$with_systemdpresetdir; systemdpresetdir
=$withval
27283 systemdpresetdir
=/usr
/lib
/systemd
/system-preset
27288 # Check whether --with-systemdmodulesloaddir was given.
27289 if test "${with_systemdmodulesloaddir+set}" = set; then :
27290 withval
=$with_systemdmodulesloaddir; systemdmoduleloaddir
=$withval
27292 systemdmodulesloaddir
=/usr
/lib
/modules-load.d
27297 if test "x$enable_systemd" = xyes
; then :
27299 ZFS_INIT_SYSTEMD
=systemd
27300 ZFS_MODULE_LOAD
=modules-load.d
27301 modulesloaddir
=$systemdmodulesloaddir
27312 # Check whether --enable-sysvinit was given.
27313 if test "${enable_sysvinit+set}" = set; then :
27314 enableval
=$enable_sysvinit;
27316 enable_sysvinit
=yes
27320 if test "x$enable_sysvinit" = xyes
; then :
27321 ZFS_INIT_SYSV
=init.d
27327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
27328 $as_echo_n "checking for dracut directory... " >&6; }
27330 # Check whether --with-dracutdir was given.
27331 if test "${with_dracutdir+set}" = set; then :
27332 withval
=$with_dracutdir; dracutdir
=$withval
27338 if test "x$dracutdir" = xcheck
; then :
27340 path1
=/usr
/share
/dracut
27341 path2
=/usr
/lib
/dracut
27344 if test -d "$path1"; then :
27348 if test -d "$path2"; then :
27351 dracutdir
="$default"
27359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
27360 $as_echo "$dracutdir" >&6; }
27365 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
27366 if test "x$ac_cv_header_zlib_h" = xyes
; then :
27369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27372 *** zlib.h missing, zlib-devel package required
27373 See \`config.log' for more details" "$LINENO" 5; }
27378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing compress2" >&5
27379 $as_echo_n "checking for library containing compress2... " >&6; }
27380 if ${ac_cv_search_compress2+:} false
; then :
27381 $as_echo_n "(cached) " >&6
27383 ac_func_search_save_LIBS
=$LIBS
27384 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27385 /* end confdefs.h. */
27387 /* Override any GCC internal prototype to avoid an error.
27388 Use char because int might match the return type of a GCC
27389 builtin and then its argument prototype would still apply. */
27397 return compress2 ();
27402 for ac_lib
in '' z
; do
27403 if test -z "$ac_lib"; then
27404 ac_res
="none required"
27407 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27409 if ac_fn_c_try_link
"$LINENO"; then :
27410 ac_cv_search_compress2
=$ac_res
27412 rm -f core conftest.err conftest.
$ac_objext \
27414 if ${ac_cv_search_compress2+:} false
; then :
27418 if ${ac_cv_search_compress2+:} false
; then :
27421 ac_cv_search_compress2
=no
27423 rm conftest.
$ac_ext
27424 LIBS
=$ac_func_search_save_LIBS
27426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_compress2" >&5
27427 $as_echo "$ac_cv_search_compress2" >&6; }
27428 ac_res
=$ac_cv_search_compress2
27429 if test "$ac_res" != no
; then :
27430 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27433 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27436 *** compress2() missing, zlib-devel package required
27437 See \`config.log' for more details" "$LINENO" 5; }
27441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uncompress" >&5
27442 $as_echo_n "checking for library containing uncompress... " >&6; }
27443 if ${ac_cv_search_uncompress+:} false
; then :
27444 $as_echo_n "(cached) " >&6
27446 ac_func_search_save_LIBS
=$LIBS
27447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27448 /* end confdefs.h. */
27450 /* Override any GCC internal prototype to avoid an error.
27451 Use char because int might match the return type of a GCC
27452 builtin and then its argument prototype would still apply. */
27456 char uncompress ();
27460 return uncompress ();
27465 for ac_lib
in '' z
; do
27466 if test -z "$ac_lib"; then
27467 ac_res
="none required"
27470 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27472 if ac_fn_c_try_link
"$LINENO"; then :
27473 ac_cv_search_uncompress
=$ac_res
27475 rm -f core conftest.err conftest.
$ac_objext \
27477 if ${ac_cv_search_uncompress+:} false
; then :
27481 if ${ac_cv_search_uncompress+:} false
; then :
27484 ac_cv_search_uncompress
=no
27486 rm conftest.
$ac_ext
27487 LIBS
=$ac_func_search_save_LIBS
27489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uncompress" >&5
27490 $as_echo "$ac_cv_search_uncompress" >&6; }
27491 ac_res
=$ac_cv_search_uncompress
27492 if test "$ac_res" != no
; then :
27493 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27499 *** uncompress() missing, zlib-devel package required
27500 See \`config.log' for more details" "$LINENO" 5; }
27504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crc32" >&5
27505 $as_echo_n "checking for library containing crc32... " >&6; }
27506 if ${ac_cv_search_crc32+:} false
; then :
27507 $as_echo_n "(cached) " >&6
27509 ac_func_search_save_LIBS
=$LIBS
27510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27511 /* end confdefs.h. */
27513 /* Override any GCC internal prototype to avoid an error.
27514 Use char because int might match the return type of a GCC
27515 builtin and then its argument prototype would still apply. */
27528 for ac_lib
in '' z
; do
27529 if test -z "$ac_lib"; then
27530 ac_res
="none required"
27533 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27535 if ac_fn_c_try_link
"$LINENO"; then :
27536 ac_cv_search_crc32
=$ac_res
27538 rm -f core conftest.err conftest.
$ac_objext \
27540 if ${ac_cv_search_crc32+:} false
; then :
27544 if ${ac_cv_search_crc32+:} false
; then :
27547 ac_cv_search_crc32
=no
27549 rm conftest.
$ac_ext
27550 LIBS
=$ac_func_search_save_LIBS
27552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crc32" >&5
27553 $as_echo "$ac_cv_search_crc32" >&6; }
27554 ac_res
=$ac_cv_search_crc32
27555 if test "$ac_res" != no
; then :
27556 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27559 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27562 *** crc32() missing, zlib-devel package required
27563 See \`config.log' for more details" "$LINENO" 5; }
27570 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
27576 ac_fn_c_check_header_mongrel
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
27577 if test "x$ac_cv_header_uuid_uuid_h" = xyes
; then :
27580 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27581 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27583 *** uuid/uuid.h missing, libuuid-devel package required
27584 See \`config.log' for more details" "$LINENO" 5; }
27589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_generate" >&5
27590 $as_echo_n "checking for library containing uuid_generate... " >&6; }
27591 if ${ac_cv_search_uuid_generate+:} false
; then :
27592 $as_echo_n "(cached) " >&6
27594 ac_func_search_save_LIBS
=$LIBS
27595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27596 /* end confdefs.h. */
27598 /* Override any GCC internal prototype to avoid an error.
27599 Use char because int might match the return type of a GCC
27600 builtin and then its argument prototype would still apply. */
27604 char uuid_generate ();
27608 return uuid_generate ();
27613 for ac_lib
in '' uuid
; do
27614 if test -z "$ac_lib"; then
27615 ac_res
="none required"
27618 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27620 if ac_fn_c_try_link
"$LINENO"; then :
27621 ac_cv_search_uuid_generate
=$ac_res
27623 rm -f core conftest.err conftest.
$ac_objext \
27625 if ${ac_cv_search_uuid_generate+:} false
; then :
27629 if ${ac_cv_search_uuid_generate+:} false
; then :
27632 ac_cv_search_uuid_generate
=no
27634 rm conftest.
$ac_ext
27635 LIBS
=$ac_func_search_save_LIBS
27637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_generate" >&5
27638 $as_echo "$ac_cv_search_uuid_generate" >&6; }
27639 ac_res
=$ac_cv_search_uuid_generate
27640 if test "$ac_res" != no
; then :
27641 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27644 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27645 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27647 *** uuid_generate() missing, libuuid-devel package required
27648 See \`config.log' for more details" "$LINENO" 5; }
27652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uuid_is_null" >&5
27653 $as_echo_n "checking for library containing uuid_is_null... " >&6; }
27654 if ${ac_cv_search_uuid_is_null+:} false
; then :
27655 $as_echo_n "(cached) " >&6
27657 ac_func_search_save_LIBS
=$LIBS
27658 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27659 /* end confdefs.h. */
27661 /* Override any GCC internal prototype to avoid an error.
27662 Use char because int might match the return type of a GCC
27663 builtin and then its argument prototype would still apply. */
27667 char uuid_is_null ();
27671 return uuid_is_null ();
27676 for ac_lib
in '' uuid
; do
27677 if test -z "$ac_lib"; then
27678 ac_res
="none required"
27681 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27683 if ac_fn_c_try_link
"$LINENO"; then :
27684 ac_cv_search_uuid_is_null
=$ac_res
27686 rm -f core conftest.err conftest.
$ac_objext \
27688 if ${ac_cv_search_uuid_is_null+:} false
; then :
27692 if ${ac_cv_search_uuid_is_null+:} false
; then :
27695 ac_cv_search_uuid_is_null
=no
27697 rm conftest.
$ac_ext
27698 LIBS
=$ac_func_search_save_LIBS
27700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uuid_is_null" >&5
27701 $as_echo "$ac_cv_search_uuid_is_null" >&6; }
27702 ac_res
=$ac_cv_search_uuid_is_null
27703 if test "$ac_res" != no
; then :
27704 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27710 *** uuid_is_null() missing, libuuid-devel package required
27711 See \`config.log' for more details" "$LINENO" 5; }
27718 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
27723 # Check whether --with-tirpc was given.
27724 if test "${with_tirpc+set}" = set; then :
27725 withval
=$with_tirpc;
27734 if test "x$with_tirpc" != xno
; then :
27735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xdrmem_create in -ltirpc" >&5
27736 $as_echo_n "checking for xdrmem_create in -ltirpc... " >&6; }
27737 if ${ac_cv_lib_tirpc_xdrmem_create+:} false
; then :
27738 $as_echo_n "(cached) " >&6
27740 ac_check_lib_save_LIBS
=$LIBS
27741 LIBS
="-ltirpc $LIBS"
27742 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27743 /* end confdefs.h. */
27745 /* Override any GCC internal prototype to avoid an error.
27746 Use char because int might match the return type of a GCC
27747 builtin and then its argument prototype would still apply. */
27751 char xdrmem_create ();
27755 return xdrmem_create ();
27760 if ac_fn_c_try_link
"$LINENO"; then :
27761 ac_cv_lib_tirpc_xdrmem_create
=yes
27763 ac_cv_lib_tirpc_xdrmem_create
=no
27765 rm -f core conftest.err conftest.
$ac_objext \
27766 conftest
$ac_exeext conftest.
$ac_ext
27767 LIBS
=$ac_check_lib_save_LIBS
27769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tirpc_xdrmem_create" >&5
27770 $as_echo "$ac_cv_lib_tirpc_xdrmem_create" >&6; }
27771 if test "x$ac_cv_lib_tirpc_xdrmem_create" = xyes
; then :
27774 LIBTIRPC_CFLAGS
=-I/usr
/include
/tirpc
27777 $as_echo "#define HAVE_LIBTIRPC 1" >>confdefs.h
27781 if test "x$with_tirpc" != xcheck
; then
27782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27784 as_fn_error $?
"--with-tirpc was given, but test for tirpc failed
27785 See \`config.log' for more details" "$LINENO" 5; }
27787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing xdrmem_create" >&5
27788 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
27789 if ${ac_cv_search_xdrmem_create+:} false
; then :
27790 $as_echo_n "(cached) " >&6
27792 ac_func_search_save_LIBS
=$LIBS
27793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27794 /* end confdefs.h. */
27796 /* Override any GCC internal prototype to avoid an error.
27797 Use char because int might match the return type of a GCC
27798 builtin and then its argument prototype would still apply. */
27802 char xdrmem_create ();
27806 return xdrmem_create ();
27811 for ac_lib
in '' tirpc
; do
27812 if test -z "$ac_lib"; then
27813 ac_res
="none required"
27816 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27818 if ac_fn_c_try_link
"$LINENO"; then :
27819 ac_cv_search_xdrmem_create
=$ac_res
27821 rm -f core conftest.err conftest.
$ac_objext \
27823 if ${ac_cv_search_xdrmem_create+:} false
; then :
27827 if ${ac_cv_search_xdrmem_create+:} false
; then :
27830 ac_cv_search_xdrmem_create
=no
27832 rm conftest.
$ac_ext
27833 LIBS
=$ac_func_search_save_LIBS
27835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xdrmem_create" >&5
27836 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
27837 ac_res
=$ac_cv_search_xdrmem_create
27838 if test "$ac_res" != no
; then :
27839 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27843 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27845 as_fn_error $?
"xdrmem_create() requires tirpc or libc
27846 See \`config.log' for more details" "$LINENO" 5; }
27853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing xdrmem_create" >&5
27854 $as_echo_n "checking for library containing xdrmem_create... " >&6; }
27855 if ${ac_cv_search_xdrmem_create+:} false
; then :
27856 $as_echo_n "(cached) " >&6
27858 ac_func_search_save_LIBS
=$LIBS
27859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27860 /* end confdefs.h. */
27862 /* Override any GCC internal prototype to avoid an error.
27863 Use char because int might match the return type of a GCC
27864 builtin and then its argument prototype would still apply. */
27868 char xdrmem_create ();
27872 return xdrmem_create ();
27877 for ac_lib
in '' tirpc
; do
27878 if test -z "$ac_lib"; then
27879 ac_res
="none required"
27882 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
27884 if ac_fn_c_try_link
"$LINENO"; then :
27885 ac_cv_search_xdrmem_create
=$ac_res
27887 rm -f core conftest.err conftest.
$ac_objext \
27889 if ${ac_cv_search_xdrmem_create+:} false
; then :
27893 if ${ac_cv_search_xdrmem_create+:} false
; then :
27896 ac_cv_search_xdrmem_create
=no
27898 rm conftest.
$ac_ext
27899 LIBS
=$ac_func_search_save_LIBS
27901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_xdrmem_create" >&5
27902 $as_echo "$ac_cv_search_xdrmem_create" >&6; }
27903 ac_res
=$ac_cv_search_xdrmem_create
27904 if test "$ac_res" != no
; then :
27905 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
27909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27911 as_fn_error $?
"xdrmem_create() requires libc
27912 See \`config.log' for more details" "$LINENO" 5; }
27921 ac_fn_c_check_header_mongrel
"$LINENO" "blkid/blkid.h" "ac_cv_header_blkid_blkid_h" "$ac_includes_default"
27922 if test "x$ac_cv_header_blkid_blkid_h" = xyes
; then :
27925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27928 *** blkid.h missing, libblkid-devel package required
27929 See \`config.log' for more details" "$LINENO" 5; }
27937 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
27943 ac_fn_c_check_header_mongrel
"$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
27944 if test "x$ac_cv_header_attr_xattr_h" = xyes
; then :
27947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27950 *** attr/xattr.h missing, libattr-devel package required
27951 See \`config.log' for more details" "$LINENO" 5; }
27959 $as_echo "#define HAVE_LIBATTR 1" >>confdefs.h
27965 ac_fn_c_check_header_mongrel
"$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
27966 if test "x$ac_cv_header_libudev_h" = xyes
; then :
27972 $as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
27983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing udev_device_get_is_initialized" >&5
27984 $as_echo_n "checking for library containing udev_device_get_is_initialized... " >&6; }
27985 if ${ac_cv_search_udev_device_get_is_initialized+:} false
; then :
27986 $as_echo_n "(cached) " >&6
27988 ac_func_search_save_LIBS
=$LIBS
27989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
27990 /* end confdefs.h. */
27992 /* Override any GCC internal prototype to avoid an error.
27993 Use char because int might match the return type of a GCC
27994 builtin and then its argument prototype would still apply. */
27998 char udev_device_get_is_initialized ();
28002 return udev_device_get_is_initialized ();
28007 for ac_lib
in '' udev
; do
28008 if test -z "$ac_lib"; then
28009 ac_res
="none required"
28012 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
28014 if ac_fn_c_try_link
"$LINENO"; then :
28015 ac_cv_search_udev_device_get_is_initialized
=$ac_res
28017 rm -f core conftest.err conftest.
$ac_objext \
28019 if ${ac_cv_search_udev_device_get_is_initialized+:} false
; then :
28023 if ${ac_cv_search_udev_device_get_is_initialized+:} false
; then :
28026 ac_cv_search_udev_device_get_is_initialized
=no
28028 rm conftest.
$ac_ext
28029 LIBS
=$ac_func_search_save_LIBS
28031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_udev_device_get_is_initialized" >&5
28032 $as_echo "$ac_cv_search_udev_device_get_is_initialized" >&6; }
28033 ac_res
=$ac_cv_search_udev_device_get_is_initialized
28034 if test "$ac_res" != no
; then :
28035 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
28038 $as_echo "#define HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED 1" >>confdefs.h
28047 ac_fn_c_check_header_mongrel
"$LINENO" "libaio.h" "ac_cv_header_libaio_h" "$ac_includes_default"
28048 if test "x$ac_cv_header_libaio_h" = xyes
; then :
28054 $as_echo "#define HAVE_LIBAIO 1" >>confdefs.h
28066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
28067 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
28069 saved_flags
="$CFLAGS"
28070 CFLAGS
="$CFLAGS -Wframe-larger-than=1024"
28072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28073 /* end confdefs.h. */
28083 if ac_fn_c_try_compile
"$LINENO"; then :
28085 FRAME_LARGER_THAN
=-Wframe-larger-than=1024
28086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28087 $as_echo "yes" >&6; }
28092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28093 $as_echo "no" >&6; }
28096 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28098 CFLAGS
="$saved_flags"
28102 if test "x$runstatedir" = x
; then
28103 runstatedir
='${localstatedir}/run'
28108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/sysmacros.h" >&5
28109 $as_echo_n "checking makedev() is declared in sys/sysmacros.h... " >&6; }
28110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28111 /* end confdefs.h. */
28113 #include <sys/sysmacros.h>
28126 if ac_fn_c_try_compile
"$LINENO"; then :
28128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28129 $as_echo "yes" >&6; }
28131 $as_echo "#define HAVE_MAKEDEV_IN_SYSMACROS 1" >>confdefs.h
28136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28137 $as_echo "no" >&6; }
28140 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking makedev() is declared in sys/mkdev.h" >&5
28144 $as_echo_n "checking makedev() is declared in sys/mkdev.h... " >&6; }
28145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28146 /* end confdefs.h. */
28148 #include <sys/mkdev.h>
28161 if ac_fn_c_try_compile
"$LINENO"; then :
28163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28164 $as_echo "yes" >&6; }
28166 $as_echo "#define HAVE_MAKEDEV_IN_MKDEV 1" >>confdefs.h
28171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28172 $as_echo "no" >&6; }
28175 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-format-truncation support" >&5
28179 $as_echo_n "checking for -Wno-format-truncation support... " >&6; }
28181 saved_flags
="$CFLAGS"
28182 CFLAGS
="$CFLAGS -Wno-format-truncation"
28184 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28185 /* end confdefs.h. */
28195 if ac_fn_c_try_compile
"$LINENO"; then :
28197 NO_FORMAT_TRUNCATION
=-Wno-format-truncation
28198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28199 $as_echo "yes" >&6; }
28203 NO_FORMAT_TRUNCATION
=
28204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28205 $as_echo "no" >&6; }
28208 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
28210 CFLAGS
="$saved_flags"
28215 ZONENAME
="echo global"
28221 for ac_func
in mlockall
28223 ac_fn_c_check_func
"$LINENO" "mlockall" "ac_cv_func_mlockall"
28224 if test "x$ac_cv_func_mlockall" = xyes
; then :
28225 cat >>confdefs.h
<<_ACEOF
28226 #define HAVE_MLOCKALL 1
28236 # Check whether --with-linux was given.
28237 if test "${with_linux+set}" = set; then :
28238 withval
=$with_linux; kernelsrc
="$withval"
28243 # Check whether --with-linux-obj was given.
28244 if test "${with_linux_obj+set}" = set; then :
28245 withval
=$with_linux_obj; kernelbuild
="$withval"
28249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
28250 $as_echo_n "checking kernel source directory... " >&6; }
28251 if test -z "$kernelsrc"; then :
28253 if test -e "/lib/modules/$(uname -r)/source"; then :
28255 headersdir
="/lib/modules/$(uname -r)/source"
28256 sourcelink
=$
(readlink
-f "$headersdir")
28258 elif test -e "/lib/modules/$(uname -r)/build"; then :
28260 headersdir
="/lib/modules/$(uname -r)/build"
28261 sourcelink
=$
(readlink
-f "$headersdir")
28265 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
28267 2>/dev
/null |
grep -v obj |
tail -1)
28271 if test -n "$sourcelink" && test -e ${sourcelink}; then :
28273 kernelsrc
=`readlink -f ${sourcelink}`
28277 kernelsrc
="Not found"
28283 if test "$kernelsrc" = "NONE"; then :
28292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
28293 $as_echo "$kernelsrc" >&6; }
28294 if test ! -d "$kernelsrc"; then :
28297 *** Please make sure the kernel devel package for your distribution
28298 *** is installed and then try again. If that fails, you can specify the
28299 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
28303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
28304 $as_echo_n "checking kernel build directory... " >&6; }
28305 if test -z "$kernelbuild"; then :
28307 if test x
$withlinux != xyes
-a -e "/lib/modules/$(uname -r)/build"; then :
28309 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
28311 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
28313 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
28315 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then :
28317 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
28319 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then :
28321 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
28325 kernelbuild
=${kernelsrc}
28330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
28331 $as_echo "$kernelbuild" >&6; }
28333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
28334 $as_echo_n "checking kernel source version... " >&6; }
28335 utsrelease1
=$kernelbuild/include
/linux
/version.h
28336 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
28337 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
28338 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then :
28340 utsrelease
=linux
/version.h
28342 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then :
28344 utsrelease
=linux
/utsrelease.h
28346 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then :
28348 utsrelease
=generated
/utsrelease.h
28352 if test "$utsrelease"; then :
28354 kernsrcver
=`(echo "#include <$utsrelease>";
28355 echo "kernsrcver=UTS_RELEASE") |
28356 cpp -I $kernelbuild/include |
28357 grep "^kernsrcver=" | cut -d \" -f 2`
28359 if test -z "$kernsrcver"; then :
28361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
28362 $as_echo "Not found" >&6; }
28363 as_fn_error $?
"*** Cannot determine kernel version." "$LINENO" 5
28369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
28370 $as_echo "Not found" >&6; }
28371 if test "x$enable_linux_builtin" != xyes
; then
28372 as_fn_error $?
"*** Cannot find UTS_RELEASE definition." "$LINENO" 5
28375 *** Cannot find UTS_RELEASE definition.
28376 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
28381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
28382 $as_echo "$kernsrcver" >&6; }
28385 LINUX_OBJ
=${kernelbuild}
28386 LINUX_VERSION
=${kernsrcver}
28393 modpost
=$LINUX/scripts
/Makefile.modpost
28394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
28395 $as_echo_n "checking kernel file name for module symbols... " >&6; }
28396 if test "x$enable_linux_builtin" != xyes
-a -f "$modpost"; then :
28398 if grep -q Modules.symvers
$modpost; then :
28400 LINUX_SYMBOLS
=Modules.symvers
28404 LINUX_SYMBOLS
=Module.symvers
28408 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
28411 *** Please make sure the kernel devel package for your distribution
28412 *** is installed. If you are building with a custom kernel, make sure the
28413 *** kernel is configured, built, and the '--with-linux=PATH' configure
28414 *** option refers to the location of the kernel source." "$LINENO" 5
28423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
28424 $as_echo "$LINUX_SYMBOLS" >&6; }
28430 # Check whether --with-spl was given.
28431 if test "${with_spl+set}" = set; then :
28432 withval
=$with_spl; if test "$withval" = "yes"; then :
28433 as_fn_error $?
"--with-spl=PATH requires a PATH" "$LINENO" 5
28441 # Check whether --with-spl-obj was given.
28442 if test "${with_spl_obj+set}" = set; then :
28443 withval
=$with_spl_obj; splbuild
="$withval"
28448 # Check whether --with-spl-timeout was given.
28449 if test "${with_spl_timeout+set}" = set; then :
28450 withval
=$with_spl_timeout; timeout
="$withval"
28456 splsrc0
="/var/lib/dkms/spl/${VERSION}/build"
28457 splsrc1
="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
28458 splsrc2
="/usr/local/src/spl-${VERSION}"
28459 splsrc3
="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
28460 splsrc4
="/usr/src/spl-${VERSION}"
28464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
28465 $as_echo_n "checking spl source directory... " >&6; }
28466 if test -z "${splsrc}"; then :
28476 if test -e "${splsrc0}/spl.release.in"; then :
28480 elif test -e "${splsrc1}/spl.release.in"; then :
28484 elif test -e "${splsrc2}/spl.release.in"; then :
28488 elif test -e "${splsrc3}/spl.release.in"; then :
28490 splsrc
=$
(readlink
-f "${splsrc3}")
28492 elif test -e "${splsrc4}/spl.release.in" ; then :
28496 elif test -e "${splsrc5}/spl.release.in"; then :
28498 splsrc
=$
(readlink
-f "${splsrc5}")
28500 elif test -e "${splsrc6}/spl.release.in" ; then :
28512 all_spl_sources
="$withval",
28513 if test "$splsrc" = "NONE"; then :
28522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
28523 $as_echo "$splsrc" >&6; }
28524 if test ! -e "$splsrc/spl.release.in"; then :
28527 *** Please make sure the kmod spl devel package for your distribution
28528 *** is installed then try again. If that fails you can specify the
28529 *** location of the spl source with the '--with-spl=PATH' option.
28530 *** The spl version must match the version of ZFS you are building,
28531 *** ${VERSION}. Failed to find spl.release.in in the following:
28532 $all_spl_sources" "$LINENO" 5
28536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
28537 $as_echo_n "checking spl build directory... " >&6; }
28539 all_spl_config_locs
="${splsrc}/${LINUX_VERSION}
28543 if test -z "$splbuild"; then :
28545 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
28547 splbuild
="${splsrc}/${LINUX_VERSION}"
28549 elif test -e "${splsrc}/spl_config.h" ; then :
28551 splbuild
="${splsrc}"
28553 elif find -L "${splsrc}" -name spl_config.h
2> /dev
/null |
grep -wq spl_config.h
; then :
28555 splbuild
=$
(find -L "${splsrc}" -name spl_config.h |
sed 's,/spl_config.h,,')
28559 splbuild
="Not found"
28564 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
28571 timeout
=$
((timeout-1
))
28576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
28577 $as_echo "$splbuild" >&6; }
28578 if ! test -e "$splbuild/spl_config.h"; then :
28581 *** Please make sure the kmod spl devel <kernel> package for your
28582 *** distribution is installed then try again. If that fails you
28583 *** can specify the location of the spl objects with the
28584 *** '--with-spl-obj=PATH' option. Failed to find spl_config.h in
28585 *** any of the following:
28586 $all_spl_config_locs" "$LINENO" 5
28590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
28591 $as_echo_n "checking spl source version... " >&6; }
28592 if test -r $splbuild/spl_config.h
&&
28593 fgrep
-q SPL_META_VERSION
$splbuild/spl_config.h
; then :
28596 splsrcver
=`(echo "#include <spl_config.h>";
28597 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
28599 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
28603 if test -z "$splsrcver"; then :
28605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
28606 $as_echo "Not found" >&6; }
28608 *** Cannot determine the version of the spl source.
28609 *** Please prepare the spl source before running this script" "$LINENO" 5
28613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
28614 $as_echo "$splsrcver" >&6; }
28617 SPL_OBJ
=${splbuild}
28618 SPL_VERSION
=${splsrcver}
28624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
28625 $as_echo_n "checking spl file name for module symbols... " >&6; }
28629 if test -r $SPL_OBJ/Module.symvers
; then :
28631 SPL_SYMBOLS
=Module.symvers
28633 elif test -r $SPL_OBJ/Modules.symvers
; then :
28635 SPL_SYMBOLS
=Modules.symvers
28637 elif test -r $SPL_OBJ/module
/Module.symvers
; then :
28639 SPL_SYMBOLS
=Module.symvers
28641 elif test -r $SPL_OBJ/module
/Modules.symvers
; then :
28643 SPL_SYMBOLS
=Modules.symvers
28647 if test $SPL_SYMBOLS != NONE
-o $timeout -le 0; then :
28654 timeout
=$
((timeout-1
))
28659 if test "$SPL_SYMBOLS" = NONE
; then :
28661 SPL_SYMBOLS
=$LINUX_SYMBOLS
28665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
28666 $as_echo "$SPL_SYMBOLS" >&6; }
28671 # Check whether --with-qat was given.
28672 if test "${with_qat+set}" = set; then :
28673 withval
=$with_qat; if test "$withval" = "yes"; then :
28674 as_fn_error $?
"--with-qat=PATH requires a PATH" "$LINENO" 5
28682 # Check whether --with-qat-obj was given.
28683 if test "${with_qat_obj+set}" = set; then :
28684 withval
=$with_qat_obj; qatbuild
="$withval"
28688 if test ! -z "${qatsrc}"; then :
28690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat source directory" >&5
28691 $as_echo_n "checking qat source directory... " >&6; }
28692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qatsrc" >&5
28693 $as_echo "$qatsrc" >&6; }
28694 QAT_SRC
="${qatsrc}/quickassist"
28695 if test ! -e "$QAT_SRC/include/cpa.h"; then :
28698 *** Please make sure the qat driver package is installed
28699 *** and specify the location of the qat source with the
28700 *** '--with-qat=PATH' option then try again. Failed to
28702 ${QAT_SRC}/include" "$LINENO" 5
28708 if test ! -z "${qatsrc}"; then :
28710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat build directory" >&5
28711 $as_echo_n "checking qat build directory... " >&6; }
28712 if test -z "$qatbuild"; then :
28714 qatbuild
="${qatsrc}/build"
28718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $qatbuild" >&5
28719 $as_echo "$qatbuild" >&6; }
28720 QAT_OBJ
=${qatbuild}
28721 if ! test -e "$QAT_OBJ/icp_qa_al.ko" && ! test -e "$QAT_OBJ/qat_api.ko"; then :
28724 *** Please make sure the qat driver is installed then try again.
28725 *** Failed to find icp_qa_al.ko or qat_api.ko in:
28726 $QAT_OBJ" "$LINENO" 5
28734 $as_echo "#define HAVE_QAT 1" >>confdefs.h
28739 if test ! -z "${qatsrc}"; then :
28741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking qat file for module symbols" >&5
28742 $as_echo_n "checking qat file for module symbols... " >&6; }
28743 QAT_SYMBOLS
=$QAT_SRC/lookaside
/access_layer
/src
/Module.symvers
28745 if test -r $QAT_SYMBOLS; then :
28747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QAT_SYMBOLS" >&5
28748 $as_echo "$QAT_SYMBOLS" >&6; }
28754 *** Please make sure the qat driver is installed then try again.
28755 *** Failed to find Module.symvers in:
28756 $QAT_SYMBOLS" "$LINENO" 5
28763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
28764 $as_echo_n "checking whether modules can be built... " >&6; }
28767 cat confdefs.h
- <<_ACEOF >conftest.c
28782 cat - <<_ACEOF >conftest.h
28787 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28788 echo "obj-m := conftest.o" >build
/Makefile
28790 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28791 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28793 (eval $ac_try) 2>&5
28795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28796 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28797 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28798 (eval $ac_try) 2>&5
28800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28801 test $ac_status = 0; }; }; then :
28803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28804 $as_echo "yes" >&6; }
28807 $as_echo "$as_me: failed program was:" >&5
28808 sed 's/^/| /' conftest.
$ac_ext >&5
28810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28811 $as_echo "no" >&6; }
28812 if test "x$enable_linux_builtin" != xyes
; then
28813 as_fn_error $?
"*** Unable to build an empty module." "$LINENO" 5
28816 *** Unable to build an empty module.
28817 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
28828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compile-time stack validation (objtool)" >&5
28829 $as_echo_n "checking for compile-time stack validation (objtool)... " >&6; }
28832 cat confdefs.h
- <<_ACEOF >conftest.c
28835 #undef __ASSEMBLY__
28836 #include <asm/frame.h>
28842 #if !defined(FRAME_BEGIN)
28854 cat - <<_ACEOF >conftest.h
28859 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28860 echo "obj-m := conftest.o" >build
/Makefile
28862 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28863 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28865 (eval $ac_try) 2>&5
28867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28868 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28870 (eval $ac_try) 2>&5
28872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28873 test $ac_status = 0; }; }; then :
28875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28876 $as_echo "yes" >&6; }
28878 $as_echo "#define HAVE_KERNEL_OBJTOOL 1" >>confdefs.h
28882 $as_echo "$as_me: failed program was:" >&5
28883 sed 's/^/| /' conftest.
$ac_ext >&5
28885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28886 $as_echo "no" >&6; }
28896 if test "x$cross_compiling" != xyes
; then :
28898 if test "$cross_compiling" = yes; then :
28899 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28900 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28901 as_fn_error $?
"cannot run test program while cross compiling
28902 See \`config.log' for more details" "$LINENO" 5; }
28904 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
28905 /* end confdefs.h. */
28908 #include "$LINUX/include/linux/license.h"
28914 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
28921 if ac_fn_c_try_run
"$LINENO"; then :
28924 $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
28928 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
28929 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
28936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with 16K or larger stacks" >&5
28937 $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
28940 cat confdefs.h
- <<_ACEOF >conftest.c
28943 #include <linux/module.h>
28949 #if (THREAD_SIZE < 16384)
28950 #error "THREAD_SIZE is less than 16K"
28961 cat - <<_ACEOF >conftest.h
28966 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28967 echo "obj-m := conftest.o" >build
/Makefile
28969 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28970 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28972 (eval $ac_try) 2>&5
28974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28975 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28977 (eval $ac_try) 2>&5
28979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28980 test $ac_status = 0; }; }; then :
28982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28983 $as_echo "yes" >&6; }
28985 $as_echo "#define HAVE_LARGE_STACKS 1" >>confdefs.h
28989 $as_echo "$as_me: failed program was:" >&5
28990 sed 's/^/| /' conftest.
$ac_ext >&5
28992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28993 $as_echo "no" >&6; }
29004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
29005 $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
29008 cat confdefs.h
- <<_ACEOF >conftest.c
29011 #include <linux/module.h>
29017 #ifndef CONFIG_DEBUG_LOCK_ALLOC
29018 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
29029 cat - <<_ACEOF >conftest.h
29034 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29035 echo "obj-m := conftest.o" >build
/Makefile
29037 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29038 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29040 (eval $ac_try) 2>&5
29042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29043 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29045 (eval $ac_try) 2>&5
29047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29048 test $ac_status = 0; }; }; then :
29050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29051 $as_echo "yes" >&6; }
29053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
29054 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
29055 tmp_flags
="$EXTRA_KCFLAGS"
29058 cat confdefs.h
- <<_ACEOF >conftest.c
29061 #include <linux/module.h>
29062 #include <linux/mutex.h>
29064 MODULE_LICENSE("$ZFS_META_LICENSE");
29074 mutex_unlock(&lock);
29084 cat - <<_ACEOF >conftest.h
29089 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29090 echo "obj-m := conftest.o" >build
/Makefile
29092 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29093 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29095 (eval $ac_try) 2>&5
29097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29098 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29100 (eval $ac_try) 2>&5
29102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29103 test $ac_status = 0; }; }; then :
29105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29106 $as_echo "no" >&6; }
29109 $as_echo "$as_me: failed program was:" >&5
29110 sed 's/^/| /' conftest.
$ac_ext >&5
29112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29113 $as_echo "yes" >&6; }
29115 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
29116 *** with the CDDL license and will prevent the module linking stage
29117 *** from succeeding. You must rebuild your kernel without this
29118 *** option enabled." "$LINENO" 5
29126 EXTRA_KCFLAGS
="$tmp_flags"
29130 $as_echo "$as_me: failed program was:" >&5
29131 sed 's/^/| /' conftest.
$ac_ext >&5
29133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29134 $as_echo "no" >&6; }
29147 tmp_flags
="$EXTRA_KCFLAGS"
29148 EXTRA_KCFLAGS
="-I\$(src)"
29150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
29151 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
29154 cat confdefs.h
- <<_ACEOF >conftest.c
29157 #include <linux/module.h>
29158 MODULE_LICENSE(ZFS_META_LICENSE);
29160 #define CREATE_TRACE_POINTS
29161 #include "conftest.h"
29167 trace_zfs_autoconf_event_one(1UL);
29168 trace_zfs_autoconf_event_two(2UL);
29178 cat - <<_ACEOF >conftest.h
29180 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
29181 #define _CONFTEST_H
29183 #undef TRACE_SYSTEM
29184 #define TRACE_SYSTEM zfs
29185 #include <linux/tracepoint.h>
29187 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
29188 TP_PROTO(unsigned long i),
29191 __field(unsigned long, i)
29196 TP_printk("i = %lu", __entry->i)
29199 #define DEFINE_AUTOCONF_EVENT(name) \
29200 DEFINE_EVENT(zfs_autoconf_event_class, name, \
29201 TP_PROTO(unsigned long i), \
29203 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
29204 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
29206 #endif /* _CONFTEST_H */
29208 #undef TRACE_INCLUDE_PATH
29209 #define TRACE_INCLUDE_PATH .
29210 #define TRACE_INCLUDE_FILE conftest
29211 #include <trace/define_trace.h>
29216 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29217 echo "obj-m := conftest.o" >build
/Makefile
29219 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29220 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29222 (eval $ac_try) 2>&5
29224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29225 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29226 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29227 (eval $ac_try) 2>&5
29229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29230 test $ac_status = 0; }; }; then :
29232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29233 $as_echo "yes" >&6; }
29235 $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
29239 $as_echo "$as_me: failed program was:" >&5
29240 sed 's/^/| /' conftest.
$ac_ext >&5
29242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29243 $as_echo "no" >&6; }
29251 EXTRA_KCFLAGS
="$tmp_flags"
29254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5
29255 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
29258 cat confdefs.h
- <<_ACEOF >conftest.c
29261 #include <linux/sched.h>
29267 current->bio_tail = (struct bio **) NULL;
29277 cat - <<_ACEOF >conftest.h
29282 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29283 echo "obj-m := conftest.o" >build
/Makefile
29285 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29286 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29287 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29288 (eval $ac_try) 2>&5
29290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29291 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29293 (eval $ac_try) 2>&5
29295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29296 test $ac_status = 0; }; }; then :
29298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29299 $as_echo "yes" >&6; }
29301 $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h
29305 $as_echo "$as_me: failed program was:" >&5
29306 sed 's/^/| /' conftest.
$ac_ext >&5
29308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29309 $as_echo "no" >&6; }
29310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5
29311 $as_echo_n "checking whether current->bio_list exists... " >&6; }
29314 cat confdefs.h
- <<_ACEOF >conftest.c
29317 #include <linux/sched.h>
29323 current->bio_list = (struct bio_list *) NULL;
29333 cat - <<_ACEOF >conftest.h
29338 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29339 echo "obj-m := conftest.o" >build
/Makefile
29341 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29342 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29344 (eval $ac_try) 2>&5
29346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29347 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29348 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29349 (eval $ac_try) 2>&5
29351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29352 test $ac_status = 0; }; }; then :
29354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29355 $as_echo "yes" >&6; }
29357 $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h
29361 $as_echo "$as_me: failed program was:" >&5
29362 sed 's/^/| /' conftest.
$ac_ext >&5
29364 as_fn_error $?
"no - Please file a bug report at
29365 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
29382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block->s_user_ns exists" >&5
29383 $as_echo_n "checking whether super_block->s_user_ns exists... " >&6; }
29386 cat confdefs.h
- <<_ACEOF >conftest.c
29389 #include <linux/fs.h>
29390 #include <linux/user_namespace.h>
29396 struct super_block super;
29397 super.s_user_ns = (struct user_namespace *)NULL;
29407 cat - <<_ACEOF >conftest.h
29412 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29413 echo "obj-m := conftest.o" >build
/Makefile
29415 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29416 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29418 (eval $ac_try) 2>&5
29420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29421 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29423 (eval $ac_try) 2>&5
29425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29426 test $ac_status = 0; }; }; then :
29428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29429 $as_echo "yes" >&6; }
29431 $as_echo "#define HAVE_SUPER_USER_NS 1" >>confdefs.h
29435 $as_echo "$as_me: failed program was:" >&5
29436 sed 's/^/| /' conftest.
$ac_ext >&5
29438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29439 $as_echo "no" >&6; }
29449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether submit_bio() wants 1 arg" >&5
29450 $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
29453 cat confdefs.h
- <<_ACEOF >conftest.c
29456 #include <linux/bio.h>
29463 struct bio *bio = NULL;
29464 blk_qc = submit_bio(bio);
29474 cat - <<_ACEOF >conftest.h
29479 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29480 echo "obj-m := conftest.o" >build
/Makefile
29482 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29483 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29485 (eval $ac_try) 2>&5
29487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29488 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29490 (eval $ac_try) 2>&5
29492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29493 test $ac_status = 0; }; }; then :
29495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29496 $as_echo "yes" >&6; }
29498 $as_echo "#define HAVE_1ARG_SUBMIT_BIO 1" >>confdefs.h
29502 $as_echo "$as_me: failed program was:" >&5
29503 sed 's/^/| /' conftest.
$ac_ext >&5
29505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29506 $as_echo "no" >&6; }
29516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
29517 $as_echo_n "checking block device operation prototypes... " >&6; }
29518 tmp_flags
="$EXTRA_KCFLAGS"
29519 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
29522 cat confdefs.h
- <<_ACEOF >conftest.c
29525 #include <linux/blkdev.h>
29527 int blk_open(struct block_device *bdev, fmode_t mode)
29529 int blk_ioctl(struct block_device *bdev, fmode_t mode,
29530 unsigned x, unsigned long y) { return 0; }
29531 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
29532 unsigned x, unsigned long y) { return 0; }
29534 static const struct block_device_operations
29535 bops __attribute__ ((unused)) = {
29538 .ioctl = blk_ioctl,
29539 .compat_ioctl = blk_compat_ioctl,
29555 cat - <<_ACEOF >conftest.h
29560 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29561 echo "obj-m := conftest.o" >build
/Makefile
29563 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29564 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29565 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29566 (eval $ac_try) 2>&5
29568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29569 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29571 (eval $ac_try) 2>&5
29573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29574 test $ac_status = 0; }; }; then :
29576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
29577 $as_echo "struct block_device" >&6; }
29579 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
29583 $as_echo "$as_me: failed program was:" >&5
29584 sed 's/^/| /' conftest.
$ac_ext >&5
29586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
29587 $as_echo "struct inode" >&6; }
29595 EXTRA_KCFLAGS
="$tmp_flags"
29598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
29599 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
29600 tmp_flags
="$EXTRA_KCFLAGS"
29601 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
29604 cat confdefs.h
- <<_ACEOF >conftest.c
29607 #include <linux/blkdev.h>
29609 void blk_release(struct gendisk *g, fmode_t mode) { return; }
29611 static const struct block_device_operations
29612 bops __attribute__ ((unused)) = {
29614 .release = blk_release,
29616 .compat_ioctl = NULL,
29632 cat - <<_ACEOF >conftest.h
29637 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29638 echo "obj-m := conftest.o" >build
/Makefile
29640 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29641 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29643 (eval $ac_try) 2>&5
29645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29646 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29648 (eval $ac_try) 2>&5
29650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29651 test $ac_status = 0; }; }; then :
29653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
29654 $as_echo "void" >&6; }
29656 $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
29660 $as_echo "$as_me: failed program was:" >&5
29661 sed 's/^/| /' conftest.
$ac_ext >&5
29663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
29664 $as_echo "int" >&6; }
29672 EXTRA_KCFLAGS
="$tmp_flags"
29674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
29675 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
29678 cat confdefs.h
- <<_ACEOF >conftest.c
29681 #include <linux/types.h>
29687 fmode_t *ptr __attribute__ ((unused));
29697 cat - <<_ACEOF >conftest.h
29702 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29703 echo "obj-m := conftest.o" >build
/Makefile
29705 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29706 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29707 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29708 (eval $ac_try) 2>&5
29710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29711 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29713 (eval $ac_try) 2>&5
29715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29716 test $ac_status = 0; }; }; then :
29718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29719 $as_echo "yes" >&6; }
29721 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
29725 $as_echo "$as_me: failed program was:" >&5
29726 sed 's/^/| /' conftest.
$ac_ext >&5
29728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29729 $as_echo "no" >&6; }
29739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
29740 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
29743 cat confdefs.h
- <<_ACEOF >conftest.c
29746 #include <linux/fs.h>
29752 struct block_device *bdev = NULL;
29753 (void) blkdev_get(bdev, 0, NULL);
29763 cat - <<_ACEOF >conftest.h
29768 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29769 echo "obj-m := conftest.o" >build
/Makefile
29771 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29772 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29773 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29774 (eval $ac_try) 2>&5
29776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29777 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29779 (eval $ac_try) 2>&5
29781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29782 test $ac_status = 0; }; }; then :
29784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29785 $as_echo "yes" >&6; }
29787 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
29791 $as_echo "$as_me: failed program was:" >&5
29792 sed 's/^/| /' conftest.
$ac_ext >&5
29794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29795 $as_echo "no" >&6; }
29804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
29805 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
29809 cat confdefs.h
- <<_ACEOF >conftest.c
29812 #include <linux/fs.h>
29818 blkdev_get_by_path(NULL, 0, NULL);
29828 cat - <<_ACEOF >conftest.h
29833 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29834 echo "obj-m := conftest.o" >build
/Makefile
29836 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29837 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29839 (eval $ac_try) 2>&5
29841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29842 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29844 (eval $ac_try) 2>&5
29846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29847 test $ac_status = 0; }; }; then :
29850 $as_echo "$as_me: failed program was:" >&5
29851 sed 's/^/| /' conftest.
$ac_ext >&5
29859 if test $rc -ne 0; then :
29861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29862 $as_echo "no" >&6; }
29865 if test "x$enable_linux_builtin" != xyes
; then
29867 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
29868 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
29870 if test $rc -ne 0; then
29872 for file in fs
/block_dev.c
; do
29873 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
29874 "$LINUX/$file" 2>/dev
/null
29876 if test $rc -eq 0; then
29881 if test $export -eq 0; then :
29891 if test $rc -ne 0; then :
29893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29894 $as_echo "no" >&6; }
29898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29899 $as_echo "yes" >&6; }
29901 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
29908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
29909 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
29913 cat confdefs.h
- <<_ACEOF >conftest.c
29916 #include <linux/fs.h>
29922 open_bdev_exclusive(NULL, 0, NULL);
29932 cat - <<_ACEOF >conftest.h
29937 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29938 echo "obj-m := conftest.o" >build
/Makefile
29940 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29941 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29942 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29943 (eval $ac_try) 2>&5
29945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29946 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29948 (eval $ac_try) 2>&5
29950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29951 test $ac_status = 0; }; }; then :
29954 $as_echo "$as_me: failed program was:" >&5
29955 sed 's/^/| /' conftest.
$ac_ext >&5
29963 if test $rc -ne 0; then :
29965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29966 $as_echo "no" >&6; }
29969 if test "x$enable_linux_builtin" != xyes
; then
29971 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
29972 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
29974 if test $rc -ne 0; then
29976 for file in fs
/block_dev.c
; do
29977 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
29978 "$LINUX/$file" 2>/dev
/null
29980 if test $rc -eq 0; then
29985 if test $export -eq 0; then :
29995 if test $rc -ne 0; then :
29997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29998 $as_echo "no" >&6; }
30002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30003 $as_echo "yes" >&6; }
30005 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
30012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 1 arg" >&5
30013 $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
30017 cat confdefs.h
- <<_ACEOF >conftest.c
30020 #include <linux/fs.h>
30036 cat - <<_ACEOF >conftest.h
30041 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30042 echo "obj-m := conftest.o" >build
/Makefile
30044 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30045 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30046 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30047 (eval $ac_try) 2>&5
30049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30050 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30052 (eval $ac_try) 2>&5
30054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30055 test $ac_status = 0; }; }; then :
30058 $as_echo "$as_me: failed program was:" >&5
30059 sed 's/^/| /' conftest.
$ac_ext >&5
30067 if test $rc -ne 0; then :
30069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30070 $as_echo "no" >&6; }
30071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
30072 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
30076 cat confdefs.h
- <<_ACEOF >conftest.c
30079 #include <linux/fs.h>
30085 lookup_bdev(NULL, FMODE_READ);
30095 cat - <<_ACEOF >conftest.h
30100 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30101 echo "obj-m := conftest.o" >build
/Makefile
30103 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30104 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30106 (eval $ac_try) 2>&5
30108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30109 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30111 (eval $ac_try) 2>&5
30113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30114 test $ac_status = 0; }; }; then :
30117 $as_echo "$as_me: failed program was:" >&5
30118 sed 's/^/| /' conftest.
$ac_ext >&5
30126 if test $rc -ne 0; then :
30128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30129 $as_echo "no" >&6; }
30132 if test "x$enable_linux_builtin" != xyes
; then
30134 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
30135 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
30137 if test $rc -ne 0; then
30139 for file in fs
/block_dev.c
; do
30140 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
30141 "$LINUX/$file" 2>/dev
/null
30143 if test $rc -eq 0; then
30148 if test $export -eq 0; then :
30158 if test $rc -ne 0; then :
30160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30161 $as_echo "no" >&6; }
30165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30166 $as_echo "yes" >&6; }
30168 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
30176 if test "x$enable_linux_builtin" != xyes
; then
30178 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
30179 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
30181 if test $rc -ne 0; then
30183 for file in fs
/block_dev.c
; do
30184 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
30185 "$LINUX/$file" 2>/dev
/null
30187 if test $rc -eq 0; then
30192 if test $export -eq 0; then :
30202 if test $rc -ne 0; then :
30204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30205 $as_echo "no" >&6; }
30206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
30207 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
30211 cat confdefs.h
- <<_ACEOF >conftest.c
30214 #include <linux/fs.h>
30220 lookup_bdev(NULL, FMODE_READ);
30230 cat - <<_ACEOF >conftest.h
30235 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30236 echo "obj-m := conftest.o" >build
/Makefile
30238 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30239 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30241 (eval $ac_try) 2>&5
30243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30244 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30246 (eval $ac_try) 2>&5
30248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30249 test $ac_status = 0; }; }; then :
30252 $as_echo "$as_me: failed program was:" >&5
30253 sed 's/^/| /' conftest.
$ac_ext >&5
30261 if test $rc -ne 0; then :
30263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30264 $as_echo "no" >&6; }
30267 if test "x$enable_linux_builtin" != xyes
; then
30269 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
30270 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
30272 if test $rc -ne 0; then
30274 for file in fs
/block_dev.c
; do
30275 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
30276 "$LINUX/$file" 2>/dev
/null
30278 if test $rc -eq 0; then
30283 if test $export -eq 0; then :
30293 if test $rc -ne 0; then :
30295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30296 $as_echo "no" >&6; }
30300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30301 $as_echo "yes" >&6; }
30303 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
30312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30313 $as_echo "yes" >&6; }
30315 $as_echo "#define HAVE_1ARG_LOOKUP_BDEV 1" >>confdefs.h
30323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
30324 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
30327 cat confdefs.h
- <<_ACEOF >conftest.c
30330 #include <linux/buffer_head.h>
30336 struct block_device *bdev = NULL;
30337 invalidate_bdev(bdev);
30347 cat - <<_ACEOF >conftest.h
30352 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30353 echo "obj-m := conftest.o" >build
/Makefile
30355 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30356 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30358 (eval $ac_try) 2>&5
30360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30361 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30363 (eval $ac_try) 2>&5
30365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30366 test $ac_status = 0; }; }; then :
30368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30369 $as_echo "yes" >&6; }
30371 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
30375 $as_echo "$as_me: failed program was:" >&5
30376 sed 's/^/| /' conftest.
$ac_ext >&5
30378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30379 $as_echo "no" >&6; }
30389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
30390 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
30391 tmp_flags
="$EXTRA_KCFLAGS"
30392 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
30395 cat confdefs.h
- <<_ACEOF >conftest.c
30398 #include <linux/blkdev.h>
30404 struct block_device *bdev = NULL;
30405 bdev_logical_block_size(bdev);
30415 cat - <<_ACEOF >conftest.h
30420 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30421 echo "obj-m := conftest.o" >build
/Makefile
30423 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30424 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30426 (eval $ac_try) 2>&5
30428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30429 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30431 (eval $ac_try) 2>&5
30433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30434 test $ac_status = 0; }; }; then :
30436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30437 $as_echo "yes" >&6; }
30439 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
30443 $as_echo "$as_me: failed program was:" >&5
30444 sed 's/^/| /' conftest.
$ac_ext >&5
30446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30447 $as_echo "no" >&6; }
30455 EXTRA_KCFLAGS
="$tmp_flags"
30458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
30459 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
30460 tmp_flags
="$EXTRA_KCFLAGS"
30461 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
30464 cat confdefs.h
- <<_ACEOF >conftest.c
30467 #include <linux/blkdev.h>
30473 struct block_device *bdev = NULL;
30474 bdev_physical_block_size(bdev);
30484 cat - <<_ACEOF >conftest.h
30489 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30490 echo "obj-m := conftest.o" >build
/Makefile
30492 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30493 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30495 (eval $ac_try) 2>&5
30497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30498 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30499 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30500 (eval $ac_try) 2>&5
30502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30503 test $ac_status = 0; }; }; then :
30505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30506 $as_echo "yes" >&6; }
30508 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
30512 $as_echo "$as_me: failed program was:" >&5
30513 sed 's/^/| /' conftest.
$ac_ext >&5
30515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30516 $as_echo "no" >&6; }
30524 EXTRA_KCFLAGS
="$tmp_flags"
30527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
30528 $as_echo_n "checking whether bio has bi_iter... " >&6; }
30531 cat confdefs.h
- <<_ACEOF >conftest.c
30534 #include <linux/bio.h>
30541 bio.bi_iter.bi_sector = 0;
30551 cat - <<_ACEOF >conftest.h
30556 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30557 echo "obj-m := conftest.o" >build
/Makefile
30559 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30560 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30562 (eval $ac_try) 2>&5
30564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30565 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30567 (eval $ac_try) 2>&5
30569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30570 test $ac_status = 0; }; }; then :
30572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30573 $as_echo "yes" >&6; }
30575 $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
30579 $as_echo "$as_me: failed program was:" >&5
30580 sed 's/^/| /' conftest.
$ac_ext >&5
30582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30583 $as_echo "no" >&6; }
30593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
30594 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
30597 cat confdefs.h
- <<_ACEOF >conftest.c
30600 #include <linux/bio.h>
30606 int flags __attribute__ ((unused));
30607 flags = ((1 << BIO_RW_FAILFAST_DEV) |
30608 (1 << BIO_RW_FAILFAST_TRANSPORT) |
30609 (1 << BIO_RW_FAILFAST_DRIVER));
30619 cat - <<_ACEOF >conftest.h
30624 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30625 echo "obj-m := conftest.o" >build
/Makefile
30627 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30628 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30630 (eval $ac_try) 2>&5
30632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30633 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30635 (eval $ac_try) 2>&5
30637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30638 test $ac_status = 0; }; }; then :
30640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30641 $as_echo "yes" >&6; }
30643 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
30647 $as_echo "$as_me: failed program was:" >&5
30648 sed 's/^/| /' conftest.
$ac_ext >&5
30650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30651 $as_echo "no" >&6; }
30661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_dev() exists" >&5
30662 $as_echo_n "checking whether bio_set_dev() exists... " >&6; }
30665 cat confdefs.h
- <<_ACEOF >conftest.c
30668 #include <linux/bio.h>
30669 #include <linux/fs.h>
30675 struct block_device *bdev = NULL;
30676 struct bio *bio = NULL;
30677 bio_set_dev(bio, bdev);
30687 cat - <<_ACEOF >conftest.h
30692 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30693 echo "obj-m := conftest.o" >build
/Makefile
30695 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30696 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30698 (eval $ac_try) 2>&5
30700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30701 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30703 (eval $ac_try) 2>&5
30705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30706 test $ac_status = 0; }; }; then :
30708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30709 $as_echo "yes" >&6; }
30711 $as_echo "#define HAVE_BIO_SET_DEV 1" >>confdefs.h
30715 $as_echo "$as_me: failed program was:" >&5
30716 sed 's/^/| /' conftest.
$ac_ext >&5
30718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30719 $as_echo "no" >&6; }
30729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
30730 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
30733 cat confdefs.h
- <<_ACEOF >conftest.c
30736 #include <linux/bio.h>
30742 int flags __attribute__ ((unused));
30743 flags = REQ_FAILFAST_MASK;
30753 cat - <<_ACEOF >conftest.h
30758 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30759 echo "obj-m := conftest.o" >build
/Makefile
30761 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30762 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30764 (eval $ac_try) 2>&5
30766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30767 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30768 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30769 (eval $ac_try) 2>&5
30771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30772 test $ac_status = 0; }; }; then :
30774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30775 $as_echo "yes" >&6; }
30777 $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h
30781 $as_echo "$as_me: failed program was:" >&5
30782 sed 's/^/| /' conftest.
$ac_ext >&5
30784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30785 $as_echo "no" >&6; }
30795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_DISCARD is defined" >&5
30796 $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
30799 cat confdefs.h
- <<_ACEOF >conftest.c
30802 #include <linux/blk_types.h>
30808 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
30818 cat - <<_ACEOF >conftest.h
30823 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30824 echo "obj-m := conftest.o" >build
/Makefile
30826 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30827 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30829 (eval $ac_try) 2>&5
30831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30832 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30833 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30834 (eval $ac_try) 2>&5
30836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30837 test $ac_status = 0; }; }; then :
30839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30840 $as_echo "yes" >&6; }
30842 $as_echo "#define HAVE_REQ_OP_DISCARD 1" >>confdefs.h
30846 $as_echo "$as_me: failed program was:" >&5
30847 sed 's/^/| /' conftest.
$ac_ext >&5
30849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30850 $as_echo "no" >&6; }
30860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_SECURE_ERASE is defined" >&5
30861 $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
30864 cat confdefs.h
- <<_ACEOF >conftest.c
30867 #include <linux/blk_types.h>
30873 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
30883 cat - <<_ACEOF >conftest.h
30888 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30889 echo "obj-m := conftest.o" >build
/Makefile
30891 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30892 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30893 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30894 (eval $ac_try) 2>&5
30896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30897 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30899 (eval $ac_try) 2>&5
30901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30902 test $ac_status = 0; }; }; then :
30904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30905 $as_echo "yes" >&6; }
30907 $as_echo "#define HAVE_REQ_OP_SECURE_ERASE 1" >>confdefs.h
30911 $as_echo "$as_me: failed program was:" >&5
30912 sed 's/^/| /' conftest.
$ac_ext >&5
30914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30915 $as_echo "no" >&6; }
30925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_FLUSH is defined" >&5
30926 $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
30929 cat confdefs.h
- <<_ACEOF >conftest.c
30932 #include <linux/blk_types.h>
30938 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
30948 cat - <<_ACEOF >conftest.h
30953 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30954 echo "obj-m := conftest.o" >build
/Makefile
30956 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30957 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30958 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30959 (eval $ac_try) 2>&5
30961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30962 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30964 (eval $ac_try) 2>&5
30966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30967 test $ac_status = 0; }; }; then :
30969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30970 $as_echo "yes" >&6; }
30972 $as_echo "#define HAVE_REQ_OP_FLUSH 1" >>confdefs.h
30976 $as_echo "$as_me: failed program was:" >&5
30977 sed 's/^/| /' conftest.
$ac_ext >&5
30979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30980 $as_echo "no" >&6; }
30990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_opf is defined" >&5
30991 $as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
30994 cat confdefs.h
- <<_ACEOF >conftest.c
30997 #include <linux/bio.h>
31003 struct bio bio __attribute__ ((unused));
31014 cat - <<_ACEOF >conftest.h
31019 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31020 echo "obj-m := conftest.o" >build
/Makefile
31022 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31023 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31025 (eval $ac_try) 2>&5
31027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31028 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31030 (eval $ac_try) 2>&5
31032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31033 test $ac_status = 0; }; }; then :
31035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31036 $as_echo "yes" >&6; }
31038 $as_echo "#define HAVE_BIO_BI_OPF 1" >>confdefs.h
31042 $as_echo "$as_me: failed program was:" >&5
31043 sed 's/^/| /' conftest.
$ac_ext >&5
31045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31046 $as_echo "no" >&6; }
31056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5
31057 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
31060 cat confdefs.h
- <<_ACEOF >conftest.c
31063 #include <linux/bio.h>
31065 void wanted_end_io(struct bio *bio) { return; }
31067 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
31082 cat - <<_ACEOF >conftest.h
31087 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31088 echo "obj-m := conftest.o" >build
/Makefile
31090 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31091 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31093 (eval $ac_try) 2>&5
31095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31096 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31098 (eval $ac_try) 2>&5
31100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31101 test $ac_status = 0; }; }; then :
31103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31104 $as_echo "yes" >&6; }
31106 $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h
31110 $as_echo "$as_me: failed program was:" >&5
31111 sed 's/^/| /' conftest.
$ac_ext >&5
31113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31114 $as_echo "no" >&6; }
31124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_status exists" >&5
31125 $as_echo_n "checking whether bio->bi_status exists... " >&6; }
31128 cat confdefs.h
- <<_ACEOF >conftest.c
31131 #include <linux/bio.h>
31137 struct bio bio __attribute__ ((unused));
31138 blk_status_t status __attribute__ ((unused)) = BLK_STS_OK;
31140 bio.bi_status = status;
31150 cat - <<_ACEOF >conftest.h
31155 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31156 echo "obj-m := conftest.o" >build
/Makefile
31158 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31159 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31161 (eval $ac_try) 2>&5
31163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31164 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31166 (eval $ac_try) 2>&5
31168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31169 test $ac_status = 0; }; }; then :
31171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31172 $as_echo "yes" >&6; }
31174 $as_echo "#define HAVE_BIO_BI_STATUS 1" >>confdefs.h
31178 $as_echo "$as_me: failed program was:" >&5
31179 sed 's/^/| /' conftest.
$ac_ext >&5
31181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31182 $as_echo "no" >&6; }
31192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5
31193 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
31196 cat confdefs.h
- <<_ACEOF >conftest.c
31199 #include <linux/bio.h>
31205 int flags __attribute__ ((unused));
31206 flags = BIO_RW_BARRIER;
31216 cat - <<_ACEOF >conftest.h
31221 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31222 echo "obj-m := conftest.o" >build
/Makefile
31224 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31225 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31226 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31227 (eval $ac_try) 2>&5
31229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31230 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31231 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31232 (eval $ac_try) 2>&5
31234 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31235 test $ac_status = 0; }; }; then :
31237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31238 $as_echo "yes" >&6; }
31240 $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h
31244 $as_echo "$as_me: failed program was:" >&5
31245 sed 's/^/| /' conftest.
$ac_ext >&5
31247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31248 $as_echo "no" >&6; }
31258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5
31259 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
31262 cat confdefs.h
- <<_ACEOF >conftest.c
31265 #include <linux/bio.h>
31271 int flags __attribute__ ((unused));
31272 flags = BIO_RW_DISCARD;
31282 cat - <<_ACEOF >conftest.h
31287 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31288 echo "obj-m := conftest.o" >build
/Makefile
31290 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31291 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31292 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31293 (eval $ac_try) 2>&5
31295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31296 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31297 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31298 (eval $ac_try) 2>&5
31300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31301 test $ac_status = 0; }; }; then :
31303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31304 $as_echo "yes" >&6; }
31306 $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h
31310 $as_echo "$as_me: failed program was:" >&5
31311 sed 's/^/| /' conftest.
$ac_ext >&5
31313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31314 $as_echo "no" >&6; }
31324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue bdi is dynamic" >&5
31325 $as_echo_n "checking whether blk_queue bdi is dynamic... " >&6; }
31328 cat confdefs.h
- <<_ACEOF >conftest.c
31331 #include <linux/blkdev.h>
31337 struct request_queue q;
31338 struct backing_dev_info bdi;
31339 q.backing_dev_info = &bdi;
31349 cat - <<_ACEOF >conftest.h
31354 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31355 echo "obj-m := conftest.o" >build
/Makefile
31357 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31358 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31359 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31360 (eval $ac_try) 2>&5
31362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31363 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31364 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31365 (eval $ac_try) 2>&5
31367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31368 test $ac_status = 0; }; }; then :
31370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31371 $as_echo "yes" >&6; }
31373 $as_echo "#define HAVE_BLK_QUEUE_BDI_DYNAMIC 1" >>confdefs.h
31377 $as_echo "$as_me: failed program was:" >&5
31378 sed 's/^/| /' conftest.
$ac_ext >&5
31380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31381 $as_echo "no" >&6; }
31391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
31392 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
31393 tmp_flags
="$EXTRA_KCFLAGS"
31394 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
31397 cat confdefs.h
- <<_ACEOF >conftest.c
31400 #include <linux/blkdev.h>
31406 struct request_queue *q = NULL;
31407 (void) blk_queue_flush(q, REQ_FLUSH);
31417 cat - <<_ACEOF >conftest.h
31422 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31423 echo "obj-m := conftest.o" >build
/Makefile
31425 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31426 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31428 (eval $ac_try) 2>&5
31430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31431 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31433 (eval $ac_try) 2>&5
31435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31436 test $ac_status = 0; }; }; then :
31438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31439 $as_echo "yes" >&6; }
31441 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
31444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
31445 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
31448 cat confdefs.h
- <<_ACEOF >conftest.c
31451 #include <linux/module.h>
31452 #include <linux/blkdev.h>
31454 MODULE_LICENSE("$ZFS_META_LICENSE");
31460 struct request_queue *q = NULL;
31461 (void) blk_queue_flush(q, REQ_FLUSH);
31471 cat - <<_ACEOF >conftest.h
31476 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31477 echo "obj-m := conftest.o" >build
/Makefile
31479 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31480 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31482 (eval $ac_try) 2>&5
31484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31485 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31487 (eval $ac_try) 2>&5
31489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31490 test $ac_status = 0; }; }; then :
31492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31493 $as_echo "no" >&6; }
31496 $as_echo "$as_me: failed program was:" >&5
31497 sed 's/^/| /' conftest.
$ac_ext >&5
31499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31500 $as_echo "yes" >&6; }
31502 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
31513 $as_echo "$as_me: failed program was:" >&5
31514 sed 's/^/| /' conftest.
$ac_ext >&5
31516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31517 $as_echo "no" >&6; }
31526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() exists" >&5
31527 $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
31530 cat confdefs.h
- <<_ACEOF >conftest.c
31533 #include <linux/kernel.h>
31534 #include <linux/blkdev.h>
31541 struct request_queue *q = NULL;
31542 blk_queue_write_cache(q, true, true);
31552 cat - <<_ACEOF >conftest.h
31557 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31558 echo "obj-m := conftest.o" >build
/Makefile
31560 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31561 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31563 (eval $ac_try) 2>&5
31565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31566 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31568 (eval $ac_try) 2>&5
31570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31571 test $ac_status = 0; }; }; then :
31573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31574 $as_echo "yes" >&6; }
31576 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE 1" >>confdefs.h
31579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() is GPL-only" >&5
31580 $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
31583 cat confdefs.h
- <<_ACEOF >conftest.c
31586 #include <linux/kernel.h>
31587 #include <linux/module.h>
31588 #include <linux/blkdev.h>
31590 MODULE_LICENSE("$ZFS_META_LICENSE");
31596 struct request_queue *q = NULL;
31597 blk_queue_write_cache(q, true, true);
31607 cat - <<_ACEOF >conftest.h
31612 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31613 echo "obj-m := conftest.o" >build
/Makefile
31615 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31616 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31618 (eval $ac_try) 2>&5
31620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31621 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31623 (eval $ac_try) 2>&5
31625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31626 test $ac_status = 0; }; }; then :
31628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31629 $as_echo "no" >&6; }
31632 $as_echo "$as_me: failed program was:" >&5
31633 sed 's/^/| /' conftest.
$ac_ext >&5
31635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31636 $as_echo "yes" >&6; }
31638 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1" >>confdefs.h
31649 $as_echo "$as_me: failed program was:" >&5
31650 sed 's/^/| /' conftest.
$ac_ext >&5
31652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31653 $as_echo "no" >&6; }
31662 EXTRA_KCFLAGS
="$tmp_flags"
31665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
31666 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
31667 tmp_flags
="$EXTRA_KCFLAGS"
31668 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
31671 cat confdefs.h
- <<_ACEOF >conftest.c
31674 #include <linux/blkdev.h>
31680 struct request_queue *q = NULL;
31681 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
31691 cat - <<_ACEOF >conftest.h
31696 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31697 echo "obj-m := conftest.o" >build
/Makefile
31699 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31700 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31702 (eval $ac_try) 2>&5
31704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31705 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31707 (eval $ac_try) 2>&5
31709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31710 test $ac_status = 0; }; }; then :
31712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31713 $as_echo "yes" >&6; }
31715 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
31719 $as_echo "$as_me: failed program was:" >&5
31720 sed 's/^/| /' conftest.
$ac_ext >&5
31722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31723 $as_echo "no" >&6; }
31731 EXTRA_KCFLAGS
="$tmp_flags"
31734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
31735 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
31736 tmp_flags
="$EXTRA_KCFLAGS"
31737 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
31740 cat confdefs.h
- <<_ACEOF >conftest.c
31743 #include <linux/blkdev.h>
31749 struct request_queue *q = NULL;
31750 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
31760 cat - <<_ACEOF >conftest.h
31765 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31766 echo "obj-m := conftest.o" >build
/Makefile
31768 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31769 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31771 (eval $ac_try) 2>&5
31773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31774 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31775 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31776 (eval $ac_try) 2>&5
31778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31779 test $ac_status = 0; }; }; then :
31781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31782 $as_echo "yes" >&6; }
31784 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
31788 $as_echo "$as_me: failed program was:" >&5
31789 sed 's/^/| /' conftest.
$ac_ext >&5
31791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31792 $as_echo "no" >&6; }
31800 EXTRA_KCFLAGS
="$tmp_flags"
31803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the BIO_RW_UNPLUG enum is available" >&5
31804 $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
31805 tmp_flags
="$EXTRA_KCFLAGS"
31806 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
31809 cat confdefs.h
- <<_ACEOF >conftest.c
31812 #include <linux/blkdev.h>
31818 extern enum bio_rw_flags rw;
31820 rw = BIO_RW_UNPLUG;
31830 cat - <<_ACEOF >conftest.h
31835 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31836 echo "obj-m := conftest.o" >build
/Makefile
31838 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31839 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31840 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31841 (eval $ac_try) 2>&5
31843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31844 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31845 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31846 (eval $ac_try) 2>&5
31848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31849 test $ac_status = 0; }; }; then :
31851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31852 $as_echo "yes" >&6; }
31854 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1" >>confdefs.h
31858 $as_echo "$as_me: failed program was:" >&5
31859 sed 's/^/| /' conftest.
$ac_ext >&5
31861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31862 $as_echo "no" >&6; }
31870 EXTRA_KCFLAGS
="$tmp_flags"
31873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct blk_plug is available" >&5
31874 $as_echo_n "checking whether struct blk_plug is available... " >&6; }
31875 tmp_flags
="$EXTRA_KCFLAGS"
31876 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
31879 cat confdefs.h
- <<_ACEOF >conftest.c
31882 #include <linux/blkdev.h>
31888 struct blk_plug plug;
31890 blk_start_plug(&plug);
31891 blk_finish_plug(&plug);
31901 cat - <<_ACEOF >conftest.h
31906 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31907 echo "obj-m := conftest.o" >build
/Makefile
31909 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31910 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31912 (eval $ac_try) 2>&5
31914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31915 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31916 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31917 (eval $ac_try) 2>&5
31919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31920 test $ac_status = 0; }; }; then :
31922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31923 $as_echo "yes" >&6; }
31925 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1" >>confdefs.h
31929 $as_echo "$as_me: failed program was:" >&5
31930 sed 's/^/| /' conftest.
$ac_ext >&5
31932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31933 $as_echo "no" >&6; }
31941 EXTRA_KCFLAGS
="$tmp_flags"
31944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
31945 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
31946 tmp_flags
="$EXTRA_KCFLAGS"
31947 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
31950 cat confdefs.h
- <<_ACEOF >conftest.c
31953 #include <linux/blkdev.h>
31959 struct gendisk *disk = NULL;
31960 (void) get_disk_ro(disk);
31970 cat - <<_ACEOF >conftest.h
31975 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31976 echo "obj-m := conftest.o" >build
/Makefile
31978 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31979 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31980 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31981 (eval $ac_try) 2>&5
31983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31984 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31985 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31986 (eval $ac_try) 2>&5
31988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31989 test $ac_status = 0; }; }; then :
31991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31992 $as_echo "yes" >&6; }
31994 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
31998 $as_echo "$as_me: failed program was:" >&5
31999 sed 's/^/| /' conftest.
$ac_ext >&5
32001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32002 $as_echo "no" >&6; }
32010 EXTRA_KCFLAGS
="$tmp_flags"
32012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
32013 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
32017 cat confdefs.h
- <<_ACEOF >conftest.c
32020 #include <linux/genhd.h>
32026 get_gendisk(0, NULL);
32036 cat - <<_ACEOF >conftest.h
32041 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32042 echo "obj-m := conftest.o" >build
/Makefile
32044 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32045 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32046 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32047 (eval $ac_try) 2>&5
32049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32050 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32052 (eval $ac_try) 2>&5
32054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32055 test $ac_status = 0; }; }; then :
32058 $as_echo "$as_me: failed program was:" >&5
32059 sed 's/^/| /' conftest.
$ac_ext >&5
32067 if test $rc -ne 0; then :
32069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32070 $as_echo "no" >&6; }
32073 if test "x$enable_linux_builtin" != xyes
; then
32075 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
32076 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
32078 if test $rc -ne 0; then
32080 for file in block
/genhd.c
; do
32081 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
32082 "$LINUX/$file" 2>/dev
/null
32084 if test $rc -eq 0; then
32089 if test $export -eq 0; then :
32099 if test $rc -ne 0; then :
32101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32102 $as_echo "no" >&6; }
32106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32107 $as_echo "yes" >&6; }
32109 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
32117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_op_attrs is available" >&5
32118 $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
32121 cat confdefs.h
- <<_ACEOF >conftest.c
32124 #include <linux/bio.h>
32130 struct bio *bio __attribute__ ((unused)) = NULL;
32132 bio_set_op_attrs(bio, 0, 0);
32142 cat - <<_ACEOF >conftest.h
32147 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32148 echo "obj-m := conftest.o" >build
/Makefile
32150 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32151 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32153 (eval $ac_try) 2>&5
32155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32156 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32157 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32158 (eval $ac_try) 2>&5
32160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32161 test $ac_status = 0; }; }; then :
32163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32164 $as_echo "yes" >&6; }
32166 $as_echo "#define HAVE_BIO_SET_OP_ATTRS 1" >>confdefs.h
32170 $as_echo "$as_me: failed program was:" >&5
32171 sed 's/^/| /' conftest.
$ac_ext >&5
32173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32174 $as_echo "no" >&6; }
32184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_readlink is global" >&5
32185 $as_echo_n "checking whether generic_readlink is global... " >&6; }
32188 cat confdefs.h
- <<_ACEOF >conftest.c
32191 #include <linux/fs.h>
32197 int i __attribute__ ((unused));
32199 i = generic_readlink(NULL, NULL, 0);
32209 cat - <<_ACEOF >conftest.h
32214 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32215 echo "obj-m := conftest.o" >build
/Makefile
32217 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32218 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32220 (eval $ac_try) 2>&5
32222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32223 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32224 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32225 (eval $ac_try) 2>&5
32227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32228 test $ac_status = 0; }; }; then :
32230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32231 $as_echo "yes" >&6; }
32233 $as_echo "#define HAVE_GENERIC_READLINK 1" >>confdefs.h
32237 $as_echo "$as_me: failed program was:" >&5
32238 sed 's/^/| /' conftest.
$ac_ext >&5
32240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32241 $as_echo "no" >&6; }
32251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
32252 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
32255 cat confdefs.h
- <<_ACEOF >conftest.c
32258 #include <linux/blkdev.h>
32264 struct queue_limits ql __attribute__ ((unused));
32266 ql.discard_granularity = 0;
32276 cat - <<_ACEOF >conftest.h
32281 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32282 echo "obj-m := conftest.o" >build
/Makefile
32284 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32285 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32287 (eval $ac_try) 2>&5
32289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32290 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32291 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32292 (eval $ac_try) 2>&5
32294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32295 test $ac_status = 0; }; }; then :
32297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32298 $as_echo "yes" >&6; }
32300 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
32304 $as_echo "$as_me: failed program was:" >&5
32305 sed 's/^/| /' conftest.
$ac_ext >&5
32307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32308 $as_echo "no" >&6; }
32318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5
32319 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
32322 cat confdefs.h
- <<_ACEOF >conftest.c
32325 #include <linux/fs.h>
32326 #include <linux/xattr.h>
32328 const struct xattr_handler xattr_test_handler = {
32334 const struct xattr_handler *xattr_handlers[] = {
32335 &xattr_test_handler,
32338 const struct super_block sb __attribute__ ((unused)) = {
32339 .s_xattr = xattr_handlers,
32355 cat - <<_ACEOF >conftest.h
32360 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32361 echo "obj-m := conftest.o" >build
/Makefile
32363 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32364 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32365 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32366 (eval $ac_try) 2>&5
32368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32369 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32371 (eval $ac_try) 2>&5
32373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32374 test $ac_status = 0; }; }; then :
32376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32377 $as_echo "yes" >&6; }
32379 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
32383 $as_echo "$as_me: failed program was:" >&5
32384 sed 's/^/| /' conftest.
$ac_ext >&5
32386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32387 $as_echo "no" >&6; }
32397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler has name" >&5
32398 $as_echo_n "checking whether xattr_handler has name... " >&6; }
32401 cat confdefs.h
- <<_ACEOF >conftest.c
32404 #include <linux/xattr.h>
32406 static const struct xattr_handler
32407 xops __attribute__ ((unused)) = {
32408 .name = XATTR_NAME_POSIX_ACL_ACCESS,
32424 cat - <<_ACEOF >conftest.h
32429 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32430 echo "obj-m := conftest.o" >build
/Makefile
32432 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32433 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32435 (eval $ac_try) 2>&5
32437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32438 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32440 (eval $ac_try) 2>&5
32442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32443 test $ac_status = 0; }; }; then :
32445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32446 $as_echo "yes" >&6; }
32448 $as_echo "#define HAVE_XATTR_HANDLER_NAME 1" >>confdefs.h
32452 $as_echo "$as_me: failed program was:" >&5
32453 sed 's/^/| /' conftest.
$ac_ext >&5
32455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32456 $as_echo "no" >&6; }
32466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants both dentry and inode" >&5
32467 $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
32470 cat confdefs.h
- <<_ACEOF >conftest.c
32473 #include <linux/xattr.h>
32475 int get(const struct xattr_handler *handler,
32476 struct dentry *dentry, struct inode *inode,
32477 const char *name, void *buffer, size_t size) { return 0; }
32478 static const struct xattr_handler
32479 xops __attribute__ ((unused)) = {
32496 cat - <<_ACEOF >conftest.h
32501 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32502 echo "obj-m := conftest.o" >build
/Makefile
32504 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32505 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32506 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32507 (eval $ac_try) 2>&5
32509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32510 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32511 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32512 (eval $ac_try) 2>&5
32514 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32515 test $ac_status = 0; }; }; then :
32517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32518 $as_echo "yes" >&6; }
32520 $as_echo "#define HAVE_XATTR_GET_DENTRY_INODE 1" >>confdefs.h
32524 $as_echo "$as_me: failed program was:" >&5
32525 sed 's/^/| /' conftest.
$ac_ext >&5
32527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32528 $as_echo "no" >&6; }
32529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5
32530 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
32533 cat confdefs.h
- <<_ACEOF >conftest.c
32536 #include <linux/xattr.h>
32538 int get(const struct xattr_handler *handler,
32539 struct dentry *dentry, const char *name,
32540 void *buffer, size_t size) { return 0; }
32541 static const struct xattr_handler
32542 xops __attribute__ ((unused)) = {
32559 cat - <<_ACEOF >conftest.h
32564 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32565 echo "obj-m := conftest.o" >build
/Makefile
32567 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32568 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32570 (eval $ac_try) 2>&5
32572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32573 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32575 (eval $ac_try) 2>&5
32577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32578 test $ac_status = 0; }; }; then :
32580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32581 $as_echo "yes" >&6; }
32583 $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h
32587 $as_echo "$as_me: failed program was:" >&5
32588 sed 's/^/| /' conftest.
$ac_ext >&5
32590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32591 $as_echo "no" >&6; }
32592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
32593 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
32596 cat confdefs.h
- <<_ACEOF >conftest.c
32599 #include <linux/xattr.h>
32601 int get(struct dentry *dentry, const char *name,
32602 void *buffer, size_t size, int handler_flags)
32604 static const struct xattr_handler
32605 xops __attribute__ ((unused)) = {
32622 cat - <<_ACEOF >conftest.h
32627 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32628 echo "obj-m := conftest.o" >build
/Makefile
32630 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32631 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32632 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32633 (eval $ac_try) 2>&5
32635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32636 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32638 (eval $ac_try) 2>&5
32640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32641 test $ac_status = 0; }; }; then :
32643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32644 $as_echo "yes" >&6; }
32646 $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h
32650 $as_echo "$as_me: failed program was:" >&5
32651 sed 's/^/| /' conftest.
$ac_ext >&5
32653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32654 $as_echo "no" >&6; }
32655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5
32656 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
32659 cat confdefs.h
- <<_ACEOF >conftest.c
32662 #include <linux/xattr.h>
32664 int get(struct inode *ip, const char *name,
32665 void *buffer, size_t size) { return 0; }
32666 static const struct xattr_handler
32667 xops __attribute__ ((unused)) = {
32684 cat - <<_ACEOF >conftest.h
32689 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32690 echo "obj-m := conftest.o" >build
/Makefile
32692 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32693 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32695 (eval $ac_try) 2>&5
32697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32698 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32699 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32700 (eval $ac_try) 2>&5
32702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32703 test $ac_status = 0; }; }; then :
32705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32706 $as_echo "yes" >&6; }
32708 $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h
32712 $as_echo "$as_me: failed program was:" >&5
32713 sed 's/^/| /' conftest.
$ac_ext >&5
32715 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
32746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants both dentry and inode" >&5
32747 $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
32750 cat confdefs.h
- <<_ACEOF >conftest.c
32753 #include <linux/xattr.h>
32755 int set(const struct xattr_handler *handler,
32756 struct dentry *dentry, struct inode *inode,
32757 const char *name, const void *buffer,
32758 size_t size, int flags)
32760 static const struct xattr_handler
32761 xops __attribute__ ((unused)) = {
32778 cat - <<_ACEOF >conftest.h
32783 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32784 echo "obj-m := conftest.o" >build
/Makefile
32786 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32787 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32789 (eval $ac_try) 2>&5
32791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32792 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32793 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32794 (eval $ac_try) 2>&5
32796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32797 test $ac_status = 0; }; }; then :
32799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32800 $as_echo "yes" >&6; }
32802 $as_echo "#define HAVE_XATTR_SET_DENTRY_INODE 1" >>confdefs.h
32806 $as_echo "$as_me: failed program was:" >&5
32807 sed 's/^/| /' conftest.
$ac_ext >&5
32809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32810 $as_echo "no" >&6; }
32811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5
32812 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
32815 cat confdefs.h
- <<_ACEOF >conftest.c
32818 #include <linux/xattr.h>
32820 int set(const struct xattr_handler *handler,
32821 struct dentry *dentry, const char *name,
32822 const void *buffer, size_t size, int flags)
32824 static const struct xattr_handler
32825 xops __attribute__ ((unused)) = {
32842 cat - <<_ACEOF >conftest.h
32847 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32848 echo "obj-m := conftest.o" >build
/Makefile
32850 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32851 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32852 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32853 (eval $ac_try) 2>&5
32855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32856 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32857 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32858 (eval $ac_try) 2>&5
32860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32861 test $ac_status = 0; }; }; then :
32863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32864 $as_echo "yes" >&6; }
32866 $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h
32870 $as_echo "$as_me: failed program was:" >&5
32871 sed 's/^/| /' conftest.
$ac_ext >&5
32873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32874 $as_echo "no" >&6; }
32875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
32876 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
32879 cat confdefs.h
- <<_ACEOF >conftest.c
32882 #include <linux/xattr.h>
32884 int set(struct dentry *dentry, const char *name,
32885 const void *buffer, size_t size, int flags,
32886 int handler_flags) { return 0; }
32887 static const struct xattr_handler
32888 xops __attribute__ ((unused)) = {
32905 cat - <<_ACEOF >conftest.h
32910 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32911 echo "obj-m := conftest.o" >build
/Makefile
32913 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32914 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32915 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32916 (eval $ac_try) 2>&5
32918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32919 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32921 (eval $ac_try) 2>&5
32923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32924 test $ac_status = 0; }; }; then :
32926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32927 $as_echo "yes" >&6; }
32929 $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h
32933 $as_echo "$as_me: failed program was:" >&5
32934 sed 's/^/| /' conftest.
$ac_ext >&5
32936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32937 $as_echo "no" >&6; }
32938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5
32939 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
32942 cat confdefs.h
- <<_ACEOF >conftest.c
32945 #include <linux/xattr.h>
32947 int set(struct inode *ip, const char *name,
32948 const void *buffer, size_t size, int flags)
32950 static const struct xattr_handler
32951 xops __attribute__ ((unused)) = {
32968 cat - <<_ACEOF >conftest.h
32973 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32974 echo "obj-m := conftest.o" >build
/Makefile
32976 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32977 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32979 (eval $ac_try) 2>&5
32981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32982 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32984 (eval $ac_try) 2>&5
32986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32987 test $ac_status = 0; }; }; then :
32989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32990 $as_echo "yes" >&6; }
32992 $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h
32996 $as_echo "$as_me: failed program was:" >&5
32997 sed 's/^/| /' conftest.
$ac_ext >&5
32999 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
33030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5
33031 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
33034 cat confdefs.h
- <<_ACEOF >conftest.c
33037 #include <linux/xattr.h>
33039 bool list(struct dentry *dentry) { return 0; }
33040 static const struct xattr_handler
33041 xops __attribute__ ((unused)) = {
33058 cat - <<_ACEOF >conftest.h
33063 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33064 echo "obj-m := conftest.o" >build
/Makefile
33066 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33067 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33069 (eval $ac_try) 2>&5
33071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33072 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33074 (eval $ac_try) 2>&5
33076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33077 test $ac_status = 0; }; }; then :
33079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33080 $as_echo "yes" >&6; }
33082 $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h
33086 $as_echo "$as_me: failed program was:" >&5
33087 sed 's/^/| /' conftest.
$ac_ext >&5
33089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33090 $as_echo "no" >&6; }
33091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5
33092 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
33095 cat confdefs.h
- <<_ACEOF >conftest.c
33098 #include <linux/xattr.h>
33100 size_t list(const struct xattr_handler *handler,
33101 struct dentry *dentry, char *list, size_t list_size,
33102 const char *name, size_t name_len) { return 0; }
33103 static const struct xattr_handler
33104 xops __attribute__ ((unused)) = {
33121 cat - <<_ACEOF >conftest.h
33126 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33127 echo "obj-m := conftest.o" >build
/Makefile
33129 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33130 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33132 (eval $ac_try) 2>&5
33134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33135 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33136 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33137 (eval $ac_try) 2>&5
33139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33140 test $ac_status = 0; }; }; then :
33142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33143 $as_echo "yes" >&6; }
33145 $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h
33149 $as_echo "$as_me: failed program was:" >&5
33150 sed 's/^/| /' conftest.
$ac_ext >&5
33152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33153 $as_echo "no" >&6; }
33154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
33155 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
33158 cat confdefs.h
- <<_ACEOF >conftest.c
33161 #include <linux/xattr.h>
33163 size_t list(struct dentry *dentry,
33164 char *list, size_t list_size,
33165 const char *name, size_t name_len,
33166 int handler_flags) { return 0; }
33167 static const struct xattr_handler
33168 xops __attribute__ ((unused)) = {
33185 cat - <<_ACEOF >conftest.h
33190 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33191 echo "obj-m := conftest.o" >build
/Makefile
33193 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33194 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33196 (eval $ac_try) 2>&5
33198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33199 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33201 (eval $ac_try) 2>&5
33203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33204 test $ac_status = 0; }; }; then :
33206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33207 $as_echo "yes" >&6; }
33209 $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h
33213 $as_echo "$as_me: failed program was:" >&5
33214 sed 's/^/| /' conftest.
$ac_ext >&5
33216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33217 $as_echo "no" >&6; }
33218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5
33219 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
33222 cat confdefs.h
- <<_ACEOF >conftest.c
33225 #include <linux/xattr.h>
33227 size_t list(struct inode *ip, char *lst,
33228 size_t list_size, const char *name,
33229 size_t name_len) { return 0; }
33230 static const struct xattr_handler
33231 xops __attribute__ ((unused)) = {
33248 cat - <<_ACEOF >conftest.h
33253 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33254 echo "obj-m := conftest.o" >build
/Makefile
33256 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33257 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33259 (eval $ac_try) 2>&5
33261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33262 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33264 (eval $ac_try) 2>&5
33266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33267 test $ac_status = 0; }; }; then :
33269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33270 $as_echo "yes" >&6; }
33272 $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h
33276 $as_echo "$as_me: failed program was:" >&5
33277 sed 's/^/| /' conftest.
$ac_ext >&5
33279 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
33310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
33311 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
33314 cat confdefs.h
- <<_ACEOF >conftest.c
33317 #include <linux/fs.h>
33323 struct inode *ip = NULL;
33324 (void) inode_owner_or_capable(ip);
33334 cat - <<_ACEOF >conftest.h
33339 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33340 echo "obj-m := conftest.o" >build
/Makefile
33342 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33343 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33345 (eval $ac_try) 2>&5
33347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33348 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33350 (eval $ac_try) 2>&5
33352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33353 test $ac_status = 0; }; }; then :
33355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33356 $as_echo "yes" >&6; }
33358 $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
33362 $as_echo "$as_me: failed program was:" >&5
33363 sed 's/^/| /' conftest.
$ac_ext >&5
33365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33366 $as_echo "no" >&6; }
33367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
33368 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
33371 cat confdefs.h
- <<_ACEOF >conftest.c
33374 #include <linux/fs.h>
33375 #include <linux/sched.h>
33381 struct inode *ip = NULL;
33382 (void) is_owner_or_cap(ip);
33392 cat - <<_ACEOF >conftest.h
33397 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33398 echo "obj-m := conftest.o" >build
/Makefile
33400 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33401 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33403 (eval $ac_try) 2>&5
33405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33406 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33408 (eval $ac_try) 2>&5
33410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33411 test $ac_status = 0; }; }; then :
33413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33414 $as_echo "yes" >&6; }
33416 $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
33420 $as_echo "$as_me: failed program was:" >&5
33421 sed 's/^/| /' conftest.
$ac_ext >&5
33423 as_fn_error $?
"no - Please file a bug report at
33424 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
33441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
33442 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
33445 cat confdefs.h
- <<_ACEOF >conftest.c
33448 #include <linux/cred.h>
33449 #include <linux/fs.h>
33450 #include <linux/posix_acl_xattr.h>
33456 posix_acl_from_xattr(&init_user_ns, NULL, 0);
33466 cat - <<_ACEOF >conftest.h
33471 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33472 echo "obj-m := conftest.o" >build
/Makefile
33474 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33475 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33476 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33477 (eval $ac_try) 2>&5
33479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33480 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33482 (eval $ac_try) 2>&5
33484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33485 test $ac_status = 0; }; }; then :
33487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33488 $as_echo "yes" >&6; }
33490 $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
33494 $as_echo "$as_me: failed program was:" >&5
33495 sed 's/^/| /' conftest.
$ac_ext >&5
33497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33498 $as_echo "no" >&6; }
33508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
33509 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
33512 cat confdefs.h
- <<_ACEOF >conftest.c
33515 #include <linux/cred.h>
33516 #include <linux/fs.h>
33517 #include <linux/posix_acl.h>
33523 struct posix_acl* tmp = posix_acl_alloc(1, 0);
33524 posix_acl_release(tmp);
33534 cat - <<_ACEOF >conftest.h
33539 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33540 echo "obj-m := conftest.o" >build
/Makefile
33542 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33543 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33545 (eval $ac_try) 2>&5
33547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33548 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33550 (eval $ac_try) 2>&5
33552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33553 test $ac_status = 0; }; }; then :
33555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33556 $as_echo "yes" >&6; }
33558 $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
33561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
33562 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
33565 cat confdefs.h
- <<_ACEOF >conftest.c
33568 #include <linux/module.h>
33569 #include <linux/cred.h>
33570 #include <linux/fs.h>
33571 #include <linux/posix_acl.h>
33573 MODULE_LICENSE("$ZFS_META_LICENSE");
33579 struct posix_acl* tmp = posix_acl_alloc(1, 0);
33580 posix_acl_release(tmp);
33590 cat - <<_ACEOF >conftest.h
33595 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33596 echo "obj-m := conftest.o" >build
/Makefile
33598 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33599 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33601 (eval $ac_try) 2>&5
33603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33604 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33606 (eval $ac_try) 2>&5
33608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33609 test $ac_status = 0; }; }; then :
33611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33612 $as_echo "no" >&6; }
33615 $as_echo "$as_me: failed program was:" >&5
33616 sed 's/^/| /' conftest.
$ac_ext >&5
33618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33619 $as_echo "yes" >&6; }
33621 $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
33632 $as_echo "$as_me: failed program was:" >&5
33633 sed 's/^/| /' conftest.
$ac_ext >&5
33635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33636 $as_echo "no" >&6; }
33646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_cached_acl() is usable" >&5
33647 $as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
33650 cat confdefs.h
- <<_ACEOF >conftest.c
33653 #include <linux/module.h>
33654 #include <linux/cred.h>
33655 #include <linux/fs.h>
33656 #include <linux/posix_acl.h>
33658 MODULE_LICENSE("$ZFS_META_LICENSE");
33664 struct inode *ip = NULL;
33665 struct posix_acl *acl = posix_acl_alloc(1, 0);
33666 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
33667 forget_cached_acl(ip, ACL_TYPE_ACCESS);
33677 cat - <<_ACEOF >conftest.h
33682 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33683 echo "obj-m := conftest.o" >build
/Makefile
33685 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33686 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33687 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33688 (eval $ac_try) 2>&5
33690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33691 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33693 (eval $ac_try) 2>&5
33695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33696 test $ac_status = 0; }; }; then :
33698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33699 $as_echo "yes" >&6; }
33701 $as_echo "#define HAVE_SET_CACHED_ACL_USABLE 1" >>confdefs.h
33705 $as_echo "$as_me: failed program was:" >&5
33706 sed 's/^/| /' conftest.
$ac_ext >&5
33708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33709 $as_echo "no" >&6; }
33719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
33720 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
33723 cat confdefs.h
- <<_ACEOF >conftest.c
33726 #include <linux/fs.h>
33727 #include <linux/posix_acl.h>
33733 posix_acl_chmod(NULL, 0, 0)
33743 cat - <<_ACEOF >conftest.h
33748 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33749 echo "obj-m := conftest.o" >build
/Makefile
33751 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33752 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33754 (eval $ac_try) 2>&5
33756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33757 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33759 (eval $ac_try) 2>&5
33761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33762 test $ac_status = 0; }; }; then :
33764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33765 $as_echo "yes" >&6; }
33767 $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
33771 $as_echo "$as_me: failed program was:" >&5
33772 sed 's/^/| /' conftest.
$ac_ext >&5
33774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33775 $as_echo "no" >&6; }
33784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
33785 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
33788 cat confdefs.h
- <<_ACEOF >conftest.c
33791 #include <linux/fs.h>
33792 #include <linux/posix_acl.h>
33798 __posix_acl_chmod(NULL, 0, 0)
33808 cat - <<_ACEOF >conftest.h
33813 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33814 echo "obj-m := conftest.o" >build
/Makefile
33816 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33817 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33818 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33819 (eval $ac_try) 2>&5
33821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33822 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33824 (eval $ac_try) 2>&5
33826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33827 test $ac_status = 0; }; }; then :
33829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33830 $as_echo "yes" >&6; }
33832 $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
33836 $as_echo "$as_me: failed program was:" >&5
33837 sed 's/^/| /' conftest.
$ac_ext >&5
33839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33840 $as_echo "no" >&6; }
33850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
33851 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
33854 cat confdefs.h
- <<_ACEOF >conftest.c
33857 #include <linux/fs.h>
33858 #include <linux/posix_acl.h>
33865 posix_acl_equiv_mode(NULL,&tmp);
33875 cat - <<_ACEOF >conftest.h
33880 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33881 echo "obj-m := conftest.o" >build
/Makefile
33883 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33884 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33886 (eval $ac_try) 2>&5
33888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33889 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33891 (eval $ac_try) 2>&5
33893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33894 test $ac_status = 0; }; }; then :
33896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33897 $as_echo "yes" >&6; }
33899 $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
33903 $as_echo "$as_me: failed program was:" >&5
33904 sed 's/^/| /' conftest.
$ac_ext >&5
33906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33907 $as_echo "no" >&6; }
33917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5
33918 $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
33921 cat confdefs.h
- <<_ACEOF >conftest.c
33924 #include <linux/fs.h>
33925 #include <linux/posix_acl.h>
33931 struct user_namespace *user_ns = NULL;
33932 const struct posix_acl *acl = NULL;
33935 error = posix_acl_valid(user_ns, acl);
33945 cat - <<_ACEOF >conftest.h
33950 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33951 echo "obj-m := conftest.o" >build
/Makefile
33953 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33954 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33956 (eval $ac_try) 2>&5
33958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33959 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33961 (eval $ac_try) 2>&5
33963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33964 test $ac_status = 0; }; }; then :
33966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33967 $as_echo "yes" >&6; }
33969 $as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h
33973 $as_echo "$as_me: failed program was:" >&5
33974 sed 's/^/| /' conftest.
$ac_ext >&5
33976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33977 $as_echo "no" >&6; }
33987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
33988 $as_echo_n "checking whether iops->permission() exists... " >&6; }
33991 cat confdefs.h
- <<_ACEOF >conftest.c
33994 #include <linux/fs.h>
33996 int permission_fn(struct inode *inode, int mask) { return 0; }
33998 static const struct inode_operations
33999 iops __attribute__ ((unused)) = {
34000 .permission = permission_fn,
34016 cat - <<_ACEOF >conftest.h
34021 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34022 echo "obj-m := conftest.o" >build
/Makefile
34024 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34025 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34027 (eval $ac_try) 2>&5
34029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34030 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34032 (eval $ac_try) 2>&5
34034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34035 test $ac_status = 0; }; }; then :
34037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34038 $as_echo "yes" >&6; }
34040 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
34044 $as_echo "$as_me: failed program was:" >&5
34045 sed 's/^/| /' conftest.
$ac_ext >&5
34047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34048 $as_echo "no" >&6; }
34058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
34059 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
34062 cat confdefs.h
- <<_ACEOF >conftest.c
34065 #include <linux/fs.h>
34067 int permission_fn(struct inode *inode, int mask,
34068 struct nameidata *nd) { return 0; }
34070 static const struct inode_operations
34071 iops __attribute__ ((unused)) = {
34072 .permission = permission_fn,
34088 cat - <<_ACEOF >conftest.h
34093 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34094 echo "obj-m := conftest.o" >build
/Makefile
34096 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34097 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34099 (eval $ac_try) 2>&5
34101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34102 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34103 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34104 (eval $ac_try) 2>&5
34106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34107 test $ac_status = 0; }; }; then :
34109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34110 $as_echo "yes" >&6; }
34112 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
34115 $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
34119 $as_echo "$as_me: failed program was:" >&5
34120 sed 's/^/| /' conftest.
$ac_ext >&5
34122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34123 $as_echo "no" >&6; }
34133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
34134 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
34137 cat confdefs.h
- <<_ACEOF >conftest.c
34140 #include <linux/fs.h>
34142 int check_acl_fn(struct inode *inode, int mask) { return 0; }
34144 static const struct inode_operations
34145 iops __attribute__ ((unused)) = {
34146 .check_acl = check_acl_fn,
34162 cat - <<_ACEOF >conftest.h
34167 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34168 echo "obj-m := conftest.o" >build
/Makefile
34170 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34171 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34172 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34173 (eval $ac_try) 2>&5
34175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34176 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34177 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34178 (eval $ac_try) 2>&5
34180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34181 test $ac_status = 0; }; }; then :
34183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34184 $as_echo "yes" >&6; }
34186 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
34190 $as_echo "$as_me: failed program was:" >&5
34191 sed 's/^/| /' conftest.
$ac_ext >&5
34193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34194 $as_echo "no" >&6; }
34204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
34205 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
34208 cat confdefs.h
- <<_ACEOF >conftest.c
34211 #include <linux/fs.h>
34213 int check_acl_fn(struct inode *inode, int mask,
34214 unsigned int flags) { return 0; }
34216 static const struct inode_operations
34217 iops __attribute__ ((unused)) = {
34218 .check_acl = check_acl_fn,
34234 cat - <<_ACEOF >conftest.h
34239 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34240 echo "obj-m := conftest.o" >build
/Makefile
34242 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34243 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34245 (eval $ac_try) 2>&5
34247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34248 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34250 (eval $ac_try) 2>&5
34252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34253 test $ac_status = 0; }; }; then :
34255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34256 $as_echo "yes" >&6; }
34258 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
34261 $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
34265 $as_echo "$as_me: failed program was:" >&5
34266 sed 's/^/| /' conftest.
$ac_ext >&5
34268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34269 $as_echo "no" >&6; }
34279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
34280 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
34283 cat confdefs.h
- <<_ACEOF >conftest.c
34286 #include <linux/fs.h>
34288 struct posix_acl *get_acl_fn(struct inode *inode, int type)
34291 static const struct inode_operations
34292 iops __attribute__ ((unused)) = {
34293 .get_acl = get_acl_fn,
34309 cat - <<_ACEOF >conftest.h
34314 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34315 echo "obj-m := conftest.o" >build
/Makefile
34317 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34318 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34320 (eval $ac_try) 2>&5
34322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34323 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34325 (eval $ac_try) 2>&5
34327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34328 test $ac_status = 0; }; }; then :
34330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34331 $as_echo "yes" >&6; }
34333 $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
34337 $as_echo "$as_me: failed program was:" >&5
34338 sed 's/^/| /' conftest.
$ac_ext >&5
34340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34341 $as_echo "no" >&6; }
34351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->set_acl() exists" >&5
34352 $as_echo_n "checking whether iops->set_acl() exists... " >&6; }
34355 cat confdefs.h
- <<_ACEOF >conftest.c
34358 #include <linux/fs.h>
34360 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
34363 static const struct inode_operations
34364 iops __attribute__ ((unused)) = {
34365 .set_acl = set_acl_fn,
34381 cat - <<_ACEOF >conftest.h
34386 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34387 echo "obj-m := conftest.o" >build
/Makefile
34389 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34390 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34392 (eval $ac_try) 2>&5
34394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34395 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34397 (eval $ac_try) 2>&5
34399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34400 test $ac_status = 0; }; }; then :
34402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34403 $as_echo "yes" >&6; }
34405 $as_echo "#define HAVE_SET_ACL 1" >>confdefs.h
34409 $as_echo "$as_me: failed program was:" >&5
34410 sed 's/^/| /' conftest.
$ac_ext >&5
34412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34413 $as_echo "no" >&6; }
34424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a path" >&5
34425 $as_echo_n "checking whether iops->getattr() takes a path... " >&6; }
34428 cat confdefs.h
- <<_ACEOF >conftest.c
34431 #include <linux/fs.h>
34434 const struct path *p, struct kstat *k,
34435 u32 request_mask, unsigned int query_flags)
34438 static const struct inode_operations
34439 iops __attribute__ ((unused)) = {
34440 .getattr = test_getattr,
34456 cat - <<_ACEOF >conftest.h
34461 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34462 echo "obj-m := conftest.o" >build
/Makefile
34464 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34465 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34467 (eval $ac_try) 2>&5
34469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34470 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34472 (eval $ac_try) 2>&5
34474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34475 test $ac_status = 0; }; }; then :
34477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34478 $as_echo "yes" >&6; }
34480 $as_echo "#define HAVE_PATH_IOPS_GETATTR 1" >>confdefs.h
34484 $as_echo "$as_me: failed program was:" >&5
34485 sed 's/^/| /' conftest.
$ac_ext >&5
34487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34488 $as_echo "no" >&6; }
34498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->getattr() takes a vfsmount" >&5
34499 $as_echo_n "checking whether iops->getattr() takes a vfsmount... " >&6; }
34502 cat confdefs.h
- <<_ACEOF >conftest.c
34505 #include <linux/fs.h>
34508 struct vfsmount *mnt, struct dentry *d,
34512 static const struct inode_operations
34513 iops __attribute__ ((unused)) = {
34514 .getattr = test_getattr,
34530 cat - <<_ACEOF >conftest.h
34535 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34536 echo "obj-m := conftest.o" >build
/Makefile
34538 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34539 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34541 (eval $ac_try) 2>&5
34543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34544 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34546 (eval $ac_try) 2>&5
34548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34549 test $ac_status = 0; }; }; then :
34551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34552 $as_echo "yes" >&6; }
34554 $as_echo "#define HAVE_VFSMOUNT_IOPS_GETATTR 1" >>confdefs.h
34558 $as_echo "$as_me: failed program was:" >&5
34559 sed 's/^/| /' conftest.
$ac_ext >&5
34561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34562 $as_echo "no" >&6; }
34573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_set_flags() exists" >&5
34574 $as_echo_n "checking whether inode_set_flags() exists... " >&6; }
34577 cat confdefs.h
- <<_ACEOF >conftest.c
34580 #include <linux/fs.h>
34586 struct inode inode;
34587 inode_set_flags(&inode, S_IMMUTABLE, S_IMMUTABLE);
34597 cat - <<_ACEOF >conftest.h
34602 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34603 echo "obj-m := conftest.o" >build
/Makefile
34605 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34606 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34608 (eval $ac_try) 2>&5
34610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34611 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34613 (eval $ac_try) 2>&5
34615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34616 test $ac_status = 0; }; }; then :
34618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34619 $as_echo "yes" >&6; }
34621 $as_echo "#define HAVE_INODE_SET_FLAGS 1" >>confdefs.h
34625 $as_echo "$as_me: failed program was:" >&5
34626 sed 's/^/| /' conftest.
$ac_ext >&5
34628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34629 $as_echo "no" >&6; }
34639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uncached_acl_sentinel() exists" >&5
34640 $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
34643 cat confdefs.h
- <<_ACEOF >conftest.c
34646 #include <linux/fs.h>
34652 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
34662 cat - <<_ACEOF >conftest.h
34667 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34668 echo "obj-m := conftest.o" >build
/Makefile
34670 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34671 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34673 (eval $ac_try) 2>&5
34675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34676 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34678 (eval $ac_try) 2>&5
34680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34681 test $ac_status = 0; }; }; then :
34683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34684 $as_echo "yes" >&6; }
34686 $as_echo "#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1" >>confdefs.h
34690 $as_echo "$as_me: failed program was:" >&5
34691 sed 's/^/| /' conftest.
$ac_ext >&5
34693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34694 $as_echo "no" >&6; }
34704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
34705 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
34709 cat confdefs.h
- <<_ACEOF >conftest.c
34712 #include <linux/fs.h>
34714 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
34715 static struct super_operations sops __attribute__ ((unused)) = {
34716 .show_options = show_options,
34732 cat - <<_ACEOF >conftest.h
34737 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34738 echo "obj-m := conftest.o" >build
/Makefile
34740 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34741 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34743 (eval $ac_try) 2>&5
34745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34746 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34748 (eval $ac_try) 2>&5
34750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34751 test $ac_status = 0; }; }; then :
34753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34754 $as_echo "yes" >&6; }
34756 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
34760 $as_echo "$as_me: failed program was:" >&5
34761 sed 's/^/| /' conftest.
$ac_ext >&5
34763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34764 $as_echo "no" >&6; }
34774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
34775 $as_echo_n "checking whether file_inode() is available... " >&6; }
34778 cat confdefs.h
- <<_ACEOF >conftest.c
34781 #include <linux/fs.h>
34787 struct file *f = NULL;
34798 cat - <<_ACEOF >conftest.h
34803 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34804 echo "obj-m := conftest.o" >build
/Makefile
34806 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34807 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34809 (eval $ac_try) 2>&5
34811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34812 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34814 (eval $ac_try) 2>&5
34816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34817 test $ac_status = 0; }; }; then :
34819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34820 $as_echo "yes" >&6; }
34822 $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
34826 $as_echo "$as_me: failed program was:" >&5
34827 sed 's/^/| /' conftest.
$ac_ext >&5
34829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34830 $as_echo "no" >&6; }
34840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_dentry() is available" >&5
34841 $as_echo_n "checking whether file_dentry() is available... " >&6; }
34844 cat confdefs.h
- <<_ACEOF >conftest.c
34847 #include <linux/fs.h>
34853 struct file *f = NULL;
34864 cat - <<_ACEOF >conftest.h
34869 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34870 echo "obj-m := conftest.o" >build
/Makefile
34872 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34873 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34875 (eval $ac_try) 2>&5
34877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34878 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34880 (eval $ac_try) 2>&5
34882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34883 test $ac_status = 0; }; }; then :
34885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34886 $as_echo "yes" >&6; }
34888 $as_echo "#define HAVE_FILE_DENTRY 1" >>confdefs.h
34892 $as_echo "$as_me: failed program was:" >&5
34893 sed 's/^/| /' conftest.
$ac_ext >&5
34895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34896 $as_echo "no" >&6; }
34906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
34907 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
34911 cat confdefs.h
- <<_ACEOF >conftest.c
34914 #include <linux/fs.h>
34916 int test_fsync(struct file *f, struct dentry *dentry, int x)
34919 static const struct file_operations
34920 fops __attribute__ ((unused)) = {
34921 .fsync = test_fsync,
34937 cat - <<_ACEOF >conftest.h
34942 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34943 echo "obj-m := conftest.o" >build
/Makefile
34945 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34946 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34948 (eval $ac_try) 2>&5
34950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34951 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34952 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34953 (eval $ac_try) 2>&5
34955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34956 test $ac_status = 0; }; }; then :
34958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
34959 $as_echo "dentry" >&6; }
34961 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
34965 $as_echo "$as_me: failed program was:" >&5
34966 sed 's/^/| /' conftest.
$ac_ext >&5
34979 cat confdefs.h
- <<_ACEOF >conftest.c
34982 #include <linux/fs.h>
34984 int test_fsync(struct file *f, int x) { return 0; }
34986 static const struct file_operations
34987 fops __attribute__ ((unused)) = {
34988 .fsync = test_fsync,
35004 cat - <<_ACEOF >conftest.h
35009 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35010 echo "obj-m := conftest.o" >build
/Makefile
35012 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35013 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35015 (eval $ac_try) 2>&5
35017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35018 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35020 (eval $ac_try) 2>&5
35022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35023 test $ac_status = 0; }; }; then :
35025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
35026 $as_echo "no dentry" >&6; }
35028 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
35032 $as_echo "$as_me: failed program was:" >&5
35033 sed 's/^/| /' conftest.
$ac_ext >&5
35046 cat confdefs.h
- <<_ACEOF >conftest.c
35049 #include <linux/fs.h>
35051 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
35054 static const struct file_operations
35055 fops __attribute__ ((unused)) = {
35056 .fsync = test_fsync,
35072 cat - <<_ACEOF >conftest.h
35077 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35078 echo "obj-m := conftest.o" >build
/Makefile
35080 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35081 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35083 (eval $ac_try) 2>&5
35085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35086 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35088 (eval $ac_try) 2>&5
35090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35091 test $ac_status = 0; }; }; then :
35093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
35094 $as_echo "range" >&6; }
35096 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
35100 $as_echo "$as_me: failed program was:" >&5
35101 sed 's/^/| /' conftest.
$ac_ext >&5
35113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
35114 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
35117 cat confdefs.h
- <<_ACEOF >conftest.c
35120 #include <linux/fs.h>
35121 void evict_inode (struct inode * t) { return; }
35122 static struct super_operations sops __attribute__ ((unused)) = {
35123 .evict_inode = evict_inode,
35139 cat - <<_ACEOF >conftest.h
35144 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35145 echo "obj-m := conftest.o" >build
/Makefile
35147 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35148 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35150 (eval $ac_try) 2>&5
35152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35153 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35155 (eval $ac_try) 2>&5
35157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35158 test $ac_status = 0; }; }; then :
35160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35161 $as_echo "yes" >&6; }
35163 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
35167 $as_echo "$as_me: failed program was:" >&5
35168 sed 's/^/| /' conftest.
$ac_ext >&5
35170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35171 $as_echo "no" >&6; }
35181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
35182 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
35185 cat confdefs.h
- <<_ACEOF >conftest.c
35188 #include <linux/fs.h>
35190 void dirty_inode(struct inode *a, int b) { return; }
35192 static const struct super_operations
35193 sops __attribute__ ((unused)) = {
35194 .dirty_inode = dirty_inode,
35210 cat - <<_ACEOF >conftest.h
35215 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35216 echo "obj-m := conftest.o" >build
/Makefile
35218 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35219 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35220 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35221 (eval $ac_try) 2>&5
35223 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35224 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35225 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35226 (eval $ac_try) 2>&5
35228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35229 test $ac_status = 0; }; }; then :
35231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35232 $as_echo "yes" >&6; }
35234 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
35238 $as_echo "$as_me: failed program was:" >&5
35239 sed 's/^/| /' conftest.
$ac_ext >&5
35241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35242 $as_echo "no" >&6; }
35252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
35253 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
35256 cat confdefs.h
- <<_ACEOF >conftest.c
35259 #include <linux/fs.h>
35261 int nr_cached_objects(struct super_block *sb) { return 0; }
35263 static const struct super_operations
35264 sops __attribute__ ((unused)) = {
35265 .nr_cached_objects = nr_cached_objects,
35281 cat - <<_ACEOF >conftest.h
35286 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35287 echo "obj-m := conftest.o" >build
/Makefile
35289 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35290 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35291 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35292 (eval $ac_try) 2>&5
35294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35295 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35297 (eval $ac_try) 2>&5
35299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35300 test $ac_status = 0; }; }; then :
35302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35303 $as_echo "yes" >&6; }
35305 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
35309 $as_echo "$as_me: failed program was:" >&5
35310 sed 's/^/| /' conftest.
$ac_ext >&5
35312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35313 $as_echo "no" >&6; }
35323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
35324 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
35327 cat confdefs.h
- <<_ACEOF >conftest.c
35330 #include <linux/fs.h>
35332 void free_cached_objects(struct super_block *sb, int x)
35335 static const struct super_operations
35336 sops __attribute__ ((unused)) = {
35337 .free_cached_objects = free_cached_objects,
35353 cat - <<_ACEOF >conftest.h
35358 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35359 echo "obj-m := conftest.o" >build
/Makefile
35361 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35362 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35364 (eval $ac_try) 2>&5
35366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35367 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35369 (eval $ac_try) 2>&5
35371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35372 test $ac_status = 0; }; }; then :
35374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35375 $as_echo "yes" >&6; }
35377 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
35381 $as_echo "$as_me: failed program was:" >&5
35382 sed 's/^/| /' conftest.
$ac_ext >&5
35384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35385 $as_echo "no" >&6; }
35396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
35397 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
35400 cat confdefs.h
- <<_ACEOF >conftest.c
35403 #include <linux/fs.h>
35405 long test_fallocate(struct file *file, int mode,
35406 loff_t offset, loff_t len) { return 0; }
35408 static const struct file_operations
35409 fops __attribute__ ((unused)) = {
35410 .fallocate = test_fallocate,
35426 cat - <<_ACEOF >conftest.h
35431 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35432 echo "obj-m := conftest.o" >build
/Makefile
35434 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35435 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35437 (eval $ac_try) 2>&5
35439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35440 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35442 (eval $ac_try) 2>&5
35444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35445 test $ac_status = 0; }; }; then :
35447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35448 $as_echo "yes" >&6; }
35450 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
35454 $as_echo "$as_me: failed program was:" >&5
35455 sed 's/^/| /' conftest.
$ac_ext >&5
35457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35458 $as_echo "no" >&6; }
35468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
35469 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
35472 cat confdefs.h
- <<_ACEOF >conftest.c
35475 #include <linux/fs.h>
35477 long test_fallocate(struct inode *inode, int mode,
35478 loff_t offset, loff_t len) { return 0; }
35480 static const struct inode_operations
35481 fops __attribute__ ((unused)) = {
35482 .fallocate = test_fallocate,
35498 cat - <<_ACEOF >conftest.h
35503 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35504 echo "obj-m := conftest.o" >build
/Makefile
35506 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35507 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35509 (eval $ac_try) 2>&5
35511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35512 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35514 (eval $ac_try) 2>&5
35516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35517 test $ac_status = 0; }; }; then :
35519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35520 $as_echo "yes" >&6; }
35522 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
35526 $as_echo "$as_me: failed program was:" >&5
35527 sed 's/^/| /' conftest.
$ac_ext >&5
35529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35530 $as_echo "no" >&6; }
35541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->aio_fsync() exists" >&5
35542 $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
35545 cat confdefs.h
- <<_ACEOF >conftest.c
35548 #include <linux/fs.h>
35550 static const struct file_operations
35551 fops __attribute__ ((unused)) = {
35568 cat - <<_ACEOF >conftest.h
35573 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35574 echo "obj-m := conftest.o" >build
/Makefile
35576 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35577 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35579 (eval $ac_try) 2>&5
35581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35582 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35583 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35584 (eval $ac_try) 2>&5
35586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35587 test $ac_status = 0; }; }; then :
35589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35590 $as_echo "yes" >&6; }
35592 $as_echo "#define HAVE_FILE_AIO_FSYNC 1" >>confdefs.h
35596 $as_echo "$as_me: failed program was:" >&5
35597 sed 's/^/| /' conftest.
$ac_ext >&5
35599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35600 $as_echo "no" >&6; }
35610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
35611 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
35614 cat confdefs.h
- <<_ACEOF >conftest.c
35617 #include <linux/fs.h>
35619 int mkdir(struct inode *inode, struct dentry *dentry,
35620 umode_t umode) { return 0; }
35622 static const struct inode_operations
35623 iops __attribute__ ((unused)) = {
35640 cat - <<_ACEOF >conftest.h
35645 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35646 echo "obj-m := conftest.o" >build
/Makefile
35648 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35649 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35651 (eval $ac_try) 2>&5
35653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35654 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35655 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35656 (eval $ac_try) 2>&5
35658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35659 test $ac_status = 0; }; }; then :
35661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35662 $as_echo "yes" >&6; }
35664 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
35668 $as_echo "$as_me: failed program was:" >&5
35669 sed 's/^/| /' conftest.
$ac_ext >&5
35671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35672 $as_echo "no" >&6; }
35682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5
35683 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
35686 cat confdefs.h
- <<_ACEOF >conftest.c
35689 #include <linux/fs.h>
35691 struct dentry *inode_lookup(struct inode *inode,
35692 struct dentry *dentry, struct nameidata *nidata)
35695 static const struct inode_operations iops
35696 __attribute__ ((unused)) = {
35697 .lookup = inode_lookup,
35713 cat - <<_ACEOF >conftest.h
35718 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35719 echo "obj-m := conftest.o" >build
/Makefile
35721 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35722 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35723 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35724 (eval $ac_try) 2>&5
35726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35727 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35729 (eval $ac_try) 2>&5
35731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35732 test $ac_status = 0; }; }; then :
35734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35735 $as_echo "yes" >&6; }
35737 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
35741 $as_echo "$as_me: failed program was:" >&5
35742 sed 's/^/| /' conftest.
$ac_ext >&5
35744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35745 $as_echo "no" >&6; }
35755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5
35756 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
35759 cat confdefs.h
- <<_ACEOF >conftest.c
35762 #include <linux/fs.h>
35764 #ifdef HAVE_MKDIR_UMODE_T
35765 int inode_create(struct inode *inode ,struct dentry *dentry,
35766 umode_t umode, struct nameidata *nidata) { return 0; }
35768 int inode_create(struct inode *inode,struct dentry *dentry,
35769 int umode, struct nameidata * nidata) { return 0; }
35772 static const struct inode_operations
35773 iops __attribute__ ((unused)) = {
35774 .create = inode_create,
35790 cat - <<_ACEOF >conftest.h
35795 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35796 echo "obj-m := conftest.o" >build
/Makefile
35798 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35799 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35801 (eval $ac_try) 2>&5
35803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35804 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35806 (eval $ac_try) 2>&5
35808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35809 test $ac_status = 0; }; }; then :
35811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35812 $as_echo "yes" >&6; }
35814 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
35818 $as_echo "$as_me: failed program was:" >&5
35819 sed 's/^/| /' conftest.
$ac_ext >&5
35821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35822 $as_echo "no" >&6; }
35832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5
35833 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
35836 cat confdefs.h
- <<_ACEOF >conftest.c
35839 #include <linux/fs.h>
35840 const char *get_link(struct dentry *de, struct inode *ip,
35841 struct delayed_call *done) { return "symlink"; }
35842 static struct inode_operations
35843 iops __attribute__ ((unused)) = {
35844 .get_link = get_link,
35860 cat - <<_ACEOF >conftest.h
35865 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35866 echo "obj-m := conftest.o" >build
/Makefile
35868 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35869 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35871 (eval $ac_try) 2>&5
35873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35874 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35875 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35876 (eval $ac_try) 2>&5
35878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35879 test $ac_status = 0; }; }; then :
35881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35882 $as_echo "yes" >&6; }
35884 $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h
35888 $as_echo "$as_me: failed program was:" >&5
35889 sed 's/^/| /' conftest.
$ac_ext >&5
35891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35892 $as_echo "no" >&6; }
35893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5
35894 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
35897 cat confdefs.h
- <<_ACEOF >conftest.c
35900 #include <linux/fs.h>
35901 const char *get_link(struct dentry *de, struct
35902 inode *ip, void **cookie) { return "symlink"; }
35903 static struct inode_operations
35904 iops __attribute__ ((unused)) = {
35905 .get_link = get_link,
35921 cat - <<_ACEOF >conftest.h
35926 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35927 echo "obj-m := conftest.o" >build
/Makefile
35929 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35930 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35932 (eval $ac_try) 2>&5
35934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35935 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35937 (eval $ac_try) 2>&5
35939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35940 test $ac_status = 0; }; }; then :
35942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35943 $as_echo "yes" >&6; }
35945 $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h
35949 $as_echo "$as_me: failed program was:" >&5
35950 sed 's/^/| /' conftest.
$ac_ext >&5
35952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35953 $as_echo "no" >&6; }
35955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5
35956 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
35959 cat confdefs.h
- <<_ACEOF >conftest.c
35962 #include <linux/fs.h>
35963 const char *follow_link(struct dentry *de,
35964 void **cookie) { return "symlink"; }
35965 static struct inode_operations
35966 iops __attribute__ ((unused)) = {
35967 .follow_link = follow_link,
35983 cat - <<_ACEOF >conftest.h
35988 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35989 echo "obj-m := conftest.o" >build
/Makefile
35991 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35992 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35994 (eval $ac_try) 2>&5
35996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35997 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35999 (eval $ac_try) 2>&5
36001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36002 test $ac_status = 0; }; }; then :
36004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36005 $as_echo "yes" >&6; }
36007 $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h
36011 $as_echo "$as_me: failed program was:" >&5
36012 sed 's/^/| /' conftest.
$ac_ext >&5
36014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36015 $as_echo "no" >&6; }
36016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5
36017 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
36020 cat confdefs.h
- <<_ACEOF >conftest.c
36023 #include <linux/fs.h>
36024 void *follow_link(struct dentry *de, struct
36025 nameidata *nd) { return (void *)NULL; }
36026 static struct inode_operations
36027 iops __attribute__ ((unused)) = {
36028 .follow_link = follow_link,
36044 cat - <<_ACEOF >conftest.h
36049 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36050 echo "obj-m := conftest.o" >build
/Makefile
36052 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36053 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36055 (eval $ac_try) 2>&5
36057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36058 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36060 (eval $ac_try) 2>&5
36062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36063 test $ac_status = 0; }; }; then :
36065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36066 $as_echo "yes" >&6; }
36068 $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h
36072 $as_echo "$as_me: failed program was:" >&5
36073 sed 's/^/| /' conftest.
$ac_ext >&5
36075 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
36109 cat confdefs.h
- <<_ACEOF >conftest.c
36112 #if !defined(HAVE_GET_LINK_DELAYED)
36113 #error "Expecting get_link() delayed done"
36129 cat - <<_ACEOF >conftest.h
36134 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36135 echo "obj-m := conftest.o" >build
/Makefile
36137 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36138 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36140 (eval $ac_try) 2>&5
36142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36143 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36145 (eval $ac_try) 2>&5
36147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36148 test $ac_status = 0; }; }; then :
36151 $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h
36155 $as_echo "$as_me: failed program was:" >&5
36156 sed 's/^/| /' conftest.
$ac_ext >&5
36158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5
36159 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
36162 cat confdefs.h
- <<_ACEOF >conftest.c
36165 #include <linux/fs.h>
36166 void put_link(struct inode *ip, void *cookie)
36168 static struct inode_operations
36169 iops __attribute__ ((unused)) = {
36170 .put_link = put_link,
36186 cat - <<_ACEOF >conftest.h
36191 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36192 echo "obj-m := conftest.o" >build
/Makefile
36194 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36195 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36197 (eval $ac_try) 2>&5
36199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36200 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36202 (eval $ac_try) 2>&5
36204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36205 test $ac_status = 0; }; }; then :
36207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36208 $as_echo "yes" >&6; }
36210 $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h
36214 $as_echo "$as_me: failed program was:" >&5
36215 sed 's/^/| /' conftest.
$ac_ext >&5
36217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36218 $as_echo "no" >&6; }
36219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5
36220 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
36223 cat confdefs.h
- <<_ACEOF >conftest.c
36226 #include <linux/fs.h>
36227 void put_link(struct dentry *de, struct
36228 nameidata *nd, void *ptr) { return; }
36229 static struct inode_operations
36230 iops __attribute__ ((unused)) = {
36231 .put_link = put_link,
36247 cat - <<_ACEOF >conftest.h
36252 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36253 echo "obj-m := conftest.o" >build
/Makefile
36255 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36256 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36258 (eval $ac_try) 2>&5
36260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36261 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36263 (eval $ac_try) 2>&5
36265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36266 test $ac_status = 0; }; }; then :
36268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36269 $as_echo "yes" >&6; }
36271 $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h
36275 $as_echo "$as_me: failed program was:" >&5
36276 sed 's/^/| /' conftest.
$ac_ext >&5
36278 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
36302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i_op->tmpfile() exists" >&5
36303 $as_echo_n "checking whether i_op->tmpfile() exists... " >&6; }
36306 cat confdefs.h
- <<_ACEOF >conftest.c
36309 #include <linux/fs.h>
36310 int tmpfile(struct inode *inode, struct dentry *dentry,
36311 umode_t mode) { return 0; }
36312 static struct inode_operations
36313 iops __attribute__ ((unused)) = {
36314 .tmpfile = tmpfile,
36330 cat - <<_ACEOF >conftest.h
36335 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36336 echo "obj-m := conftest.o" >build
/Makefile
36338 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36339 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36341 (eval $ac_try) 2>&5
36343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36344 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36345 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36346 (eval $ac_try) 2>&5
36348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36349 test $ac_status = 0; }; }; then :
36351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36352 $as_echo "yes" >&6; }
36354 $as_echo "#define HAVE_TMPFILE 1" >>confdefs.h
36358 $as_echo "$as_me: failed program was:" >&5
36359 sed 's/^/| /' conftest.
$ac_ext >&5
36361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36362 $as_echo "no" >&6; }
36372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
36373 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
36376 cat confdefs.h
- <<_ACEOF >conftest.c
36379 #include <linux/fs.h>
36380 void truncate_range(struct inode *inode, loff_t start,
36381 loff_t end) { return; }
36382 static struct inode_operations iops __attribute__ ((unused)) = {
36383 .truncate_range = truncate_range,
36399 cat - <<_ACEOF >conftest.h
36404 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36405 echo "obj-m := conftest.o" >build
/Makefile
36407 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36408 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36410 (eval $ac_try) 2>&5
36412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36413 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36414 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36415 (eval $ac_try) 2>&5
36417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36418 test $ac_status = 0; }; }; then :
36420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36421 $as_echo "yes" >&6; }
36423 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
36427 $as_echo "$as_me: failed program was:" >&5
36428 sed 's/^/| /' conftest.
$ac_ext >&5
36430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36431 $as_echo "no" >&6; }
36441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
36442 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
36445 cat confdefs.h
- <<_ACEOF >conftest.c
36448 #include <linux/dcache.h>
36449 struct vfsmount *d_automount(struct path *p) { return NULL; }
36450 struct dentry_operations dops __attribute__ ((unused)) = {
36451 .d_automount = d_automount,
36467 cat - <<_ACEOF >conftest.h
36472 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36473 echo "obj-m := conftest.o" >build
/Makefile
36475 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36476 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36477 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36478 (eval $ac_try) 2>&5
36480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36481 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36482 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36483 (eval $ac_try) 2>&5
36485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36486 test $ac_status = 0; }; }; then :
36488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36489 $as_echo "yes" >&6; }
36491 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
36495 $as_echo "$as_me: failed program was:" >&5
36496 sed 's/^/| /' conftest.
$ac_ext >&5
36498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36499 $as_echo "no" >&6; }
36509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
36510 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
36513 cat confdefs.h
- <<_ACEOF >conftest.c
36516 #include <linux/exportfs.h>
36517 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
36518 struct inode *parent) { return 0; }
36519 static struct export_operations eops __attribute__ ((unused))={
36520 .encode_fh = encode_fh,
36536 cat - <<_ACEOF >conftest.h
36541 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36542 echo "obj-m := conftest.o" >build
/Makefile
36544 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36545 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36547 (eval $ac_try) 2>&5
36549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36550 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36552 (eval $ac_try) 2>&5
36554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36555 test $ac_status = 0; }; }; then :
36557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36558 $as_echo "yes" >&6; }
36560 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
36564 $as_echo "$as_me: failed program was:" >&5
36565 sed 's/^/| /' conftest.
$ac_ext >&5
36567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36568 $as_echo "no" >&6; }
36578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
36579 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
36582 cat confdefs.h
- <<_ACEOF >conftest.c
36585 #include <linux/exportfs.h>
36586 int commit_metadata(struct inode *inode) { return 0; }
36587 static struct export_operations eops __attribute__ ((unused))={
36588 .commit_metadata = commit_metadata,
36604 cat - <<_ACEOF >conftest.h
36609 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36610 echo "obj-m := conftest.o" >build
/Makefile
36612 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36613 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36615 (eval $ac_try) 2>&5
36617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36618 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36620 (eval $ac_try) 2>&5
36622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36623 test $ac_status = 0; }; }; then :
36625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36626 $as_echo "yes" >&6; }
36628 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
36632 $as_echo "$as_me: failed program was:" >&5
36633 sed 's/^/| /' conftest.
$ac_ext >&5
36635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36636 $as_echo "no" >&6; }
36645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
36646 $as_echo_n "checking whether clear_inode() is available... " >&6; }
36650 cat confdefs.h
- <<_ACEOF >conftest.c
36653 #include <linux/fs.h>
36669 cat - <<_ACEOF >conftest.h
36674 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36675 echo "obj-m := conftest.o" >build
/Makefile
36677 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36678 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36680 (eval $ac_try) 2>&5
36682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36683 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36685 (eval $ac_try) 2>&5
36687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36688 test $ac_status = 0; }; }; then :
36691 $as_echo "$as_me: failed program was:" >&5
36692 sed 's/^/| /' conftest.
$ac_ext >&5
36700 if test $rc -ne 0; then :
36702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36703 $as_echo "no" >&6; }
36706 if test "x$enable_linux_builtin" != xyes
; then
36708 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
36709 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
36711 if test $rc -ne 0; then
36713 for file in fs
/inode.c
; do
36714 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
36715 "$LINUX/$file" 2>/dev
/null
36717 if test $rc -eq 0; then
36722 if test $export -eq 0; then :
36732 if test $rc -ne 0; then :
36734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36735 $as_echo "no" >&6; }
36739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36740 $as_echo "yes" >&6; }
36742 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
36749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setattr_prepare() is available" >&5
36750 $as_echo_n "checking whether setattr_prepare() is available... " >&6; }
36754 cat confdefs.h
- <<_ACEOF >conftest.c
36757 #include <linux/fs.h>
36763 struct dentry *dentry = NULL;
36764 struct iattr *attr = NULL;
36767 error = setattr_prepare(dentry, attr);
36777 cat - <<_ACEOF >conftest.h
36782 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36783 echo "obj-m := conftest.o" >build
/Makefile
36785 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36786 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36788 (eval $ac_try) 2>&5
36790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36791 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36793 (eval $ac_try) 2>&5
36795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36796 test $ac_status = 0; }; }; then :
36799 $as_echo "$as_me: failed program was:" >&5
36800 sed 's/^/| /' conftest.
$ac_ext >&5
36808 if test $rc -ne 0; then :
36810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36811 $as_echo "no" >&6; }
36814 if test "x$enable_linux_builtin" != xyes
; then
36816 grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \
36817 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
36819 if test $rc -ne 0; then
36821 for file in fs
/attr.c
; do
36822 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
36823 "$LINUX/$file" 2>/dev
/null
36825 if test $rc -eq 0; then
36830 if test $export -eq 0; then :
36840 if test $rc -ne 0; then :
36842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36843 $as_echo "no" >&6; }
36847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36848 $as_echo "yes" >&6; }
36850 $as_echo "#define HAVE_SETATTR_PREPARE 1" >>confdefs.h
36857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
36858 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
36862 cat confdefs.h
- <<_ACEOF >conftest.c
36865 #include <linux/fs.h>
36871 insert_inode_locked(NULL);
36881 cat - <<_ACEOF >conftest.h
36886 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36887 echo "obj-m := conftest.o" >build
/Makefile
36889 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36890 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36892 (eval $ac_try) 2>&5
36894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36895 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
36896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36897 (eval $ac_try) 2>&5
36899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36900 test $ac_status = 0; }; }; then :
36903 $as_echo "$as_me: failed program was:" >&5
36904 sed 's/^/| /' conftest.
$ac_ext >&5
36912 if test $rc -ne 0; then :
36914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36915 $as_echo "no" >&6; }
36918 if test "x$enable_linux_builtin" != xyes
; then
36920 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
36921 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
36923 if test $rc -ne 0; then
36925 for file in fs
/inode.c
; do
36926 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
36927 "$LINUX/$file" 2>/dev
/null
36929 if test $rc -eq 0; then
36934 if test $export -eq 0; then :
36944 if test $rc -ne 0; then :
36946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36947 $as_echo "no" >&6; }
36951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36952 $as_echo "yes" >&6; }
36954 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
36961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
36962 $as_echo_n "checking whether d_make_root() is available... " >&6; }
36966 cat confdefs.h
- <<_ACEOF >conftest.c
36969 #include <linux/dcache.h>
36985 cat - <<_ACEOF >conftest.h
36990 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
36991 echo "obj-m := conftest.o" >build
/Makefile
36993 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
36994 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
36995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
36996 (eval $ac_try) 2>&5
36998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
36999 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37001 (eval $ac_try) 2>&5
37003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37004 test $ac_status = 0; }; }; then :
37007 $as_echo "$as_me: failed program was:" >&5
37008 sed 's/^/| /' conftest.
$ac_ext >&5
37016 if test $rc -ne 0; then :
37018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37019 $as_echo "no" >&6; }
37022 if test "x$enable_linux_builtin" != xyes
; then
37024 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
37025 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
37027 if test $rc -ne 0; then
37029 for file in fs
/dcache.c
; do
37030 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
37031 "$LINUX/$file" 2>/dev
/null
37033 if test $rc -eq 0; then
37038 if test $export -eq 0; then :
37048 if test $rc -ne 0; then :
37050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37051 $as_echo "no" >&6; }
37055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37056 $as_echo "yes" >&6; }
37058 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
37065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
37066 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
37070 cat confdefs.h
- <<_ACEOF >conftest.c
37073 #include <linux/dcache.h>
37079 d_obtain_alias(NULL);
37089 cat - <<_ACEOF >conftest.h
37094 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37095 echo "obj-m := conftest.o" >build
/Makefile
37097 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37098 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37100 (eval $ac_try) 2>&5
37102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37103 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37105 (eval $ac_try) 2>&5
37107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37108 test $ac_status = 0; }; }; then :
37111 $as_echo "$as_me: failed program was:" >&5
37112 sed 's/^/| /' conftest.
$ac_ext >&5
37120 if test $rc -ne 0; then :
37122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37123 $as_echo "no" >&6; }
37126 if test "x$enable_linux_builtin" != xyes
; then
37128 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
37129 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
37131 if test $rc -ne 0; then
37133 for file in fs
/dcache.c
; do
37134 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
37135 "$LINUX/$file" 2>/dev
/null
37137 if test $rc -eq 0; then
37142 if test $export -eq 0; then :
37152 if test $rc -ne 0; then :
37154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37155 $as_echo "no" >&6; }
37159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37160 $as_echo "yes" >&6; }
37162 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
37169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
37170 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
37174 cat confdefs.h
- <<_ACEOF >conftest.c
37177 #include <linux/dcache.h>
37183 struct inode *ip = NULL;
37184 d_prune_aliases(ip);
37194 cat - <<_ACEOF >conftest.h
37199 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37200 echo "obj-m := conftest.o" >build
/Makefile
37202 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37203 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37205 (eval $ac_try) 2>&5
37207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37208 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37210 (eval $ac_try) 2>&5
37212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37213 test $ac_status = 0; }; }; then :
37216 $as_echo "$as_me: failed program was:" >&5
37217 sed 's/^/| /' conftest.
$ac_ext >&5
37225 if test $rc -ne 0; then :
37227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37228 $as_echo "no" >&6; }
37231 if test "x$enable_linux_builtin" != xyes
; then
37233 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
37234 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
37236 if test $rc -ne 0; then
37238 for file in fs
/dcache.c
; do
37239 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
37240 "$LINUX/$file" 2>/dev
/null
37242 if test $rc -eq 0; then
37247 if test $export -eq 0; then :
37257 if test $rc -ne 0; then :
37259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37260 $as_echo "no" >&6; }
37264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37265 $as_echo "yes" >&6; }
37267 $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
37274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
37275 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
37279 cat confdefs.h
- <<_ACEOF >conftest.c
37282 #include <linux/dcache.h>
37288 d_set_d_op(NULL, NULL);
37298 cat - <<_ACEOF >conftest.h
37303 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37304 echo "obj-m := conftest.o" >build
/Makefile
37306 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37307 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37308 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37309 (eval $ac_try) 2>&5
37311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37312 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37313 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37314 (eval $ac_try) 2>&5
37316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37317 test $ac_status = 0; }; }; then :
37320 $as_echo "$as_me: failed program was:" >&5
37321 sed 's/^/| /' conftest.
$ac_ext >&5
37329 if test $rc -ne 0; then :
37331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37332 $as_echo "no" >&6; }
37335 if test "x$enable_linux_builtin" != xyes
; then
37337 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
37338 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
37340 if test $rc -ne 0; then
37342 for file in fs
/dcache.c
; do
37343 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
37344 "$LINUX/$file" 2>/dev
/null
37346 if test $rc -eq 0; then
37351 if test $export -eq 0; then :
37361 if test $rc -ne 0; then :
37363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37364 $as_echo "no" >&6; }
37368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37369 $as_echo "yes" >&6; }
37371 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
37379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
37380 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
37383 cat confdefs.h
- <<_ACEOF >conftest.c
37386 #include <linux/dcache.h>
37388 int revalidate (struct dentry *dentry,
37389 struct nameidata *nidata) { return 0; }
37391 static const struct dentry_operations
37392 dops __attribute__ ((unused)) = {
37393 .d_revalidate = revalidate,
37409 cat - <<_ACEOF >conftest.h
37414 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37415 echo "obj-m := conftest.o" >build
/Makefile
37417 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37418 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37420 (eval $ac_try) 2>&5
37422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37423 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37425 (eval $ac_try) 2>&5
37427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37428 test $ac_status = 0; }; }; then :
37430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37431 $as_echo "yes" >&6; }
37433 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
37437 $as_echo "$as_me: failed program was:" >&5
37438 sed 's/^/| /' conftest.
$ac_ext >&5
37440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37441 $as_echo "no" >&6; }
37451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
37452 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
37455 cat confdefs.h
- <<_ACEOF >conftest.c
37458 #include <linux/dcache.h>
37460 const struct dentry_operations test_d_op = {
37461 .d_revalidate = NULL,
37468 struct dentry d __attribute__ ((unused));
37470 d.d_op = &test_d_op;
37480 cat - <<_ACEOF >conftest.h
37485 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37486 echo "obj-m := conftest.o" >build
/Makefile
37488 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37489 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37490 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37491 (eval $ac_try) 2>&5
37493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37494 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37496 (eval $ac_try) 2>&5
37498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37499 test $ac_status = 0; }; }; then :
37501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37502 $as_echo "yes" >&6; }
37504 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
37508 $as_echo "$as_me: failed program was:" >&5
37509 sed 's/^/| /' conftest.
$ac_ext >&5
37511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37512 $as_echo "no" >&6; }
37521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
37522 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
37526 cat confdefs.h
- <<_ACEOF >conftest.c
37529 #include <linux/mm.h>
37535 truncate_setsize(NULL, 0);
37545 cat - <<_ACEOF >conftest.h
37550 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37551 echo "obj-m := conftest.o" >build
/Makefile
37553 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37554 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37556 (eval $ac_try) 2>&5
37558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37559 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37561 (eval $ac_try) 2>&5
37563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37564 test $ac_status = 0; }; }; then :
37567 $as_echo "$as_me: failed program was:" >&5
37568 sed 's/^/| /' conftest.
$ac_ext >&5
37576 if test $rc -ne 0; then :
37578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37579 $as_echo "no" >&6; }
37582 if test "x$enable_linux_builtin" != xyes
; then
37584 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
37585 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
37587 if test $rc -ne 0; then
37589 for file in mm
/truncate.c
; do
37590 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
37591 "$LINUX/$file" 2>/dev
/null
37593 if test $rc -eq 0; then
37598 if test $export -eq 0; then :
37608 if test $rc -ne 0; then :
37610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37611 $as_echo "no" >&6; }
37615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37616 $as_echo "yes" >&6; }
37618 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
37626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
37627 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
37630 cat confdefs.h
- <<_ACEOF >conftest.c
37633 #include <linux/security.h>
37639 struct inode *ip __attribute__ ((unused)) = NULL;
37640 struct inode *dip __attribute__ ((unused)) = NULL;
37641 const struct qstr *str __attribute__ ((unused)) = NULL;
37642 char *name __attribute__ ((unused)) = NULL;
37643 void *value __attribute__ ((unused)) = NULL;
37644 size_t len __attribute__ ((unused)) = 0;
37646 security_inode_init_security(ip, dip, str, &name, &value, &len);
37656 cat - <<_ACEOF >conftest.h
37661 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37662 echo "obj-m := conftest.o" >build
/Makefile
37664 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37665 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37667 (eval $ac_try) 2>&5
37669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37670 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37672 (eval $ac_try) 2>&5
37674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37675 test $ac_status = 0; }; }; then :
37677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37678 $as_echo "yes" >&6; }
37680 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
37684 $as_echo "$as_me: failed program was:" >&5
37685 sed 's/^/| /' conftest.
$ac_ext >&5
37687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37688 $as_echo "no" >&6; }
37698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
37699 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
37702 cat confdefs.h
- <<_ACEOF >conftest.c
37705 #include <linux/security.h>
37711 struct inode *ip __attribute__ ((unused)) = NULL;
37712 struct inode *dip __attribute__ ((unused)) = NULL;
37713 const struct qstr *str __attribute__ ((unused)) = NULL;
37714 initxattrs func __attribute__ ((unused)) = NULL;
37716 security_inode_init_security(ip, dip, str, func, NULL);
37726 cat - <<_ACEOF >conftest.h
37731 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37732 echo "obj-m := conftest.o" >build
/Makefile
37734 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37735 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37737 (eval $ac_try) 2>&5
37739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37740 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37742 (eval $ac_try) 2>&5
37744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37745 test $ac_status = 0; }; }; then :
37747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37748 $as_echo "yes" >&6; }
37750 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
37754 $as_echo "$as_me: failed program was:" >&5
37755 sed 's/^/| /' conftest.
$ac_ext >&5
37757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37758 $as_echo "no" >&6; }
37767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
37768 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
37772 cat confdefs.h
- <<_ACEOF >conftest.c
37775 #include <linux/fs.h>
37781 mount_nodev(NULL, 0, NULL, NULL);
37791 cat - <<_ACEOF >conftest.h
37796 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37797 echo "obj-m := conftest.o" >build
/Makefile
37799 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37800 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37802 (eval $ac_try) 2>&5
37804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37805 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37807 (eval $ac_try) 2>&5
37809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37810 test $ac_status = 0; }; }; then :
37813 $as_echo "$as_me: failed program was:" >&5
37814 sed 's/^/| /' conftest.
$ac_ext >&5
37822 if test $rc -ne 0; then :
37824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37825 $as_echo "no" >&6; }
37828 if test "x$enable_linux_builtin" != xyes
; then
37830 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
37831 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
37833 if test $rc -ne 0; then
37835 for file in fs
/super.c
; do
37836 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
37837 "$LINUX/$file" 2>/dev
/null
37839 if test $rc -eq 0; then
37844 if test $export -eq 0; then :
37854 if test $rc -ne 0; then :
37856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37857 $as_echo "no" >&6; }
37861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37862 $as_echo "yes" >&6; }
37864 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
37872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
37873 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
37876 cat confdefs.h
- <<_ACEOF >conftest.c
37879 #include <linux/fs.h>
37881 int shrink(struct shrinker *s, struct shrink_control *sc)
37884 static const struct super_block
37885 sb __attribute__ ((unused)) = {
37886 .s_shrink.shrink = shrink,
37887 .s_shrink.seeks = DEFAULT_SEEKS,
37888 .s_shrink.batch = 0,
37904 cat - <<_ACEOF >conftest.h
37909 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37910 echo "obj-m := conftest.o" >build
/Makefile
37912 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37913 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37914 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37915 (eval $ac_try) 2>&5
37917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37918 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37920 (eval $ac_try) 2>&5
37922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37923 test $ac_status = 0; }; }; then :
37925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37926 $as_echo "yes" >&6; }
37928 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
37933 $as_echo "$as_me: failed program was:" >&5
37934 sed 's/^/| /' conftest.
$ac_ext >&5
37936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37937 $as_echo "no" >&6; }
37947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
37948 $as_echo_n "checking whether shrink_control has nid... " >&6; }
37951 cat confdefs.h
- <<_ACEOF >conftest.c
37954 #include <linux/fs.h>
37960 struct shrink_control sc __attribute__ ((unused));
37961 unsigned long scnidsize __attribute__ ((unused)) =
37972 cat - <<_ACEOF >conftest.h
37977 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
37978 echo "obj-m := conftest.o" >build
/Makefile
37980 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
37981 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
37982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37983 (eval $ac_try) 2>&5
37985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37986 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
37987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
37988 (eval $ac_try) 2>&5
37990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
37991 test $ac_status = 0; }; }; then :
37993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37994 $as_echo "yes" >&6; }
37996 $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
38000 $as_echo "$as_me: failed program was:" >&5
38001 sed 's/^/| /' conftest.
$ac_ext >&5
38003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38004 $as_echo "no" >&6; }
38014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
38015 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
38018 cat confdefs.h
- <<_ACEOF >conftest.c
38021 #include <linux/fs.h>
38027 struct super_block sb __attribute__ ((unused));
38029 INIT_LIST_HEAD(&sb.s_instances);
38039 cat - <<_ACEOF >conftest.h
38044 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38045 echo "obj-m := conftest.o" >build
/Makefile
38047 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38048 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38049 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38050 (eval $ac_try) 2>&5
38052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38053 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38055 (eval $ac_try) 2>&5
38057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38058 test $ac_status = 0; }; }; then :
38060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38061 $as_echo "yes" >&6; }
38063 $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
38067 $as_echo "$as_me: failed program was:" >&5
38068 sed 's/^/| /' conftest.
$ac_ext >&5
38070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38071 $as_echo "no" >&6; }
38080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
38081 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
38084 cat confdefs.h
- <<_ACEOF >conftest.c
38087 #include <linux/fs.h>
38093 struct super_block sb __attribute__ ((unused));
38104 cat - <<_ACEOF >conftest.h
38109 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38110 echo "obj-m := conftest.o" >build
/Makefile
38112 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38113 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38115 (eval $ac_try) 2>&5
38117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38118 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38119 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38120 (eval $ac_try) 2>&5
38122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38123 test $ac_status = 0; }; }; then :
38125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38126 $as_echo "yes" >&6; }
38128 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
38132 $as_echo "$as_me: failed program was:" >&5
38133 sed 's/^/| /' conftest.
$ac_ext >&5
38135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38136 $as_echo "no" >&6; }
38146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_setup_bdi_name() exists" >&5
38147 $as_echo_n "checking whether super_setup_bdi_name() exists... " >&6; }
38151 cat confdefs.h
- <<_ACEOF >conftest.c
38154 #include <linux/fs.h>
38155 struct super_block sb;
38161 char *name = "bdi";
38162 atomic_long_t zfs_bdi_seq;
38163 int error __attribute__((unused)) =
38164 super_setup_bdi_name(&sb, "%.28s-%ld", name, atomic_long_inc_return(&zfs_bdi_seq));
38174 cat - <<_ACEOF >conftest.h
38179 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38180 echo "obj-m := conftest.o" >build
/Makefile
38182 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38183 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38185 (eval $ac_try) 2>&5
38187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38188 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38189 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38190 (eval $ac_try) 2>&5
38192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38193 test $ac_status = 0; }; }; then :
38196 $as_echo "$as_me: failed program was:" >&5
38197 sed 's/^/| /' conftest.
$ac_ext >&5
38205 if test $rc -ne 0; then :
38207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38208 $as_echo "no" >&6; }
38209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
38210 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
38214 cat confdefs.h
- <<_ACEOF >conftest.c
38217 #include <linux/backing-dev.h>
38218 struct backing_dev_info bdi;
38224 char *name = "bdi";
38225 int error __attribute__((unused)) =
38226 bdi_setup_and_register(&bdi, name);
38236 cat - <<_ACEOF >conftest.h
38241 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38242 echo "obj-m := conftest.o" >build
/Makefile
38244 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38245 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38247 (eval $ac_try) 2>&5
38249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38250 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38252 (eval $ac_try) 2>&5
38254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38255 test $ac_status = 0; }; }; then :
38258 $as_echo "$as_me: failed program was:" >&5
38259 sed 's/^/| /' conftest.
$ac_ext >&5
38267 if test $rc -ne 0; then :
38269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38270 $as_echo "no" >&6; }
38271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
38272 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
38276 cat confdefs.h
- <<_ACEOF >conftest.c
38279 #include <linux/backing-dev.h>
38280 struct backing_dev_info bdi;
38286 char *name = "bdi";
38287 unsigned int cap = BDI_CAP_MAP_COPY;
38288 int error __attribute__((unused)) =
38289 bdi_setup_and_register(&bdi, name, cap);
38299 cat - <<_ACEOF >conftest.h
38304 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38305 echo "obj-m := conftest.o" >build
/Makefile
38307 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38308 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38310 (eval $ac_try) 2>&5
38312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38313 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38315 (eval $ac_try) 2>&5
38317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38318 test $ac_status = 0; }; }; then :
38321 $as_echo "$as_me: failed program was:" >&5
38322 sed 's/^/| /' conftest.
$ac_ext >&5
38330 if test $rc -ne 0; then :
38332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38333 $as_echo "no" >&6; }
38336 if test "x$enable_linux_builtin" != xyes
; then
38338 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38339 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
38341 if test $rc -ne 0; then
38343 for file in mm
/backing-dev.c
; do
38344 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38345 "$LINUX/$file" 2>/dev
/null
38347 if test $rc -eq 0; then
38352 if test $export -eq 0; then :
38362 if test $rc -ne 0; then :
38364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38365 $as_echo "no" >&6; }
38369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38370 $as_echo "yes" >&6; }
38372 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38380 if test "x$enable_linux_builtin" != xyes
; then
38382 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38383 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
38385 if test $rc -ne 0; then
38387 for file in mm
/backing-dev.c
; do
38388 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38389 "$LINUX/$file" 2>/dev
/null
38391 if test $rc -eq 0; then
38396 if test $export -eq 0; then :
38406 if test $rc -ne 0; then :
38408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38409 $as_echo "no" >&6; }
38410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
38411 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
38415 cat confdefs.h
- <<_ACEOF >conftest.c
38418 #include <linux/backing-dev.h>
38419 struct backing_dev_info bdi;
38425 char *name = "bdi";
38426 unsigned int cap = BDI_CAP_MAP_COPY;
38427 int error __attribute__((unused)) =
38428 bdi_setup_and_register(&bdi, name, cap);
38438 cat - <<_ACEOF >conftest.h
38443 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38444 echo "obj-m := conftest.o" >build
/Makefile
38446 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38447 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38449 (eval $ac_try) 2>&5
38451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38452 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38454 (eval $ac_try) 2>&5
38456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38457 test $ac_status = 0; }; }; then :
38460 $as_echo "$as_me: failed program was:" >&5
38461 sed 's/^/| /' conftest.
$ac_ext >&5
38469 if test $rc -ne 0; then :
38471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38472 $as_echo "no" >&6; }
38475 if test "x$enable_linux_builtin" != xyes
; then
38477 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38478 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
38480 if test $rc -ne 0; then
38482 for file in mm
/backing-dev.c
; do
38483 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38484 "$LINUX/$file" 2>/dev
/null
38486 if test $rc -eq 0; then
38491 if test $export -eq 0; then :
38501 if test $rc -ne 0; then :
38503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38504 $as_echo "no" >&6; }
38508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38509 $as_echo "yes" >&6; }
38511 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38521 $as_echo "yes" >&6; }
38523 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38531 if test "x$enable_linux_builtin" != xyes
; then
38533 grep -q -E '[[:space:]]super_setup_bdi_name[[:space:]]' \
38534 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
38536 if test $rc -ne 0; then
38538 for file in fs
/super.c
; do
38539 grep -q -E "EXPORT_SYMBOL.*(super_setup_bdi_name)" \
38540 "$LINUX/$file" 2>/dev
/null
38542 if test $rc -eq 0; then
38547 if test $export -eq 0; then :
38557 if test $rc -ne 0; then :
38559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38560 $as_echo "no" >&6; }
38561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
38562 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
38566 cat confdefs.h
- <<_ACEOF >conftest.c
38569 #include <linux/backing-dev.h>
38570 struct backing_dev_info bdi;
38576 char *name = "bdi";
38577 int error __attribute__((unused)) =
38578 bdi_setup_and_register(&bdi, name);
38588 cat - <<_ACEOF >conftest.h
38593 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38594 echo "obj-m := conftest.o" >build
/Makefile
38596 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38597 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38598 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38599 (eval $ac_try) 2>&5
38601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38602 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38603 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38604 (eval $ac_try) 2>&5
38606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38607 test $ac_status = 0; }; }; then :
38610 $as_echo "$as_me: failed program was:" >&5
38611 sed 's/^/| /' conftest.
$ac_ext >&5
38619 if test $rc -ne 0; then :
38621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38622 $as_echo "no" >&6; }
38623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
38624 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
38628 cat confdefs.h
- <<_ACEOF >conftest.c
38631 #include <linux/backing-dev.h>
38632 struct backing_dev_info bdi;
38638 char *name = "bdi";
38639 unsigned int cap = BDI_CAP_MAP_COPY;
38640 int error __attribute__((unused)) =
38641 bdi_setup_and_register(&bdi, name, cap);
38651 cat - <<_ACEOF >conftest.h
38656 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38657 echo "obj-m := conftest.o" >build
/Makefile
38659 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38660 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38662 (eval $ac_try) 2>&5
38664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38665 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38667 (eval $ac_try) 2>&5
38669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38670 test $ac_status = 0; }; }; then :
38673 $as_echo "$as_me: failed program was:" >&5
38674 sed 's/^/| /' conftest.
$ac_ext >&5
38682 if test $rc -ne 0; then :
38684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38685 $as_echo "no" >&6; }
38688 if test "x$enable_linux_builtin" != xyes
; then
38690 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38691 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
38693 if test $rc -ne 0; then
38695 for file in mm
/backing-dev.c
; do
38696 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38697 "$LINUX/$file" 2>/dev
/null
38699 if test $rc -eq 0; then
38704 if test $export -eq 0; then :
38714 if test $rc -ne 0; then :
38716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38717 $as_echo "no" >&6; }
38721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38722 $as_echo "yes" >&6; }
38724 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38732 if test "x$enable_linux_builtin" != xyes
; then
38734 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38735 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
38737 if test $rc -ne 0; then
38739 for file in mm
/backing-dev.c
; do
38740 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38741 "$LINUX/$file" 2>/dev
/null
38743 if test $rc -eq 0; then
38748 if test $export -eq 0; then :
38758 if test $rc -ne 0; then :
38760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38761 $as_echo "no" >&6; }
38762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
38763 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
38767 cat confdefs.h
- <<_ACEOF >conftest.c
38770 #include <linux/backing-dev.h>
38771 struct backing_dev_info bdi;
38777 char *name = "bdi";
38778 unsigned int cap = BDI_CAP_MAP_COPY;
38779 int error __attribute__((unused)) =
38780 bdi_setup_and_register(&bdi, name, cap);
38790 cat - <<_ACEOF >conftest.h
38795 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38796 echo "obj-m := conftest.o" >build
/Makefile
38798 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38799 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38801 (eval $ac_try) 2>&5
38803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38804 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38806 (eval $ac_try) 2>&5
38808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38809 test $ac_status = 0; }; }; then :
38812 $as_echo "$as_me: failed program was:" >&5
38813 sed 's/^/| /' conftest.
$ac_ext >&5
38821 if test $rc -ne 0; then :
38823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38824 $as_echo "no" >&6; }
38827 if test "x$enable_linux_builtin" != xyes
; then
38829 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
38830 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
38832 if test $rc -ne 0; then
38834 for file in mm
/backing-dev.c
; do
38835 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
38836 "$LINUX/$file" 2>/dev
/null
38838 if test $rc -eq 0; then
38843 if test $export -eq 0; then :
38853 if test $rc -ne 0; then :
38855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38856 $as_echo "no" >&6; }
38860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38861 $as_echo "yes" >&6; }
38863 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38873 $as_echo "yes" >&6; }
38875 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
38884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38885 $as_echo "yes" >&6; }
38887 $as_echo "#define HAVE_SUPER_SETUP_BDI_NAME 1" >>confdefs.h
38895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
38896 $as_echo_n "checking whether set_nlink() is available... " >&6; }
38899 cat confdefs.h
- <<_ACEOF >conftest.c
38902 #include <linux/fs.h>
38909 unsigned int link = 0;
38910 (void) set_nlink(&node, link);
38920 cat - <<_ACEOF >conftest.h
38925 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38926 echo "obj-m := conftest.o" >build
/Makefile
38928 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
38929 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
38930 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38931 (eval $ac_try) 2>&5
38933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38934 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
38935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
38936 (eval $ac_try) 2>&5
38938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
38939 test $ac_status = 0; }; }; then :
38941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38942 $as_echo "yes" >&6; }
38944 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
38948 $as_echo "$as_me: failed program was:" >&5
38949 sed 's/^/| /' conftest.
$ac_ext >&5
38951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38952 $as_echo "no" >&6; }
38962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
38963 $as_echo_n "checking whether elevator_change() is available... " >&6; }
38964 tmp_flags
="$EXTRA_KCFLAGS"
38965 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
38968 cat confdefs.h
- <<_ACEOF >conftest.c
38971 #include <linux/blkdev.h>
38972 #include <linux/elevator.h>
38979 struct request_queue *q = NULL;
38980 char *elevator = NULL;
38981 ret = elevator_change(q, elevator);
38991 cat - <<_ACEOF >conftest.h
38996 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
38997 echo "obj-m := conftest.o" >build
/Makefile
38999 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39000 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39002 (eval $ac_try) 2>&5
39004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39005 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39006 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39007 (eval $ac_try) 2>&5
39009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39010 test $ac_status = 0; }; }; then :
39012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39013 $as_echo "yes" >&6; }
39015 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
39019 $as_echo "$as_me: failed program was:" >&5
39020 sed 's/^/| /' conftest.
$ac_ext >&5
39022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39023 $as_echo "no" >&6; }
39031 EXTRA_KCFLAGS
="$tmp_flags"
39033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
39034 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
39037 cat confdefs.h
- <<_ACEOF >conftest.c
39040 #include <linux/fs.h>
39046 struct file_system_type *type = NULL;
39047 int (*test)(struct super_block *,void *) = NULL;
39048 int (*set)(struct super_block *,void *) = NULL;
39051 (void) sget(type, test, set, flags, data);
39061 cat - <<_ACEOF >conftest.h
39066 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39067 echo "obj-m := conftest.o" >build
/Makefile
39069 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39070 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39071 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39072 (eval $ac_try) 2>&5
39074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39075 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39077 (eval $ac_try) 2>&5
39079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39080 test $ac_status = 0; }; }; then :
39082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39083 $as_echo "yes" >&6; }
39085 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
39089 $as_echo "$as_me: failed program was:" >&5
39090 sed 's/^/| /' conftest.
$ac_ext >&5
39092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39093 $as_echo "no" >&6; }
39102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
39103 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
39107 cat confdefs.h
- <<_ACEOF >conftest.c
39110 #include <linux/fs.h>
39116 struct file *fp __attribute__ ((unused)) = NULL;
39117 struct inode *ip __attribute__ ((unused)) = NULL;
39118 loff_t offset __attribute__ ((unused)) = 0;
39119 loff_t maxsize __attribute__ ((unused)) = 0;
39121 lseek_execute(fp, ip, offset, maxsize);
39131 cat - <<_ACEOF >conftest.h
39136 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39137 echo "obj-m := conftest.o" >build
/Makefile
39139 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39140 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39141 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39142 (eval $ac_try) 2>&5
39144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39145 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39146 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39147 (eval $ac_try) 2>&5
39149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39150 test $ac_status = 0; }; }; then :
39153 $as_echo "$as_me: failed program was:" >&5
39154 sed 's/^/| /' conftest.
$ac_ext >&5
39162 if test $rc -ne 0; then :
39164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39165 $as_echo "no" >&6; }
39168 if test "x$enable_linux_builtin" != xyes
; then
39170 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
39171 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
39173 if test $rc -ne 0; then
39175 for file in fs
/read_write.c
; do
39176 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
39177 "$LINUX/$file" 2>/dev
/null
39179 if test $rc -eq 0; then
39184 if test $export -eq 0; then :
39194 if test $rc -ne 0; then :
39196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39197 $as_echo "no" >&6; }
39201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39202 $as_echo "yes" >&6; }
39204 $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
39212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate_shared() is available" >&5
39213 $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
39216 cat confdefs.h
- <<_ACEOF >conftest.c
39219 #include <linux/fs.h>
39220 int iterate(struct file *filp, struct dir_context * context)
39223 static const struct file_operations fops
39224 __attribute__ ((unused)) = {
39225 .iterate_shared = iterate,
39241 cat - <<_ACEOF >conftest.h
39246 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39247 echo "obj-m := conftest.o" >build
/Makefile
39249 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39250 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39252 (eval $ac_try) 2>&5
39254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39255 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39257 (eval $ac_try) 2>&5
39259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39260 test $ac_status = 0; }; }; then :
39262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39263 $as_echo "yes" >&6; }
39265 $as_echo "#define HAVE_VFS_ITERATE_SHARED 1" >>confdefs.h
39269 $as_echo "$as_me: failed program was:" >&5
39270 sed 's/^/| /' conftest.
$ac_ext >&5
39272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39273 $as_echo "no" >&6; }
39275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
39276 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
39279 cat confdefs.h
- <<_ACEOF >conftest.c
39282 #include <linux/fs.h>
39283 int iterate(struct file *filp, struct dir_context * context)
39286 static const struct file_operations fops
39287 __attribute__ ((unused)) = {
39288 .iterate = iterate,
39304 cat - <<_ACEOF >conftest.h
39309 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39310 echo "obj-m := conftest.o" >build
/Makefile
39312 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39313 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39315 (eval $ac_try) 2>&5
39317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39318 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39320 (eval $ac_try) 2>&5
39322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39323 test $ac_status = 0; }; }; then :
39325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39326 $as_echo "yes" >&6; }
39328 $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
39332 $as_echo "$as_me: failed program was:" >&5
39333 sed 's/^/| /' conftest.
$ac_ext >&5
39335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39336 $as_echo "no" >&6; }
39338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
39339 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
39342 cat confdefs.h
- <<_ACEOF >conftest.c
39345 #include <linux/fs.h>
39346 int readdir(struct file *filp, void *entry, filldir_t func)
39349 static const struct file_operations fops
39350 __attribute__ ((unused)) = {
39351 .readdir = readdir,
39367 cat - <<_ACEOF >conftest.h
39372 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39373 echo "obj-m := conftest.o" >build
/Makefile
39375 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39376 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39378 (eval $ac_try) 2>&5
39380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39381 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39383 (eval $ac_try) 2>&5
39385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39386 test $ac_status = 0; }; }; then :
39388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39389 $as_echo "yes" >&6; }
39391 $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
39395 $as_echo "$as_me: failed program was:" >&5
39396 sed 's/^/| /' conftest.
$ac_ext >&5
39398 as_fn_error $?
"no; file a bug report with ZFSOnLinux" "$LINENO" 5
39421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
39422 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
39425 cat confdefs.h
- <<_ACEOF >conftest.c
39428 #include <linux/fs.h>
39430 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
39432 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
39435 static const struct file_operations
39436 fops __attribute__ ((unused)) = {
39437 .read_iter = test_read,
39438 .write_iter = test_write,
39454 cat - <<_ACEOF >conftest.h
39459 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39460 echo "obj-m := conftest.o" >build
/Makefile
39462 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39463 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39465 (eval $ac_try) 2>&5
39467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39468 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
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; }; }; then :
39475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39476 $as_echo "yes" >&6; }
39478 $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
39481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether new_sync_read() is available" >&5
39482 $as_echo_n "checking whether new_sync_read() is available... " >&6; }
39485 cat confdefs.h
- <<_ACEOF >conftest.c
39488 #include <linux/fs.h>
39494 new_sync_read(NULL, NULL, 0, NULL);
39504 cat - <<_ACEOF >conftest.h
39509 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39510 echo "obj-m := conftest.o" >build
/Makefile
39512 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39513 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39515 (eval $ac_try) 2>&5
39517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39518 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39519 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39520 (eval $ac_try) 2>&5
39522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39523 test $ac_status = 0; }; }; then :
39525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39526 $as_echo "yes" >&6; }
39528 $as_echo "#define HAVE_NEW_SYNC_READ 1" >>confdefs.h
39532 $as_echo "$as_me: failed program was:" >&5
39533 sed 's/^/| /' conftest.
$ac_ext >&5
39535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39536 $as_echo "no" >&6; }
39547 $as_echo "$as_me: failed program was:" >&5
39548 sed 's/^/| /' conftest.
$ac_ext >&5
39550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39551 $as_echo "no" >&6; }
39560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5
39561 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
39564 cat confdefs.h
- <<_ACEOF >conftest.c
39567 #include <linux/fs.h>
39574 struct kiocb *iocb = NULL;
39575 struct iov_iter *iov = NULL;
39576 generic_write_checks(iocb, iov);
39586 cat - <<_ACEOF >conftest.h
39591 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39592 echo "obj-m := conftest.o" >build
/Makefile
39594 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39595 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39597 (eval $ac_try) 2>&5
39599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39600 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39602 (eval $ac_try) 2>&5
39604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39605 test $ac_status = 0; }; }; then :
39607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39608 $as_echo "yes" >&6; }
39610 $as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h
39614 $as_echo "$as_me: failed program was:" >&5
39615 sed 's/^/| /' conftest.
$ac_ext >&5
39617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39618 $as_echo "no" >&6; }
39628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5
39629 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
39632 cat confdefs.h
- <<_ACEOF >conftest.c
39635 #include <linux/pagemap.h>
39642 kmap_atomic(&page);
39652 cat - <<_ACEOF >conftest.h
39657 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39658 echo "obj-m := conftest.o" >build
/Makefile
39660 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39661 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39663 (eval $ac_try) 2>&5
39665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39666 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39668 (eval $ac_try) 2>&5
39670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39671 test $ac_status = 0; }; }; then :
39673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39674 $as_echo "yes" >&6; }
39676 $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h
39680 $as_echo "$as_me: failed program was:" >&5
39681 sed 's/^/| /' conftest.
$ac_ext >&5
39683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39684 $as_echo "no" >&6; }
39694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5
39695 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
39698 cat confdefs.h
- <<_ACEOF >conftest.c
39701 #include <linux/namei.h>
39707 struct path *p = NULL;
39708 follow_down_one(p);
39718 cat - <<_ACEOF >conftest.h
39723 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39724 echo "obj-m := conftest.o" >build
/Makefile
39726 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39727 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39729 (eval $ac_try) 2>&5
39731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39732 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39734 (eval $ac_try) 2>&5
39736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39737 test $ac_status = 0; }; }; then :
39739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39740 $as_echo "yes" >&6; }
39742 $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h
39746 $as_echo "$as_me: failed program was:" >&5
39747 sed 's/^/| /' conftest.
$ac_ext >&5
39749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39750 $as_echo "no" >&6; }
39760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5
39761 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
39764 cat confdefs.h
- <<_ACEOF >conftest.c
39767 #include <linux/blkdev.h>
39769 int make_request(struct request_queue *q, struct bio *bio)
39778 blk_queue_make_request(NULL, &make_request);
39788 cat - <<_ACEOF >conftest.h
39793 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39794 echo "obj-m := conftest.o" >build
/Makefile
39796 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39797 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39799 (eval $ac_try) 2>&5
39801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39802 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39804 (eval $ac_try) 2>&5
39806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39807 test $ac_status = 0; }; }; then :
39809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39810 $as_echo "yes" >&6; }
39812 $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h
39815 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h
39819 $as_echo "$as_me: failed program was:" >&5
39820 sed 's/^/| /' conftest.
$ac_ext >&5
39822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39823 $as_echo "no" >&6; }
39824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5
39825 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
39828 cat confdefs.h
- <<_ACEOF >conftest.c
39831 #include <linux/blkdev.h>
39833 void make_request(struct request_queue *q, struct bio *bio)
39842 blk_queue_make_request(NULL, &make_request);
39852 cat - <<_ACEOF >conftest.h
39857 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39858 echo "obj-m := conftest.o" >build
/Makefile
39860 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39861 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39862 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39863 (eval $ac_try) 2>&5
39865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39866 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39868 (eval $ac_try) 2>&5
39870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39871 test $ac_status = 0; }; }; then :
39873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39874 $as_echo "yes" >&6; }
39876 $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h
39880 $as_echo "$as_me: failed program was:" >&5
39881 sed 's/^/| /' conftest.
$ac_ext >&5
39883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39884 $as_echo "no" >&6; }
39885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5
39886 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
39889 cat confdefs.h
- <<_ACEOF >conftest.c
39892 #include <linux/blkdev.h>
39894 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
39896 return (BLK_QC_T_NONE);
39903 blk_queue_make_request(NULL, &make_request);
39913 cat - <<_ACEOF >conftest.h
39918 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
39919 echo "obj-m := conftest.o" >build
/Makefile
39921 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
39922 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
39923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39924 (eval $ac_try) 2>&5
39926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39927 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
39928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
39929 (eval $ac_try) 2>&5
39931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
39932 test $ac_status = 0; }; }; then :
39934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39935 $as_echo "yes" >&6; }
39937 $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h
39940 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h
39944 $as_echo "$as_me: failed program was:" >&5
39945 sed 's/^/| /' conftest.
$ac_ext >&5
39947 as_fn_error $?
"no - Please file a bug report at
39948 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
39972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 3 arg generic IO accounting symbols are available" >&5
39973 $as_echo_n "checking whether 3 arg generic IO accounting symbols are available... " >&6; }
39977 cat confdefs.h
- <<_ACEOF >conftest.c
39980 #include <linux/bio.h>
39982 void (*generic_start_io_acct_f)(int, unsigned long,
39983 struct hd_struct *) = &generic_start_io_acct;
39984 void (*generic_end_io_acct_f)(int, struct hd_struct *,
39985 unsigned long) = &generic_end_io_acct;
39991 generic_start_io_acct(0, 0, NULL);
39992 generic_end_io_acct(0, NULL, 0);
40002 cat - <<_ACEOF >conftest.h
40007 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40008 echo "obj-m := conftest.o" >build
/Makefile
40010 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40011 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40013 (eval $ac_try) 2>&5
40015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40016 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40018 (eval $ac_try) 2>&5
40020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40021 test $ac_status = 0; }; }; then :
40024 $as_echo "$as_me: failed program was:" >&5
40025 sed 's/^/| /' conftest.
$ac_ext >&5
40033 if test $rc -ne 0; then :
40035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40036 $as_echo "no" >&6; }
40039 if test "x$enable_linux_builtin" != xyes
; then
40041 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
40042 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
40044 if test $rc -ne 0; then
40046 for file in block
/bio.c
; do
40047 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
40048 "$LINUX/$file" 2>/dev
/null
40050 if test $rc -eq 0; then
40055 if test $export -eq 0; then :
40065 if test $rc -ne 0; then :
40067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40068 $as_echo "no" >&6; }
40072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40073 $as_echo "yes" >&6; }
40075 $as_echo "#define HAVE_GENERIC_IO_ACCT_3ARG 1" >>confdefs.h
40083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 4 arg generic IO accounting symbols are available" >&5
40084 $as_echo_n "checking whether 4 arg generic IO accounting symbols are available... " >&6; }
40088 cat confdefs.h
- <<_ACEOF >conftest.c
40091 #include <linux/bio.h>
40093 void (*generic_start_io_acct_f)(struct request_queue *, int,
40094 unsigned long, struct hd_struct *) = &generic_start_io_acct;
40095 void (*generic_end_io_acct_f)(struct request_queue *, int,
40096 struct hd_struct *, unsigned long) = &generic_end_io_acct;
40102 generic_start_io_acct(NULL, 0, 0, NULL);
40103 generic_end_io_acct(NULL, 0, NULL, 0);
40113 cat - <<_ACEOF >conftest.h
40118 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40119 echo "obj-m := conftest.o" >build
/Makefile
40121 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40122 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40124 (eval $ac_try) 2>&5
40126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40127 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40128 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40129 (eval $ac_try) 2>&5
40131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40132 test $ac_status = 0; }; }; then :
40135 $as_echo "$as_me: failed program was:" >&5
40136 sed 's/^/| /' conftest.
$ac_ext >&5
40144 if test $rc -ne 0; then :
40146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40147 $as_echo "no" >&6; }
40150 if test "x$enable_linux_builtin" != xyes
; then
40152 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
40153 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
40155 if test $rc -ne 0; then
40157 for file in block
/bio.c
; do
40158 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
40159 "$LINUX/$file" 2>/dev
/null
40161 if test $rc -eq 0; then
40166 if test $export -eq 0; then :
40176 if test $rc -ne 0; then :
40178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40179 $as_echo "no" >&6; }
40183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40184 $as_echo "yes" >&6; }
40186 $as_echo "#define HAVE_GENERIC_IO_ACCT_4ARG 1" >>confdefs.h
40194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm/fpu/api.h exists" >&5
40195 $as_echo_n "checking whether asm/fpu/api.h exists... " >&6; }
40198 cat confdefs.h
- <<_ACEOF >conftest.c
40201 #include <linux/kernel.h>
40202 #include <asm/fpu/api.h>
40208 __kernel_fpu_begin();
40218 cat - <<_ACEOF >conftest.h
40223 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40224 echo "obj-m := conftest.o" >build
/Makefile
40226 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40227 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40229 (eval $ac_try) 2>&5
40231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40232 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40234 (eval $ac_try) 2>&5
40236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40237 test $ac_status = 0; }; }; then :
40239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40240 $as_echo "yes" >&6; }
40242 $as_echo "#define HAVE_FPU_API_H 1" >>confdefs.h
40246 $as_echo "$as_me: failed program was:" >&5
40247 sed 's/^/| /' conftest.
$ac_ext >&5
40249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40250 $as_echo "no" >&6; }
40260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether i_(uid|gid)_(read|write) exist" >&5
40261 $as_echo_n "checking whether i_(uid|gid)_(read|write) exist... " >&6; }
40264 cat confdefs.h
- <<_ACEOF >conftest.c
40267 #include <linux/fs.h>
40273 struct inode *ip = NULL;
40274 (void) i_uid_read(ip);
40284 cat - <<_ACEOF >conftest.h
40289 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40290 echo "obj-m := conftest.o" >build
/Makefile
40292 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40293 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40295 (eval $ac_try) 2>&5
40297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40298 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40300 (eval $ac_try) 2>&5
40302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40303 test $ac_status = 0; }; }; then :
40305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40306 $as_echo "yes" >&6; }
40308 $as_echo "#define HAVE_KUID_HELPERS 1" >>confdefs.h
40312 $as_echo "$as_me: failed program was:" >&5
40313 sed 's/^/| /' conftest.
$ac_ext >&5
40315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40316 $as_echo "no" >&6; }
40326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether module_param_call() is hardened" >&5
40327 $as_echo_n "checking whether module_param_call() is hardened... " >&6; }
40330 cat confdefs.h
- <<_ACEOF >conftest.c
40333 #include <linux/module.h>
40334 #include <linux/moduleparam.h>
40336 int param_get(char *b, const struct kernel_param *kp)
40341 int param_set(const char *b, const struct kernel_param *kp)
40346 module_param_call(p, param_set, param_get, NULL, 0644);
40361 cat - <<_ACEOF >conftest.h
40366 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40367 echo "obj-m := conftest.o" >build
/Makefile
40369 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40370 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40372 (eval $ac_try) 2>&5
40374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40375 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40376 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40377 (eval $ac_try) 2>&5
40379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40380 test $ac_status = 0; }; }; then :
40382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40383 $as_echo "yes" >&6; }
40385 $as_echo "#define MODULE_PARAM_CALL_CONST 1" >>confdefs.h
40389 $as_echo "$as_me: failed program was:" >&5
40390 sed 's/^/| /' conftest.
$ac_ext >&5
40392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40393 $as_echo "no" >&6; }
40403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->rename() wants flags" >&5
40404 $as_echo_n "checking whether iops->rename() wants flags... " >&6; }
40407 cat confdefs.h
- <<_ACEOF >conftest.c
40410 #include <linux/fs.h>
40411 int rename_fn(struct inode *sip, struct dentry *sdp,
40412 struct inode *tip, struct dentry *tdp,
40413 unsigned int flags) { return 0; }
40415 static const struct inode_operations
40416 iops __attribute__ ((unused)) = {
40417 .rename = rename_fn,
40433 cat - <<_ACEOF >conftest.h
40438 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40439 echo "obj-m := conftest.o" >build
/Makefile
40441 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40442 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40444 (eval $ac_try) 2>&5
40446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40447 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40449 (eval $ac_try) 2>&5
40451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40452 test $ac_status = 0; }; }; then :
40454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40455 $as_echo "yes" >&6; }
40457 $as_echo "#define HAVE_RENAME_WANTS_FLAGS 1" >>confdefs.h
40461 $as_echo "$as_me: failed program was:" >&5
40462 sed 's/^/| /' conftest.
$ac_ext >&5
40464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40465 $as_echo "no" >&6; }
40475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_setxattr() exists" >&5
40476 $as_echo_n "checking whether generic_setxattr() exists... " >&6; }
40479 cat confdefs.h
- <<_ACEOF >conftest.c
40482 #include <linux/fs.h>
40483 #include <linux/xattr.h>
40485 static const struct inode_operations
40486 iops __attribute__ ((unused)) = {
40487 .setxattr = generic_setxattr
40503 cat - <<_ACEOF >conftest.h
40508 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40509 echo "obj-m := conftest.o" >build
/Makefile
40511 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40512 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40513 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40514 (eval $ac_try) 2>&5
40516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40517 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40519 (eval $ac_try) 2>&5
40521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40522 test $ac_status = 0; }; }; then :
40524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40525 $as_echo "yes" >&6; }
40527 $as_echo "#define HAVE_GENERIC_SETXATTR 1" >>confdefs.h
40531 $as_echo "$as_me: failed program was:" >&5
40532 sed 's/^/| /' conftest.
$ac_ext >&5
40534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40535 $as_echo "no" >&6; }
40544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_time() exists" >&5
40545 $as_echo_n "checking whether current_time() exists... " >&6; }
40549 cat confdefs.h
- <<_ACEOF >conftest.c
40552 #include <linux/fs.h>
40559 struct timespec now __attribute__ ((unused));
40561 now = current_time(&ip);
40571 cat - <<_ACEOF >conftest.h
40576 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40577 echo "obj-m := conftest.o" >build
/Makefile
40579 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40580 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40582 (eval $ac_try) 2>&5
40584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40585 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40587 (eval $ac_try) 2>&5
40589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40590 test $ac_status = 0; }; }; then :
40593 $as_echo "$as_me: failed program was:" >&5
40594 sed 's/^/| /' conftest.
$ac_ext >&5
40602 if test $rc -ne 0; then :
40604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40605 $as_echo "no" >&6; }
40608 if test "x$enable_linux_builtin" != xyes
; then
40610 grep -q -E '[[:space:]]current_time[[:space:]]' \
40611 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
40613 if test $rc -ne 0; then
40615 for file in fs
/inode.c
; do
40616 grep -q -E "EXPORT_SYMBOL.*(current_time)" \
40617 "$LINUX/$file" 2>/dev
/null
40619 if test $rc -eq 0; then
40624 if test $export -eq 0; then :
40634 if test $rc -ne 0; then :
40636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40637 $as_echo "no" >&6; }
40641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40642 $as_echo "yes" >&6; }
40644 $as_echo "#define HAVE_CURRENT_TIME 1" >>confdefs.h
40652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use vm_node_stat based fn's" >&5
40653 $as_echo_n "checking whether to use vm_node_stat based fn's... " >&6; }
40656 cat confdefs.h
- <<_ACEOF >conftest.c
40659 #include <linux/mm.h>
40660 #include <linux/vmstat.h>
40666 int a __attribute__ ((unused)) = NR_VM_NODE_STAT_ITEMS;
40667 long x __attribute__ ((unused)) =
40668 atomic_long_read(&vm_node_stat[0]);
40669 (void) global_node_page_state(0);
40679 cat - <<_ACEOF >conftest.h
40684 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40685 echo "obj-m := conftest.o" >build
/Makefile
40687 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40688 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40690 (eval $ac_try) 2>&5
40692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40693 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40694 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40695 (eval $ac_try) 2>&5
40697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40698 test $ac_status = 0; }; }; then :
40700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40701 $as_echo "yes" >&6; }
40703 $as_echo "#define ZFS_GLOBAL_NODE_PAGE_STATE 1" >>confdefs.h
40707 $as_echo "$as_me: failed program was:" >&5
40708 sed 's/^/| /' conftest.
$ac_ext >&5
40710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40711 $as_echo "no" >&6; }
40722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ns_capable exists" >&5
40723 $as_echo_n "checking whether ns_capable exists... " >&6; }
40726 cat confdefs.h
- <<_ACEOF >conftest.c
40729 #include <linux/capability.h>
40735 ns_capable((struct user_namespace *)NULL, CAP_SYS_ADMIN);
40745 cat - <<_ACEOF >conftest.h
40750 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40751 echo "obj-m := conftest.o" >build
/Makefile
40753 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40754 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40755 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40756 (eval $ac_try) 2>&5
40758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40759 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40761 (eval $ac_try) 2>&5
40763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40764 test $ac_status = 0; }; }; then :
40766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40767 $as_echo "yes" >&6; }
40769 $as_echo "#define HAVE_NS_CAPABLE 1" >>confdefs.h
40773 $as_echo "$as_me: failed program was:" >&5
40774 sed 's/^/| /' conftest.
$ac_ext >&5
40776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40777 $as_echo "no" >&6; }
40787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cred_t->user_ns exists" >&5
40788 $as_echo_n "checking whether cred_t->user_ns exists... " >&6; }
40791 cat confdefs.h
- <<_ACEOF >conftest.c
40794 #include <linux/cred.h>
40801 cr.user_ns = (struct user_namespace *)NULL;
40811 cat - <<_ACEOF >conftest.h
40816 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40817 echo "obj-m := conftest.o" >build
/Makefile
40819 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40820 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40822 (eval $ac_try) 2>&5
40824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40825 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40827 (eval $ac_try) 2>&5
40829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40830 test $ac_status = 0; }; }; then :
40832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40833 $as_echo "yes" >&6; }
40835 $as_echo "#define HAVE_CRED_USER_NS 1" >>confdefs.h
40839 $as_echo "$as_me: failed program was:" >&5
40840 sed 's/^/| /' conftest.
$ac_ext >&5
40842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40843 $as_echo "no" >&6; }
40853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kuid_has_mapping/kgid_has_mapping exist" >&5
40854 $as_echo_n "checking whether kuid_has_mapping/kgid_has_mapping exist... " >&6; }
40857 cat confdefs.h
- <<_ACEOF >conftest.c
40860 #include <linux/uidgid.h>
40866 kuid_has_mapping((struct user_namespace *)NULL, KUIDT_INIT(0));
40867 kgid_has_mapping((struct user_namespace *)NULL, KGIDT_INIT(0));
40877 cat - <<_ACEOF >conftest.h
40882 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
40883 echo "obj-m := conftest.o" >build
/Makefile
40885 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
40886 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
40887 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40888 (eval $ac_try) 2>&5
40890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40891 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
40892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
40893 (eval $ac_try) 2>&5
40895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
40896 test $ac_status = 0; }; }; then :
40898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40899 $as_echo "yes" >&6; }
40901 $as_echo "#define HAVE_KUID_HAS_MAPPING 1" >>confdefs.h
40905 $as_echo "$as_me: failed program was:" >&5
40906 sed 's/^/| /' conftest.
$ac_ext >&5
40908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40909 $as_echo "no" >&6; }
40920 if test "$LINUX_OBJ" != "$LINUX"; then :
40922 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
40928 KERNELCPPFLAGS
="$KERNELCPPFLAGS -std=gnu99"
40929 KERNELCPPFLAGS
="$KERNELCPPFLAGS -Wno-declaration-after-statement"
40930 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
40931 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
40932 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
40933 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
40939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
40940 $as_echo "Error!" >&6; }
40941 as_fn_error $?
"Bad value \"$ZFS_CONFIG\" for --with-config,
40942 user kernel|user|all|srpm" "$LINENO" 5 ;;
40945 if test "$ZFS_CONFIG" = user
-o "$ZFS_CONFIG" = all
; then
40947 CONFIG_USER_FALSE
='#'
40949 CONFIG_USER_TRUE
='#'
40953 if test "$ZFS_CONFIG" = kernel
-o "$ZFS_CONFIG" = all
&&
40954 test "x$enable_linux_builtin" != xyes
; then
40955 CONFIG_KERNEL_TRUE
=
40956 CONFIG_KERNEL_FALSE
='#'
40958 CONFIG_KERNEL_TRUE
='#'
40959 CONFIG_KERNEL_FALSE
=
40962 if test "$ZFS_CONFIG" = kernel
-o "$ZFS_CONFIG" = all
&&
40963 test "x$qatsrc" != x
; then
40965 CONFIG_QAT_FALSE
='#'
40967 CONFIG_QAT_TRUE
='#'
40971 if test "x$user_libudev" = xyes
; then
40972 WANT_DEVNAME2DEVID_TRUE
=
40973 WANT_DEVNAME2DEVID_FALSE
='#'
40975 WANT_DEVNAME2DEVID_TRUE
='#'
40976 WANT_DEVNAME2DEVID_FALSE
=
40979 if test "x$user_libaio" = xyes
; then
40980 WANT_MMAP_LIBAIO_TRUE
=
40981 WANT_MMAP_LIBAIO_FALSE
='#'
40983 WANT_MMAP_LIBAIO_TRUE
='#'
40984 WANT_MMAP_LIBAIO_FALSE
=
40989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
40990 $as_echo_n "checking whether debugging is enabled... " >&6; }
40991 # Check whether --enable-debug was given.
40992 if test "${enable_debug+set}" = set; then :
40993 enableval
=$enable_debug;
40999 if test "x$enable_debug" = xyes
; then :
41001 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG -Werror"
41002 HOSTCFLAGS
="${HOSTCFLAGS} -DDEBUG -Werror"
41003 DEBUG_CFLAGS
="-DDEBUG -Werror"
41004 DEBUG_STACKFLAGS
="-fstack-check"
41005 DEBUG_ZFS
="_with_debug"
41007 $as_echo "#define ZFS_DEBUG 1" >>confdefs.h
41012 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DNDEBUG "
41013 HOSTCFLAGS
="${HOSTCFLAGS} -DNDEBUG "
41014 DEBUG_CFLAGS
="-DNDEBUG"
41015 DEBUG_STACKFLAGS
=""
41016 DEBUG_ZFS
="_without_debug"
41023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
41024 $as_echo "$enable_debug" >&6; }
41027 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"
41031 cat >confcache
<<\_ACEOF
41032 # This file is a shell script that caches the results of configure
41033 # tests run on this system so they can be shared between configure
41034 # scripts and configure runs, see configure's option --config-cache.
41035 # It is not useful on other systems. If it contains results you don't
41036 # want to keep, you may remove or edit it.
41038 # config.status only pays attention to the cache file if you give it
41039 # the --recheck option to rerun configure.
41041 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41042 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41043 # following values.
41047 # The following way of writing the cache mishandles newlines in values,
41048 # but we know of no workaround that is simple, portable, and efficient.
41049 # So, we kill variables containing newlines.
41050 # Ultrix sh set writes to stderr and can't be redirected directly,
41051 # and sets the high bit in the cache file unless we assign to the vars.
41053 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41054 eval ac_val
=\$
$ac_var
41058 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
41059 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
41062 _ | IFS | as_nl
) ;; #(
41063 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
41064 *) { eval $ac_var=; unset $ac_var;} ;;
41070 case $as_nl`(ac_space=' '; set) 2>&1` in #(
41071 *${as_nl}ac_space
=\
*)
41072 # `set' does not quote correctly, so add quotes: double-quote
41073 # substitution turns \\\\ into \\, and sed turns \\ into \.
41076 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41079 # `set' quotes correctly as required by POSIX, so do not add quotes.
41080 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41089 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41091 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41093 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
41094 if test -w "$cache_file"; then
41095 if test "x$cache_file" != "x/dev/null"; then
41096 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
41097 $as_echo "$as_me: updating cache $cache_file" >&6;}
41098 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
41099 cat confcache
>"$cache_file"
41101 case $cache_file in #(
41103 mv -f confcache
"$cache_file"$$
&&
41104 mv -f "$cache_file"$$
"$cache_file" ;; #(
41106 mv -f confcache
"$cache_file" ;;
41111 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
41112 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41117 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
41118 # Let make expand exec_prefix.
41119 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
41121 DEFS
=-DHAVE_CONFIG_H
41126 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
41127 # 1. Remove the extension, and $U if already installed.
41128 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
41129 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
41130 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
41131 # will be set to the directory where LIBOBJS objects are built.
41132 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41133 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
41135 LIBOBJS
=$ac_libobjs
41137 LTLIBOBJS
=$ac_ltlibobjs
41140 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
41141 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
41142 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
41145 $as_echo_n "checking that generated files are newer than configure... " >&6; }
41146 if test -n "$am_sleep_pid"; then
41147 # Hide warnings about reused PIDs.
41148 wait $am_sleep_pid 2>/dev
/null
41150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
41151 $as_echo "done" >&6; }
41152 if test -n "$EXEEXT"; then
41154 am__EXEEXT_FALSE
='#'
41156 am__EXEEXT_TRUE
='#'
41160 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
41161 as_fn_error $?
"conditional \"AMDEP\" was never defined.
41162 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41164 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
41165 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
41166 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41168 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
41169 as_fn_error $?
"conditional \"am__fastdepCCAS\" was never defined.
41170 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41172 if test -z "${TARGET_ASM_X86_64_TRUE}" && test -z "${TARGET_ASM_X86_64_FALSE}"; then
41173 as_fn_error $?
"conditional \"TARGET_ASM_X86_64\" was never defined.
41174 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41176 if test -z "${TARGET_ASM_I386_TRUE}" && test -z "${TARGET_ASM_I386_FALSE}"; then
41177 as_fn_error $?
"conditional \"TARGET_ASM_I386\" was never defined.
41178 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41180 if test -z "${TARGET_ASM_GENERIC_TRUE}" && test -z "${TARGET_ASM_GENERIC_FALSE}"; then
41181 as_fn_error $?
"conditional \"TARGET_ASM_GENERIC\" was never defined.
41182 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41184 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
41185 as_fn_error $?
"conditional \"CONFIG_USER\" was never defined.
41186 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41188 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
41189 as_fn_error $?
"conditional \"CONFIG_KERNEL\" was never defined.
41190 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41192 if test -z "${CONFIG_QAT_TRUE}" && test -z "${CONFIG_QAT_FALSE}"; then
41193 as_fn_error $?
"conditional \"CONFIG_QAT\" was never defined.
41194 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41196 if test -z "${WANT_DEVNAME2DEVID_TRUE}" && test -z "${WANT_DEVNAME2DEVID_FALSE}"; then
41197 as_fn_error $?
"conditional \"WANT_DEVNAME2DEVID\" was never defined.
41198 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41200 if test -z "${WANT_MMAP_LIBAIO_TRUE}" && test -z "${WANT_MMAP_LIBAIO_FALSE}"; then
41201 as_fn_error $?
"conditional \"WANT_MMAP_LIBAIO\" was never defined.
41202 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41205 : "${CONFIG_STATUS=./config.status}"
41207 ac_clean_files_save
=$ac_clean_files
41208 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
41209 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
41210 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
41212 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
41214 # Generated by $as_me.
41215 # Run this file to recreate the current configuration.
41216 # Compiler output produced by configure, useful for debugging
41217 # configure, is in config.log if it exists.
41220 ac_cs_recheck=false
41223 SHELL=\${CONFIG_SHELL-$SHELL}
41226 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
41227 ## -------------------- ##
41228 ## M4sh Initialization. ##
41229 ## -------------------- ##
41231 # Be more Bourne compatible
41232 DUALCASE
=1; export DUALCASE
# for MKS sh
41233 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
41236 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
41237 # is contrary to our usage. Disable this feature.
41238 alias -g '${1+"$@"}'='"$@"'
41239 setopt NO_GLOB_SUBST
41241 case `(set -o) 2>/dev/null` in #(
41253 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41254 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41255 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41256 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41257 # Prefer a ksh shell builtin over an external printf program on Solaris,
41258 # but without wasting forks for bash or zsh.
41259 if test -z "$BASH_VERSION$ZSH_VERSION" \
41260 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
41261 as_echo='print
-r --'
41262 as_echo_n='print
-rn --'
41263 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
41264 as_echo='printf %s
\n'
41265 as_echo_n='printf %s
'
41267 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
41268 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
41269 as_echo_n='/usr
/ucb
/echo -n'
41271 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
41272 as_echo_n_body='eval
41276 expr "X$arg" : "X\\(.*\\)$as_nl";
41277 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
41279 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
41281 export as_echo_n_body
41282 as_echo_n='sh
-c $as_echo_n_body as_echo
'
41284 export as_echo_body
41285 as_echo='sh
-c $as_echo_body as_echo
'
41288 # The user is always right.
41289 if test "${PATH_SEPARATOR+set}" != set; then
41291 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
41292 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
41299 # We need space, tab and new line, in precisely that order. Quoting is
41300 # there to prevent editors from complaining about space-tab.
41301 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
41302 # splitting by setting IFS to empty value.)
41305 # Find who we are. Look in the path if we contain no directory separator.
41308 *[\\/]* ) as_myself=$0 ;;
41309 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41310 for as_dir in $PATH
41313 test -z "$as_dir" && as_dir=.
41314 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41320 # We did not find ourselves, most probably we were run as `sh COMMAND'
41321 # in which case we are not to be found in the path.
41322 if test "x$as_myself" = x
; then
41325 if test ! -f "$as_myself"; then
41326 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41330 # Unset variables that we do not need and which cause bugs (e.g. in
41331 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
41332 # suppresses any "Segmentation fault" message there. '((' could
41333 # trigger a bug in pdksh 5.2.14.
41334 for as_var
in BASH_ENV ENV MAIL MAILPATH
41335 do eval test x\
${$as_var+set} = xset \
41336 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
41349 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
41352 # as_fn_error STATUS ERROR [LINENO LOG_FD]
41353 # ----------------------------------------
41354 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
41355 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
41356 # script with STATUS, using 1 if that was 0.
41359 as_status
=$1; test $as_status -eq 0 && as_status
=1
41361 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
41362 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
41364 $as_echo "$as_me: error: $2" >&2
41365 as_fn_exit
$as_status
41369 # as_fn_set_status STATUS
41370 # -----------------------
41371 # Set $? to STATUS, without forking.
41372 as_fn_set_status
()
41375 } # as_fn_set_status
41377 # as_fn_exit STATUS
41378 # -----------------
41379 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
41383 as_fn_set_status
$1
41389 # Portably unset VAR.
41392 { eval $1=; unset $1;}
41394 as_unset
=as_fn_unset
41395 # as_fn_append VAR VALUE
41396 # ----------------------
41397 # Append the text in VALUE to the end of the definition contained in VAR. Take
41398 # advantage of any shell optimizations that allow amortized linear growth over
41399 # repeated appends, instead of the typical quadratic growth present in naive
41401 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
41402 eval 'as_fn_append ()
41413 # as_fn_arith ARG...
41414 # ------------------
41415 # Perform arithmetic evaluation on the ARGs, and store the result in the
41416 # global $as_val. Take advantage of shells that can avoid forks. The arguments
41417 # must be portable across $(()) and expr.
41418 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
41419 eval 'as_fn_arith ()
41426 as_val
=`expr "$@" || test $? -eq 1`
41431 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
41432 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
41438 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
41439 as_basename
=basename
41444 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
41450 as_me
=`$as_basename -- "$0" ||
41451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
41452 X"$0" : 'X\(//\)$' \| \
41453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
41455 sed '/^.*\/\([^/][^/]*\)\/*$/{
41469 # Avoid depending upon Character Ranges.
41470 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
41471 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
41472 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
41473 as_cr_digits
='0123456789'
41474 as_cr_alnum
=$as_cr_Letters$as_cr_digits
41476 ECHO_C
= ECHO_N
= ECHO_T
=
41477 case `echo -n x` in #(((((
41479 case `echo 'xy\c'` in
41480 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
41482 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
41489 rm -f conf$$ conf$$.exe conf$$.
file
41490 if test -d conf$$.dir
; then
41491 rm -f conf$$.dir
/conf$$.
file
41494 mkdir conf$$.dir
2>/dev
/null
41496 if (echo >conf$$.
file) 2>/dev
/null
; then
41497 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
41499 # ... but there are two gotchas:
41500 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
41501 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
41502 # In both cases, we have to default to `cp -pR'.
41503 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
41505 elif ln conf$$.
file conf$$
2>/dev
/null
; then
41513 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
41514 rmdir conf$$.dir
2>/dev
/null
41519 # Create "$as_dir" as a directory, including parents if necessary.
41524 -*) as_dir
=.
/$as_dir;;
41526 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
41530 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
41531 *) as_qdir
=$as_dir;;
41533 as_dirs
="'$as_qdir' $as_dirs"
41534 as_dir
=`$as_dirname -- "$as_dir" ||
41535 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41536 X"$as_dir" : 'X\(//\)[^/]' \| \
41537 X"$as_dir" : 'X\(//\)$' \| \
41538 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
41539 $as_echo X"$as_dir" |
41540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41544 /^X\(\/\/\)[^/].*/{
41557 test -d "$as_dir" && break
41559 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
41560 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
41564 if mkdir
-p .
2>/dev
/null
; then
41565 as_mkdir_p
='mkdir -p "$as_dir"'
41567 test -d .
/-p && rmdir .
/-p
41572 # as_fn_executable_p FILE
41573 # -----------------------
41574 # Test if FILE is an executable regular file.
41575 as_fn_executable_p
()
41577 test -f "$1" && test -x "$1"
41578 } # as_fn_executable_p
41579 as_test_x
='test -x'
41580 as_executable_p
=as_fn_executable_p
41582 # Sed expression to map a string onto a valid CPP name.
41583 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
41585 # Sed expression to map a string onto a valid variable name.
41586 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
41590 ## ----------------------------------- ##
41591 ## Main body of $CONFIG_STATUS script. ##
41592 ## ----------------------------------- ##
41594 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
41596 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
41597 # Save the log message, to keep $0 and so on meaningful, and to
41598 # report actual input values of CONFIG_FILES etc. instead of their
41599 # values after options handling.
41601 This file was extended by zfs $as_me 0.7.5, which was
41602 generated by GNU Autoconf 2.69. Invocation command line was
41604 CONFIG_FILES = $CONFIG_FILES
41605 CONFIG_HEADERS = $CONFIG_HEADERS
41606 CONFIG_LINKS = $CONFIG_LINKS
41607 CONFIG_COMMANDS = $CONFIG_COMMANDS
41610 on `(hostname || uname -n) 2>/dev/null | sed 1q`
41615 case $ac_config_files in *"
41616 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
41619 case $ac_config_headers in *"
41620 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
41624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41625 # Files that config.status was made for.
41626 config_files="$ac_config_files"
41627 config_headers="$ac_config_headers"
41628 config_commands="$ac_config_commands"
41632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
41634 \`$as_me' instantiates files and other configuration actions
41635 from templates according to the current configuration. Unless the files
41636 and actions are specified as TAGs, all are instantiated by default.
41638 Usage: $0 [OPTION]... [TAG]...
41640 -h, --help print this help, then exit
41641 -V, --version print version number and configuration settings, then exit
41642 --config print configuration, then exit
41643 -q, --quiet, --silent
41644 do not print progress messages
41645 -d, --debug don't remove temporary files
41646 --recheck update $as_me by reconfiguring in the same conditions
41647 --file=FILE[:TEMPLATE]
41648 instantiate the configuration file FILE
41649 --header=FILE[:TEMPLATE]
41650 instantiate the configuration header FILE
41652 Configuration files:
41655 Configuration headers:
41658 Configuration commands:
41661 Report bugs to the package provider."
41664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41665 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
41667 zfs config.status 0.7.5
41668 configured by $0, generated by GNU Autoconf 2.69,
41669 with options \\"\$ac_cs_config\\"
41671 Copyright (C) 2012 Free Software Foundation, Inc.
41672 This config.status script is free software; the Free Software Foundation
41673 gives unlimited permission to copy, distribute and modify it."
41680 test -n "\$AWK" || AWK=awk
41683 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
41684 # The default lists apply if the user does not specify any file.
41690 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
41691 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
41695 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
41707 # Handling of the options.
41708 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
41710 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
41711 $as_echo "$ac_cs_version"; exit ;;
41712 --config |
--confi |
--conf |
--con |
--co |
--c )
41713 $as_echo "$ac_cs_config"; exit ;;
41714 --debug |
--debu |
--deb |
--de |
--d |
-d )
41716 --file |
--fil |
--fi |
--f )
41719 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41720 '') as_fn_error $?
"missing file argument" ;;
41722 as_fn_append CONFIG_FILES
" '$ac_optarg'"
41723 ac_need_defaults
=false
;;
41724 --header |
--heade |
--head |
--hea )
41727 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
41729 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
41730 ac_need_defaults
=false
;;
41732 # Conflict between --help and --header
41733 as_fn_error $?
"ambiguous option: \`$1'
41734 Try \`$0 --help' for more information.";;
41735 --help |
--hel |
-h )
41736 $as_echo "$ac_cs_usage"; exit ;;
41737 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
41738 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
41741 # This is an error.
41742 -*) as_fn_error $?
"unrecognized option: \`$1'
41743 Try \`$0 --help' for more information." ;;
41745 *) as_fn_append ac_config_targets
" $1"
41746 ac_need_defaults
=false
;;
41752 ac_configure_extra_args
=
41754 if $ac_cs_silent; then
41756 ac_configure_extra_args
="$ac_configure_extra_args --silent"
41760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41761 if \$ac_cs_recheck; then
41762 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
41764 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
41765 CONFIG_SHELL='$SHELL'
41766 export CONFIG_SHELL
41771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
41775 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
41776 ## Running $as_me. ##
41782 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41786 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
41789 # The HP-UX ksh and POSIX shell print the target directory to stdout
41790 # if CDPATH is set.
41791 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
41793 sed_quote_subst='$sed_quote_subst'
41794 double_quote_subst='$double_quote_subst'
41795 delay_variable_subst='$delay_variable_subst'
41796 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
41797 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
41798 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
41799 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
41800 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
41801 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
41802 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
41803 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
41804 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
41805 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
41806 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
41807 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
41808 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
41809 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
41810 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
41811 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
41812 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
41813 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
41814 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
41815 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
41816 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
41817 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
41818 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
41819 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
41820 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
41821 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
41822 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
41823 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
41824 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
41825 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
41826 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
41827 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
41828 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
41829 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
41830 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
41831 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
41832 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
41833 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
41834 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
41835 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
41836 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
41837 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
41838 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
41839 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
41840 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
41841 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
41842 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
41843 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
41844 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
41845 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
41846 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
41847 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
41848 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
41849 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
41850 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
41851 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
41852 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
41853 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
41854 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"`'
41855 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
41856 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
41857 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
41858 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
41859 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
41860 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
41861 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
41862 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
41863 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
41864 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
41865 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
41866 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
41867 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
41868 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
41869 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
41870 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
41871 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
41872 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
41873 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
41874 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
41875 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41876 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
41877 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
41878 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
41879 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
41880 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
41881 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
41882 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
41883 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
41884 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41885 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
41886 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
41887 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
41888 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
41889 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
41890 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
41891 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
41892 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
41893 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
41894 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
41895 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
41896 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
41897 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
41898 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
41899 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
41900 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
41901 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
41902 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
41903 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
41904 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
41905 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
41906 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
41907 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
41908 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
41909 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
41910 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
41911 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
41912 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
41913 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
41914 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
41915 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
41916 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
41917 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
41918 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
41919 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
41920 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
41921 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
41922 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
41923 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
41924 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
41925 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
41926 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
41927 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
41928 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
41929 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
41930 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
41933 LTCFLAGS='$LTCFLAGS'
41934 compiler='$compiler_DEFAULT'
41936 # A function that is used when there is no print builtin or printf.
41937 func_fallback_echo ()
41939 eval 'cat <<_LTECHO_EOF
41944 # Quote evaled strings.
41959 deplibs_check_method \
41964 sharedlib_from_linklib_cmd \
41967 archiver_list_spec \
41973 lt_cv_sys_global_symbol_pipe \
41974 lt_cv_sys_global_symbol_to_cdecl \
41975 lt_cv_sys_global_symbol_to_import \
41976 lt_cv_sys_global_symbol_to_c_name_address \
41977 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
41978 lt_cv_nm_interface \
41979 nm_file_list_spec \
41980 lt_cv_truncate_bin \
41981 lt_prog_compiler_no_builtin_flag \
41982 lt_prog_compiler_pic \
41983 lt_prog_compiler_wl \
41984 lt_prog_compiler_static \
41985 lt_cv_prog_compiler_c_o \
41994 export_dynamic_flag_spec \
41995 whole_archive_flag_spec \
41996 compiler_needs_object \
41998 allow_undefined_flag \
41999 no_undefined_flag \
42000 hardcode_libdir_flag_spec \
42001 hardcode_libdir_separator \
42005 variables_saved_for_relink \
42007 library_names_spec \
42009 install_override_mode \
42013 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42014 *[\\\\\\\`\\"\\\$]*)
42015 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42018 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42023 # Double-quote double-evaled strings.
42024 for var in reload_cmds \
42025 old_postinstall_cmds \
42026 old_postuninstall_cmds \
42028 extract_expsyms_cmds \
42029 old_archive_from_new_cmds \
42030 old_archive_from_expsyms_cmds \
42032 archive_expsym_cmds \
42034 module_expsym_cmds \
42035 export_symbols_cmds \
42039 postuninstall_cmds \
42041 sys_lib_search_path_spec \
42042 configure_time_dlsearch_path \
42043 configure_time_lt_sys_library_path; do
42044 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42045 *[\\\\\\\`\\"\\\$]*)
42046 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42049 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42054 ac_aux_dir='$ac_aux_dir'
42056 # See if we are running on zsh, and set the options that allow our
42057 # commands through without removal of \ escapes INIT.
42058 if test -n "\${ZSH_VERSION+set}"; then
42059 setopt NO_GLOB_SUBST
42073 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
42075 # Handling of arguments.
42076 for ac_config_target
in $ac_config_targets
42078 case $ac_config_target in
42079 "zfs_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS zfs_config.h" ;;
42080 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
42081 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
42082 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
42083 "module/Makefile") CONFIG_FILES
="$CONFIG_FILES module/Makefile" ;;
42084 "module/avl/Makefile") CONFIG_FILES
="$CONFIG_FILES module/avl/Makefile" ;;
42085 "module/nvpair/Makefile") CONFIG_FILES
="$CONFIG_FILES module/nvpair/Makefile" ;;
42086 "module/unicode/Makefile") CONFIG_FILES
="$CONFIG_FILES module/unicode/Makefile" ;;
42087 "module/zcommon/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zcommon/Makefile" ;;
42088 "module/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zfs/Makefile" ;;
42089 "module/zpios/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zpios/Makefile" ;;
42090 "module/icp/Makefile") CONFIG_FILES
="$CONFIG_FILES module/icp/Makefile" ;;
42091 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
42092 "include/linux/Makefile") CONFIG_FILES
="$CONFIG_FILES include/linux/Makefile" ;;
42093 "include/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/Makefile" ;;
42094 "include/sys/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fs/Makefile" ;;
42095 "include/sys/fm/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/Makefile" ;;
42096 "include/sys/fm/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
42097 "include/sys/crypto/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/crypto/Makefile" ;;
42098 "include/sys/sysevent/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/sysevent/Makefile" ;;
42099 "zfs.release") CONFIG_FILES
="$CONFIG_FILES zfs.release" ;;
42101 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
42106 # If the user did not use the arguments to specify the items to instantiate,
42107 # then the envvar interface is used. Set only those that are not.
42108 # We use the long form for the default assignment because of an extremely
42109 # bizarre bug on SunOS 4.1.3.
42110 if $ac_need_defaults; then
42111 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
42112 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
42113 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
42116 # Have a temporary directory for convenience. Make it in the build tree
42117 # simply because there is no reason against having it here, and in addition,
42118 # creating and moving files from /tmp can sometimes cause problems.
42119 # Hook for its removal unless debugging.
42120 # Note that there is a small window in which the directory will not be cleaned:
42121 # after its creation but before its name has been assigned to `$tmp'.
42125 trap 'exit_status=$?
42126 : "${ac_tmp:=$tmp}"
42127 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
42129 trap 'as_fn_exit 1' 1 2 13 15
42131 # Create a (secure) tmp directory for tmp files.
42134 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42138 tmp
=.
/conf$$
-$RANDOM
42139 (umask 077 && mkdir
"$tmp")
42140 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
42143 # Set up the scripts for CONFIG_FILES section.
42144 # No need to generate them if there are no CONFIG_FILES.
42145 # This happens for instance with `./config.status config.h'.
42146 if test -n "$CONFIG_FILES"; then
42149 ac_cr
=`echo X | tr X '\015'`
42150 # On cygwin, bash can eat \r inside `` if the user requested igncr.
42151 # But we know of no other shell where ac_cr would be empty at this
42152 # point, so we can use a bashism as a fallback.
42153 if test "x$ac_cr" = x
; then
42154 eval ac_cr
=\$
\'\\r
\'
42156 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
42157 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
42160 ac_cs_awk_cr
=$ac_cr
42163 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
42168 echo "cat >conf$$subs.awk <<_ACEOF" &&
42169 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
42171 } >conf$$subs.sh ||
42172 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
42173 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
42175 for ac_last_try in false false false false false :; do
42176 . ./conf$$subs.sh ||
42177 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
42179 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
42180 if test $ac_delim_n = $ac_delim_num; then
42182 elif $ac_last_try; then
42183 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
42185 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
42188 rm -f conf$$subs.sh
42190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42191 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
42195 s/^/S["/; s
/!.
*/"]=/
42205 s/\(.\{148\}\)..*/\1/
42207 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
42212 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
42219 s/\(.\{148\}\)..*/\1/
42221 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
42225 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
42230 ' <conf$$subs.awk | sed '
42235 ' >>$CONFIG_STATUS || ac_write_fail=1
42236 rm -f conf$$subs.awk
42237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42239 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
42240 for (key in S) S_is_set[key] = 1
42246 nfields = split(line, field, "@
")
42248 len = length(field[1])
42249 for (i = 2; i < nfields; i++) {
42251 keylen = length(key)
42252 if (S_is_set[key]) {
42254 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
42255 len += length(value) + length(field[++i])
42266 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42267 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
42268 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
42271 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
42272 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
42275 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
42276 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
42277 # trailing colons and then remove the whole line if VPATH becomes empty
42278 # (actually we leave an empty line to preserve line numbers).
42279 if test "x
$srcdir" = x.; then
42280 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
42298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42299 fi # test -n "$CONFIG_FILES"
42301 # Set up the scripts for CONFIG_HEADERS section.
42302 # No need to generate them if there are no CONFIG_HEADERS.
42303 # This happens for instance with `./config.status Makefile'.
42304 if test -n "$CONFIG_HEADERS"; then
42305 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
42309 # Transform confdefs.h into an awk script `defines.awk', embedded as
42310 # here-document in config.status, that substitutes the proper values into
42311 # config.h.in to produce config.h.
42313 # Create a delimiter string that does not exist in confdefs.h, to ease
42314 # handling of long lines.
42316 for ac_last_try in false false :; do
42317 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
42318 if test -z "$ac_tt"; then
42320 elif $ac_last_try; then
42321 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
42323 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
42327 # For the awk script, D is an array of macro values keyed by name,
42328 # likewise P contains macro parameters if any. Preserve backslash
42329 # newline sequences.
42331 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
42333 s/.\{148\}/&'"$ac_delim"'/g
42336 s/^[ ]*#[ ]*define[ ][ ]*/ /
42343 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
42345 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
42349 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
42350 D["\
1"]=" \
3\\\\\\n
"\\/p
42352 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
42357 s/.\{148\}/&'"$ac_delim"'/g
42362 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
42365 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
42367 ' <confdefs.h | sed '
42368 s/'"$ac_delim"'/"\\\
42369 "/g' >>$CONFIG_STATUS || ac_write_fail=1
42371 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42372 for (key in D) D_is_set[key] = 1
42375 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
42377 split(line, arg, " ")
42378 if (arg[1] == "#") {
42382 defundef
= substr
(arg
[1], 2)
42385 split(mac1
, mac2
, "(") #)
42387 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
42388 if (D_is_set
[macro
]) {
42389 # Preserve the white space surrounding the "#".
42390 print prefix
"define", macro P
[macro
] D
[macro
]
42393 # Replace #undef with comments. This is necessary, for example,
42394 # in the case of _POSIX_SOURCE, which is predefined and required
42395 # on some systems where configure will not decide to define it.
42396 if (defundef
== "undef") {
42397 print
"/*", prefix defundef
, macro
, "*/"
42405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
42406 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
42407 fi # test -n "$CONFIG_HEADERS"
42410 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
42415 :[FHLC
]) ac_mode
=$ac_tag; continue;;
42417 case $ac_mode$ac_tag in
42419 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
42420 :[FH
]-) ac_tag
=-:-;;
42421 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
42438 -) ac_f
="$ac_tmp/stdin";;
42439 *) # Look for the file first in the build tree, then in the source tree
42440 # (if the path is not absolute). The absolute path cannot be DOS-style,
42441 # because $ac_f cannot contain `:'.
42445 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
42447 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
42449 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
42450 as_fn_append ac_file_inputs
" '$ac_f'"
42453 # Let's still pretend it is `configure' which instantiates (i.e., don't
42454 # use $as_me), people would be surprised to read:
42455 # /* config.h. Generated by config.status. */
42456 configure_input
='Generated from '`
42457 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
42459 if test x
"$ac_file" != x-
; then
42460 configure_input
="$ac_file. $configure_input"
42461 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
42462 $as_echo "$as_me: creating $ac_file" >&6;}
42464 # Neutralize special characters interpreted by sed in replacement strings.
42465 case $configure_input in #(
42466 *\
&* |
*\|
* |
*\\* )
42467 ac_sed_conf_input
=`$as_echo "$configure_input" |
42468 sed 's/[\\\\&|]/\\\\&/g'`;; #(
42469 *) ac_sed_conf_input
=$configure_input;;
42473 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
42474 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
42479 ac_dir
=`$as_dirname -- "$ac_file" ||
42480 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42481 X"$ac_file" : 'X\(//\)[^/]' \| \
42482 X"$ac_file" : 'X\(//\)$' \| \
42483 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
42484 $as_echo X"$ac_file" |
42485 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42489 /^X\(\/\/\)[^/].*/{
42502 as_dir
="$ac_dir"; as_fn_mkdir_p
42506 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
42508 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
42509 # A ".." for each directory in $ac_dir_suffix.
42510 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
42511 case $ac_top_builddir_sub in
42512 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
42513 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
42516 ac_abs_top_builddir
=$ac_pwd
42517 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
42518 # for backward compatibility:
42519 ac_top_builddir
=$ac_top_build_prefix
42522 .
) # We are building in place.
42524 ac_top_srcdir
=$ac_top_builddir_sub
42525 ac_abs_top_srcdir
=$ac_pwd ;;
42526 [\\/]* | ?
:[\\/]* ) # Absolute name.
42527 ac_srcdir
=$srcdir$ac_dir_suffix;
42528 ac_top_srcdir
=$srcdir
42529 ac_abs_top_srcdir
=$srcdir ;;
42530 *) # Relative name.
42531 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
42532 ac_top_srcdir
=$ac_top_build_prefix$srcdir
42533 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
42535 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
42545 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
42546 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
42548 ac_MKDIR_P
=$MKDIR_P
42550 [\\/$
]* | ?
:[\\/]* ) ;;
42551 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
42555 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
42556 # If the template does not know about datarootdir, expand it.
42557 # FIXME: This hack should be removed a few years after 2.60.
42558 ac_datarootdir_hack
=; ac_datarootdir_seen
=
42569 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
42570 *datarootdir
*) ac_datarootdir_seen
=yes;;
42571 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
42572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
42573 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
42575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42576 ac_datarootdir_hack='
42577 s&@datadir@&$datadir&g
42578 s&@docdir@&$docdir&g
42579 s&@infodir@&$infodir&g
42580 s&@localedir@&$localedir&g
42581 s&@mandir@&$mandir&g
42582 s&\\\${datarootdir}&$datarootdir&g' ;;
42586 # Neutralize VPATH when `$srcdir' = `.'.
42587 # Shell code in configure.ac might set extrasub.
42588 # FIXME: do we really want to maintain this feature?
42589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42590 ac_sed_extra="$ac_vpsub
42593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
42595 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
42596 s|@configure_input@|
$ac_sed_conf_input|
;t t
42597 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
42598 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
42599 s
&@srcdir@
&$ac_srcdir&;t t
42600 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
42601 s
&@top_srcdir@
&$ac_top_srcdir&;t t
42602 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
42603 s
&@builddir@
&$ac_builddir&;t t
42604 s
&@abs_builddir@
&$ac_abs_builddir&;t t
42605 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
42606 s
&@INSTALL@
&$ac_INSTALL&;t t
42607 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
42608 $ac_datarootdir_hack
42610 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
42611 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
42613 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
42614 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
42615 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
42616 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
42617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
42618 which seems to be undefined. Please make sure it is defined" >&5
42619 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
42620 which seems to be undefined. Please make sure it is defined" >&2;}
42622 rm -f "$ac_tmp/stdin"
42624 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
42625 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
42627 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42633 if test x"$ac_file" != x-; then
42635 $as_echo "/* $configure_input */" \
42636 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
42637 } >"$ac_tmp/config.h" \
42638 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42639 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
42640 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
42641 $as_echo "$as_me: $ac_file is unchanged" >&6;}
42644 mv "$ac_tmp/config.h" "$ac_file" \
42645 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
42648 $as_echo "/* $configure_input */" \
42649 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
42650 || as_fn_error $? "could not create -" "$LINENO" 5
42652 # Compute "$ac_file"'s index
in $config_headers.
42655 for _am_header
in $config_headers :; do
42656 case $_am_header in
42657 $_am_arg |
$_am_arg:* )
42660 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
42663 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
42664 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42665 X"$_am_arg" : 'X\(//\)[^/]' \| \
42666 X"$_am_arg" : 'X\(//\)$' \| \
42667 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
42668 $as_echo X"$_am_arg" |
42669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42673 /^X\(\/\/\)[^/].*/{
42685 s/.*/./; q'`/stamp-h
$_am_stamp_count
42688 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
42689 $as_echo "$as_me: executing $ac_file commands" >&6;}
42694 case $ac_file$ac_mode in
42696 (mv zfs_config.h zfs_config.h.tmp
&&
42697 awk -f ${ac_srcdir}/config
/config.
awk zfs_config.h.tmp
>zfs_config.h
&&
42698 rm zfs_config.h.tmp
) ||
exit 1 ;;
42699 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
42700 # Older Autoconf quotes --file arguments for eval, but not when files
42701 # are listed without --file. Let's play safe and only enable the eval
42702 # if we detect the quoting.
42703 case $CONFIG_FILES in
42704 *\'*) eval set x
"$CONFIG_FILES" ;;
42705 *) set x
$CONFIG_FILES ;;
42710 # Strip MF so we end up with the name of the file.
42711 mf
=`echo "$mf" | sed -e 's/:.*$//'`
42712 # Check whether this is an Automake generated Makefile or not.
42713 # We used to match only the files named 'Makefile.in', but
42714 # some people rename them; so instead we look at the file content.
42715 # Grep'ing the first line is not enough: some people post-process
42716 # each Makefile.in and add a new line on top of each file to say so.
42717 # Grep'ing the whole file is not good either: AIX grep has a line
42718 # limit of 2048, but all sed's we know have understand at least 4000.
42719 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
42720 dirpart
=`$as_dirname -- "$mf" ||
42721 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42722 X"$mf" : 'X\(//\)[^/]' \| \
42723 X"$mf" : 'X\(//\)$' \| \
42724 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
42726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42730 /^X\(\/\/\)[^/].*/{
42746 # Extract the definition of DEPDIR, am__include, and am__quote
42747 # from the Makefile without running 'make'.
42748 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
42749 test -z "$DEPDIR" && continue
42750 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
42751 test -z "$am__include" && continue
42752 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
42753 # Find all dependency output files, they are included files with
42754 # $(DEPDIR) in their names. We invoke sed twice because it is the
42755 # simplest approach to changing $(DEPDIR) to its actual value in the
42757 for file in `sed -n "
42758 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
42759 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
42760 # Make sure the directory exists.
42761 test -f "$dirpart/$file" && continue
42762 fdir
=`$as_dirname -- "$file" ||
42763 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42764 X"$file" : 'X\(//\)[^/]' \| \
42765 X"$file" : 'X\(//\)$' \| \
42766 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
42767 $as_echo X"$file" |
42768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42772 /^X\(\/\/\)[^/].*/{
42785 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
42786 # echo "creating $dirpart/$file"
42787 echo '# dummy' > "$dirpart/$file"
42794 # See if we are running on zsh, and set the options that allow our
42795 # commands through without removal of \ escapes.
42796 if test -n "${ZSH_VERSION+set}"; then
42797 setopt NO_GLOB_SUBST
42801 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
42804 cat <<_LT_EOF >> "$cfgfile"
42806 # Generated automatically by $as_me ($PACKAGE) $VERSION
42807 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
42809 # Provide generalized library-building support services.
42810 # Written by Gordon Matzigkeit, 1996
42812 # Copyright (C) 2014 Free Software Foundation, Inc.
42813 # This is free software; see the source for copying conditions. There is NO
42814 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
42816 # GNU Libtool is free software; you can redistribute it and/or modify
42817 # it under the terms of the GNU General Public License as published by
42818 # the Free Software Foundation; either version 2 of of the License, or
42819 # (at your option) any later version.
42821 # As a special exception to the GNU General Public License, if you
42822 # distribute this file as part of a program or library that is built
42823 # using GNU Libtool, you may include this file under the same
42824 # distribution terms that you use for the rest of that program.
42826 # GNU Libtool is distributed in the hope that it will be useful, but
42827 # WITHOUT ANY WARRANTY; without even the implied warranty of
42828 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
42829 # GNU General Public License for more details.
42831 # You should have received a copy of the GNU General Public License
42832 # along with this program. If not, see <http://www.gnu.org/licenses/>.
42835 # The names of the tagged configurations supported by this script.
42838 # Configured defaults for sys_lib_dlsearch_path munging.
42839 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
42841 # ### BEGIN LIBTOOL CONFIG
42843 # Which release of libtool.m4 was used?
42844 macro_version=$macro_version
42845 macro_revision=$macro_revision
42847 # Whether or not to build shared libraries.
42848 build_libtool_libs=$enable_shared
42850 # Whether or not to build static libraries.
42851 build_old_libs=$enable_static
42853 # What type of objects to build.
42856 # Whether or not to optimize for fast installation.
42857 fast_install=$enable_fast_install
42859 # Shared archive member basename,for filename based shared library versioning on AIX.
42860 shared_archive_member_spec=$shared_archive_member_spec
42862 # Shell to use when invoking shell scripts.
42865 # An echo program that protects backslashes.
42868 # The PATH separator for the build system.
42869 PATH_SEPARATOR=$lt_PATH_SEPARATOR
42872 host_alias=$host_alias
42876 # The build system.
42877 build_alias=$build_alias
42881 # A sed program that does not truncate output.
42884 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
42885 Xsed="\$SED -e 1s/^X//"
42887 # A grep program that handles long lines.
42893 # A literal string matcher.
42896 # A BSD- or MS-compatible name lister.
42899 # Whether we need soft or hard links.
42902 # What is the maximum length of a command?
42903 max_cmd_len=$max_cmd_len
42905 # Object file suffix (normally "o").
42908 # Executable file suffix (normally "").
42911 # whether the shell understands "unset".
42914 # turn spaces into newlines.
42917 # turn newlines into spaces.
42920 # convert \$build file names to \$host format.
42921 to_host_file_cmd=$lt_cv_to_host_file_cmd
42923 # convert \$build files to toolchain format.
42924 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
42926 # An object symbol dumper.
42927 OBJDUMP=$lt_OBJDUMP
42929 # Method to check whether dependent libraries are shared objects.
42930 deplibs_check_method=$lt_deplibs_check_method
42932 # Command to use when deplibs_check_method = "file_magic".
42933 file_magic_cmd=$lt_file_magic_cmd
42935 # How to find potential files when deplibs_check_method = "file_magic".
42936 file_magic_glob=$lt_file_magic_glob
42938 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
42939 want_nocaseglob=$lt_want_nocaseglob
42941 # DLL creation program.
42942 DLLTOOL=$lt_DLLTOOL
42944 # Command to associate shared and link libraries.
42945 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
42950 # Flags to create an archive.
42951 AR_FLAGS=$lt_AR_FLAGS
42953 # How to feed a file listing to the archiver.
42954 archiver_list_spec=$lt_archiver_list_spec
42956 # A symbol stripping program.
42959 # Commands used to install an old-style archive.
42961 old_postinstall_cmds=$lt_old_postinstall_cmds
42962 old_postuninstall_cmds=$lt_old_postuninstall_cmds
42964 # Whether to use a lock for old archive extraction.
42965 lock_old_archive_extraction=$lock_old_archive_extraction
42970 # LTCC compiler flags.
42971 LTCFLAGS=$lt_CFLAGS
42973 # Take the output of nm and produce a listing of raw symbols and C names.
42974 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
42976 # Transform the output of nm in a proper C declaration.
42977 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
42979 # Transform the output of nm into a list of symbols to manually relocate.
42980 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
42982 # Transform the output of nm in a C name address pair.
42983 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
42985 # Transform the output of nm in a C name address pair when lib prefix is needed.
42986 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
42988 # The name lister interface.
42989 nm_interface=$lt_lt_cv_nm_interface
42991 # Specify filename containing input files for \$NM.
42992 nm_file_list_spec=$lt_nm_file_list_spec
42994 # The root where to search for dependent libraries,and where our libraries should be installed.
42995 lt_sysroot=$lt_sysroot
42997 # Command to truncate a binary pipe.
42998 lt_truncate_bin=$lt_lt_cv_truncate_bin
43000 # The name of the directory that contains temporary libtool files.
43003 # Used to examine libraries when file_magic_cmd begins with "file".
43004 MAGIC_CMD=$MAGIC_CMD
43006 # Must we lock files when doing compilation?
43007 need_locks=$lt_need_locks
43010 MANIFEST_TOOL=$lt_MANIFEST_TOOL
43012 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43013 DSYMUTIL=$lt_DSYMUTIL
43015 # Tool to change global to local symbols on Mac OS X.
43018 # Tool to manipulate fat objects and archives on Mac OS X.
43021 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
43024 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43025 OTOOL64=$lt_OTOOL64
43027 # Old archive suffix (normally "a").
43030 # Shared library suffix (normally ".so").
43031 shrext_cmds=$lt_shrext_cmds
43033 # The commands to extract the exported symbol list from a shared archive.
43034 extract_expsyms_cmds=$lt_extract_expsyms_cmds
43036 # Variables whose values should be saved in libtool wrapper scripts and
43037 # restored at link time.
43038 variables_saved_for_relink=$lt_variables_saved_for_relink
43040 # Do we need the "lib" prefix for modules?
43041 need_lib_prefix=$need_lib_prefix
43043 # Do we need a version for libraries?
43044 need_version=$need_version
43046 # Library versioning type.
43047 version_type=$version_type
43049 # Shared library runtime path variable.
43050 runpath_var=$runpath_var
43052 # Shared library path variable.
43053 shlibpath_var=$shlibpath_var
43055 # Is shlibpath searched before the hard-coded library search path?
43056 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43058 # Format of library name prefix.
43059 libname_spec=$lt_libname_spec
43061 # List of archive names. First name is the real one, the rest are links.
43062 # The last name is the one that the linker finds with -lNAME
43063 library_names_spec=$lt_library_names_spec
43065 # The coded name of the library, if different from the real name.
43066 soname_spec=$lt_soname_spec
43068 # Permission mode override for installation of shared libraries.
43069 install_override_mode=$lt_install_override_mode
43071 # Command to use after installation of a shared archive.
43072 postinstall_cmds=$lt_postinstall_cmds
43074 # Command to use after uninstallation of a shared archive.
43075 postuninstall_cmds=$lt_postuninstall_cmds
43077 # Commands used to finish a libtool library installation in a directory.
43078 finish_cmds=$lt_finish_cmds
43080 # As "finish_cmds", except a single script fragment to be evaled but
43082 finish_eval=$lt_finish_eval
43084 # Whether we should hardcode library paths into libraries.
43085 hardcode_into_libs=$hardcode_into_libs
43087 # Compile-time system search path for libraries.
43088 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43090 # Detected run-time system search path for libraries.
43091 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
43093 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
43094 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
43096 # Whether dlopen is supported.
43097 dlopen_support=$enable_dlopen
43099 # Whether dlopen of programs is supported.
43100 dlopen_self=$enable_dlopen_self
43102 # Whether dlopen of statically linked programs is supported.
43103 dlopen_self_static=$enable_dlopen_self_static
43105 # Commands to strip libraries.
43106 old_striplib=$lt_old_striplib
43107 striplib=$lt_striplib
43110 # The linker used to build libraries.
43113 # How to create reloadable object files.
43114 reload_flag=$lt_reload_flag
43115 reload_cmds=$lt_reload_cmds
43117 # Commands used to build an old-style archive.
43118 old_archive_cmds=$lt_old_archive_cmds
43120 # A language specific compiler.
43123 # Is the compiler the GNU compiler?
43126 # Compiler flag to turn off builtin functions.
43127 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43129 # Additional compiler flags for building library objects.
43130 pic_flag=$lt_lt_prog_compiler_pic
43132 # How to pass a linker flag through the compiler.
43133 wl=$lt_lt_prog_compiler_wl
43135 # Compiler flag to prevent dynamic linking.
43136 link_static_flag=$lt_lt_prog_compiler_static
43138 # Does compiler simultaneously support -c and -o options?
43139 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43141 # Whether or not to add -lc for building shared libraries.
43142 build_libtool_need_lc=$archive_cmds_need_lc
43144 # Whether or not to disallow shared libs when runtime libs are static.
43145 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43147 # Compiler flag to allow reflexive dlopens.
43148 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43150 # Compiler flag to generate shared objects directly from archives.
43151 whole_archive_flag_spec=$lt_whole_archive_flag_spec
43153 # Whether the compiler copes with passing no objects directly.
43154 compiler_needs_object=$lt_compiler_needs_object
43156 # Create an old-style archive from a shared archive.
43157 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43159 # Create a temporary old-style archive to link instead of a shared archive.
43160 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43162 # Commands used to build a shared archive.
43163 archive_cmds=$lt_archive_cmds
43164 archive_expsym_cmds=$lt_archive_expsym_cmds
43166 # Commands used to build a loadable module if different from building
43167 # a shared archive.
43168 module_cmds=$lt_module_cmds
43169 module_expsym_cmds=$lt_module_expsym_cmds
43171 # Whether we are building with GNU ld or not.
43172 with_gnu_ld=$lt_with_gnu_ld
43174 # Flag that allows shared libraries with undefined symbols to be built.
43175 allow_undefined_flag=$lt_allow_undefined_flag
43177 # Flag that enforces no undefined symbols.
43178 no_undefined_flag=$lt_no_undefined_flag
43180 # Flag to hardcode \$libdir into a binary during linking.
43181 # This must work even if \$libdir does not exist
43182 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43184 # Whether we need a single "-rpath" flag with a separated argument.
43185 hardcode_libdir_separator=$lt_hardcode_libdir_separator
43187 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43188 # DIR into the resulting binary.
43189 hardcode_direct=$hardcode_direct
43191 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43192 # DIR into the resulting binary and the resulting library dependency is
43193 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
43194 # library is relocated.
43195 hardcode_direct_absolute=$hardcode_direct_absolute
43197 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43198 # into the resulting binary.
43199 hardcode_minus_L=$hardcode_minus_L
43201 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43202 # into the resulting binary.
43203 hardcode_shlibpath_var=$hardcode_shlibpath_var
43205 # Set to "yes" if building a shared library automatically hardcodes DIR
43206 # into the library and all subsequent libraries and executables linked
43208 hardcode_automatic=$hardcode_automatic
43210 # Set to yes if linker adds runtime paths of dependent libraries
43211 # to runtime path list.
43212 inherit_rpath=$inherit_rpath
43214 # Whether libtool must link a program against all its dependency libraries.
43215 link_all_deplibs=$link_all_deplibs
43217 # Set to "yes" if exported symbols are required.
43218 always_export_symbols=$always_export_symbols
43220 # The commands to list exported symbols.
43221 export_symbols_cmds=$lt_export_symbols_cmds
43223 # Symbols that should not be listed in the preloaded symbols.
43224 exclude_expsyms=$lt_exclude_expsyms
43226 # Symbols that must always be exported.
43227 include_expsyms=$lt_include_expsyms
43229 # Commands necessary for linking programs (against libraries) with templates.
43230 prelink_cmds=$lt_prelink_cmds
43232 # Commands necessary for finishing linking programs.
43233 postlink_cmds=$lt_postlink_cmds
43235 # Specify filename containing input files.
43236 file_list_spec=$lt_file_list_spec
43238 # How to hardcode a shared library path into an executable.
43239 hardcode_action=$hardcode_action
43241 # ### END LIBTOOL CONFIG
43245 cat <<'_LT_EOF' >> "$cfgfile"
43247 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
43249 # func_munge_path_list VARIABLE PATH
43250 # -----------------------------------
43251 # VARIABLE is name of variable containing _space_ separated list of
43252 # directories to be munged by the contents of PATH, which is string
43255 # string "DIR[ DIR]" will be prepended to VARIABLE
43257 # string "DIR[ DIR]" will be appended to VARIABLE
43258 # "DIRP[:DIRP]::[DIRA:]DIRA"
43259 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
43260 # "DIRA[ DIRA]" will be appended to VARIABLE
43262 # VARIABLE will be replaced by "DIR[ DIR]"
43263 func_munge_path_list ()
43269 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
43272 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
43275 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
43276 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
43279 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
43285 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
43286 func_cc_basename ()
43288 for cc_temp in $*""; do
43290 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
43291 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
43296 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
43300 # ### END FUNCTIONS SHARED WITH CONFIGURE
43306 cat <<\_LT_EOF
>> "$cfgfile"
43307 # AIX sometimes has problems with the GCC collect2 program. For some
43308 # reason, if we set the COLLECT_NAMES environment variable, the problems
43309 # vanish in a puff of smoke.
43310 if test set != "${COLLECT_NAMES+set}"; then
43312 export COLLECT_NAMES
43319 ltmain
=$ac_aux_dir/ltmain.sh
43322 # We use sed instead of cat because bash on DJGPP gets confused if
43323 # if finds mixed CR/LF and LF-only lines. Since sed operates in
43324 # text mode, it properly converts lines to CR/LF. This bash problem
43325 # is reportedly fixed, but why not run on old versions too?
43326 sed '$q' "$ltmain" >> "$cfgfile" \
43327 ||
(rm -f "$cfgfile"; exit 1)
43329 mv -f "$cfgfile" "$ofile" ||
43330 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
43341 ac_clean_files
=$ac_clean_files_save
43343 test $ac_write_fail = 0 ||
43344 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
43347 # configure is writing to config.log, and then calls config.status.
43348 # config.status does its own redirection, appending to config.log.
43349 # Unfortunately, on DOS this fails, as config.log is still kept open
43350 # by configure, so config.status won't be able to write to it; its
43351 # output is simply discarded. So we exec the FD to /dev/null,
43352 # effectively closing config.log, so it can be properly (re)opened and
43353 # appended to by config.status. When coming back to configure, we
43354 # need to make the FD available again.
43355 if test "$no_create" != yes; then
43357 ac_config_status_args
=
43358 test "$silent" = yes &&
43359 ac_config_status_args
="$ac_config_status_args --quiet"
43361 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
43363 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
43364 # would make configure fail if this is the last instruction.
43365 $ac_cs_success || as_fn_exit
1
43367 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
43368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
43369 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}