2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for zfs 0.6.5.9.
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.6.5.9'
591 PACKAGE_STRING
='zfs 0.6.5.9'
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
668 NO_UNUSED_BUT_SET_VARIABLE
701 am__fastdepCCAS_FALSE
753 INSTALL_STRIP_PROGRAM
773 MAINTAINER_MODE_FALSE
827 program_transform_name
840 enable_option_checking
841 enable_maintainer_mode
843 enable_dependency_tracking
865 with_systemdpresetdir
866 with_systemdmodulesloaddir
873 ac_precious_vars
='build_alias
887 # Initialize some variables set by options.
889 ac_init_version
=false
890 ac_unrecognized_opts
=
892 # The variables have the same names as the options, with
893 # dashes changed to underlines.
901 program_transform_name
=s
,x
,x
,
909 # Installation directory options.
910 # These are left unexpanded so users can "make install exec_prefix=/foo"
911 # and all the variables that are supposed to be based on exec_prefix
912 # by default will actually change.
913 # Use braces instead of parens because sh, perl, etc. also accept them.
914 # (The list follows the same order as the GNU Coding Standards.)
915 bindir
='${exec_prefix}/bin'
916 sbindir
='${exec_prefix}/sbin'
917 libexecdir
='${exec_prefix}/libexec'
918 datarootdir
='${prefix}/share'
919 datadir
='${datarootdir}'
920 sysconfdir
='${prefix}/etc'
921 sharedstatedir
='${prefix}/com'
922 localstatedir
='${prefix}/var'
923 runstatedir
='${localstatedir}/run'
924 includedir
='${prefix}/include'
925 oldincludedir
='/usr/include'
926 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
927 infodir
='${datarootdir}/info'
932 libdir
='${exec_prefix}/lib'
933 localedir
='${datarootdir}/locale'
934 mandir
='${datarootdir}/man'
940 # If the previous option needs an argument, assign it.
941 if test -n "$ac_prev"; then
942 eval $ac_prev=\
$ac_option
948 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
953 # Accept the important Cygnus configure options, so we can diagnose typos.
955 case $ac_dashdash$ac_option in
959 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
961 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
964 -build |
--build |
--buil |
--bui |
--bu)
965 ac_prev
=build_alias
;;
966 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
967 build_alias
=$ac_optarg ;;
969 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
970 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
971 ac_prev
=cache_file
;;
972 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
973 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
974 cache_file
=$ac_optarg ;;
977 cache_file
=config.cache
;;
979 -datadir |
--datadir |
--datadi |
--datad)
981 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
982 datadir
=$ac_optarg ;;
984 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
985 |
--dataroo |
--dataro |
--datar)
986 ac_prev
=datarootdir
;;
987 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
988 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
989 datarootdir
=$ac_optarg ;;
991 -disable-* |
--disable-*)
992 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
995 as_fn_error $?
"invalid feature name: $ac_useropt"
996 ac_useropt_orig
=$ac_useropt
997 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
1000 "enable_
$ac_useropt"
1002 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1003 ac_unrecognized_sep
=', ';;
1005 eval enable_
$ac_useropt=no
;;
1007 -docdir |
--docdir |
--docdi |
--doc |
--do)
1009 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1010 docdir
=$ac_optarg ;;
1012 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1014 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1015 dvidir
=$ac_optarg ;;
1017 -enable-* |
--enable-*)
1018 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1021 as_fn_error $?
"invalid feature name: $ac_useropt"
1022 ac_useropt_orig
=$ac_useropt
1023 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 case $ac_user_opts in
1026 "enable_
$ac_useropt"
1028 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1029 ac_unrecognized_sep
=', ';;
1031 eval enable_
$ac_useropt=\
$ac_optarg ;;
1033 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1034 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1035 |
--exec |
--exe |
--ex)
1036 ac_prev
=exec_prefix
;;
1037 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1038 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1039 |
--exec=* |
--exe=* |
--ex=*)
1040 exec_prefix
=$ac_optarg ;;
1042 -gas |
--gas |
--ga |
--g)
1043 # Obsolete; use --with-gas.
1046 -help |
--help |
--hel |
--he |
-h)
1047 ac_init_help
=long
;;
1048 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1049 ac_init_help
=recursive
;;
1050 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1051 ac_init_help
=short
;;
1053 -host |
--host |
--hos |
--ho)
1054 ac_prev
=host_alias
;;
1055 -host=* |
--host=* |
--hos=* |
--ho=*)
1056 host_alias
=$ac_optarg ;;
1058 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1060 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1062 htmldir
=$ac_optarg ;;
1064 -includedir |
--includedir |
--includedi |
--included |
--include \
1065 |
--includ |
--inclu |
--incl |
--inc)
1066 ac_prev
=includedir
;;
1067 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1068 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1069 includedir
=$ac_optarg ;;
1071 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1073 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1074 infodir
=$ac_optarg ;;
1076 -libdir |
--libdir |
--libdi |
--libd)
1078 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1079 libdir
=$ac_optarg ;;
1081 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1082 |
--libexe |
--libex |
--libe)
1083 ac_prev
=libexecdir
;;
1084 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1085 |
--libexe=* |
--libex=* |
--libe=*)
1086 libexecdir
=$ac_optarg ;;
1088 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1089 ac_prev
=localedir
;;
1090 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1091 localedir
=$ac_optarg ;;
1093 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1094 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1095 ac_prev
=localstatedir
;;
1096 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1097 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1098 localstatedir
=$ac_optarg ;;
1100 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1102 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1103 mandir
=$ac_optarg ;;
1105 -nfp |
--nfp |
--nf)
1106 # Obsolete; use --without-fp.
1109 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1110 |
--no-cr |
--no-c |
-n)
1113 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1114 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1117 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1118 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1119 |
--oldin |
--oldi |
--old |
--ol |
--o)
1120 ac_prev
=oldincludedir
;;
1121 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1122 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1123 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1124 oldincludedir
=$ac_optarg ;;
1126 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1128 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1129 prefix
=$ac_optarg ;;
1131 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1132 |
--program-pre |
--program-pr |
--program-p)
1133 ac_prev
=program_prefix
;;
1134 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1135 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1136 program_prefix
=$ac_optarg ;;
1138 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1139 |
--program-suf |
--program-su |
--program-s)
1140 ac_prev
=program_suffix
;;
1141 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1142 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1143 program_suffix
=$ac_optarg ;;
1145 -program-transform-name |
--program-transform-name \
1146 |
--program-transform-nam |
--program-transform-na \
1147 |
--program-transform-n |
--program-transform- \
1148 |
--program-transform |
--program-transfor \
1149 |
--program-transfo |
--program-transf \
1150 |
--program-trans |
--program-tran \
1151 |
--progr-tra |
--program-tr |
--program-t)
1152 ac_prev
=program_transform_name
;;
1153 -program-transform-name=* |
--program-transform-name=* \
1154 |
--program-transform-nam=* |
--program-transform-na=* \
1155 |
--program-transform-n=* |
--program-transform-=* \
1156 |
--program-transform=* |
--program-transfor=* \
1157 |
--program-transfo=* |
--program-transf=* \
1158 |
--program-trans=* |
--program-tran=* \
1159 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1160 program_transform_name
=$ac_optarg ;;
1162 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1164 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1165 pdfdir
=$ac_optarg ;;
1167 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1169 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1172 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1173 |
-silent |
--silent |
--silen |
--sile |
--sil)
1176 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1177 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1178 |
--run |
--ru |
--r)
1179 ac_prev
=runstatedir
;;
1180 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1181 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1182 |
--run=* |
--ru=* |
--r=*)
1183 runstatedir
=$ac_optarg ;;
1185 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1187 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1189 sbindir
=$ac_optarg ;;
1191 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1192 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1193 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1195 ac_prev
=sharedstatedir
;;
1196 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1197 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1198 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1200 sharedstatedir
=$ac_optarg ;;
1202 -site |
--site |
--sit)
1204 -site=* |
--site=* |
--sit=*)
1207 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1209 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1210 srcdir
=$ac_optarg ;;
1212 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1213 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1214 ac_prev
=sysconfdir
;;
1215 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1216 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1217 sysconfdir
=$ac_optarg ;;
1219 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1220 ac_prev
=target_alias
;;
1221 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1222 target_alias
=$ac_optarg ;;
1224 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1227 -version |
--version |
--versio |
--versi |
--vers |
-V)
1228 ac_init_version
=: ;;
1231 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1234 as_fn_error $?
"invalid package name: $ac_useropt"
1235 ac_useropt_orig
=$ac_useropt
1236 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1237 case $ac_user_opts in
1241 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1242 ac_unrecognized_sep
=', ';;
1244 eval with_
$ac_useropt=\
$ac_optarg ;;
1246 -without-* |
--without-*)
1247 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1248 # Reject names that are not valid shell variable names.
1249 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1250 as_fn_error $?
"invalid package name: $ac_useropt"
1251 ac_useropt_orig
=$ac_useropt
1252 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1253 case $ac_user_opts in
1257 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1258 ac_unrecognized_sep
=', ';;
1260 eval with_
$ac_useropt=no
;;
1263 # Obsolete; use --with-x.
1266 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1267 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1268 ac_prev
=x_includes
;;
1269 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1270 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1271 x_includes
=$ac_optarg ;;
1273 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1274 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1275 ac_prev
=x_libraries
;;
1276 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1277 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1278 x_libraries
=$ac_optarg ;;
1280 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1281 Try \`$0 --help' for more information"
1285 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1286 # Reject names that are not valid shell variable names.
1287 case $ac_envvar in #(
1288 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1289 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1291 eval $ac_envvar=\
$ac_optarg
1292 export $ac_envvar ;;
1295 # FIXME: should be removed in autoconf 3.0.
1296 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1297 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1298 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1299 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1305 if test -n "$ac_prev"; then
1306 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1307 as_fn_error $?
"missing argument to $ac_option"
1310 if test -n "$ac_unrecognized_opts"; then
1311 case $enable_option_checking in
1313 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1314 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1318 # Check all directory arguments for consistency.
1319 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1320 datadir sysconfdir sharedstatedir localstatedir includedir \
1321 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1322 libdir localedir mandir runstatedir
1324 eval ac_val
=\$
$ac_var
1325 # Remove trailing slashes.
1328 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1329 eval $ac_var=\
$ac_val;;
1331 # Be sure to have absolute directory names.
1333 [\\/$
]* | ?
:[\\/]* ) continue;;
1334 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1336 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1339 # There might be people who depend on the old broken behavior: `$host'
1340 # used to hold the argument of --host etc.
1341 # FIXME: To remove some day.
1344 target
=$target_alias
1346 # FIXME: To remove some day.
1347 if test "x$host_alias" != x
; then
1348 if test "x$build_alias" = x
; then
1349 cross_compiling
=maybe
1350 elif test "x$build_alias" != "x$host_alias"; then
1356 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1358 test "$silent" = yes && exec 6>/dev
/null
1361 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1362 ac_ls_di
=`ls -di .` &&
1363 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1364 as_fn_error $?
"working directory cannot be determined"
1365 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1366 as_fn_error $?
"pwd does not report name of working directory"
1369 # Find the source files, if location was not specified.
1370 if test -z "$srcdir"; then
1371 ac_srcdir_defaulted
=yes
1372 # Try the directory containing this script, then the parent directory.
1373 ac_confdir
=`$as_dirname -- "$as_myself" ||
1374 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1375 X"$as_myself" : 'X\(//\)[^/]' \| \
1376 X"$as_myself" : 'X\(//\)$' \| \
1377 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1378 $as_echo X"$as_myself" |
1379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1397 if test ! -r "$srcdir/$ac_unique_file"; then
1401 ac_srcdir_defaulted
=no
1403 if test ! -r "$srcdir/$ac_unique_file"; then
1404 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1405 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1407 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1409 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1411 # When building in place, set srcdir=.
1412 if test "$ac_abs_confdir" = "$ac_pwd"; then
1415 # Remove unnecessary trailing slashes from srcdir.
1416 # Double slashes in file names in object file debugging info
1417 # mess up M-x gdb in Emacs.
1419 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1421 for ac_var
in $ac_precious_vars; do
1422 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1423 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1424 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1425 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1429 # Report the --help message.
1431 if test "$ac_init_help" = "long"; then
1432 # Omit some internal or obsolete options to make the list less imposing.
1433 # This message is too long to be a string in the A/UX 3.1 sh.
1435 \`configure' configures zfs 0.6.5.9 to adapt to many kinds of systems.
1437 Usage: $0 [OPTION]... [VAR=VALUE]...
1439 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1440 VAR=VALUE. See below for descriptions of some of the useful variables.
1442 Defaults for the options are specified in brackets.
1445 -h, --help display this help and exit
1446 --help=short display options specific to this package
1447 --help=recursive display the short help of all the included packages
1448 -V, --version display version information and exit
1449 -q, --quiet, --silent do not print \`checking ...' messages
1450 --cache-file=FILE cache test results in FILE [disabled]
1451 -C, --config-cache alias for \`--cache-file=config.cache'
1452 -n, --no-create do not create output files
1453 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1455 Installation directories:
1456 --prefix=PREFIX install architecture-independent files in PREFIX
1457 [$ac_default_prefix]
1458 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1461 By default, \`make install' will install all the files in
1462 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1463 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1464 for instance \`--prefix=\$HOME'.
1466 For better control, use the options below.
1468 Fine tuning of the installation directories:
1469 --bindir=DIR user executables [EPREFIX/bin]
1470 --sbindir=DIR system admin executables [EPREFIX/sbin]
1471 --libexecdir=DIR program executables [EPREFIX/libexec]
1472 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1473 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1474 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1475 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1476 --libdir=DIR object code libraries [EPREFIX/lib]
1477 --includedir=DIR C header files [PREFIX/include]
1478 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1479 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1480 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1481 --infodir=DIR info documentation [DATAROOTDIR/info]
1482 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1483 --mandir=DIR man documentation [DATAROOTDIR/man]
1484 --docdir=DIR documentation root [DATAROOTDIR/doc/zfs]
1485 --htmldir=DIR html documentation [DOCDIR]
1486 --dvidir=DIR dvi documentation [DOCDIR]
1487 --pdfdir=DIR pdf documentation [DOCDIR]
1488 --psdir=DIR ps documentation [DOCDIR]
1494 --program-prefix=PREFIX prepend PREFIX to installed program names
1495 --program-suffix=SUFFIX append SUFFIX to installed program names
1496 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1499 --build=BUILD configure
for building on BUILD
[guessed
]
1500 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1501 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1505 if test -n "$ac_init_help"; then
1506 case $ac_init_help in
1507 short | recursive
) echo "Configuration of zfs 0.6.5.9:";;
1512 --disable-option-checking ignore unrecognized
--enable/--with options
1513 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1514 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1515 --enable-maintainer-mode
1516 enable make rules and dependencies not useful
(and
1517 sometimes confusing
) to the casual installer
1518 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1519 --disable-silent-rules verbose build output
(undo
: "make V=0")
1520 --enable-dependency-tracking
1521 do not reject slow dependency extractors
1522 --disable-dependency-tracking
1523 speeds up one-time build
1524 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1525 --enable-static[=PKGS
] build static libraries
[default
=yes]
1526 --enable-fast-install[=PKGS
]
1527 optimize
for fast installation
[default
=yes]
1528 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1529 --enable-linux-builtin Configure
for builtin in-tree kernel modules
1531 --enable-systemd install systemd unit
/preset files
[[default
: yes]]
1532 --enable-sysvinit install SysV init scripts
[default
: yes]
1533 --enable-debug Enable generic debug support
[default
=no
]
1534 --enable-debug-dmu-tx Enable dmu tx validation
[default
=no
]
1537 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1538 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1539 --with-pic[=PKGS
] try to use only PIC
/non-PIC objects
[default
=use
1541 --with-aix-soname=aix|svr4|both
1542 shared library versioning
(aka
"SONAME") variant to
1543 provide on AIX
, [default
=aix
].
1544 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1545 --with-sysroot[=DIR
] Search
for dependent libraries within DIR
(or the
1546 compiler
's sysroot if not specified).
1547 --with-spec=SPEC Spec files 'generic|redhat
'
1548 --with-config=CONFIG Config file 'kernel|user|all|srpm
'
1549 --with-linux=PATH Path to kernel source
1550 --with-linux-obj=PATH Path to kernel build objects
1551 --with-spl=PATH Path to spl source
1552 --with-spl-obj=PATH Path to spl build objects
1553 --with-spl-timeout=SECS Wait SECS for SPL header and symver file [default=0]
1554 --with-mounthelperdir=DIR
1555 install mount.zfs in dir [[/sbin]]
1556 --with-udevdir=DIR install udev helpers [default=check]
1557 --with-udevruledir=DIR install udev rules [[UDEVDIR/rules.d]]
1558 --with-systemdunitdir=DIR
1559 install systemd unit files in dir
1560 [[/usr/lib/systemd/system]]
1561 --with-systemdpresetdir=DIR
1562 install systemd preset files in dir
1563 [[/usr/lib/systemd/system-preset]]
1564 --with-systemdmodulesloaddir=DIR
1565 install systemd module load files into dir
1566 [[/usr/lib/modules-load.d]]
1567 --with-dracutdir=DIR install dracut helpers [default=check]
1568 --with-blkid support blkid caching [default=check]
1570 Some influential environment variables:
1571 CC C compiler command
1572 CFLAGS C compiler flags
1573 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1574 nonstandard directory <lib dir>
1575 LIBS libraries to pass to the linker, e.g. -l<library>
1576 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1577 you have headers in a nonstandard directory <include dir>
1579 User-defined run-time library search path.
1581 CCAS assembler compiler command (defaults to CC)
1582 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1584 Use these variables to override the choices made by `configure' or to
help
1585 it to
find libraries and programs with nonstandard names
/locations.
1587 Report bugs to the package provider.
1592 if test "$ac_init_help" = "recursive"; then
1593 # If there are subdirs, report their specific --help.
1594 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1595 test -d "$ac_dir" ||
1596 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1601 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1603 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1604 # A ".." for each directory in $ac_dir_suffix.
1605 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1606 case $ac_top_builddir_sub in
1607 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1608 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1611 ac_abs_top_builddir
=$ac_pwd
1612 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1613 # for backward compatibility:
1614 ac_top_builddir
=$ac_top_build_prefix
1617 .
) # We are building in place.
1619 ac_top_srcdir
=$ac_top_builddir_sub
1620 ac_abs_top_srcdir
=$ac_pwd ;;
1621 [\\/]* | ?
:[\\/]* ) # Absolute name.
1622 ac_srcdir
=$srcdir$ac_dir_suffix;
1623 ac_top_srcdir
=$srcdir
1624 ac_abs_top_srcdir
=$srcdir ;;
1626 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1627 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1628 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1630 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1632 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1633 # Check for guested configure.
1634 if test -f "$ac_srcdir/configure.gnu"; then
1636 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1637 elif test -f "$ac_srcdir/configure"; then
1639 $SHELL "$ac_srcdir/configure" --help=recursive
1641 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1643 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1647 test -n "$ac_init_help" && exit $ac_status
1648 if $ac_init_version; then
1650 zfs configure
0.6.5.9
1651 generated by GNU Autoconf
2.69
1653 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1654 This configure
script is free software
; the Free Software Foundation
1655 gives unlimited permission to copy
, distribute and modify it.
1660 ## ------------------------ ##
1661 ## Autoconf initialization. ##
1662 ## ------------------------ ##
1664 # ac_fn_c_try_compile LINENO
1665 # --------------------------
1666 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1667 ac_fn_c_try_compile
()
1669 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1670 rm -f conftest.
$ac_objext
1671 if { { ac_try
="$ac_compile"
1673 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_compile") 2>conftest.err
1680 if test -s conftest.err; then
1681 grep -v '^ *+' conftest.err >conftest.er1
1682 cat conftest.er1 >&5
1683 mv -f conftest.er1 conftest.err
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } && {
1687 test -z "$ac_c_werror_flag" ||
1688 test ! -s conftest.err
1689 } && test -s conftest.$ac_objext; then :
1692 $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1697 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1698 as_fn_set_status $ac_retval
1700 } # ac_fn_c_try_compile
1702 # ac_fn_c_try_link LINENO
1703 # -----------------------
1704 # Try to link conftest.$ac_ext, and return whether this succeeded.
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 rm -f conftest.$ac_objext conftest$ac_exeext
1709 if { { ac_try="$ac_link"
1711 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1712 *) ac_try_echo
=$ac_try;;
1714 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_link") 2>conftest.err
1718 if test -s conftest.err
; then
1719 grep -v '^ *+' conftest.err
>conftest.er1
1720 cat conftest.er1
>&5
1721 mv -f conftest.er1 conftest.err
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && {
1725 test -z "$ac_c_werror_flag" ||
1726 test ! -s conftest.err
1727 } && test -s conftest
$ac_exeext && {
1728 test "$cross_compiling" = yes ||
1729 test -x conftest
$ac_exeext
1733 $as_echo "$as_me: failed program was:" >&5
1734 sed 's/^/| /' conftest.
$ac_ext >&5
1738 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1739 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1740 # interfere with the next link command; also delete a directory that is
1741 # left behind by Apple's compiler. We do this before executing the actions.
1742 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744 as_fn_set_status
$ac_retval
1746 } # ac_fn_c_try_link
1748 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1749 # -------------------------------------------------------
1750 # Tests whether HEADER exists and can be compiled using the include files in
1751 # INCLUDES, setting the cache variable VAR accordingly.
1752 ac_fn_c_check_header_compile
()
1754 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756 $as_echo_n "checking for $2... " >&6; }
1757 if eval \
${$3+:} false
; then :
1758 $as_echo_n "(cached) " >&6
1760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1761 /* end confdefs.h. */
1765 if ac_fn_c_try_compile
"$LINENO"; then :
1770 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774 $as_echo "$ac_res" >&6; }
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777 } # ac_fn_c_check_header_compile
1779 # ac_fn_c_try_cpp LINENO
1780 # ----------------------
1781 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1784 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1785 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1787 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1794 if test -s conftest.err; then
1795 grep -v '^ *+' conftest.err >conftest.er1
1796 cat conftest.er1 >&5
1797 mv -f conftest.er1 conftest.err
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; } > conftest.i && {
1801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1802 test ! -s conftest.err
1806 $as_echo "$as_me: failed program was:" >&5
1807 sed 's/^/| /' conftest.$ac_ext >&5
1811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1812 as_fn_set_status $ac_retval
1816 # ac_fn_c_try_run LINENO
1817 # ----------------------
1818 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1819 # that executables *can* be run.
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 if { { ac_try="$ac_link"
1825 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1826 *) ac_try_echo
=$ac_try;;
1828 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_link") 2>&5
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1834 { { case "(($ac_try" in
1835 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1836 *) ac_try_echo=$ac_try;;
1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 $as_echo "$ac_try_echo"; } >&5
1840 (eval "$ac_try") 2>&5
1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; }; }; then :
1846 $as_echo "$as_me: program exited with status $ac_status" >&5
1847 $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1850 ac_retval=$ac_status
1852 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1853 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854 as_fn_set_status $ac_retval
1858 # ac_fn_c_check_func LINENO FUNC VAR
1859 # ----------------------------------
1860 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1861 ac_fn_c_check_func ()
1863 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1865 $as_echo_n "checking for $2... " >&6; }
1866 if eval \${$3+:} false; then :
1867 $as_echo_n "(cached) " >&6
1869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1870 /* end confdefs.h. */
1871 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1872 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1873 #define $2 innocuous_$2
1875 /* System header to define __stub macros and hopefully few prototypes,
1876 which can conflict with char $2 (); below.
1877 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1878 <limits.h> exists even on freestanding compilers. */
1881 # include <limits.h>
1883 # include <assert.h>
1888 /* Override any GCC internal prototype to avoid an error.
1889 Use char because int might match the return type of a GCC
1890 builtin and then its argument prototype would still apply. */
1895 /* The GNU C library defines this for functions which it implements
1896 to always fail with ENOSYS. Some functions are actually named
1897 something starting with __ and the normal name is an alias. */
1898 #if defined __stub_$2 || defined __stub___$2
1910 if ac_fn_c_try_link "$LINENO"; then :
1915 rm -f core conftest.err conftest.$ac_objext \
1916 conftest$ac_exeext conftest.$ac_ext
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920 $as_echo "$ac_res" >&6; }
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923 } # ac_fn_c_check_func
1925 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1926 # -------------------------------------------------------
1927 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1928 # the include files in INCLUDES and setting the cache variable VAR
1930 ac_fn_c_check_header_mongrel ()
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 if eval \${$3+:} false; then :
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935 $as_echo_n "checking for $2... " >&6; }
1936 if eval \${$3+:} false; then :
1937 $as_echo_n "(cached) " >&6
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1943 # Is the header compilable?
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1945 $as_echo_n "checking $2 usability... " >&6; }
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1951 if ac_fn_c_try_compile "$LINENO"; then :
1952 ac_header_compiler=yes
1954 ac_header_compiler=no
1956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1958 $as_echo "$ac_header_compiler" >&6; }
1960 # Is the header present?
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1962 $as_echo_n "checking $2 presence... " >&6; }
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1967 if ac_fn_c_try_cpp "$LINENO"; then :
1968 ac_header_preproc=yes
1970 ac_header_preproc=no
1972 rm -f conftest.err conftest.i conftest.$ac_ext
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1974 $as_echo "$ac_header_preproc" >&6; }
1976 # So? What about this header?
1977 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1980 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1982 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1986 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1988 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1990 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1992 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1994 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1998 $as_echo_n "checking for $2... " >&6; }
1999 if eval \${$3+:} false; then :
2000 $as_echo_n "(cached) " >&6
2002 eval "$3=\$ac_header_compiler"
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006 $as_echo "$ac_res" >&6; }
2008 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010 } # ac_fn_c_check_header_mongrel
2011 cat >config.log <<_ACEOF
2012 This file contains any messages produced by compilers while
2013 running configure, to aid debugging if configure makes a mistake.
2015 It was created by zfs $as_me 0.6.5.9, which was
2016 generated by GNU Autoconf 2.69. Invocation command line was
2028 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2029 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2030 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2031 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2032 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2034 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2035 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2037 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2038 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2039 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2040 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2041 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2042 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2043 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2051 test -z "$as_dir" && as_dir=.
2052 $as_echo "PATH: $as_dir"
2068 # Keep a trace of the command line.
2069 # Strip out --no-create and --no-recursion so they do not pile up.
2070 # Strip out --silent because we don't want to record it for future runs.
2071 # Also quote any args containing shell meta-characters.
2072 # Make two passes to allow for proper duplicate-argument suppression.
2076 ac_must_keep_next=false
2082 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2084 | -silent | --silent | --silen | --sile | --sil)
2087 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2090 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2092 as_fn_append ac_configure_args1 " '$ac_arg'"
2093 if test $ac_must_keep_next = true; then
2094 ac_must_keep_next=false # Got value, back to normal.
2097 *=* | --config-cache | -C | -disable-* | --disable-* \
2098 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2099 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2100 | -with-* | --with-* | -without-* | --without-* | --x)
2101 case "$ac_configure_args0 " in
2102 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2105 -* ) ac_must_keep_next=true ;;
2108 as_fn_append ac_configure_args " '$ac_arg'"
2113 { ac_configure_args0=; unset ac_configure_args0;}
2114 { ac_configure_args1=; unset ac_configure_args1;}
2116 # When interrupted or exit'd, cleanup temporary files, and complete
2117 # config.log. We remove comments because anyway the quotes in there
2118 # would cause problems or look ugly.
2119 # WARNING: Use '\'' to represent an apostrophe within the trap.
2120 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2121 trap 'exit_status=$?
2122 # Save into config.log some information that might help in debugging.
2126 $as_echo "## ---------------- ##
2127 ## Cache variables. ##
2128 ## ---------------- ##"
2130 # The following way of writing the cache mishandles newlines in values,
2132 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2133 eval ac_val=\$$ac_var
2137 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2138 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2141 _ | IFS | as_nl) ;; #(
2142 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2143 *) { eval $ac_var=; unset $ac_var;} ;;
2148 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2149 *${as_nl}ac_space=\ *)
2151 "s/'\''/'\''\\\\'\'''\''/g;
2152 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2155 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2162 $as_echo "## ----------------- ##
2163 ## Output variables. ##
2164 ## ----------------- ##"
2166 for ac_var in $ac_subst_vars
2168 eval ac_val=\$$ac_var
2170 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2172 $as_echo "$ac_var='\''$ac_val'\''"
2176 if test -n "$ac_subst_files"; then
2177 $as_echo "## ------------------- ##
2178 ## File substitutions. ##
2179 ## ------------------- ##"
2181 for ac_var in $ac_subst_files
2183 eval ac_val=\$$ac_var
2185 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2187 $as_echo "$ac_var='\''$ac_val'\''"
2192 if test -s confdefs.h; then
2193 $as_echo "## ----------- ##
2200 test "$ac_signal" != 0 &&
2201 $as_echo "$as_me: caught signal $ac_signal"
2202 $as_echo "$as_me: exit $exit_status"
2204 rm -f core *.core core.conftest.* &&
2205 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2208 for ac_signal in 1 2 13 15; do
2209 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2213 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2214 rm -f -r conftest* confdefs.h
2216 $as_echo "/* confdefs.h */" > confdefs.h
2218 # Predefined preprocessor variables.
2220 cat >>confdefs.h <<_ACEOF
2221 #define PACKAGE_NAME "$PACKAGE_NAME"
2224 cat >>confdefs.h <<_ACEOF
2225 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2228 cat >>confdefs.h <<_ACEOF
2229 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2232 cat >>confdefs.h <<_ACEOF
2233 #define PACKAGE_STRING "$PACKAGE_STRING"
2236 cat >>confdefs.h <<_ACEOF
2237 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2240 cat >>confdefs.h <<_ACEOF
2241 #define PACKAGE_URL "$PACKAGE_URL"
2245 # Let the site file select an alternate cache file if it wants to.
2246 # Prefer an explicitly selected file to automatically selected ones.
2249 if test -n "$CONFIG_SITE"; then
2250 # We do not want a PATH search for config.site.
2251 case $CONFIG_SITE in #((
2252 -*) ac_site_file1=./$CONFIG_SITE;;
2253 */*) ac_site_file1=$CONFIG_SITE;;
2254 *) ac_site_file1=./$CONFIG_SITE;;
2256 elif test "x$prefix" != xNONE; then
2257 ac_site_file1=$prefix/share/config.site
2258 ac_site_file2=$prefix/etc/config.site
2260 ac_site_file1=$ac_default_prefix/share/config.site
2261 ac_site_file2=$ac_default_prefix/etc/config.site
2263 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2265 test "x$ac_site_file" = xNONE && continue
2266 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2268 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2269 sed 's/^/| /' "$ac_site_file" >&5
2271 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2273 as_fn_error $? "failed to load site
script $ac_site_file
2274 See \
`config.log' for more details" "$LINENO" 5; }
2278 if test -r "$cache_file"; then
2279 # Some versions of bash will fail to source /dev/null (special files
2280 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2281 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2283 $as_echo "$as_me: loading cache $cache_file" >&6;}
2285 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2286 *) . "./$cache_file";;
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2291 $as_echo "$as_me: creating cache $cache_file" >&6;}
2295 # Check that the precious variables saved in the cache have kept the same
2297 ac_cache_corrupted=false
2298 for ac_var in $ac_precious_vars; do
2299 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2300 eval ac_new_set=\$ac_env_${ac_var}_set
2301 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2302 eval ac_new_val=\$ac_env_${ac_var}_value
2303 case $ac_old_set,$ac_new_set in
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2306 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2307 ac_cache_corrupted=: ;;
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2310 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2311 ac_cache_corrupted=: ;;
2314 if test "x$ac_old_val" != "x$ac_new_val"; then
2315 # differences in whitespace do not lead to failure.
2316 ac_old_val_w=`echo x
$ac_old_val`
2317 ac_new_val_w=`echo x
$ac_new_val`
2318 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2320 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2321 ac_cache_corrupted=:
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2324 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2325 eval $ac_var=\$ac_old_val
2327 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2328 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2330 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2333 # Pass precious variables to config.status.
2334 if test "$ac_new_set" = set; then
2336 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2337 *) ac_arg=$ac_var=$ac_new_val ;;
2339 case " $ac_configure_args " in
2340 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2341 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2345 if $ac_cache_corrupted; then
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2347 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2349 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2350 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2352 ## -------------------- ##
2353 ## Main body of script. ##
2354 ## -------------------- ##
2357 ac_cpp='$CPP $CPPFLAGS'
2358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2364 ac_cpp='$CPP $CPPFLAGS'
2365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2373 for ac_prog in gawk mawk nawk awk
2375 # Extract the first word of "$ac_prog", so it can be a program name with args.
2376 set dummy $ac_prog; ac_word=$2
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2378 $as_echo_n "checking for $ac_word... " >&6; }
2379 if ${ac_cv_prog_AWK+:} false; then :
2380 $as_echo_n "(cached) " >&6
2382 if test -n "$AWK"; then
2383 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389 test -z "$as_dir" && as_dir=.
2390 for ac_exec_ext in '' $ac_executable_extensions; do
2391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2392 ac_cv_prog_AWK="$ac_prog"
2393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2403 if test -n "$AWK"; then
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2405 $as_echo "$AWK" >&6; }
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2408 $as_echo "no" >&6; }
2412 test -n "$AWK" && break
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking metadata" >&5
2416 $as_echo_n "checking metadata... " >&6; }
2419 _zfs_ac_meta_type="none"
2420 if test -f "$META"; then
2421 _zfs_ac_meta_type="META file"
2423 ZFS_META_NAME=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`;
2424 if test -n "$ZFS_META_NAME"; then
2426 cat >>confdefs.h <<_ACEOF
2427 #define ZFS_META_NAME "$ZFS_META_NAME"
2433 ZFS_META_VERSION=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`;
2434 if test -n "$ZFS_META_VERSION"; then
2436 cat >>confdefs.h <<_ACEOF
2437 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2443 ZFS_META_RELEASE=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`;
2444 if test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then
2445 _match="${ZFS_META_NAME}-${ZFS_META_VERSION}"
2446 _alias=$(git describe --match=${_match} 2>/dev/null)
2447 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2448 if test -n "${_release}"; then
2449 ZFS_META_RELEASE=${_release}
2450 _zfs_ac_meta_type="git describe"
2454 if test -n "$ZFS_META_RELEASE"; then
2456 cat >>confdefs.h <<_ACEOF
2457 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2462 RELEASE="$ZFS_META_RELEASE"
2466 ZFS_META_LICENSE=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`;
2467 if test -n "$ZFS_META_LICENSE"; then
2469 cat >>confdefs.h <<_ACEOF
2470 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2476 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2477 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2478 test -n "$ZFS_META_RELEASE" &&
2479 ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2481 cat >>confdefs.h <<_ACEOF
2482 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2488 ZFS_META_DATA=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`;
2489 if test -n "$ZFS_META_DATA"; then
2491 cat >>confdefs.h <<_ACEOF
2492 #define ZFS_META_DATA "$ZFS_META_DATA"
2498 ZFS_META_AUTHOR=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`;
2499 if test -n "$ZFS_META_AUTHOR"; then
2501 cat >>confdefs.h <<_ACEOF
2502 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2509 ZFS_META_LT_CURRENT=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`;
2510 ZFS_META_LT_REVISION=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`;
2511 ZFS_META_LT_AGE=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`;
2512 if test -n "$ZFS_META_LT_CURRENT" \
2513 -o -n "$ZFS_META_LT_REVISION" \
2514 -o -n "$ZFS_META_LT_AGE"; then
2515 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2516 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2517 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2519 cat >>confdefs.h <<_ACEOF
2520 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2524 cat >>confdefs.h <<_ACEOF
2525 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2529 cat >>confdefs.h <<_ACEOF
2530 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_zfs_ac_meta_type" >&5
2540 $as_echo "$_zfs_ac_meta_type" >&6; }
2544 for ac_dir in config "$srcdir"/config; do
2545 if test -f "$ac_dir/install-sh"; then
2547 ac_install_sh="$ac_aux_dir/install-sh -c"
2549 elif test -f "$ac_dir/install.sh"; then
2551 ac_install_sh="$ac_aux_dir/install.sh -c"
2553 elif test -f "$ac_dir/shtool"; then
2555 ac_install_sh="$ac_aux_dir/shtool install -c"
2559 if test -z "$ac_aux_dir"; then
2560 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2563 # These three variables are undocumented and unsupported,
2564 # and are intended to be withdrawn in a future Autoconf release.
2565 # They can cause serious problems if a builder's source tree is in a directory
2566 # whose full name contains unusual characters.
2567 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2568 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2569 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2573 # Make sure we can run config.sub.
2574 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2575 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2578 $as_echo_n "checking build system type... " >&6; }
2579 if ${ac_cv_build+:} false; then :
2580 $as_echo_n "(cached) " >&6
2582 ac_build_alias=$build_alias
2583 test "x$ac_build_alias" = x &&
2584 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2585 test "x$ac_build_alias" = x &&
2586 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2587 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2588 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2592 $as_echo "$ac_cv_build" >&6; }
2593 case $ac_cv_build in
2595 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2598 ac_save_IFS=$IFS; IFS='-'
2604 # Remember, the first character of IFS is used to create $*,
2605 # except with old shells:
2608 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2612 $as_echo_n "checking host system type... " >&6; }
2613 if ${ac_cv_host+:} false; then :
2614 $as_echo_n "(cached) " >&6
2616 if test "x$host_alias" = x; then
2617 ac_cv_host=$ac_cv_build
2619 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2620 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2625 $as_echo "$ac_cv_host" >&6; }
2628 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2631 ac_save_IFS=$IFS; IFS='-'
2637 # Remember, the first character of IFS is used to create $*,
2638 # except with old shells:
2641 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2645 $as_echo_n "checking target system type... " >&6; }
2646 if ${ac_cv_target+:} false; then :
2647 $as_echo_n "(cached) " >&6
2649 if test "x$target_alias" = x; then
2650 ac_cv_target=$ac_cv_host
2652 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2653 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2658 $as_echo "$ac_cv_target" >&6; }
2659 case $ac_cv_target in
2661 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2663 target=$ac_cv_target
2664 ac_save_IFS=$IFS; IFS='-'
2670 # Remember, the first character of IFS is used to create $*,
2671 # except with old shells:
2674 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2677 # The aliases save the names the user supplied, while $host etc.
2678 # will get canonicalized.
2679 test -n "$target_alias" &&
2680 test "$program_prefix$program_suffix$program_transform_name" = \
2682 program_prefix=${target_alias}-
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2686 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2687 # Check whether --enable-maintainer-mode was given.
2688 if test "${enable_maintainer_mode+set}" = set; then :
2689 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2691 USE_MAINTAINER_MODE=no
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2695 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2696 if test $USE_MAINTAINER_MODE = yes; then
2697 MAINTAINER_MODE_TRUE=
2698 MAINTAINER_MODE_FALSE='#'
2700 MAINTAINER_MODE_TRUE='#'
2701 MAINTAINER_MODE_FALSE=
2704 MAINT=$MAINTAINER_MODE_TRUE
2707 # Check whether --enable-silent-rules was given.
2708 if test "${enable_silent_rules+set}" = set; then :
2709 enableval=$enable_silent_rules;
2712 case $enable_silent_rules in # (((
2713 yes) AM_DEFAULT_VERBOSITY=0;;
2714 no) AM_DEFAULT_VERBOSITY=1;;
2715 *) AM_DEFAULT_VERBOSITY=0;;
2717 am_make=${MAKE-make}
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2719 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2720 if ${am_cv_make_support_nested_variables+:} false; then :
2721 $as_echo_n "(cached) " >&6
2723 if $as_echo 'TRUE=$(BAR$(V))
2729 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2730 am_cv_make_support_nested_variables=yes
2732 am_cv_make_support_nested_variables=no
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2736 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2737 if test $am_cv_make_support_nested_variables = yes; then
2739 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2741 AM_V=$AM_DEFAULT_VERBOSITY
2742 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2746 am__api_version='1.15'
2748 # Find a good install program. We prefer a C program (faster),
2749 # so one script is as good as another. But avoid the broken or
2750 # incompatible versions:
2751 # SysV /etc/install, /usr/sbin/install
2752 # SunOS /usr/etc/install
2753 # IRIX /sbin/install
2755 # AmigaOS /C/install, which installs bootblocks on floppy discs
2756 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2757 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2758 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2759 # OS/2's system install, which has a completely different semantic
2760 # ./install, which can be erroneously created by make from ./install.sh.
2761 # Reject install programs that cannot install multiple files.
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2763 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2764 if test -z "$INSTALL"; then
2765 if ${ac_cv_path_install+:} false; then :
2766 $as_echo_n "(cached) " >&6
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772 test -z "$as_dir" && as_dir=.
2773 # Account for people who put trailing slashes in PATH elements.
2774 case $as_dir/ in #((
2775 ./ | .// | /[cC]/* | \
2776 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2777 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2780 # OSF1 and SCO ODT 3.0 have their own names for install.
2781 # Don't use installbsd from OSF since it installs stuff as root
2783 for ac_prog in ginstall scoinst install; do
2784 for ac_exec_ext in '' $ac_executable_extensions; do
2785 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2786 if test $ac_prog = install &&
2787 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2788 # AIX install. It has an incompatible calling convention.
2790 elif test $ac_prog = install &&
2791 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2792 # program-specific install script used by HP pwplus--don't use.
2795 rm -rf conftest.one conftest.two conftest.dir
2796 echo one > conftest.one
2797 echo two > conftest.two
2799 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2800 test -s conftest.one && test -s conftest.two &&
2801 test -s conftest.dir/conftest.one &&
2802 test -s conftest.dir/conftest.two
2804 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2817 rm -rf conftest.one conftest.two conftest.dir
2820 if test "${ac_cv_path_install+set}" = set; then
2821 INSTALL=$ac_cv_path_install
2823 # As a last resort, use the slow shell script. Don't cache a
2824 # value for INSTALL within a source directory, because that will
2825 # break other packages using the cache if that directory is
2826 # removed, or if the value is a relative name.
2827 INSTALL=$ac_install_sh
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2831 $as_echo "$INSTALL" >&6; }
2833 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2834 # It thinks the first close brace ends the variable substitution.
2835 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2837 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2839 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2842 $as_echo_n "checking whether build environment is sane... " >&6; }
2843 # Reject unsafe characters in $srcdir or the absolute working directory
2844 # name. Accept space and tab only in the latter.
2848 *[\\\"\#\$\&\'\`$am_lf]*)
2849 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2852 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2853 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2856 # Do 'set' in a subshell so we don't clobber the current shell's
2857 # arguments. Must try -L first in case configure is actually a
2858 # symlink; some systems play weird games with the mod time of symlinks
2859 # (eg FreeBSD returns the mod time of the symlink's containing
2863 for am_try
in 1 2; do
2864 echo "timestamp, slept: $am_has_slept" > conftest.
file
2865 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2866 if test "$*" = "X"; then
2868 set X
`ls -t "$srcdir/configure" conftest.file`
2870 if test "$*" != "X $srcdir/configure conftest.file" \
2871 && test "$*" != "X conftest.file $srcdir/configure"; then
2873 # If neither matched, then we have a broken ls. This can happen
2874 # if, for instance, CONFIG_SHELL is bash and it inherits a
2875 # broken ls alias from the environment. This has actually
2876 # happened. Such a system could not be considered "sane".
2877 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2878 alias in your environment" "$LINENO" 5
2880 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2887 test "$2" = conftest.
file
2893 as_fn_error $?
"newly created file is older than distributed files!
2894 Check your system clock" "$LINENO" 5
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2897 $as_echo "yes" >&6; }
2898 # If we didn't sleep, we still need to ensure time stamps of config.status and
2899 # generated files are strictly newer.
2901 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2908 test "$program_prefix" != NONE
&&
2909 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2910 # Use a double $ so make ignores it.
2911 test "$program_suffix" != NONE
&&
2912 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2913 # Double any \ or $.
2914 # By default was `s,x,x', remove it if useless.
2915 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2916 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2918 # Expand $ac_aux_dir to an absolute path.
2919 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2921 if test x
"${MISSING+set}" != xset
; then
2924 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2926 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2929 # Use eval to expand $SHELL
2930 if eval "$MISSING --is-lightweight"; then
2931 am_missing_run
="$MISSING "
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2935 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2938 if test x
"${install_sh+set}" != xset
; then
2941 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2943 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2947 # Installed binaries are usually stripped using 'strip' when the user
2948 # run "make install-strip". However 'strip' might not be the right
2949 # tool to use in cross-compilation environments, therefore Automake
2950 # will honor the 'STRIP' environment variable to overrule this program.
2951 if test "$cross_compiling" != no
; then
2952 if test -n "$ac_tool_prefix"; then
2953 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2954 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2956 $as_echo_n "checking for $ac_word... " >&6; }
2957 if ${ac_cv_prog_STRIP+:} false
; then :
2958 $as_echo_n "(cached) " >&6
2960 if test -n "$STRIP"; then
2961 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2963 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2967 test -z "$as_dir" && as_dir
=.
2968 for ac_exec_ext
in '' $ac_executable_extensions; do
2969 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2970 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2980 STRIP
=$ac_cv_prog_STRIP
2981 if test -n "$STRIP"; then
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2983 $as_echo "$STRIP" >&6; }
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2986 $as_echo "no" >&6; }
2991 if test -z "$ac_cv_prog_STRIP"; then
2993 # Extract the first word of "strip", so it can be a program name with args.
2994 set dummy strip
; ac_word
=$2
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2996 $as_echo_n "checking for $ac_word... " >&6; }
2997 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
2998 $as_echo_n "(cached) " >&6
3000 if test -n "$ac_ct_STRIP"; then
3001 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3003 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3007 test -z "$as_dir" && as_dir
=.
3008 for ac_exec_ext
in '' $ac_executable_extensions; do
3009 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3010 ac_cv_prog_ac_ct_STRIP
="strip"
3011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3020 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3021 if test -n "$ac_ct_STRIP"; then
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3023 $as_echo "$ac_ct_STRIP" >&6; }
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026 $as_echo "no" >&6; }
3029 if test "x$ac_ct_STRIP" = x
; then
3032 case $cross_compiling:$ac_tool_warned in
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3035 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3036 ac_tool_warned
=yes ;;
3041 STRIP
="$ac_cv_prog_STRIP"
3045 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3048 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3049 if test -z "$MKDIR_P"; then
3050 if ${ac_cv_path_mkdir+:} false
; then :
3051 $as_echo_n "(cached) " >&6
3053 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3054 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3057 test -z "$as_dir" && as_dir
=.
3058 for ac_prog
in mkdir gmkdir
; do
3059 for ac_exec_ext
in '' $ac_executable_extensions; do
3060 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3061 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3062 'mkdir (GNU coreutils) '* | \
3063 'mkdir (coreutils) '* | \
3064 'mkdir (fileutils) '4.1*)
3065 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3075 test -d .
/--version && rmdir .
/--version
3076 if test "${ac_cv_path_mkdir+set}" = set; then
3077 MKDIR_P
="$ac_cv_path_mkdir -p"
3079 # As a last resort, use the slow shell script. Don't cache a
3080 # value for MKDIR_P within a source directory, because that will
3081 # break other packages using the cache if that directory is
3082 # removed, or if the value is a relative name.
3083 MKDIR_P
="$ac_install_sh -d"
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3087 $as_echo "$MKDIR_P" >&6; }
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3090 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3092 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3093 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3094 $as_echo_n "(cached) " >&6
3096 cat >conftest.
make <<\_ACEOF
3099 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3101 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3102 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3104 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3106 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3110 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3112 $as_echo "yes" >&6; }
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 $as_echo "no" >&6; }
3117 SET_MAKE
="MAKE=${MAKE-make}"
3120 rm -rf .tst
2>/dev
/null
3121 mkdir .tst
2>/dev
/null
3122 if test -d .tst
; then
3127 rmdir .tst
2>/dev
/null
3129 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3130 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3131 # is not polluted with repeated "-I."
3132 am__isrc
=' -I$(srcdir)'
3133 # test to see if srcdir already configured
3134 if test -f $srcdir/config.status
; then
3135 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3139 # test whether we have cygpath
3140 if test -z "$CYGPATH_W"; then
3141 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3142 CYGPATH_W
='cygpath -w'
3149 # Define the identity of the package.
3154 cat >>confdefs.h
<<_ACEOF
3155 #define PACKAGE "$PACKAGE"
3159 cat >>confdefs.h
<<_ACEOF
3160 #define VERSION "$VERSION"
3163 # Some tools Automake needs.
3165 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3168 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3171 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3174 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3177 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3179 # For better backward compatibility. To be removed once Automake 1.9.x
3180 # dies out for good. For more background, see:
3181 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3182 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3183 mkdir_p
='$(MKDIR_P)'
3185 # We need awk for the "check" target (and possibly the TAP driver). The
3186 # system "awk" is bad on some platforms.
3187 # Always define AMTAR for backward compatibility. Yes, it's still used
3188 # in the wild :-( We should find a proper way to deprecate it ...
3192 # We'll loop over all known methods to create a tar archive until one works.
3193 _am_tools
='gnutar pax cpio none'
3195 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3202 # POSIX will say in a future version that running "rm -f" with no argument
3203 # is OK; and we want to be able to make that assumption in our Makefile
3204 # recipes. So use an aggressive probe to check that the usage we want is
3205 # actually supported "in the wild" to an acceptable degree.
3206 # See automake bug#10828.
3207 # To make any issue more visible, cause the running configure to be aborted
3208 # by default if the 'rm' program in use doesn't match our expectations; the
3209 # user can still override this though.
3210 if rm -f && rm -fr && rm -rf; then : OK
; else
3214 Your 'rm' program seems unable to run without file operands specified
3215 on the command line, even when the '-f' option is present. This is contrary
3216 to the behaviour of most rm programs out there, and not conforming with
3217 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3219 Please tell bug-automake@gnu.org about your system, including the value
3220 of your $PATH and any error possibly output before this message. This
3221 can help us improve future automake versions.
3224 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3225 echo 'Configuration will proceed anyway, since you have set the' >&2
3226 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3230 Aborting the configuration process, to ensure you take notice of the issue.
3232 You can download and install GNU coreutils to get an 'rm' implementation
3233 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3235 If you want to complete the configuration process using your problematic
3236 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3237 to "yes", and re-run configure.
3240 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3244 ac_config_headers
="$ac_config_headers zfs_config.h"
3249 ac_cpp
='$CPP $CPPFLAGS'
3250 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3251 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3252 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3253 if test -n "$ac_tool_prefix"; then
3254 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3255 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257 $as_echo_n "checking for $ac_word... " >&6; }
3258 if ${ac_cv_prog_CC+:} false
; then :
3259 $as_echo_n "(cached) " >&6
3261 if test -n "$CC"; then
3262 ac_cv_prog_CC
="$CC" # Let the user override the test.
3264 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3268 test -z "$as_dir" && as_dir
=.
3269 for ac_exec_ext
in '' $ac_executable_extensions; do
3270 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3271 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3282 if test -n "$CC"; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3284 $as_echo "$CC" >&6; }
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287 $as_echo "no" >&6; }
3292 if test -z "$ac_cv_prog_CC"; then
3294 # Extract the first word of "gcc", so it can be a program name with args.
3295 set dummy gcc
; ac_word
=$2
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3297 $as_echo_n "checking for $ac_word... " >&6; }
3298 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3299 $as_echo_n "(cached) " >&6
3301 if test -n "$ac_ct_CC"; then
3302 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3308 test -z "$as_dir" && as_dir
=.
3309 for ac_exec_ext
in '' $ac_executable_extensions; do
3310 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3311 ac_cv_prog_ac_ct_CC
="gcc"
3312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3321 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3322 if test -n "$ac_ct_CC"; then
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3324 $as_echo "$ac_ct_CC" >&6; }
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3327 $as_echo "no" >&6; }
3330 if test "x$ac_ct_CC" = x
; then
3333 case $cross_compiling:$ac_tool_warned in
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3336 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3337 ac_tool_warned
=yes ;;
3345 if test -z "$CC"; then
3346 if test -n "$ac_tool_prefix"; then
3347 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3348 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3350 $as_echo_n "checking for $ac_word... " >&6; }
3351 if ${ac_cv_prog_CC+:} false
; then :
3352 $as_echo_n "(cached) " >&6
3354 if test -n "$CC"; then
3355 ac_cv_prog_CC
="$CC" # Let the user override the test.
3357 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3361 test -z "$as_dir" && as_dir
=.
3362 for ac_exec_ext
in '' $ac_executable_extensions; do
3363 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3364 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 if test -n "$CC"; then
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3377 $as_echo "$CC" >&6; }
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3380 $as_echo "no" >&6; }
3386 if test -z "$CC"; then
3387 # Extract the first word of "cc", so it can be a program name with args.
3388 set dummy cc
; ac_word
=$2
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3390 $as_echo_n "checking for $ac_word... " >&6; }
3391 if ${ac_cv_prog_CC+:} false
; then :
3392 $as_echo_n "(cached) " >&6
3394 if test -n "$CC"; then
3395 ac_cv_prog_CC
="$CC" # Let the user override the test.
3398 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3402 test -z "$as_dir" && as_dir
=.
3403 for ac_exec_ext
in '' $ac_executable_extensions; do
3404 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3405 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3406 ac_prog_rejected
=yes
3410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3417 if test $ac_prog_rejected = yes; then
3418 # We found a bogon in the path, so make sure we never use it.
3419 set dummy
$ac_cv_prog_CC
3421 if test $# != 0; then
3422 # We chose a different compiler from the bogus one.
3423 # However, it has the same basename, so the bogon will be chosen
3424 # first if we set CC to just the basename; use the full file name.
3426 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3432 if test -n "$CC"; then
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3434 $as_echo "$CC" >&6; }
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437 $as_echo "no" >&6; }
3442 if test -z "$CC"; then
3443 if test -n "$ac_tool_prefix"; then
3444 for ac_prog
in cl.exe
3446 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3447 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3449 $as_echo_n "checking for $ac_word... " >&6; }
3450 if ${ac_cv_prog_CC+:} false
; then :
3451 $as_echo_n "(cached) " >&6
3453 if test -n "$CC"; then
3454 ac_cv_prog_CC
="$CC" # Let the user override the test.
3456 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3460 test -z "$as_dir" && as_dir
=.
3461 for ac_exec_ext
in '' $ac_executable_extensions; do
3462 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3463 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3474 if test -n "$CC"; then
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3476 $as_echo "$CC" >&6; }
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3479 $as_echo "no" >&6; }
3483 test -n "$CC" && break
3486 if test -z "$CC"; then
3488 for ac_prog
in cl.exe
3490 # Extract the first word of "$ac_prog", so it can be a program name with args.
3491 set dummy
$ac_prog; ac_word
=$2
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3493 $as_echo_n "checking for $ac_word... " >&6; }
3494 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3495 $as_echo_n "(cached) " >&6
3497 if test -n "$ac_ct_CC"; then
3498 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3500 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3504 test -z "$as_dir" && as_dir
=.
3505 for ac_exec_ext
in '' $ac_executable_extensions; do
3506 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3507 ac_cv_prog_ac_ct_CC
="$ac_prog"
3508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3517 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3518 if test -n "$ac_ct_CC"; then
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3520 $as_echo "$ac_ct_CC" >&6; }
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3523 $as_echo "no" >&6; }
3527 test -n "$ac_ct_CC" && break
3530 if test "x$ac_ct_CC" = x
; then
3533 case $cross_compiling:$ac_tool_warned in
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3536 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3537 ac_tool_warned
=yes ;;
3546 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3548 as_fn_error $?
"no acceptable C compiler found in \$PATH
3549 See \`config.log' for more details" "$LINENO" 5; }
3551 # Provide some information about the compiler.
3552 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3555 for ac_option
in --version -v -V -qversion; do
3556 { { ac_try
="$ac_compiler $ac_option >&5"
3558 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3559 *) ac_try_echo=$ac_try;;
3561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3562 $as_echo "$ac_try_echo"; } >&5
3563 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3565 if test -s conftest.err; then
3567 ... rest of stderr output deleted ...
3568 10q' conftest.err >conftest.er1
3569 cat conftest.er1 >&5
3571 rm -f conftest.er1 conftest.err
3572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3573 test $ac_status = 0; }
3576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3577 /* end confdefs.h. */
3587 ac_clean_files_save=$ac_clean_files
3588 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3589 # Try to create an executable without -o first, disregard a.out.
3590 # It will help us diagnose broken compilers, and finding out an intuition
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3593 $as_echo_n "checking whether the C compiler works... " >&6; }
3594 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3596 # The possible output files:
3597 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3600 for ac_file in $ac_files
3603 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3604 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3609 if { { ac_try="$ac_link_default"
3611 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3612 *) ac_try_echo
=$ac_try;;
3614 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3615 $as_echo "$ac_try_echo"; } >&5
3616 (eval "$ac_link_default") 2>&5
3618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3619 test $ac_status = 0; }; then :
3620 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3621 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3622 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3623 # so that the user can short-circuit this test for compilers unknown to
3625 for ac_file
in $ac_files ''
3627 test -f "$ac_file" ||
continue
3629 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3632 # We found the default executable, but exeext='' is most
3636 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3638 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3640 # We set ac_cv_exeext here because the later test for it is not
3641 # safe: cross compilers may not add the suffix if given an `-o'
3642 # argument, so we may need to know it at that point already.
3643 # Even if this section looks crufty: it has the advantage of
3650 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3655 if test -z "$ac_file"; then :
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3657 $as_echo "no" >&6; }
3658 $as_echo "$as_me: failed program was:" >&5
3659 sed 's/^/| /' conftest.
$ac_ext >&5
3661 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3662 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3663 as_fn_error
77 "C compiler cannot create executables
3664 See \`config.log' for more details" "$LINENO" 5; }
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3667 $as_echo "yes" >&6; }
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3670 $as_echo_n "checking for C compiler default output file name... " >&6; }
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3672 $as_echo "$ac_file" >&6; }
3673 ac_exeext
=$ac_cv_exeext
3675 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3676 ac_clean_files
=$ac_clean_files_save
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3678 $as_echo_n "checking for suffix of executables... " >&6; }
3679 if { { ac_try
="$ac_link"
3681 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3682 *) ac_try_echo=$ac_try;;
3684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3685 $as_echo "$ac_try_echo"; } >&5
3686 (eval "$ac_link") 2>&5
3688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3689 test $ac_status = 0; }; then :
3690 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3691 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3692 # work properly (i.e., refer to `conftest.exe'), while it won't with
3694 for ac_file
in conftest.exe conftest conftest.
*; do
3695 test -f "$ac_file" ||
continue
3697 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3698 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3704 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3706 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3707 See \`config.log' for more details" "$LINENO" 5; }
3709 rm -f conftest conftest
$ac_cv_exeext
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3711 $as_echo "$ac_cv_exeext" >&6; }
3713 rm -f conftest.
$ac_ext
3714 EXEEXT
=$ac_cv_exeext
3716 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3717 /* end confdefs.h. */
3722 FILE *f = fopen ("conftest.out", "w");
3723 return ferror (f) || fclose (f) != 0;
3729 ac_clean_files
="$ac_clean_files conftest.out"
3730 # Check that the compiler produces executables we can run. If not, either
3731 # the compiler is broken, or we cross compile.
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3733 $as_echo_n "checking whether we are cross compiling... " >&6; }
3734 if test "$cross_compiling" != yes; then
3735 { { ac_try
="$ac_link"
3737 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3738 *) ac_try_echo=$ac_try;;
3740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3741 $as_echo "$ac_try_echo"; } >&5
3742 (eval "$ac_link") 2>&5
3744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3745 test $ac_status = 0; }
3746 if { ac_try='./conftest$ac_cv_exeext'
3747 { { case "(($ac_try" in
3748 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3749 *) ac_try_echo
=$ac_try;;
3751 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3752 $as_echo "$ac_try_echo"; } >&5
3753 (eval "$ac_try") 2>&5
3755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3756 test $ac_status = 0; }; }; then
3759 if test "$cross_compiling" = maybe
; then
3762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3764 as_fn_error $?
"cannot run C compiled programs.
3765 If you meant to cross compile, use \`--host'.
3766 See \`config.log' for more details" "$LINENO" 5; }
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3771 $as_echo "$cross_compiling" >&6; }
3773 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3774 ac_clean_files
=$ac_clean_files_save
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3776 $as_echo_n "checking for suffix of object files... " >&6; }
3777 if ${ac_cv_objext+:} false
; then :
3778 $as_echo_n "(cached) " >&6
3780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3781 /* end confdefs.h. */
3791 rm -f conftest.o conftest.obj
3792 if { { ac_try
="$ac_compile"
3794 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3795 *) ac_try_echo=$ac_try;;
3797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3798 $as_echo "$ac_try_echo"; } >&5
3799 (eval "$ac_compile") 2>&5
3801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3802 test $ac_status = 0; }; then :
3803 for ac_file in conftest.o conftest.obj conftest.*; do
3804 test -f "$ac_file" || continue;
3806 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3807 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3812 $as_echo "$as_me: failed program was:" >&5
3813 sed 's/^/| /' conftest.$ac_ext >&5
3815 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3816 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3817 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3818 See \
`config.log' for more details" "$LINENO" 5; }
3820 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3823 $as_echo "$ac_cv_objext" >&6; }
3824 OBJEXT=$ac_cv_objext
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3827 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3828 if ${ac_cv_c_compiler_gnu+:} false; then :
3829 $as_echo_n "(cached) " >&6
3831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3832 /* end confdefs.h. */
3845 if ac_fn_c_try_compile "$LINENO"; then :
3850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3851 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3855 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3856 if test $ac_compiler_gnu = yes; then
3861 ac_test_CFLAGS=${CFLAGS+set}
3862 ac_save_CFLAGS=$CFLAGS
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3864 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3865 if ${ac_cv_prog_cc_g+:} false; then :
3866 $as_echo_n "(cached) " >&6
3868 ac_save_c_werror_flag=$ac_c_werror_flag
3869 ac_c_werror_flag=yes
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3873 /* end confdefs.h. */
3883 if ac_fn_c_try_compile "$LINENO"; then :
3887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3888 /* end confdefs.h. */
3898 if ac_fn_c_try_compile "$LINENO"; then :
3901 ac_c_werror_flag=$ac_save_c_werror_flag
3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904 /* end confdefs.h. */
3914 if ac_fn_c_try_compile "$LINENO"; then :
3917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3922 ac_c_werror_flag=$ac_save_c_werror_flag
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3925 $as_echo "$ac_cv_prog_cc_g" >&6; }
3926 if test "$ac_test_CFLAGS" = set; then
3927 CFLAGS=$ac_save_CFLAGS
3928 elif test $ac_cv_prog_cc_g = yes; then
3929 if test "$GCC" = yes; then
3935 if test "$GCC" = yes; then
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3942 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3943 if ${ac_cv_prog_cc_c89+:} false; then :
3944 $as_echo_n "(cached) " >&6
3946 ac_cv_prog_cc_c89=no
3948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949 /* end confdefs.h. */
3953 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3954 struct buf { int x; };
3955 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3956 static char *e (p, i)
3962 static char *f (char * (*g) (char **, int), char **p, ...)
3967 s = g (p, va_arg (v,int));
3972 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3973 function prototypes and stuff, but not '\xHH' hex character constants.
3974 These don't provoke an error unfortunately, instead are silently treated
3975 as 'x'. The following induces an error, until -std is added to get
3976 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3977 array size at least. It's necessary to write '\x00'==0 to get something
3978 that's true only with -std. */
3979 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3981 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3982 inside strings and character constants. */
3984 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3986 int test (int i, double x);
3987 struct s1 {int (*f) (int a);};
3988 struct s2 {int (*f) (double a);};
3989 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3995 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4000 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4001 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4003 CC="$ac_save_CC $ac_arg"
4004 if ac_fn_c_try_compile "$LINENO"; then :
4005 ac_cv_prog_cc_c89=$ac_arg
4007 rm -f core conftest.err conftest.$ac_objext
4008 test "x$ac_cv_prog_cc_c89" != "xno" && break
4010 rm -f conftest.$ac_ext
4015 case "x$ac_cv_prog_cc_c89" in
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4018 $as_echo "none needed" >&6; } ;;
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4021 $as_echo "unsupported" >&6; } ;;
4023 CC="$CC $ac_cv_prog_cc_c89"
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4025 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4027 if test "x$ac_cv_prog_cc_c89" != xno; then :
4032 ac_cpp='$CPP $CPPFLAGS'
4033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4038 ac_cpp='$CPP $CPPFLAGS'
4039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4043 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4044 if ${am_cv_prog_cc_c_o+:} false; then :
4045 $as_echo_n "(cached) " >&6
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4058 # Make sure it works both with $CC and with simple cc.
4059 # Following AC_PROG_CC_C_O, we do the test twice because some
4060 # compilers refuse to overwrite an existing .o file with -o,
4061 # though they will create one.
4062 am_cv_prog_cc_c_o=yes
4064 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4065 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4068 (exit $ac_status); } \
4069 && test -f conftest2.$ac_objext; then
4072 am_cv_prog_cc_c_o=no
4076 rm -f core conftest*
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4080 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4081 if test "$am_cv_prog_cc_c_o" != yes; then
4082 # Losing compiler, so override with the script.
4083 # FIXME: It is wrong to rewrite CC.
4084 # But if we don't then we get into trouble of one sort or another.
4085 # A longer-term fix would be to have automake use am__CC in this case,
4086 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4087 CC="$am_aux_dir/compile $CC"
4090 ac_cpp='$CPP $CPPFLAGS'
4091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4095 DEPDIR="${am__leading_dot}deps"
4097 ac_config_commands="$ac_config_commands depfiles"
4100 am_make=${MAKE-make}
4101 cat > confinc << 'END'
4103 @echo this is the am__doit target
4106 # If we don't find an include directive, just comment out the code.
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4108 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4112 # First try GNU make style include.
4113 echo "include confinc" > confmf
4114 # Ignore all kinds of additional output from 'make'.
4115 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4116 *the\ am__doit\ target*)
4122 # Now try BSD make style include.
4123 if test "$am__include" = "#"; then
4124 echo '.include "confinc"' > confmf
4125 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4126 *the\ am__doit\ target*)
4127 am__include=.include
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4136 $as_echo "$_am_result" >&6; }
4137 rm -f confinc confmf
4139 # Check whether --enable-dependency-tracking was given.
4140 if test "${enable_dependency_tracking+set}" = set; then :
4141 enableval=$enable_dependency_tracking;
4144 if test "x$enable_dependency_tracking" != xno; then
4145 am_depcomp="$ac_aux_dir/depcomp"
4149 if test "x$enable_dependency_tracking" != xno; then
4159 depcc="$CC" am_compiler_list=
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4162 $as_echo_n "checking dependency style of $depcc... " >&6; }
4163 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4164 $as_echo_n "(cached) " >&6
4166 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4167 # We make a subdir and do the tests there. Otherwise we can end up
4168 # making bogus files that we don't know about and never remove. For
4169 # instance it was reported that on HP-UX the gcc test will end up
4170 # making a dummy file named 'D' -- because '-MD' means "put the output
4174 # Copy depcomp to subdir because otherwise we won't find it if we're
4175 # using a relative directory.
4176 cp "$am_depcomp" conftest.dir
4178 # We will build objects and dependencies in a subdirectory because
4179 # it helps to detect inapplicable dependency modes. For instance
4180 # both Tru64's cc and ICC support -MD to output dependencies as a
4181 # side effect of compilation, but ICC will put the dependencies in
4182 # the current directory while Tru64 will put them in the object
4186 am_cv_CC_dependencies_compiler_type=none
4187 if test "$am_compiler_list" = ""; then
4188 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4191 case " $depcc " in #(
4192 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4195 for depmode in $am_compiler_list; do
4196 # Setup a source with many dependencies, because some compilers
4197 # like to wrap large dependency lists on column 80 (with \), and
4198 # we should not choose a depcomp mode which is confused by this.
4200 # We need to recreate these files for each test, as the compiler may
4201 # overwrite some of them when testing with obscure command lines.
4202 # This happens at least with the AIX C compiler.
4204 for i in 1 2 3 4 5 6; do
4205 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4206 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4207 # Solaris 10 /bin/sh.
4208 echo '/* dummy */' > sub/conftst$i.h
4210 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4212 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4213 # mode. It turns out that the SunPro C++ compiler does not properly
4214 # handle '-M -o', and we need to detect this. Also, some Intel
4215 # versions had trouble with output in subdirs.
4216 am__obj=sub/conftest.${OBJEXT-o}
4217 am__minus_obj="-o $am__obj"
4220 # This depmode causes a compiler race in universal mode.
4221 test "$am__universal" = false || continue
4224 # After this tag, mechanisms are not by side-effect, so they'll
4225 # only be used when explicitly requested.
4226 if test "x$enable_dependency_tracking" = xyes; then
4232 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4233 # This compiler won't grok '-c -o', but also, the minuso test has
4234 # not run yet. These depmodes are late enough in the game, and
4235 # so weak that their functioning should not be impacted.
4236 am__obj=conftest.${OBJEXT-o}
4241 if depmode=$depmode \
4242 source=sub/conftest.c object=$am__obj \
4243 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4244 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4245 >/dev/null 2>conftest.err &&
4246 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4247 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4248 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4249 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4250 # icc doesn't choke on unknown options, it will just issue warnings
4251 # or remarks (even with -Werror). So we grep stderr for any message
4252 # that says an option was ignored or not supported.
4253 # When given -MP, icc 7.0 and 7.1 complain thusly:
4254 # icc: Command line warning: ignoring option '-M'; no argument required
4255 # The diagnosis changed in icc 8.0:
4256 # icc: Command line remark: option '-MP' not supported
4257 if (grep 'ignoring option' conftest.err ||
4258 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4259 am_cv_CC_dependencies_compiler_type=$depmode
4268 am_cv_CC_dependencies_compiler_type=none
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4273 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4274 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4277 test "x$enable_dependency_tracking" != xno \
4278 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4280 am__fastdepCC_FALSE='#'
4282 am__fastdepCC_TRUE='#'
4283 am__fastdepCC_FALSE=
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&5
4290 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&2;} ;;
4295 macro_version='2.4.6'
4296 macro_revision='2.4.6'
4310 ltmain=$ac_aux_dir/ltmain.sh
4312 # Backslashify metacharacters that are still active within
4313 # double-quoted strings.
4314 sed_quote_subst='s/\(["`$
\\]\
)/\\\
1/g
'
4316 # Same as above, but do not quote variable references.
4317 double_quote_subst='s
/\
(["`\\]\)/\\\1/g'
4319 # Sed substitution to delay expansion of an escaped shell variable in a
4320 # double_quote_subst'ed string.
4321 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4323 # Sed substitution to delay expansion of an escaped single quote.
4324 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4326 # Sed substitution to avoid accidental globbing in evaled expressions
4327 no_glob_subst='s/\*/\\\*/g'
4329 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4330 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4331 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print
strings" >&5
4334 $as_echo_n "checking how to print
strings...
" >&6; }
4335 # Test print first, because it will be a builtin if present.
4336 if test "X
`( print -r -- -n ) 2>/dev/null`" = X-n && \
4337 test "X
`print -r -- $ECHO 2>/dev/null`" = "X
$ECHO"; then
4339 elif test "X
`printf %s $ECHO 2>/dev/null`" = "X
$ECHO"; then
4342 # Use this function as a fallback that always works.
4343 func_fallback_echo ()
4345 eval 'cat <<_LTECHO_EOF
4349 ECHO='func_fallback_echo'
4352 # func_echo_all arg...
4353 # Invoke $ECHO with all args, space-separated.
4360 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: printf" >&5
4361 $as_echo "printf" >&6; } ;;
4362 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: print
-r" >&5
4363 $as_echo "print
-r" >&6; } ;;
4364 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: cat" >&5
4365 $as_echo "cat" >&6; } ;;
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a
sed that does not truncate output
" >&5
4382 $as_echo_n "checking
for a
sed that does not truncate output...
" >&6; }
4383 if ${ac_cv_path_SED+:} false; then :
4384 $as_echo_n "(cached
) " >&6
4386 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4387 for ac_i in 1 2 3 4 5 6 7; do
4388 ac_script="$ac_script$as_nl$ac_script"
4390 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4391 { ac_script=; unset ac_script;}
4392 if test -z "$SED"; then
4393 ac_path_SED_found=false
4394 # Loop through the user's path and test for each of PROGNAME-LIST
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 test -z "$as_dir" && as_dir=.
4400 for ac_prog in sed gsed; do
4401 for ac_exec_ext in '' $ac_executable_extensions; do
4402 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4403 as_fn_executable_p "$ac_path_SED" || continue
4404 # Check for GNU ac_path_SED and select it if it is found.
4405 # Check for GNU $ac_path_SED
4406 case `"$ac_path_SED" --version 2>&1` in
4408 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4411 $as_echo_n 0123456789 >"conftest.
in"
4414 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4415 mv "conftest.tmp
" "conftest.
in"
4416 cp "conftest.
in" "conftest.
nl"
4417 $as_echo '' >> "conftest.
nl"
4418 "$ac_path_SED" -f conftest.sed < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4419 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4420 as_fn_arith $ac_count + 1 && ac_count=$as_val
4421 if test $ac_count -gt ${ac_path_SED_max-0}; then
4422 # Best one so far, save it but keep looking for a better one
4423 ac_cv_path_SED="$ac_path_SED"
4424 ac_path_SED_max=$ac_count
4426 # 10*(2^10) chars as input seems more than enough
4427 test $ac_count -gt 10 && break
4429 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4432 $ac_path_SED_found && break 3
4437 if test -z "$ac_cv_path_SED"; then
4438 as_fn_error $? "no acceptable
sed could be found
in \
$PATH" "$LINENO" 5
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_SED" >&5
4446 $as_echo "$ac_cv_path_SED" >&6; }
4447 SED="$ac_cv_path_SED"
4450 test -z "$SED" && SED=sed
4451 Xsed="$SED -e 1s
/^X
//"
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
4464 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
4465 if ${ac_cv_path_GREP+:} false; then :
4466 $as_echo_n "(cached
) " >&6
4468 if test -z "$GREP"; then
4469 ac_path_GREP_found=false
4470 # Loop through the user's path and test for each of PROGNAME-LIST
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4475 test -z "$as_dir" && as_dir=.
4476 for ac_prog in grep ggrep; do
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4479 as_fn_executable_p "$ac_path_GREP" || continue
4480 # Check for GNU ac_path_GREP and select it if it is found.
4481 # Check for GNU $ac_path_GREP
4482 case `"$ac_path_GREP" --version 2>&1` in
4484 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4487 $as_echo_n 0123456789 >"conftest.
in"
4490 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4491 mv "conftest.tmp
" "conftest.
in"
4492 cp "conftest.
in" "conftest.
nl"
4493 $as_echo 'GREP' >> "conftest.
nl"
4494 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4495 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4496 as_fn_arith $ac_count + 1 && ac_count=$as_val
4497 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4498 # Best one so far, save it but keep looking for a better one
4499 ac_cv_path_GREP="$ac_path_GREP"
4500 ac_path_GREP_max=$ac_count
4502 # 10*(2^10) chars as input seems more than enough
4503 test $ac_count -gt 10 && break
4505 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4508 $ac_path_GREP_found && break 3
4513 if test -z "$ac_cv_path_GREP"; then
4514 as_fn_error $? "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
4517 ac_cv_path_GREP=$GREP
4521 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
4522 $as_echo "$ac_cv_path_GREP" >&6; }
4523 GREP="$ac_cv_path_GREP"
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
4527 $as_echo_n "checking
for egrep...
" >&6; }
4528 if ${ac_cv_path_EGREP+:} false; then :
4529 $as_echo_n "(cached
) " >&6
4531 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4532 then ac_cv_path_EGREP="$GREP -E"
4534 if test -z "$EGREP"; then
4535 ac_path_EGREP_found=false
4536 # Loop through the user's path and test for each of PROGNAME-LIST
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4541 test -z "$as_dir" && as_dir=.
4542 for ac_prog in egrep; do
4543 for ac_exec_ext in '' $ac_executable_extensions; do
4544 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4545 as_fn_executable_p "$ac_path_EGREP" || continue
4546 # Check for GNU ac_path_EGREP and select it if it is found.
4547 # Check for GNU $ac_path_EGREP
4548 case `"$ac_path_EGREP" --version 2>&1` in
4550 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4553 $as_echo_n 0123456789 >"conftest.
in"
4556 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4557 mv "conftest.tmp
" "conftest.
in"
4558 cp "conftest.
in" "conftest.
nl"
4559 $as_echo 'EGREP' >> "conftest.
nl"
4560 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4561 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4562 as_fn_arith $ac_count + 1 && ac_count=$as_val
4563 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4564 # Best one so far, save it but keep looking for a better one
4565 ac_cv_path_EGREP="$ac_path_EGREP"
4566 ac_path_EGREP_max=$ac_count
4568 # 10*(2^10) chars as input seems more than enough
4569 test $ac_count -gt 10 && break
4571 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4574 $ac_path_EGREP_found && break 3
4579 if test -z "$ac_cv_path_EGREP"; then
4580 as_fn_error $? "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
4583 ac_cv_path_EGREP=$EGREP
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
4589 $as_echo "$ac_cv_path_EGREP" >&6; }
4590 EGREP="$ac_cv_path_EGREP"
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for fgrep
" >&5
4594 $as_echo_n "checking
for fgrep...
" >&6; }
4595 if ${ac_cv_path_FGREP+:} false; then :
4596 $as_echo_n "(cached
) " >&6
4598 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4599 then ac_cv_path_FGREP="$GREP -F"
4601 if test -z "$FGREP"; then
4602 ac_path_FGREP_found=false
4603 # Loop through the user's path and test for each of PROGNAME-LIST
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4608 test -z "$as_dir" && as_dir=.
4609 for ac_prog in fgrep; do
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4612 as_fn_executable_p "$ac_path_FGREP" || continue
4613 # Check for GNU ac_path_FGREP and select it if it is found.
4614 # Check for GNU $ac_path_FGREP
4615 case `"$ac_path_FGREP" --version 2>&1` in
4617 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4620 $as_echo_n 0123456789 >"conftest.
in"
4623 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4624 mv "conftest.tmp
" "conftest.
in"
4625 cp "conftest.
in" "conftest.
nl"
4626 $as_echo 'FGREP' >> "conftest.
nl"
4627 "$ac_path_FGREP" FGREP < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4628 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4629 as_fn_arith $ac_count + 1 && ac_count=$as_val
4630 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4631 # Best one so far, save it but keep looking for a better one
4632 ac_cv_path_FGREP="$ac_path_FGREP"
4633 ac_path_FGREP_max=$ac_count
4635 # 10*(2^10) chars as input seems more than enough
4636 test $ac_count -gt 10 && break
4638 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4641 $ac_path_FGREP_found && break 3
4646 if test -z "$ac_cv_path_FGREP"; then
4647 as_fn_error $? "no acceptable fgrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
4650 ac_cv_path_FGREP=$FGREP
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_FGREP" >&5
4656 $as_echo "$ac_cv_path_FGREP" >&6; }
4657 FGREP="$ac_cv_path_FGREP"
4660 test -z "$GREP" && GREP=grep
4680 # Check whether --with-gnu-ld was given.
4681 if test "${with_gnu_ld+set}" = set; then :
4682 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4688 if test yes = "$GCC"; then
4689 # Check if gcc -print-prog-name=ld gives a path.
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld used by
$CC" >&5
4691 $as_echo_n "checking
for ld used by
$CC...
" >&6; }
4694 # gcc leaves a trailing carriage return, which upsets mingw
4695 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4697 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4700 # Accept absolute paths.
4702 re_direlt='/[^/][^/]*/\.\./'
4703 # Canonicalize the pathname of ld
4704 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4705 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4706 ac_prog=`$ECHO $ac_prog| $SED "s
%$re_direlt%/%"`
4708 test -z "$LD" && LD=$ac_prog
4711 # If it fails, then pretend we aren't using GCC.
4715 # If it is relative, then search for the first ld in PATH.
4719 elif test yes = "$with_gnu_ld"; then
4720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for GNU ld
" >&5
4721 $as_echo_n "checking
for GNU ld...
" >&6; }
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for non-GNU ld
" >&5
4724 $as_echo_n "checking
for non-GNU ld...
" >&6; }
4726 if ${lt_cv_path_LD+:} false; then :
4727 $as_echo_n "(cached
) " >&6
4729 if test -z "$LD"; then
4730 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4731 for ac_dir in $PATH; do
4733 test -z "$ac_dir" && ac_dir=.
4734 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4735 lt_cv_path_LD=$ac_dir/$ac_prog
4736 # Check to see if the program is GNU ld. I'd rather use --version,
4737 # but apparently some variants of GNU ld only accept -v.
4738 # Break only if it was the GNU/non-GNU ld that we prefer.
4739 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4740 *GNU* | *'with BFD'*)
4741 test no != "$with_gnu_ld" && break
4744 test yes != "$with_gnu_ld" && break
4751 lt_cv_path_LD=$LD # Let the user override the test with a path.
4756 if test -n "$LD"; then
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
4758 $as_echo "$LD" >&6; }
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4761 $as_echo "no
" >&6; }
4763 test -z "$LD" && as_fn_error $? "no acceptable ld found
in \
$PATH" "$LINENO" 5
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if the linker
($LD) is GNU ld
" >&5
4765 $as_echo_n "checking
if the linker
($LD) is GNU ld...
" >&6; }
4766 if ${lt_cv_prog_gnu_ld+:} false; then :
4767 $as_echo_n "(cached
) " >&6
4769 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4770 case `$LD -v 2>&1 </dev/null` in
4771 *GNU* | *'with BFD'*)
4772 lt_cv_prog_gnu_ld=yes
4775 lt_cv_prog_gnu_ld=no
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_gnu_ld" >&5
4780 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4781 with_gnu_ld=$lt_cv_prog_gnu_ld
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for BSD- or MS-compatible name lister
(nm
)" >&5
4792 $as_echo_n "checking
for BSD- or MS-compatible name lister
(nm
)...
" >&6; }
4793 if ${lt_cv_path_NM+:} false; then :
4794 $as_echo_n "(cached
) " >&6
4796 if test -n "$NM"; then
4797 # Let the user override the test.
4800 lt_nm_to_check=${ac_tool_prefix}nm
4801 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4802 lt_nm_to_check="$lt_nm_to_check nm
"
4804 for lt_tmp_nm in $lt_nm_to_check; do
4805 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4806 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4808 test -z "$ac_dir" && ac_dir=.
4809 tmp_nm=$ac_dir/$lt_tmp_nm
4810 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4811 # Check to see if the nm accepts a BSD-compat flag.
4812 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4813 # nm: unknown option "B
" ignored
4814 # Tru64's nm complains that /dev/null is an invalid object file
4815 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4817 mingw*) lt_bad_file=conftest.nm/nofile ;;
4818 *) lt_bad_file=/dev/null ;;
4820 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4821 *$lt_bad_file* | *'Invalid file or object type'*)
4822 lt_cv_path_NM="$tmp_nm -B"
4826 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4828 lt_cv_path_NM="$tmp_nm -p"
4832 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4833 continue # so that we can try to find one that supports BSD flags
4842 : ${lt_cv_path_NM=no}
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_NM" >&5
4846 $as_echo "$lt_cv_path_NM" >&6; }
4847 if test no != "$lt_cv_path_NM"; then
4850 # Didn't find any BSD compatible name lister, look for dumpbin.
4851 if test -n "$DUMPBIN"; then :
4852 # Let the user override the test.
4854 if test -n "$ac_tool_prefix"; then
4855 for ac_prog in dumpbin "link
-dump"
4857 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4858 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
4860 $as_echo_n "checking
for $ac_word...
" >&6; }
4861 if ${ac_cv_prog_DUMPBIN+:} false; then :
4862 $as_echo_n "(cached
) " >&6
4864 if test -n "$DUMPBIN"; then
4865 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 test -z "$as_dir" && as_dir=.
4872 for ac_exec_ext in '' $ac_executable_extensions; do
4873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4874 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4875 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
4884 DUMPBIN=$ac_cv_prog_DUMPBIN
4885 if test -n "$DUMPBIN"; then
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DUMPBIN" >&5
4887 $as_echo "$DUMPBIN" >&6; }
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4890 $as_echo "no
" >&6; }
4894 test -n "$DUMPBIN" && break
4897 if test -z "$DUMPBIN"; then
4898 ac_ct_DUMPBIN=$DUMPBIN
4899 for ac_prog in dumpbin "link
-dump"
4901 # Extract the first word of "$ac_prog", so it can be a program name with args.
4902 set dummy $ac_prog; ac_word=$2
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
4904 $as_echo_n "checking
for $ac_word...
" >&6; }
4905 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4906 $as_echo_n "(cached
) " >&6
4908 if test -n "$ac_ct_DUMPBIN"; then
4909 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 test -z "$as_dir" && as_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4918 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4919 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
4928 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4929 if test -n "$ac_ct_DUMPBIN"; then
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DUMPBIN" >&5
4931 $as_echo "$ac_ct_DUMPBIN" >&6; }
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4934 $as_echo "no
" >&6; }
4938 test -n "$ac_ct_DUMPBIN" && break
4941 if test "x
$ac_ct_DUMPBIN" = x; then
4944 case $cross_compiling:$ac_tool_warned in
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
4947 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
4948 ac_tool_warned=yes ;;
4950 DUMPBIN=$ac_ct_DUMPBIN
4954 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4956 DUMPBIN="$DUMPBIN -symbols -headers"
4964 if test : != "$DUMPBIN"; then
4968 test -z "$NM" && NM=nm
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister
($NM) interface
" >&5
4976 $as_echo_n "checking the name lister
($NM) interface...
" >&6; }
4977 if ${lt_cv_nm_interface+:} false; then :
4978 $as_echo_n "(cached
) " >&6
4980 lt_cv_nm_interface="BSD nm
"
4981 echo "int some_variable
= 0;" > conftest.$ac_ext
4982 (eval echo "\"\
$as_me:$LINENO: $ac_compile\"" >&5)
4983 (eval "$ac_compile" 2>conftest.err)
4984 cat conftest.err >&5
4985 (eval echo "\"\
$as_me:$LINENO: $NM \\\"conftest.
$ac_objext\\\"\"" >&5)
4986 (eval "$NM \"conftest.
$ac_objext\"" 2>conftest.err > conftest.out)
4987 cat conftest.err >&5
4988 (eval echo "\"\
$as_me:$LINENO: output
\"" >&5)
4989 cat conftest.out >&5
4990 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4991 lt_cv_nm_interface="MS dumpbin
"
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_nm_interface" >&5
4996 $as_echo "$lt_cv_nm_interface" >&6; }
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
ln -s works
" >&5
4999 $as_echo_n "checking whether
ln -s works...
" >&6; }
5001 if test "$LN_S" = "ln -s"; then
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
5003 $as_echo "yes" >&6; }
5005 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
, using
$LN_S" >&5
5006 $as_echo "no
, using
$LN_S" >&6; }
5009 # find the maximum length of command line arguments
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of
command line arguments
" >&5
5011 $as_echo_n "checking the maximum length of
command line arguments...
" >&6; }
5012 if ${lt_cv_sys_max_cmd_len+:} false; then :
5013 $as_echo_n "(cached
) " >&6
5020 # On DJGPP, this test can blow up pretty badly due to problems in libc
5021 # (any single argument exceeding 2000 bytes causes a buffer overrun
5022 # during glob expansion). Even if it were fixed, the result of this
5023 # check would be larger than it should be.
5024 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5028 # Under GNU Hurd, this test is not required because there is
5029 # no limit to the length of command line arguments.
5030 # Libtool will interpret -1 as no limit whatsoever
5031 lt_cv_sys_max_cmd_len=-1;
5034 cygwin* | mingw* | cegcc*)
5035 # On Win9x/ME, this test blows up -- it succeeds, but takes
5036 # about 5 minutes as the teststring grows exponentially.
5037 # Worse, since 9x/ME are not pre-emptively multitasking,
5038 # you end up with a "frozen
" computer, even though with patience
5039 # the test eventually succeeds (with a max line length of 256k).
5040 # Instead, let's just punt: use the minimum linelength reported by
5041 # all of the supported platforms: 8192 (on NT/2K/XP).
5042 lt_cv_sys_max_cmd_len=8192;
5046 # On MiNT this can take a long time and run out of memory.
5047 lt_cv_sys_max_cmd_len=8192;
5051 # On AmigaOS with pdksh, this test takes hours, literally.
5052 # So we just punt and use a minimum line length of 8192.
5053 lt_cv_sys_max_cmd_len=8192;
5056 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5057 # This has been around since 386BSD, at least. Likely further.
5058 if test -x /sbin/sysctl; then
5059 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5060 elif test -x /usr/sbin/sysctl; then
5061 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5063 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5065 # And add a safety zone
5066 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5067 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5071 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5072 lt_cv_sys_max_cmd_len=196608
5076 # The test takes a long time on OS/2.
5077 lt_cv_sys_max_cmd_len=8192
5081 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5082 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5083 # nice to cause kernel panics so lets avoid the loop below.
5084 # First set a reasonable default.
5085 lt_cv_sys_max_cmd_len=16384
5087 if test -x /sbin/sysconfig; then
5088 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5089 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5094 lt_cv_sys_max_cmd_len=102400
5096 sysv5* | sco5v6* | sysv4.2uw2*)
5097 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5098 if test -n "$kargmax"; then
5099 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5101 lt_cv_sys_max_cmd_len=32768
5105 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5106 if test -n "$lt_cv_sys_max_cmd_len" && \
5107 test undefined != "$lt_cv_sys_max_cmd_len"; then
5108 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5109 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5111 # Make teststring a little bigger before we do anything with it.
5112 # a 1K string should be a reasonable start.
5113 for i in 1 2 3 4 5 6 7 8; do
5114 teststring=$teststring$teststring
5116 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5117 # If test is not a shell built-in, we'll probably end up computing a
5118 # maximum length that is only half of the actual maximum length, but
5120 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5121 = "X
$teststring$teststring"; } >/dev/null 2>&1 &&
5122 test 17 != "$i" # 1/2 MB should be enough
5125 teststring=$teststring$teststring
5127 # Only check the string length outside the loop.
5128 lt_cv_sys_max_cmd_len=`expr "X
$teststring" : ".
*" 2>&1`
5130 # Add a significant safety factor because C++ compilers can tack on
5131 # massive amounts of additional arguments before passing them to the
5132 # linker. It appears as though 1/2 is a usable value.
5133 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5140 if test -n "$lt_cv_sys_max_cmd_len"; then
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sys_max_cmd_len" >&5
5142 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none
" >&5
5145 $as_echo "none
" >&6; }
5147 max_cmd_len=$lt_cv_sys_max_cmd_len
5158 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5168 # test EBCDIC or ASCII
5169 case `echo X|tr X '\101'` in
5170 A) # ASCII based system
5171 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5172 lt_SP2NL='tr \040 \012'
5173 lt_NL2SP='tr \015\012 \040\040'
5175 *) # EBCDIC based system
5176 lt_SP2NL='tr \100 \n'
5177 lt_NL2SP='tr \r\n \100\100'
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to
$host format
" >&5
5190 $as_echo_n "checking how to convert
$build file names to
$host format...
" >&6; }
5191 if ${lt_cv_to_host_file_cmd+:} false; then :
5192 $as_echo_n "(cached
) " >&6
5197 *-*-mingw* ) # actually msys
5198 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5201 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5203 * ) # otherwise, assume *nix
5204 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5210 *-*-mingw* ) # actually msys
5211 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5214 lt_cv_to_host_file_cmd=func_convert_file_noop
5216 * ) # otherwise, assume *nix
5217 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5221 * ) # unhandled hosts (and "normal
" native builds)
5222 lt_cv_to_host_file_cmd=func_convert_file_noop
5228 to_host_file_cmd=$lt_cv_to_host_file_cmd
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_host_file_cmd" >&5
5230 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to toolchain format
" >&5
5237 $as_echo_n "checking how to convert
$build file names to toolchain format...
" >&6; }
5238 if ${lt_cv_to_tool_file_cmd+:} false; then :
5239 $as_echo_n "(cached
) " >&6
5241 #assume ordinary cross tools, or native build.
5242 lt_cv_to_tool_file_cmd=func_convert_file_noop
5246 *-*-mingw* ) # actually msys
5247 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5255 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_tool_file_cmd" >&5
5257 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
5264 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5265 if ${lt_cv_ld_reload_flag+:} false; then :
5266 $as_echo_n "(cached
) " >&6
5268 lt_cv_ld_reload_flag='-r'
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
5271 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5272 reload_flag=$lt_cv_ld_reload_flag
5273 case $reload_flag in
5275 *) reload_flag=" $reload_flag" ;;
5277 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5279 cygwin* | mingw* | pw32* | cegcc*)
5280 if test yes != "$GCC"; then
5285 if test yes = "$GCC"; then
5286 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5288 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5301 if test -n "$ac_tool_prefix"; then
5302 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5303 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5305 $as_echo_n "checking
for $ac_word...
" >&6; }
5306 if ${ac_cv_prog_OBJDUMP+:} false; then :
5307 $as_echo_n "(cached
) " >&6
5309 if test -n "$OBJDUMP"; then
5310 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316 test -z "$as_dir" && as_dir=.
5317 for ac_exec_ext in '' $ac_executable_extensions; do
5318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5319 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5320 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5329 OBJDUMP=$ac_cv_prog_OBJDUMP
5330 if test -n "$OBJDUMP"; then
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
5332 $as_echo "$OBJDUMP" >&6; }
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5335 $as_echo "no
" >&6; }
5340 if test -z "$ac_cv_prog_OBJDUMP"; then
5341 ac_ct_OBJDUMP=$OBJDUMP
5342 # Extract the first word of "objdump
", so it can be a program name with args.
5343 set dummy objdump; ac_word=$2
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5345 $as_echo_n "checking
for $ac_word...
" >&6; }
5346 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5347 $as_echo_n "(cached
) " >&6
5349 if test -n "$ac_ct_OBJDUMP"; then
5350 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5356 test -z "$as_dir" && as_dir=.
5357 for ac_exec_ext in '' $ac_executable_extensions; do
5358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5359 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5360 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5369 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5370 if test -n "$ac_ct_OBJDUMP"; then
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
5372 $as_echo "$ac_ct_OBJDUMP" >&6; }
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5375 $as_echo "no
" >&6; }
5378 if test "x
$ac_ct_OBJDUMP" = x; then
5381 case $cross_compiling:$ac_tool_warned in
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5384 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5385 ac_tool_warned=yes ;;
5387 OBJDUMP=$ac_ct_OBJDUMP
5390 OBJDUMP="$ac_cv_prog_OBJDUMP"
5393 test -z "$OBJDUMP" && OBJDUMP=objdump
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
5404 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5405 if ${lt_cv_deplibs_check_method+:} false; then :
5406 $as_echo_n "(cached
) " >&6
5408 lt_cv_file_magic_cmd='$MAGIC_CMD'
5409 lt_cv_file_magic_test_file=
5410 lt_cv_deplibs_check_method='unknown'
5411 # Need to set the preceding variable on all platforms that support
5412 # interlibrary dependencies.
5413 # 'none' -- dependencies not supported.
5414 # 'unknown' -- same as none, but documents that we really don't know.
5415 # 'pass_all' -- all dependencies passed with no checks.
5416 # 'test_compile' -- check by making test program.
5417 # 'file_magic [[regex]]' -- check by looking for files in library path
5418 # that responds to the $file_magic_cmd with a given extended regex.
5419 # If you have 'file' or equivalent on your system and you're not sure
5420 # whether 'pass_all' will *always* work, you probably want this one.
5424 lt_cv_deplibs_check_method=pass_all
5428 lt_cv_deplibs_check_method=pass_all
5432 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5433 lt_cv_file_magic_cmd='/usr/bin/file -L'
5434 lt_cv_file_magic_test_file=/shlib/libc.so
5438 # func_win32_libid is a shell function defined in ltmain.sh
5439 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5440 lt_cv_file_magic_cmd='func_win32_libid'
5444 # Base MSYS/MinGW do not provide the 'file' command needed by
5445 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5446 # unless we find 'file', for example because we are cross-compiling.
5447 if ( file / ) >/dev/null 2>&1; then
5448 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5449 lt_cv_file_magic_cmd='func_win32_libid'
5451 # Keep this pattern in sync with the one in func_win32_libid.
5452 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5453 lt_cv_file_magic_cmd='$OBJDUMP -f'
5458 # use the weaker test based on 'objdump'. See mingw*.
5459 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5460 lt_cv_file_magic_cmd='$OBJDUMP -f'
5463 darwin* | rhapsody*)
5464 lt_cv_deplibs_check_method=pass_all
5467 freebsd* | dragonfly*)
5468 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5471 # Not sure whether the presence of OpenBSD here was a mistake.
5472 # Let's accept both of them until this is cleared up.
5473 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5474 lt_cv_file_magic_cmd=/usr/bin/file
5475 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5479 lt_cv_deplibs_check_method=pass_all
5484 lt_cv_deplibs_check_method=pass_all
5487 hpux10.20* | hpux11*)
5488 lt_cv_file_magic_cmd=/usr/bin/file
5491 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5492 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5495 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]'
5496 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5499 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5500 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5506 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5507 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5510 irix5* | irix6* | nonstopux*)
5512 *-32|*"-32 ") libmagic=32-bit;;
5513 *-n32|*"-n32 ") libmagic=N32;;
5514 *-64|*"-64 ") libmagic=64-bit;;
5515 *) libmagic=never-match;;
5517 lt_cv_deplibs_check_method=pass_all
5520 # This must be glibc/ELF.
5521 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5522 lt_cv_deplibs_check_method=pass_all
5525 netbsd* | netbsdelf*-gnu)
5526 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5527 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5529 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5534 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5535 lt_cv_file_magic_cmd=/usr/bin/file
5536 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5540 lt_cv_deplibs_check_method=pass_all
5544 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5545 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5547 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5551 osf3* | osf4* | osf5*)
5552 lt_cv_deplibs_check_method=pass_all
5556 lt_cv_deplibs_check_method=pass_all
5560 lt_cv_deplibs_check_method=pass_all
5563 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5564 lt_cv_deplibs_check_method=pass_all
5568 case $host_vendor in
5570 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]'
5571 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5574 lt_cv_deplibs_check_method=pass_all
5577 lt_cv_file_magic_cmd='/bin/file'
5578 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5581 lt_cv_file_magic_cmd='/bin/file'
5582 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5583 lt_cv_file_magic_test_file=/lib/libc.so
5586 lt_cv_deplibs_check_method=pass_all
5589 lt_cv_deplibs_check_method=pass_all
5595 lt_cv_deplibs_check_method=pass_all
5598 lt_cv_deplibs_check_method=pass_all
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
5604 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5608 if test "$build" = "$host"; then
5611 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5614 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s
/\
(..\
)/s\
/[\
1]\
/[\
1]\
/g
;/g
"`
5620 file_magic_cmd=$lt_cv_file_magic_cmd
5621 deplibs_check_method=$lt_cv_deplibs_check_method
5622 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5645 if test -n "$ac_tool_prefix"; then
5646 # Extract the first word of "${ac_tool_prefix}dlltool
", so it can be a program name with args.
5647 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5649 $as_echo_n "checking
for $ac_word...
" >&6; }
5650 if ${ac_cv_prog_DLLTOOL+:} false; then :
5651 $as_echo_n "(cached
) " >&6
5653 if test -n "$DLLTOOL"; then
5654 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660 test -z "$as_dir" && as_dir=.
5661 for ac_exec_ext in '' $ac_executable_extensions; do
5662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5663 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool
"
5664 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5673 DLLTOOL=$ac_cv_prog_DLLTOOL
5674 if test -n "$DLLTOOL"; then
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
5676 $as_echo "$DLLTOOL" >&6; }
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5679 $as_echo "no
" >&6; }
5684 if test -z "$ac_cv_prog_DLLTOOL"; then
5685 ac_ct_DLLTOOL=$DLLTOOL
5686 # Extract the first word of "dlltool
", so it can be a program name with args.
5687 set dummy dlltool; ac_word=$2
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5689 $as_echo_n "checking
for $ac_word...
" >&6; }
5690 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5691 $as_echo_n "(cached
) " >&6
5693 if test -n "$ac_ct_DLLTOOL"; then
5694 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700 test -z "$as_dir" && as_dir=.
5701 for ac_exec_ext in '' $ac_executable_extensions; do
5702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5703 ac_cv_prog_ac_ct_DLLTOOL="dlltool
"
5704 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5713 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5714 if test -n "$ac_ct_DLLTOOL"; then
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DLLTOOL" >&5
5716 $as_echo "$ac_ct_DLLTOOL" >&6; }
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5719 $as_echo "no
" >&6; }
5722 if test "x
$ac_ct_DLLTOOL" = x; then
5725 case $cross_compiling:$ac_tool_warned in
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5728 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5729 ac_tool_warned=yes ;;
5731 DLLTOOL=$ac_ct_DLLTOOL
5734 DLLTOOL="$ac_cv_prog_DLLTOOL"
5737 test -z "$DLLTOOL" && DLLTOOL=dlltool
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries
" >&5
5749 $as_echo_n "checking how to associate runtime and link libraries...
" >&6; }
5750 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5751 $as_echo_n "(cached
) " >&6
5753 lt_cv_sharedlib_from_linklib_cmd='unknown'
5756 cygwin* | mingw* | pw32* | cegcc*)
5757 # two different shell functions defined in ltmain.sh;
5758 # decide which one to use based on capabilities of $DLLTOOL
5759 case `$DLLTOOL --help 2>&1` in
5760 *--identify-strict*)
5761 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5764 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5769 # fallback: assume linklib IS sharedlib
5770 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sharedlib_from_linklib_cmd" >&5
5776 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5777 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5778 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5787 if test -n "$ac_tool_prefix"; then
5790 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5791 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5793 $as_echo_n "checking
for $ac_word...
" >&6; }
5794 if ${ac_cv_prog_AR+:} false; then :
5795 $as_echo_n "(cached
) " >&6
5797 if test -n "$AR"; then
5798 ac_cv_prog_AR="$AR" # Let the user override the test.
5800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5804 test -z "$as_dir" && as_dir=.
5805 for ac_exec_ext in '' $ac_executable_extensions; do
5806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5807 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5808 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5818 if test -n "$AR"; then
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
5820 $as_echo "$AR" >&6; }
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5823 $as_echo "no
" >&6; }
5827 test -n "$AR" && break
5830 if test -z "$AR"; then
5834 # Extract the first word of "$ac_prog", so it can be a program name with args.
5835 set dummy $ac_prog; ac_word=$2
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5837 $as_echo_n "checking
for $ac_word...
" >&6; }
5838 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5839 $as_echo_n "(cached
) " >&6
5841 if test -n "$ac_ct_AR"; then
5842 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848 test -z "$as_dir" && as_dir=.
5849 for ac_exec_ext in '' $ac_executable_extensions; do
5850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5851 ac_cv_prog_ac_ct_AR="$ac_prog"
5852 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5861 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5862 if test -n "$ac_ct_AR"; then
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
5864 $as_echo "$ac_ct_AR" >&6; }
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5867 $as_echo "no
" >&6; }
5871 test -n "$ac_ct_AR" && break
5874 if test "x
$ac_ct_AR" = x; then
5877 case $cross_compiling:$ac_tool_warned in
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5880 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5881 ac_tool_warned=yes ;;
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for archiver @FILE support
" >&5
5901 $as_echo_n "checking
for archiver @FILE support...
" >&6; }
5902 if ${lt_cv_ar_at_file+:} false; then :
5903 $as_echo_n "(cached
) " >&6
5906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5907 /* end confdefs.h. */
5917 if ac_fn_c_try_compile "$LINENO"; then :
5918 echo conftest.$ac_objext > conftest.lst
5919 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5920 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5921 (eval $lt_ar_try) 2>&5
5923 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5924 test $ac_status = 0; }
5925 if test 0 -eq "$ac_status"; then
5926 # Ensure the archiver fails upon bogus file names.
5927 rm -f conftest.$ac_objext libconftest.a
5928 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5929 (eval $lt_ar_try) 2>&5
5931 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5932 test $ac_status = 0; }
5933 if test 0 -ne "$ac_status"; then
5937 rm -f conftest.* libconftest.a
5940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ar_at_file" >&5
5944 $as_echo "$lt_cv_ar_at_file" >&6; }
5946 if test no = "$lt_cv_ar_at_file"; then
5949 archiver_list_spec=$lt_cv_ar_at_file
5958 if test -n "$ac_tool_prefix"; then
5959 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
5960 set dummy ${ac_tool_prefix}strip; ac_word=$2
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5962 $as_echo_n "checking
for $ac_word...
" >&6; }
5963 if ${ac_cv_prog_STRIP+:} false; then :
5964 $as_echo_n "(cached
) " >&6
5966 if test -n "$STRIP"; then
5967 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5973 test -z "$as_dir" && as_dir=.
5974 for ac_exec_ext in '' $ac_executable_extensions; do
5975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5976 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
5977 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5986 STRIP=$ac_cv_prog_STRIP
5987 if test -n "$STRIP"; then
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
5989 $as_echo "$STRIP" >&6; }
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5992 $as_echo "no
" >&6; }
5997 if test -z "$ac_cv_prog_STRIP"; then
5999 # Extract the first word of "strip
", so it can be a program name with args.
6000 set dummy strip; ac_word=$2
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6002 $as_echo_n "checking
for $ac_word...
" >&6; }
6003 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6004 $as_echo_n "(cached
) " >&6
6006 if test -n "$ac_ct_STRIP"; then
6007 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013 test -z "$as_dir" && as_dir=.
6014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6016 ac_cv_prog_ac_ct_STRIP="strip
"
6017 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6026 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6027 if test -n "$ac_ct_STRIP"; then
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6029 $as_echo "$ac_ct_STRIP" >&6; }
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6032 $as_echo "no
" >&6; }
6035 if test "x
$ac_ct_STRIP" = x; then
6038 case $cross_compiling:$ac_tool_warned in
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6041 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6042 ac_tool_warned=yes ;;
6047 STRIP="$ac_cv_prog_STRIP"
6050 test -z "$STRIP" && STRIP=:
6057 if test -n "$ac_tool_prefix"; then
6058 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6059 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6061 $as_echo_n "checking
for $ac_word...
" >&6; }
6062 if ${ac_cv_prog_RANLIB+:} false; then :
6063 $as_echo_n "(cached
) " >&6
6065 if test -n "$RANLIB"; then
6066 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6072 test -z "$as_dir" && as_dir=.
6073 for ac_exec_ext in '' $ac_executable_extensions; do
6074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6075 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6076 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6085 RANLIB=$ac_cv_prog_RANLIB
6086 if test -n "$RANLIB"; then
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
6088 $as_echo "$RANLIB" >&6; }
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6091 $as_echo "no
" >&6; }
6096 if test -z "$ac_cv_prog_RANLIB"; then
6097 ac_ct_RANLIB=$RANLIB
6098 # Extract the first word of "ranlib
", so it can be a program name with args.
6099 set dummy ranlib; ac_word=$2
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6101 $as_echo_n "checking
for $ac_word...
" >&6; }
6102 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6103 $as_echo_n "(cached
) " >&6
6105 if test -n "$ac_ct_RANLIB"; then
6106 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112 test -z "$as_dir" && as_dir=.
6113 for ac_exec_ext in '' $ac_executable_extensions; do
6114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6115 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6116 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6125 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6126 if test -n "$ac_ct_RANLIB"; then
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
6128 $as_echo "$ac_ct_RANLIB" >&6; }
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6131 $as_echo "no
" >&6; }
6134 if test "x
$ac_ct_RANLIB" = x; then
6137 case $cross_compiling:$ac_tool_warned in
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6140 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6141 ac_tool_warned=yes ;;
6143 RANLIB=$ac_ct_RANLIB
6146 RANLIB="$ac_cv_prog_RANLIB"
6149 test -z "$RANLIB" && RANLIB=:
6156 # Determine commands to create old-style static archives.
6157 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6158 old_postinstall_cmds='chmod 644 $oldlib'
6159 old_postuninstall_cmds=
6161 if test -n "$RANLIB"; then
6164 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$tool_oldlib"
6167 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$tool_oldlib"
6170 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$tool_oldlib"
6175 lock_old_archive_extraction=yes ;;
6177 lock_old_archive_extraction=no ;;
6218 # If no C compiler was specified, use CC.
6221 # If no C compiler flags were specified, use CFLAGS.
6222 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6224 # Allow CC to be a program name with arguments.
6228 # Check for command to grab the raw symbol name followed by C symbol from nm.
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
6230 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
6231 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6232 $as_echo_n "(cached
) " >&6
6235 # These are sane defaults that work on at least a few old systems.
6236 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6238 # Character class describing NM global symbol codes.
6239 symcode='[BCDEGRST]'
6241 # Regexp to match symbols that can be accessed directly from C.
6242 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6244 # Define system-specific variables.
6249 cygwin* | mingw* | pw32* | cegcc*)
6250 symcode='[ABCDGISTW]'
6253 if test ia64 = "$host_cpu"; then
6254 symcode='[ABCDEGRST]'
6258 symcode='[BCDEGRST]'
6261 symcode='[BCDEGQRST]'
6272 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6280 # If we're using GNU nm, then use its standard symbol codes.
6281 case `$NM -V 2>&1` in
6282 *GNU* | *'with BFD'*)
6283 symcode='[ABCDGIRSTW]' ;;
6286 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6287 # Gets list of data symbols to import.
6288 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6289 # Adjust the below global symbol transforms to fixup imported variables.
6290 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6291 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6292 lt_c_name_lib_hook="\
6293 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6294 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6296 # Disable hooks by default.
6297 lt_cv_sys_global_symbol_to_import=
6303 # Transform an extracted symbol line into a proper C declaration.
6304 # Some systems (esp. on ia64) link data and code symbols differently,
6305 # so use this general approach.
6306 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6308 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6309 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6311 # Transform an extracted symbol line into symbol name and symbol address
6312 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6314 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6315 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6317 # Transform an extracted symbol line into symbol name with lib prefix and
6319 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6320 $lt_c_name_lib_hook\
6321 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6322 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6323 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6325 # Handle CRLF in mingw tool chain
6329 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6333 # Try without a prefix underscore, then with it.
6334 for ac_symprfx in "" "_
"; do
6336 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6337 symxfrm="\\1 $ac_symprfx\\2 \\2"
6339 # Write the raw and C identifiers.
6340 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6341 # Fake it for dumpbin and say T for any non-static function,
6342 # D for any global variable and I for any imported variable.
6343 # Also find C++ and __fastcall symbols from MSVC++,
6344 # which start with @ or ?.
6345 lt_cv_sys_global_symbol_pipe="$AWK '"\
6346 " {last_section=section; section=\$ 3};"\
6347 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6348 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6349 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6350 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6351 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6352 " \$ 0!~/External *\|/{next};"\
6353 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6354 " {if(hide[section]) next};"\
6355 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6356 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6357 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6358 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6359 " ' prfx
=^
$ac_symprfx"
6361 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6363 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe |
sed '/ __gnu_lto/d'"
6365 # Check to see that the pipe works correctly.
6369 cat > conftest.$ac_ext <<_LT_EOF
6374 void nm_test_func(void);
6375 void nm_test_func(void){}
6379 int main(){nm_test_var='a';nm_test_func();return(0);}
6382 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6383 (eval $ac_compile) 2>&5
6385 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6386 test $ac_status = 0; }; then
6387 # Now try to grab the symbols.
6389 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
6390 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6392 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6393 test $ac_status = 0; } && test -s "$nlist"; then
6394 # Try sorting and uniquifying the output.
6395 if sort "$nlist" | uniq > "$nlist"T; then
6396 mv -f "$nlist"T "$nlist"
6401 # Make sure that we snagged all the symbols we need.
6402 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6403 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6404 cat <<_LT_EOF > conftest.$ac_ext
6405 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6406 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6407 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6408 relocations are performed -- see ld's documentation on pseudo-relocs. */
6409 # define LT_DLSYM_CONST
6410 #elif defined __osf__
6411 /* This system does not cope well with relocations in const data. */
6412 # define LT_DLSYM_CONST
6414 # define LT_DLSYM_CONST const
6422 # Now generate the symbol file.
6423 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6425 cat <<_LT_EOF >> conftest.$ac_ext
6427 /* The mapping between symbol names and symbols. */
6428 LT_DLSYM_CONST struct {
6432 lt__PROGRAM__LTX_preloaded_symbols[] =
6434 { "@PROGRAM@
", (void *) 0 },
6436 $SED "s
/^
$symcode$symcode* .
* \
(.
*\
)$
/ {\"\
1\", (void
*) \
&\
1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6437 cat <<\_LT_EOF >> conftest.$ac_ext
6441 /* This works around a problem in FreeBSD linker */
6442 #ifdef FREEBSD_WORKAROUND
6443 static const void *lt_preloaded_setup() {
6444 return lt__PROGRAM__LTX_preloaded_symbols;
6452 # Now try linking the two files.
6453 mv conftest.$ac_objext conftstm.$ac_objext
6454 lt_globsym_save_LIBS=$LIBS
6455 lt_globsym_save_CFLAGS=$CFLAGS
6456 LIBS=conftstm.$ac_objext
6457 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6458 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6459 (eval $ac_link) 2>&5
6461 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6462 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6465 LIBS=$lt_globsym_save_LIBS
6466 CFLAGS=$lt_globsym_save_CFLAGS
6468 echo "cannot
find nm_test_func
in $nlist" >&5
6471 echo "cannot
find nm_test_var
in $nlist" >&5
6474 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
6477 echo "$progname: failed program was
:" >&5
6478 cat conftest.$ac_ext >&5
6480 rm -rf conftest* conftst*
6482 # Do not use the global_symbol_pipe unless it works.
6483 if test yes = "$pipe_works"; then
6486 lt_cv_sys_global_symbol_pipe=
6492 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6493 lt_cv_sys_global_symbol_to_cdecl=
6495 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
6497 $as_echo "failed
" >&6; }
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
6500 $as_echo "ok
" >&6; }
6503 # Response file support.
6504 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6505 nm_file_list_spec='@'
6506 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6507 nm_file_list_spec='@'
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for sysroot
" >&5
6547 $as_echo_n "checking
for sysroot...
" >&6; }
6549 # Check whether --with-sysroot was given.
6550 if test "${with_sysroot+set}" = set; then :
6551 withval=$with_sysroot;
6558 case $with_sysroot in #(
6560 if test yes = "$GCC"; then
6561 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6565 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $with_sysroot" >&5
6571 $as_echo "$with_sysroot" >&6; }
6572 as_fn_error $? "The sysroot must be an absolute path.
" "$LINENO" 5
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${lt_sysroot:-no}" >&5
6577 $as_echo "${lt_sysroot:-no}" >&6; }
6583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a working
dd" >&5
6584 $as_echo_n "checking
for a working
dd...
" >&6; }
6585 if ${ac_cv_path_lt_DD+:} false; then :
6586 $as_echo_n "(cached
) " >&6
6588 printf 0123456789abcdef0123456789abcdef >conftest.i
6589 cat conftest.i conftest.i >conftest2.i
6591 if test -z "$lt_DD"; then
6592 ac_path_lt_DD_found=false
6593 # Loop through the user's path and test for each of PROGNAME-LIST
6594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 test -z "$as_dir" && as_dir=.
6599 for ac_prog in dd; do
6600 for ac_exec_ext in '' $ac_executable_extensions; do
6601 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6602 as_fn_executable_p "$ac_path_lt_DD" || continue
6603 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6604 cmp -s conftest.i conftest.out \
6605 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6607 $ac_path_lt_DD_found && break 3
6612 if test -z "$ac_cv_path_lt_DD"; then
6616 ac_cv_path_lt_DD=$lt_DD
6619 rm -f conftest.i conftest2.i conftest.out
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_lt_DD" >&5
6622 $as_echo "$ac_cv_path_lt_DD" >&6; }
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes
" >&5
6626 $as_echo_n "checking how to truncate binary pipes...
" >&6; }
6627 if ${lt_cv_truncate_bin+:} false; then :
6628 $as_echo_n "(cached
) " >&6
6630 printf 0123456789abcdef0123456789abcdef >conftest.i
6631 cat conftest.i conftest.i >conftest2.i
6633 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6634 cmp -s conftest.i conftest.out \
6635 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs
=4096 count
=1"
6637 rm -f conftest.i conftest2.i conftest.out
6638 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q
"
6640 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_truncate_bin" >&5
6641 $as_echo "$lt_cv_truncate_bin" >&6; }
6649 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6652 for cc_temp in $*""; do
6654 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6655 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6660 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
6663 # Check whether --enable-libtool-lock was given.
6664 if test "${enable_libtool_lock+set}" = set; then :
6665 enableval=$enable_libtool_lock;
6668 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6670 # Some flags need to be propagated to the compiler or linker for good
6674 # Find out what ABI is being produced by ac_compile, and set mode
6675 # options accordingly.
6676 echo 'int i;' > conftest.$ac_ext
6677 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6678 (eval $ac_compile) 2>&5
6680 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6681 test $ac_status = 0; }; then
6682 case `/usr/bin/file conftest.$ac_objext` in
6694 # Find out what ABI is being produced by ac_compile, and set linker
6695 # options accordingly.
6696 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6697 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6698 (eval $ac_compile) 2>&5
6700 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6701 test $ac_status = 0; }; then
6702 if test yes = "$lt_cv_prog_gnu_ld"; then
6703 case `/usr/bin/file conftest.$ac_objext` in
6705 LD="${LD-ld} -melf32bsmip"
6708 LD="${LD-ld} -melf32bmipn32"
6711 LD="${LD-ld} -melf64bmip"
6715 case `/usr/bin/file conftest.$ac_objext` in
6732 # Find out what ABI is being produced by ac_compile, and set linker
6733 # options accordingly.
6734 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6735 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6736 (eval $ac_compile) 2>&5
6738 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6739 test $ac_status = 0; }; then
6741 case `/usr/bin/file conftest.$ac_objext` in
6749 case `/usr/bin/file conftest.$ac_objext` in
6751 emul="${emul}btsmip
"
6754 emul="${emul}ltsmip
"
6757 case `/usr/bin/file conftest.$ac_objext` in
6762 LD="${LD-ld} -m $emul"
6767 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6768 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6769 # Find out what ABI is being produced by ac_compile, and set linker
6770 # options accordingly. Note that the listed cases only cover the
6771 # situations where additional linker options are needed (such as when
6772 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6773 # vice versa); the common cases where no linker options are needed do
6774 # not appear in the list.
6775 echo 'int i;' > conftest.$ac_ext
6776 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6777 (eval $ac_compile) 2>&5
6779 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6780 test $ac_status = 0; }; then
6781 case `/usr/bin/file conftest.o` in
6784 x86_64-*kfreebsd*-gnu)
6785 LD="${LD-ld} -m elf_i386_fbsd
"
6788 case `/usr/bin/file conftest.o` in
6790 LD="${LD-ld} -m elf32_x86_64
"
6793 LD="${LD-ld} -m elf_i386
"
6797 powerpc64le-*linux*)
6798 LD="${LD-ld} -m elf32lppclinux
"
6801 LD="${LD-ld} -m elf32ppclinux
"
6804 LD="${LD-ld} -m elf_s390
"
6807 LD="${LD-ld} -m elf32_sparc
"
6813 x86_64-*kfreebsd*-gnu)
6814 LD="${LD-ld} -m elf_x86_64_fbsd
"
6817 LD="${LD-ld} -m elf_x86_64
"
6820 LD="${LD-ld} -m elf64lppc
"
6823 LD="${LD-ld} -m elf64ppc
"
6825 s390*-*linux*|s390*-*tpf*)
6826 LD="${LD-ld} -m elf64_s390
"
6829 LD="${LD-ld} -m elf64_sparc
"
6839 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6841 CFLAGS="$CFLAGS -belf"
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
6843 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6844 if ${lt_cv_cc_needs_belf+:} false; then :
6845 $as_echo_n "(cached
) " >&6
6848 ac_cpp='$CPP $CPPFLAGS'
6849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6854 /* end confdefs.h. */
6864 if ac_fn_c_try_link "$LINENO"; then :
6865 lt_cv_cc_needs_belf=yes
6867 lt_cv_cc_needs_belf=no
6869 rm -f core conftest.err conftest.$ac_objext \
6870 conftest$ac_exeext conftest.$ac_ext
6872 ac_cpp='$CPP $CPPFLAGS'
6873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
6879 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6880 if test yes != "$lt_cv_cc_needs_belf"; then
6881 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6886 # Find out what ABI is being produced by ac_compile, and set linker
6887 # options accordingly.
6888 echo 'int i;' > conftest.$ac_ext
6889 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6890 (eval $ac_compile) 2>&5
6892 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6893 test $ac_status = 0; }; then
6894 case `/usr/bin/file conftest.o` in
6896 case $lt_cv_prog_gnu_ld in
6899 i?86-*-solaris*|x86_64-*-solaris*)
6900 LD="${LD-ld} -m elf_x86_64
"
6903 LD="${LD-ld} -m elf64_sparc
"
6906 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6907 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6912 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6924 need_locks=$enable_libtool_lock
6926 if test -n "$ac_tool_prefix"; then
6927 # Extract the first word of "${ac_tool_prefix}mt
", so it can be a program name with args.
6928 set dummy ${ac_tool_prefix}mt; ac_word=$2
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6930 $as_echo_n "checking
for $ac_word...
" >&6; }
6931 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6932 $as_echo_n "(cached
) " >&6
6934 if test -n "$MANIFEST_TOOL"; then
6935 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6941 test -z "$as_dir" && as_dir=.
6942 for ac_exec_ext in '' $ac_executable_extensions; do
6943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6944 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt
"
6945 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6954 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6955 if test -n "$MANIFEST_TOOL"; then
6956 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MANIFEST_TOOL" >&5
6957 $as_echo "$MANIFEST_TOOL" >&6; }
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6960 $as_echo "no
" >&6; }
6965 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6966 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6967 # Extract the first word of "mt
", so it can be a program name with args.
6968 set dummy mt; ac_word=$2
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6970 $as_echo_n "checking
for $ac_word...
" >&6; }
6971 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6972 $as_echo_n "(cached
) " >&6
6974 if test -n "$ac_ct_MANIFEST_TOOL"; then
6975 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6981 test -z "$as_dir" && as_dir=.
6982 for ac_exec_ext in '' $ac_executable_extensions; do
6983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6984 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt
"
6985 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6994 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6995 if test -n "$ac_ct_MANIFEST_TOOL"; then
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_MANIFEST_TOOL" >&5
6997 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6999 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7000 $as_echo "no
" >&6; }
7003 if test "x
$ac_ct_MANIFEST_TOOL" = x; then
7006 case $cross_compiling:$ac_tool_warned in
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7009 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7010 ac_tool_warned=yes ;;
7012 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7015 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7018 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $MANIFEST_TOOL is a manifest tool
" >&5
7020 $as_echo_n "checking
if $MANIFEST_TOOL is a manifest tool...
" >&6; }
7021 if ${lt_cv_path_mainfest_tool+:} false; then :
7022 $as_echo_n "(cached
) " >&6
7024 lt_cv_path_mainfest_tool=no
7025 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7026 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7027 cat conftest.err >&5
7028 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7029 lt_cv_path_mainfest_tool=yes
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_mainfest_tool" >&5
7034 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7035 if test yes != "$lt_cv_path_mainfest_tool"; then
7045 rhapsody* | darwin*)
7046 if test -n "$ac_tool_prefix"; then
7047 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7048 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7050 $as_echo_n "checking
for $ac_word...
" >&6; }
7051 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7052 $as_echo_n "(cached
) " >&6
7054 if test -n "$DSYMUTIL"; then
7055 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061 test -z "$as_dir" && as_dir=.
7062 for ac_exec_ext in '' $ac_executable_extensions; do
7063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7064 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7065 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7074 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7075 if test -n "$DSYMUTIL"; then
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7077 $as_echo "$DSYMUTIL" >&6; }
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7080 $as_echo "no
" >&6; }
7085 if test -z "$ac_cv_prog_DSYMUTIL"; then
7086 ac_ct_DSYMUTIL=$DSYMUTIL
7087 # Extract the first word of "dsymutil
", so it can be a program name with args.
7088 set dummy dsymutil; ac_word=$2
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7090 $as_echo_n "checking
for $ac_word...
" >&6; }
7091 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7092 $as_echo_n "(cached
) " >&6
7094 if test -n "$ac_ct_DSYMUTIL"; then
7095 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7101 test -z "$as_dir" && as_dir=.
7102 for ac_exec_ext in '' $ac_executable_extensions; do
7103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7104 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7105 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7114 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7115 if test -n "$ac_ct_DSYMUTIL"; then
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7117 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7120 $as_echo "no
" >&6; }
7123 if test "x
$ac_ct_DSYMUTIL" = x; then
7126 case $cross_compiling:$ac_tool_warned in
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7129 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7130 ac_tool_warned=yes ;;
7132 DSYMUTIL=$ac_ct_DSYMUTIL
7135 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7138 if test -n "$ac_tool_prefix"; then
7139 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7140 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7142 $as_echo_n "checking
for $ac_word...
" >&6; }
7143 if ${ac_cv_prog_NMEDIT+:} false; then :
7144 $as_echo_n "(cached
) " >&6
7146 if test -n "$NMEDIT"; then
7147 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7153 test -z "$as_dir" && as_dir=.
7154 for ac_exec_ext in '' $ac_executable_extensions; do
7155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7156 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7157 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7166 NMEDIT=$ac_cv_prog_NMEDIT
7167 if test -n "$NMEDIT"; then
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7169 $as_echo "$NMEDIT" >&6; }
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7172 $as_echo "no
" >&6; }
7177 if test -z "$ac_cv_prog_NMEDIT"; then
7178 ac_ct_NMEDIT=$NMEDIT
7179 # Extract the first word of "nmedit
", so it can be a program name with args.
7180 set dummy nmedit; ac_word=$2
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7182 $as_echo_n "checking
for $ac_word...
" >&6; }
7183 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7184 $as_echo_n "(cached
) " >&6
7186 if test -n "$ac_ct_NMEDIT"; then
7187 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7193 test -z "$as_dir" && as_dir=.
7194 for ac_exec_ext in '' $ac_executable_extensions; do
7195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7196 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7197 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7206 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7207 if test -n "$ac_ct_NMEDIT"; then
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
7209 $as_echo "$ac_ct_NMEDIT" >&6; }
7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7212 $as_echo "no
" >&6; }
7215 if test "x
$ac_ct_NMEDIT" = x; then
7218 case $cross_compiling:$ac_tool_warned in
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7221 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7222 ac_tool_warned=yes ;;
7224 NMEDIT=$ac_ct_NMEDIT
7227 NMEDIT="$ac_cv_prog_NMEDIT"
7230 if test -n "$ac_tool_prefix"; then
7231 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
7232 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7234 $as_echo_n "checking
for $ac_word...
" >&6; }
7235 if ${ac_cv_prog_LIPO+:} false; then :
7236 $as_echo_n "(cached
) " >&6
7238 if test -n "$LIPO"; then
7239 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 test -z "$as_dir" && as_dir=.
7246 for ac_exec_ext in '' $ac_executable_extensions; do
7247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7248 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
7249 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7258 LIPO=$ac_cv_prog_LIPO
7259 if test -n "$LIPO"; then
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
7261 $as_echo "$LIPO" >&6; }
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7264 $as_echo "no
" >&6; }
7269 if test -z "$ac_cv_prog_LIPO"; then
7271 # Extract the first word of "lipo
", so it can be a program name with args.
7272 set dummy lipo; ac_word=$2
7273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7274 $as_echo_n "checking
for $ac_word...
" >&6; }
7275 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7276 $as_echo_n "(cached
) " >&6
7278 if test -n "$ac_ct_LIPO"; then
7279 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7285 test -z "$as_dir" && as_dir=.
7286 for ac_exec_ext in '' $ac_executable_extensions; do
7287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7288 ac_cv_prog_ac_ct_LIPO="lipo
"
7289 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7298 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7299 if test -n "$ac_ct_LIPO"; then
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
7301 $as_echo "$ac_ct_LIPO" >&6; }
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7304 $as_echo "no
" >&6; }
7307 if test "x
$ac_ct_LIPO" = x; then
7310 case $cross_compiling:$ac_tool_warned in
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7313 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7314 ac_tool_warned=yes ;;
7319 LIPO="$ac_cv_prog_LIPO"
7322 if test -n "$ac_tool_prefix"; then
7323 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7324 set dummy ${ac_tool_prefix}otool; ac_word=$2
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7326 $as_echo_n "checking
for $ac_word...
" >&6; }
7327 if ${ac_cv_prog_OTOOL+:} false; then :
7328 $as_echo_n "(cached
) " >&6
7330 if test -n "$OTOOL"; then
7331 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337 test -z "$as_dir" && as_dir=.
7338 for ac_exec_ext in '' $ac_executable_extensions; do
7339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7340 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7341 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7350 OTOOL=$ac_cv_prog_OTOOL
7351 if test -n "$OTOOL"; then
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7353 $as_echo "$OTOOL" >&6; }
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7356 $as_echo "no
" >&6; }
7361 if test -z "$ac_cv_prog_OTOOL"; then
7363 # Extract the first word of "otool
", so it can be a program name with args.
7364 set dummy otool; ac_word=$2
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7366 $as_echo_n "checking
for $ac_word...
" >&6; }
7367 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7368 $as_echo_n "(cached
) " >&6
7370 if test -n "$ac_ct_OTOOL"; then
7371 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7377 test -z "$as_dir" && as_dir=.
7378 for ac_exec_ext in '' $ac_executable_extensions; do
7379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7380 ac_cv_prog_ac_ct_OTOOL="otool
"
7381 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7390 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7391 if test -n "$ac_ct_OTOOL"; then
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7393 $as_echo "$ac_ct_OTOOL" >&6; }
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7396 $as_echo "no
" >&6; }
7399 if test "x
$ac_ct_OTOOL" = x; then
7402 case $cross_compiling:$ac_tool_warned in
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7405 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7406 ac_tool_warned=yes ;;
7411 OTOOL="$ac_cv_prog_OTOOL"
7414 if test -n "$ac_tool_prefix"; then
7415 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7416 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7418 $as_echo_n "checking
for $ac_word...
" >&6; }
7419 if ${ac_cv_prog_OTOOL64+:} false; then :
7420 $as_echo_n "(cached
) " >&6
7422 if test -n "$OTOOL64"; then
7423 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7429 test -z "$as_dir" && as_dir=.
7430 for ac_exec_ext in '' $ac_executable_extensions; do
7431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7432 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7433 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7442 OTOOL64=$ac_cv_prog_OTOOL64
7443 if test -n "$OTOOL64"; then
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7445 $as_echo "$OTOOL64" >&6; }
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7448 $as_echo "no
" >&6; }
7453 if test -z "$ac_cv_prog_OTOOL64"; then
7454 ac_ct_OTOOL64=$OTOOL64
7455 # Extract the first word of "otool64
", so it can be a program name with args.
7456 set dummy otool64; ac_word=$2
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7458 $as_echo_n "checking
for $ac_word...
" >&6; }
7459 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7460 $as_echo_n "(cached
) " >&6
7462 if test -n "$ac_ct_OTOOL64"; then
7463 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7469 test -z "$as_dir" && as_dir=.
7470 for ac_exec_ext in '' $ac_executable_extensions; do
7471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7472 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7473 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7482 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7483 if test -n "$ac_ct_OTOOL64"; then
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7485 $as_echo "$ac_ct_OTOOL64" >&6; }
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7488 $as_echo "no
" >&6; }
7491 if test "x
$ac_ct_OTOOL64" = x; then
7494 case $cross_compiling:$ac_tool_warned in
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7497 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7498 ac_tool_warned=yes ;;
7500 OTOOL64=$ac_ct_OTOOL64
7503 OTOOL64="$ac_cv_prog_OTOOL64"
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
7533 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
7534 if ${lt_cv_apple_cc_single_mod+:} false; then :
7535 $as_echo_n "(cached
) " >&6
7537 lt_cv_apple_cc_single_mod=no
7538 if test -z "$LT_MULTI_MODULE"; then
7539 # By default we will add the -single_module flag. You can override
7540 # by either setting the environment variable LT_MULTI_MODULE
7541 # non-empty at configure time, or by adding -multi_module to the
7543 rm -rf libconftest.dylib*
7544 echo "int foo
(void
){return 1;}" > conftest.c
7545 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7546 -dynamiclib -Wl,-single_module conftest.c
" >&5
7547 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7548 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7550 # If there is a non-empty error log, and "single_module
"
7551 # appears in it, assume the flag caused a linker warning
7552 if test -s conftest.err && $GREP single_module conftest.err; then
7553 cat conftest.err >&5
7554 # Otherwise, if the output was created with a 0 exit code from
7555 # the compiler, it worked.
7556 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7557 lt_cv_apple_cc_single_mod=yes
7559 cat conftest.err >&5
7561 rm -rf libconftest.dylib*
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
7566 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
7569 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
7570 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7571 $as_echo_n "(cached
) " >&6
7573 lt_cv_ld_exported_symbols_list=no
7574 save_LDFLAGS=$LDFLAGS
7575 echo "_main
" > conftest.sym
7576 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
7577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7578 /* end confdefs.h. */
7588 if ac_fn_c_try_link "$LINENO"; then :
7589 lt_cv_ld_exported_symbols_list=yes
7591 lt_cv_ld_exported_symbols_list=no
7593 rm -f core conftest.err conftest.$ac_objext \
7594 conftest$ac_exeext conftest.$ac_ext
7595 LDFLAGS=$save_LDFLAGS
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
7599 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
7602 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
7603 if ${lt_cv_ld_force_load+:} false; then :
7604 $as_echo_n "(cached
) " >&6
7606 lt_cv_ld_force_load=no
7607 cat > conftest.c << _LT_EOF
7608 int forced_loaded() { return 2;}
7610 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
7611 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7612 echo "$AR cru libconftest.a conftest.o
" >&5
7613 $AR cru libconftest.a conftest.o 2>&5
7614 echo "$RANLIB libconftest.a
" >&5
7615 $RANLIB libconftest.a 2>&5
7616 cat > conftest.c << _LT_EOF
7617 int main() { return 0;}
7619 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
7620 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7622 if test -s conftest.err && $GREP force_load conftest.err; then
7623 cat conftest.err >&5
7624 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7625 lt_cv_ld_force_load=yes
7627 cat conftest.err >&5
7629 rm -f conftest.err libconftest.a conftest conftest.c
7630 rm -rf conftest.dSYM
7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
7634 $as_echo "$lt_cv_ld_force_load" >&6; }
7636 rhapsody* | darwin1.[012])
7637 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7639 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7640 darwin*) # darwin 5.x on
7641 # if running on 10.5 or later, the deployment target defaults
7642 # to the OS version, if on x86, and 10.4, the deployment
7643 # target defaults to 10.4. Don't you love it?
7644 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7645 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7646 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7648 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7650 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7654 if test yes = "$lt_cv_apple_cc_single_mod"; then
7655 _lt_dar_single_mod='$single_module'
7657 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7658 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7660 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7662 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7663 _lt_dsymutil='~$DSYMUTIL $lib || :'
7670 # func_munge_path_list VARIABLE PATH
7671 # -----------------------------------
7672 # VARIABLE is name of variable containing _space_ separated list of
7673 # directories to be munged by the contents of PATH, which is string
7676 # string "DIR
[ DIR
]" will be prepended to VARIABLE
7678 # string "DIR
[ DIR
]" will be appended to VARIABLE
7679 # "DIRP
[:DIRP
]::[DIRA
:]DIRA
"
7680 # string "DIRP
[ DIRP
]" will be prepended to VARIABLE and string
7681 # "DIRA
[ DIRA
]" will be appended to VARIABLE
7683 # VARIABLE will be replaced by "DIR
[ DIR
]"
7684 func_munge_path_list ()
7690 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7693 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7696 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7697 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7700 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7706 ac_cpp='$CPP $CPPFLAGS'
7707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
7711 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
7712 # On Suns, sometimes $CPP names a directory.
7713 if test -n "$CPP" && test -d "$CPP"; then
7716 if test -z "$CPP"; then
7717 if ${ac_cv_prog_CPP+:} false; then :
7718 $as_echo_n "(cached
) " >&6
7720 # Double quotes because CPP needs to be expanded
7721 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
7724 for ac_c_preproc_warn_flag in '' yes
7726 # Use a header file that comes with gcc, so configuring glibc
7727 # with a fresh cross-compiler works.
7728 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7729 # <limits.h> exists even on freestanding compilers.
7730 # On the NeXT, cc -E runs the code through the compiler's parser,
7731 # not just through cpp. "Syntax error
" is here to catch this case.
7732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7733 /* end confdefs.h. */
7735 # include <limits.h>
7737 # include <assert.h>
7741 if ac_fn_c_try_cpp "$LINENO"; then :
7744 # Broken: fails on valid input.
7747 rm -f conftest.err conftest.i conftest.$ac_ext
7749 # OK, works on sane cases. Now check whether nonexistent headers
7750 # can be detected and how.
7751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7752 /* end confdefs.h. */
7753 #include <ac_nonexistent.h>
7755 if ac_fn_c_try_cpp "$LINENO"; then :
7756 # Broken: success on invalid input.
7759 # Passes both tests.
7763 rm -f conftest.err conftest.i conftest.$ac_ext
7766 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7767 rm -f conftest.i conftest.err conftest.$ac_ext
7768 if $ac_preproc_ok; then :
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
7781 $as_echo "$CPP" >&6; }
7783 for ac_c_preproc_warn_flag in '' yes
7785 # Use a header file that comes with gcc, so configuring glibc
7786 # with a fresh cross-compiler works.
7787 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7788 # <limits.h> exists even on freestanding compilers.
7789 # On the NeXT, cc -E runs the code through the compiler's parser,
7790 # not just through cpp. "Syntax error
" is here to catch this case.
7791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7792 /* end confdefs.h. */
7794 # include <limits.h>
7796 # include <assert.h>
7800 if ac_fn_c_try_cpp "$LINENO"; then :
7803 # Broken: fails on valid input.
7806 rm -f conftest.err conftest.i conftest.$ac_ext
7808 # OK, works on sane cases. Now check whether nonexistent headers
7809 # can be detected and how.
7810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7811 /* end confdefs.h. */
7812 #include <ac_nonexistent.h>
7814 if ac_fn_c_try_cpp "$LINENO"; then :
7815 # Broken: success on invalid input.
7818 # Passes both tests.
7822 rm -f conftest.err conftest.i conftest.$ac_ext
7825 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7826 rm -f conftest.i conftest.err conftest.$ac_ext
7827 if $ac_preproc_ok; then :
7830 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
7831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7832 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7833 See \`config.log' for more details
" "$LINENO" 5; }
7837 ac_cpp='$CPP $CPPFLAGS'
7838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
7844 $as_echo_n "checking
for ANSI C header files...
" >&6; }
7845 if ${ac_cv_header_stdc+:} false; then :
7846 $as_echo_n "(cached
) " >&6
7848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7849 /* end confdefs.h. */
7863 if ac_fn_c_try_compile "$LINENO"; then :
7864 ac_cv_header_stdc=yes
7866 ac_cv_header_stdc=no
7868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7870 if test $ac_cv_header_stdc = yes; then
7871 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873 /* end confdefs.h. */
7877 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7878 $EGREP "memchr
" >/dev/null 2>&1; then :
7881 ac_cv_header_stdc=no
7887 if test $ac_cv_header_stdc = yes; then
7888 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7890 /* end confdefs.h. */
7894 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7895 $EGREP "free
" >/dev/null 2>&1; then :
7898 ac_cv_header_stdc=no
7904 if test $ac_cv_header_stdc = yes; then
7905 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7906 if test "$cross_compiling" = yes; then :
7909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7910 /* end confdefs.h. */
7913 #if ((' ' & 0x0FF) == 0x020)
7914 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7915 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7917 # define ISLOWER(c) \
7918 (('a' <= (c) && (c) <= 'i') \
7919 || ('j' <= (c) && (c) <= 'r') \
7920 || ('s' <= (c) && (c) <= 'z'))
7921 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7924 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7929 for (i = 0; i < 256; i++)
7930 if (XOR (islower (i), ISLOWER (i))
7931 || toupper (i) != TOUPPER (i))
7936 if ac_fn_c_try_run "$LINENO"; then :
7939 ac_cv_header_stdc=no
7941 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7942 conftest.$ac_objext conftest.beam conftest.$ac_ext
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
7948 $as_echo "$ac_cv_header_stdc" >&6; }
7949 if test $ac_cv_header_stdc = yes; then
7951 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7955 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7956 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7957 inttypes.h stdint.h unistd.h
7959 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7960 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7962 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7963 cat >>confdefs.h
<<_ACEOF
7964 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7972 for ac_header
in dlfcn.h
7974 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7976 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
7977 cat >>confdefs.h
<<_ACEOF
7978 #define HAVE_DLFCN_H 1
7999 # Check whether --enable-shared was given.
8000 if test "${enable_shared+set}" = set; then :
8001 enableval
=$enable_shared; p
=${PACKAGE-default}
8003 yes) enable_shared
=yes ;;
8004 no
) enable_shared
=no
;;
8007 # Look at the argument we got. We use all the common list separators.
8008 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8009 for pkg
in $enableval; do
8011 if test "X$pkg" = "X$p"; then
8030 # Check whether --enable-static was given.
8031 if test "${enable_static+set}" = set; then :
8032 enableval
=$enable_static; p
=${PACKAGE-default}
8034 yes) enable_static
=yes ;;
8035 no
) enable_static
=no
;;
8038 # Look at the argument we got. We use all the common list separators.
8039 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8040 for pkg
in $enableval; do
8042 if test "X$pkg" = "X$p"; then
8062 # Check whether --with-pic was given.
8063 if test "${with_pic+set}" = set; then :
8064 withval
=$with_pic; lt_p
=${PACKAGE-default}
8066 yes|no
) pic_mode
=$withval ;;
8069 # Look at the argument we got. We use all the common list separators.
8070 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8071 for lt_pkg
in $withval; do
8073 if test "X$lt_pkg" = "X$lt_p"; then
8091 # Check whether --enable-fast-install was given.
8092 if test "${enable_fast_install+set}" = set; then :
8093 enableval
=$enable_fast_install; p
=${PACKAGE-default}
8095 yes) enable_fast_install
=yes ;;
8096 no
) enable_fast_install
=no
;;
8098 enable_fast_install
=no
8099 # Look at the argument we got. We use all the common list separators.
8100 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8101 for pkg
in $enableval; do
8103 if test "X$pkg" = "X$p"; then
8104 enable_fast_install
=yes
8111 enable_fast_install
=yes
8121 shared_archive_member_spec
=
8122 case $host,$enable_shared in
8123 power
*-*-aix[5-9]*,yes)
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8125 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8127 # Check whether --with-aix-soname was given.
8128 if test "${with_aix_soname+set}" = set; then :
8129 withval
=$with_aix_soname; case $withval in
8133 as_fn_error $?
"Unknown argument to --with-aix-soname" "$LINENO" 5
8136 lt_cv_with_aix_soname
=$with_aix_soname
8138 if ${lt_cv_with_aix_soname+:} false
; then :
8139 $as_echo_n "(cached) " >&6
8141 lt_cv_with_aix_soname
=aix
8144 with_aix_soname
=$lt_cv_with_aix_soname
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8148 $as_echo "$with_aix_soname" >&6; }
8149 if test aix
!= "$with_aix_soname"; then
8150 # For the AIX way of multilib, we name the shared archive member
8151 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8152 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8153 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8154 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8155 if test 64 = "${OBJECT_MODE-32}"; then
8156 shared_archive_member_spec
=shr_64
8158 shared_archive_member_spec
=shr
8176 # This can be used to rebuild libtool when needed
8177 LIBTOOL_DEPS
=$ltmain
8179 # Always use our own libtool.
8180 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
8211 test -z "$LN_S" && LN_S
="ln -s"
8226 if test -n "${ZSH_VERSION+set}"; then
8227 setopt NO_GLOB_SUBST
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8231 $as_echo_n "checking for objdir... " >&6; }
8232 if ${lt_cv_objdir+:} false
; then :
8233 $as_echo_n "(cached) " >&6
8235 rm -f .libs
2>/dev
/null
8236 mkdir .libs
2>/dev
/null
8237 if test -d .libs
; then
8240 # MS-DOS does not allow filenames that begin with a dot.
8243 rmdir .libs
2>/dev
/null
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8246 $as_echo "$lt_cv_objdir" >&6; }
8247 objdir
=$lt_cv_objdir
8253 cat >>confdefs.h
<<_ACEOF
8254 #define LT_OBJDIR "$lt_cv_objdir/"
8262 # AIX sometimes has problems with the GCC collect2 program. For some
8263 # reason, if we set the COLLECT_NAMES environment variable, the problems
8264 # vanish in a puff of smoke.
8265 if test set != "${COLLECT_NAMES+set}"; then
8267 export COLLECT_NAMES
8274 can_build_shared
=yes
8276 # All known linkers require a '.a' archive for static linking (except MSVC,
8277 # which needs '.lib').
8280 with_gnu_ld
=$lt_cv_prog_gnu_ld
8285 # Set sane defaults for various variables
8286 test -z "$CC" && CC
=cc
8287 test -z "$LTCC" && LTCC
=$CC
8288 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8289 test -z "$LD" && LD
=ld
8290 test -z "$ac_objext" && ac_objext
=o
8292 func_cc_basename
$compiler
8293 cc_basename
=$func_cc_basename_result
8296 # Only perform the check for file, if the check method requires it
8297 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8298 case $deplibs_check_method in
8300 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8302 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8303 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8304 $as_echo_n "(cached) " >&6
8308 lt_cv_path_MAGIC_CMD
=$MAGIC_CMD # Let the user override the test with a path.
8311 lt_save_MAGIC_CMD
=$MAGIC_CMD
8312 lt_save_ifs
=$IFS; IFS
=$PATH_SEPARATOR
8313 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8314 for ac_dir
in $ac_dummy; do
8316 test -z "$ac_dir" && ac_dir
=.
8317 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8318 lt_cv_path_MAGIC_CMD
=$ac_dir/"${ac_tool_prefix}file"
8319 if test -n "$file_magic_test_file"; then
8320 case $deplibs_check_method in
8322 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8323 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8324 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8325 $EGREP "$file_magic_regex" > /dev
/null
; then
8330 *** Warning: the command libtool uses to detect shared libraries,
8331 *** $file_magic_cmd, produces output that libtool cannot recognize.
8332 *** The result is that libtool may fail to recognize shared libraries
8333 *** as such. This will affect the creation of libtool libraries that
8334 *** depend on shared libraries, but programs linked with such libtool
8335 *** libraries will work regardless of this problem. Nevertheless, you
8336 *** may want to report the problem to your system manager and/or to
8337 *** bug-libtool@gnu.org
8347 MAGIC_CMD
=$lt_save_MAGIC_CMD
8352 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8353 if test -n "$MAGIC_CMD"; then
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8355 $as_echo "$MAGIC_CMD" >&6; }
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8358 $as_echo "no" >&6; }
8365 if test -z "$lt_cv_path_MAGIC_CMD"; then
8366 if test -n "$ac_tool_prefix"; then
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8368 $as_echo_n "checking for file... " >&6; }
8369 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8370 $as_echo_n "(cached) " >&6
8374 lt_cv_path_MAGIC_CMD
=$MAGIC_CMD # Let the user override the test with a path.
8377 lt_save_MAGIC_CMD
=$MAGIC_CMD
8378 lt_save_ifs
=$IFS; IFS
=$PATH_SEPARATOR
8379 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8380 for ac_dir
in $ac_dummy; do
8382 test -z "$ac_dir" && ac_dir
=.
8383 if test -f "$ac_dir/file"; then
8384 lt_cv_path_MAGIC_CMD
=$ac_dir/"file"
8385 if test -n "$file_magic_test_file"; then
8386 case $deplibs_check_method in
8388 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8389 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8390 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8391 $EGREP "$file_magic_regex" > /dev
/null
; then
8396 *** Warning: the command libtool uses to detect shared libraries,
8397 *** $file_magic_cmd, produces output that libtool cannot recognize.
8398 *** The result is that libtool may fail to recognize shared libraries
8399 *** as such. This will affect the creation of libtool libraries that
8400 *** depend on shared libraries, but programs linked with such libtool
8401 *** libraries will work regardless of this problem. Nevertheless, you
8402 *** may want to report the problem to your system manager and/or to
8403 *** bug-libtool@gnu.org
8413 MAGIC_CMD
=$lt_save_MAGIC_CMD
8418 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8419 if test -n "$MAGIC_CMD"; then
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8421 $as_echo "$MAGIC_CMD" >&6; }
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8424 $as_echo "no" >&6; }
8437 # Use C for the default configuration in the libtool script
8441 ac_cpp
='$CPP $CPPFLAGS'
8442 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8443 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8444 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8447 # Source file extension for C test sources.
8450 # Object file extension for compiled C test sources.
8454 # Code to be used in simple compile tests
8455 lt_simple_compile_test_code
="int some_variable = 0;"
8457 # Code to be used in simple link tests
8458 lt_simple_link_test_code
='int main(){return(0);}'
8466 # If no C compiler was specified, use CC.
8469 # If no C compiler flags were specified, use CFLAGS.
8470 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8472 # Allow CC to be a program name with arguments.
8475 # Save the default compiler, since it gets overwritten when the other
8476 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8477 compiler_DEFAULT
=$CC
8479 # save warnings/boilerplate of simple test code
8480 ac_outfile
=conftest.
$ac_objext
8481 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8482 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8483 _lt_compiler_boilerplate
=`cat conftest.err`
8486 ac_outfile
=conftest.
$ac_objext
8487 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8488 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8489 _lt_linker_boilerplate
=`cat conftest.err`
8494 ## There is no encapsulation within the following macros, do not change
8495 ## the running order or otherwise move them around unless you know exactly
8496 ## what you are doing...
8497 if test -n "$compiler"; then
8499 lt_prog_compiler_no_builtin_flag
=
8501 if test yes = "$GCC"; then
8502 case $cc_basename in
8504 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8506 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8510 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8511 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
8512 $as_echo_n "(cached) " >&6
8514 lt_cv_prog_compiler_rtti_exceptions
=no
8515 ac_outfile
=conftest.
$ac_objext
8516 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8517 lt_compiler_flag
="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8518 # Insert the option either (1) after the last *FLAGS variable, or
8519 # (2) before a word containing "conftest.", or (3) at the end.
8520 # Note that $ac_compile itself does not contain backslashes and begins
8521 # with a dollar sign (not a hyphen), so the echo should work correctly.
8522 # The option is referenced via a variable to avoid confusing sed.
8523 lt_compile
=`echo "$ac_compile" | $SED \
8524 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8525 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8526 -e 's:$: $lt_compiler_flag:'`
8527 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8528 (eval "$lt_compile" 2>conftest.err
)
8530 cat conftest.err
>&5
8531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8532 if (exit $ac_status) && test -s "$ac_outfile"; then
8533 # The compiler can only warn and ignore the option if not recognized
8534 # So say no if there are warnings other than the usual output.
8535 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8536 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8537 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8538 lt_cv_prog_compiler_rtti_exceptions
=yes
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8545 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8547 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8548 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8560 lt_prog_compiler_wl
=
8561 lt_prog_compiler_pic
=
8562 lt_prog_compiler_static
=
8565 if test yes = "$GCC"; then
8566 lt_prog_compiler_wl
='-Wl,'
8567 lt_prog_compiler_static
='-static'
8571 # All AIX code is PIC.
8572 if test ia64
= "$host_cpu"; then
8573 # AIX 5 now supports IA64 processor
8574 lt_prog_compiler_static
='-Bstatic'
8576 lt_prog_compiler_pic
='-fPIC'
8582 # see comment about AmigaOS4 .so support
8583 lt_prog_compiler_pic
='-fPIC'
8586 # FIXME: we need at least 68020 code to build shared libraries, but
8587 # adding the '-m68020' flag to GCC prevents building anything better,
8589 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8594 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8595 # PIC is the default for these OSes.
8598 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8599 # This hack is so that the source file can tell whether it is being
8600 # built for inclusion in a dll (and should export symbols for example).
8601 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8602 # (--disable-auto-import) libraries
8603 lt_prog_compiler_pic
='-DDLL_EXPORT'
8606 lt_prog_compiler_static
='$wl-static'
8611 darwin
* | rhapsody
*)
8612 # PIC is the default on this platform
8613 # Common symbols not allowed in MH_DYLIB files
8614 lt_prog_compiler_pic
='-fno-common'
8618 # PIC is the default for Haiku.
8619 # The "-static" flag exists, but is broken.
8620 lt_prog_compiler_static
=
8624 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8625 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8626 # sets the default TLS model and affects inlining.
8632 lt_prog_compiler_pic
='-fPIC'
8638 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8639 # Instead, we relocate shared libraries at runtime.
8643 # Just because we use GCC doesn't mean we suddenly get shared libraries
8644 # on systems that don't support them.
8645 lt_prog_compiler_can_build_shared
=no
8650 # QNX uses GNU C++, but need to define -shared option too, otherwise
8652 lt_prog_compiler_pic
='-fPIC -shared'
8656 if test -d /usr
/nec
; then
8657 lt_prog_compiler_pic
=-Kconform_pic
8662 lt_prog_compiler_pic
='-fPIC'
8666 case $cc_basename in
8667 nvcc
*) # Cuda Compiler Driver 2.2
8668 lt_prog_compiler_wl
='-Xlinker '
8669 if test -n "$lt_prog_compiler_pic"; then
8670 lt_prog_compiler_pic
="-Xcompiler $lt_prog_compiler_pic"
8675 # PORTME Check for flag to pass linker flags through the system compiler.
8678 lt_prog_compiler_wl
='-Wl,'
8679 if test ia64
= "$host_cpu"; then
8680 # AIX 5 now supports IA64 processor
8681 lt_prog_compiler_static
='-Bstatic'
8683 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8687 darwin
* | rhapsody
*)
8688 # PIC is the default on this platform
8689 # Common symbols not allowed in MH_DYLIB files
8690 lt_prog_compiler_pic
='-fno-common'
8691 case $cc_basename in
8693 # NAG Fortran compiler
8694 lt_prog_compiler_wl
='-Wl,-Wl,,'
8695 lt_prog_compiler_pic
='-PIC'
8696 lt_prog_compiler_static
='-Bstatic'
8701 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8702 # This hack is so that the source file can tell whether it is being
8703 # built for inclusion in a dll (and should export symbols for example).
8704 lt_prog_compiler_pic
='-DDLL_EXPORT'
8707 lt_prog_compiler_static
='$wl-static'
8712 hpux9
* | hpux10
* | hpux11
*)
8713 lt_prog_compiler_wl
='-Wl,'
8714 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8721 lt_prog_compiler_pic
='+Z'
8724 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8725 lt_prog_compiler_static
='$wl-a ${wl}archive'
8728 irix5
* | irix6
* | nonstopux
*)
8729 lt_prog_compiler_wl
='-Wl,'
8730 # PIC (with -KPIC) is the default.
8731 lt_prog_compiler_static
='-non_shared'
8734 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
8735 case $cc_basename in
8736 # old Intel for x86_64, which still supported -KPIC.
8738 lt_prog_compiler_wl
='-Wl,'
8739 lt_prog_compiler_pic
='-KPIC'
8740 lt_prog_compiler_static
='-static'
8742 # icc used to be incompatible with GCC.
8743 # ICC 10 doesn't accept -KPIC any more.
8745 lt_prog_compiler_wl
='-Wl,'
8746 lt_prog_compiler_pic
='-fPIC'
8747 lt_prog_compiler_static
='-static'
8749 # Lahey Fortran 8.1.
8751 lt_prog_compiler_wl
='-Wl,'
8752 lt_prog_compiler_pic
='--shared'
8753 lt_prog_compiler_static
='--static'
8756 # NAG Fortran compiler
8757 lt_prog_compiler_wl
='-Wl,-Wl,,'
8758 lt_prog_compiler_pic
='-PIC'
8759 lt_prog_compiler_static
='-Bstatic'
8762 # Fabrice Bellard et al's Tiny C Compiler
8763 lt_prog_compiler_wl
='-Wl,'
8764 lt_prog_compiler_pic
='-fPIC'
8765 lt_prog_compiler_static
='-static'
8767 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8768 # Portland Group compilers (*not* the Pentium gcc compiler,
8769 # which looks to be a dead project)
8770 lt_prog_compiler_wl
='-Wl,'
8771 lt_prog_compiler_pic
='-fpic'
8772 lt_prog_compiler_static
='-Bstatic'
8775 lt_prog_compiler_wl
='-Wl,'
8776 # All Alpha code is PIC.
8777 lt_prog_compiler_static
='-non_shared'
8779 xl
* | bgxl
* | bgf
* | mpixl
*)
8780 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8781 lt_prog_compiler_wl
='-Wl,'
8782 lt_prog_compiler_pic
='-qpic'
8783 lt_prog_compiler_static
='-qstaticlink'
8786 case `$CC -V 2>&1 | sed 5q` in
8787 *Sun\ Ceres\ Fortran
* |
*Sun
*Fortran
*\
[1-7].
* |
*Sun
*Fortran
*\
8.
[0-3]*)
8788 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8789 lt_prog_compiler_pic
='-KPIC'
8790 lt_prog_compiler_static
='-Bstatic'
8791 lt_prog_compiler_wl
=''
8793 *Sun\ F
* |
*Sun
*Fortran
*)
8794 lt_prog_compiler_pic
='-KPIC'
8795 lt_prog_compiler_static
='-Bstatic'
8796 lt_prog_compiler_wl
='-Qoption ld '
8800 lt_prog_compiler_pic
='-KPIC'
8801 lt_prog_compiler_static
='-Bstatic'
8802 lt_prog_compiler_wl
='-Wl,'
8804 *Intel
*\
[CF
]*Compiler
*)
8805 lt_prog_compiler_wl
='-Wl,'
8806 lt_prog_compiler_pic
='-fPIC'
8807 lt_prog_compiler_static
='-static'
8810 lt_prog_compiler_wl
='-Wl,'
8811 lt_prog_compiler_pic
='-fpic'
8812 lt_prog_compiler_static
='-Bstatic'
8820 lt_prog_compiler_pic
='-KPIC'
8821 lt_prog_compiler_static
='-Bstatic'
8825 # QNX uses GNU C++, but need to define -shared option too, otherwise
8827 lt_prog_compiler_pic
='-fPIC -shared'
8830 osf3
* | osf4
* | osf5
*)
8831 lt_prog_compiler_wl
='-Wl,'
8832 # All OSF/1 code is PIC.
8833 lt_prog_compiler_static
='-non_shared'
8837 lt_prog_compiler_static
='-non_shared'
8841 lt_prog_compiler_pic
='-KPIC'
8842 lt_prog_compiler_static
='-Bstatic'
8843 case $cc_basename in
8844 f77
* | f90
* | f95
* | sunf77
* | sunf90
* | sunf95
*)
8845 lt_prog_compiler_wl
='-Qoption ld ';;
8847 lt_prog_compiler_wl
='-Wl,';;
8852 lt_prog_compiler_wl
='-Qoption ld '
8853 lt_prog_compiler_pic
='-PIC'
8854 lt_prog_compiler_static
='-Bstatic'
8857 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8858 lt_prog_compiler_wl
='-Wl,'
8859 lt_prog_compiler_pic
='-KPIC'
8860 lt_prog_compiler_static
='-Bstatic'
8864 if test -d /usr
/nec
; then
8865 lt_prog_compiler_pic
='-Kconform_pic'
8866 lt_prog_compiler_static
='-Bstatic'
8870 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8871 lt_prog_compiler_wl
='-Wl,'
8872 lt_prog_compiler_pic
='-KPIC'
8873 lt_prog_compiler_static
='-Bstatic'
8877 lt_prog_compiler_wl
='-Wl,'
8878 lt_prog_compiler_can_build_shared
=no
8882 lt_prog_compiler_pic
='-pic'
8883 lt_prog_compiler_static
='-Bstatic'
8887 lt_prog_compiler_can_build_shared
=no
8893 # For platforms that do not support PIC, -DPIC is meaningless:
8895 lt_prog_compiler_pic
=
8898 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8903 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8904 if ${lt_cv_prog_compiler_pic+:} false
; then :
8905 $as_echo_n "(cached) " >&6
8907 lt_cv_prog_compiler_pic
=$lt_prog_compiler_pic
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8910 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8911 lt_prog_compiler_pic
=$lt_cv_prog_compiler_pic
8914 # Check to make sure the PIC flag actually works.
8916 if test -n "$lt_prog_compiler_pic"; then
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8918 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8919 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
8920 $as_echo_n "(cached) " >&6
8922 lt_cv_prog_compiler_pic_works
=no
8923 ac_outfile
=conftest.
$ac_objext
8924 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8925 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8926 # Insert the option either (1) after the last *FLAGS variable, or
8927 # (2) before a word containing "conftest.", or (3) at the end.
8928 # Note that $ac_compile itself does not contain backslashes and begins
8929 # with a dollar sign (not a hyphen), so the echo should work correctly.
8930 # The option is referenced via a variable to avoid confusing sed.
8931 lt_compile
=`echo "$ac_compile" | $SED \
8932 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8933 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8934 -e 's:$: $lt_compiler_flag:'`
8935 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8936 (eval "$lt_compile" 2>conftest.err
)
8938 cat conftest.err
>&5
8939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 if (exit $ac_status) && test -s "$ac_outfile"; then
8941 # The compiler can only warn and ignore the option if not recognized
8942 # So say no if there are warnings other than the usual output.
8943 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8944 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8945 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8946 lt_cv_prog_compiler_pic_works
=yes
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8953 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8955 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8956 case $lt_prog_compiler_pic in
8958 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8961 lt_prog_compiler_pic
=
8962 lt_prog_compiler_can_build_shared
=no
8978 # Check to make sure the static flag actually works.
8980 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8982 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8983 if ${lt_cv_prog_compiler_static_works+:} false
; then :
8984 $as_echo_n "(cached) " >&6
8986 lt_cv_prog_compiler_static_works
=no
8987 save_LDFLAGS
=$LDFLAGS
8988 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8989 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8990 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8991 # The linker can only warn and ignore the option if not recognized
8992 # So say no if there are warnings
8993 if test -s conftest.err
; then
8994 # Append any errors to the config.log.
8995 cat conftest.err
1>&5
8996 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
8997 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8998 if diff conftest.exp conftest.er2
>/dev
/null
; then
8999 lt_cv_prog_compiler_static_works
=yes
9002 lt_cv_prog_compiler_static_works
=yes
9006 LDFLAGS
=$save_LDFLAGS
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9010 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9012 if test yes = "$lt_cv_prog_compiler_static_works"; then
9015 lt_prog_compiler_static
=
9024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9025 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9026 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9027 $as_echo_n "(cached) " >&6
9029 lt_cv_prog_compiler_c_o
=no
9030 $RM -r conftest
2>/dev
/null
9034 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9036 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9037 # Insert the option either (1) after the last *FLAGS variable, or
9038 # (2) before a word containing "conftest.", or (3) at the end.
9039 # Note that $ac_compile itself does not contain backslashes and begins
9040 # with a dollar sign (not a hyphen), so the echo should work correctly.
9041 lt_compile
=`echo "$ac_compile" | $SED \
9042 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9043 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9044 -e 's:$: $lt_compiler_flag:'`
9045 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9046 (eval "$lt_compile" 2>out
/conftest.err
)
9048 cat out
/conftest.err
>&5
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9052 # The compiler can only warn and ignore the option if not recognized
9053 # So say no if there are warnings
9054 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
9055 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9056 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9057 lt_cv_prog_compiler_c_o
=yes
9062 # SGI C++ compiler will create directory out/ii_files/ for
9063 # template instantiation
9064 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9065 $RM out
/* && rmdir out
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9072 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
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; }
9132 hard_links
=nottested
9133 if test no
= "$lt_cv_prog_compiler_c_o" && test no
!= "$need_locks"; then
9134 # do not overwrite the value of need_locks provided by the user
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9136 $as_echo_n "checking if we can lock with hard links... " >&6; }
9139 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9141 ln conftest.a conftest.b
2>&5 || hard_links
=no
9142 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9144 $as_echo "$hard_links" >&6; }
9145 if test no
= "$hard_links"; then
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9147 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9160 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9163 allow_undefined_flag
=
9164 always_export_symbols
=no
9166 archive_expsym_cmds
=
9167 compiler_needs_object
=no
9168 enable_shared_with_static_runtimes
=no
9169 export_dynamic_flag_spec
=
9170 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9171 hardcode_automatic
=no
9173 hardcode_direct_absolute
=no
9174 hardcode_libdir_flag_spec
=
9175 hardcode_libdir_separator
=
9177 hardcode_shlibpath_var
=unsupported
9179 link_all_deplibs
=unknown
9182 old_archive_from_new_cmds
=
9183 old_archive_from_expsyms_cmds
=
9184 thread_safe_flag_spec
=
9185 whole_archive_flag_spec
=
9186 # include_expsyms should be a list of space-separated symbols to be *always*
9187 # included in the symbol list
9189 # exclude_expsyms can be an extended regexp of symbols to exclude
9190 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9191 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9192 # as well as any symbol that contains 'd'.
9193 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9194 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9195 # platforms (ab)use it in PIC code, but their linkers get confused if
9196 # the symbol is explicitly referenced. Since portable code cannot
9197 # rely on this symbol name, it's probably fine to never include it in
9198 # preloaded symbol tables.
9199 # Exclude shared library initialization/finalization symbols.
9200 extract_expsyms_cmds
=
9203 cygwin
* | mingw
* | pw32
* | cegcc
*)
9204 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9205 # When not using gcc, we currently assume that we are using
9206 # Microsoft Visual C++.
9207 if test yes != "$GCC"; then
9212 # we just hope/assume this is gcc and not c89 (= MSVC++)
9218 linux
* | k
*bsd
*-gnu | gnu
*)
9225 # On some targets, GNU ld is compatible enough with the native linker
9226 # that we're better off using the native interface for both.
9227 lt_use_gnu_ld_interface
=no
9228 if test yes = "$with_gnu_ld"; then
9231 # The AIX port of GNU ld has always aspired to compatibility
9232 # with the native linker. However, as the warning in the GNU ld
9233 # block says, versions before 2.19.5* couldn't really create working
9234 # shared libraries, regardless of the interface used.
9235 case `$LD -v 2>&1` in
9236 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
9237 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
9238 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
9240 lt_use_gnu_ld_interface
=yes
9245 lt_use_gnu_ld_interface
=yes
9250 if test yes = "$lt_use_gnu_ld_interface"; then
9251 # If archive_cmds runs LD, not CC, wlarc should be empty
9254 # Set some defaults for GNU ld with shared library support. These
9255 # are reset later if shared libraries are not supported. Putting them
9256 # here allows them to be overridden if necessary.
9257 runpath_var
=LD_RUN_PATH
9258 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
9259 export_dynamic_flag_spec
='$wl--export-dynamic'
9260 # ancient GNU ld didn't support --whole-archive et. al.
9261 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
9262 whole_archive_flag_spec
=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9264 whole_archive_flag_spec
=
9266 supports_anon_versioning
=no
9267 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9268 *GNU\ gold
*) supports_anon_versioning
=yes ;;
9269 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
9270 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9271 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9272 *\
2.11.
*) ;; # other 2.11 versions
9273 *) supports_anon_versioning
=yes ;;
9276 # See if GNU ld supports shared libraries.
9279 # On AIX/PPC, the GNU linker is very broken
9280 if test ia64
!= "$host_cpu"; then
9284 *** Warning: the GNU linker, at least up to release 2.19, is reported
9285 *** to be unable to reliably create shared libraries on AIX.
9286 *** Therefore, libtool is disabling shared libraries support. If you
9287 *** really care for shared libraries, you may want to install binutils
9288 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9289 *** You will then need to restart the configuration process.
9298 # see comment about AmigaOS4 .so support
9299 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9300 archive_expsym_cmds
=''
9303 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)'
9304 hardcode_libdir_flag_spec
='-L$libdir'
9305 hardcode_minus_L
=yes
9311 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9312 allow_undefined_flag
=unsupported
9313 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9314 # support --undefined. This deserves some investigation. FIXME
9315 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9321 cygwin
* | mingw
* | pw32
* | cegcc
*)
9322 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9323 # as there is no search path for DLLs.
9324 hardcode_libdir_flag_spec
='-L$libdir'
9325 export_dynamic_flag_spec
='$wl--export-all-symbols'
9326 allow_undefined_flag
=unsupported
9327 always_export_symbols
=no
9328 enable_shared_with_static_runtimes
=yes
9329 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'
9330 exclude_expsyms
='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9332 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9333 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9334 # If the export-symbols file already is a .def file, use it as
9335 # is; otherwise, prepend EXPORTS...
9336 archive_expsym_cmds
='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9337 cp $export_symbols $output_objdir/$soname.def;
9339 echo EXPORTS > $output_objdir/$soname.def;
9340 cat $export_symbols >> $output_objdir/$soname.def;
9342 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9349 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9350 link_all_deplibs
=yes
9354 hardcode_libdir_flag_spec
='-L$libdir'
9355 hardcode_minus_L
=yes
9356 allow_undefined_flag
=unsupported
9358 archive_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9359 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9360 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9361 $ECHO EXPORTS >> $output_objdir/$libname.def~
9362 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9363 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9364 emximp -o $lib $output_objdir/$libname.def'
9365 archive_expsym_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9366 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9367 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9368 $ECHO EXPORTS >> $output_objdir/$libname.def~
9370 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9371 prefix_cmds="$prefix_cmds -e 1d";
9373 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9374 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9375 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9376 emximp -o $lib $output_objdir/$libname.def'
9377 old_archive_From_new_cmds
='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9378 enable_shared_with_static_runtimes
=yes
9383 hardcode_shlibpath_var
=no
9384 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
9385 export_dynamic_flag_spec
='$wl-E'
9386 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9387 # Instead, shared libraries are loaded at an image base (0x10000000 by
9388 # default) and relocated if they conflict, which is a slow very memory
9389 # consuming and fragmenting process. To avoid this, we pick a random,
9390 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9391 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9392 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9393 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'
9396 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9398 if test linux-dietlibc
= "$host_os"; then
9399 case $cc_basename in
9400 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9403 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9404 && test no
= "$tmp_diet"
9406 tmp_addflag
=' $pic_flag'
9407 tmp_sharedflag
='-shared'
9408 case $cc_basename,$host_cpu in
9409 pgcc
*) # Portland Group C compiler
9410 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'
9411 tmp_addflag
=' $pic_flag'
9413 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9414 # Portland Group f77 and f90 compilers
9415 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'
9416 tmp_addflag
=' $pic_flag -Mnomain' ;;
9417 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9418 tmp_addflag
=' -i_dynamic' ;;
9419 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9420 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9421 ifc
* | ifort
*) # Intel Fortran compiler
9422 tmp_addflag
=' -nofor_main' ;;
9423 lf95
*) # Lahey Fortran 8.1
9424 whole_archive_flag_spec
=
9425 tmp_sharedflag
='--shared' ;;
9426 nagfor
*) # NAGFOR 5.3
9427 tmp_sharedflag
='-Wl,-shared' ;;
9428 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9429 tmp_sharedflag
='-qmkshrobj'
9431 nvcc
*) # Cuda Compiler Driver 2.2
9432 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'
9433 compiler_needs_object
=yes
9436 case `$CC -V 2>&1 | sed 5q` in
9437 *Sun\ C
*) # Sun C 5.9
9438 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'
9439 compiler_needs_object
=yes
9440 tmp_sharedflag
='-G' ;;
9441 *Sun\ F
*) # Sun Fortran 8.3
9442 tmp_sharedflag
='-G' ;;
9444 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9446 if test yes = "$supports_anon_versioning"; then
9447 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9448 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9449 echo "local: *; };" >> $output_objdir/$libname.ver~
9450 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9453 case $cc_basename in
9455 export_dynamic_flag_spec
='-rdynamic'
9457 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9458 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9459 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9460 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
9461 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9462 if test yes = "$supports_anon_versioning"; then
9463 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9464 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9465 echo "local: *; };" >> $output_objdir/$libname.ver~
9466 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9475 netbsd
* | netbsdelf
*-gnu)
9476 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9477 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9480 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9481 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9486 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9490 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9491 *** create shared libraries on Solaris systems. Therefore, libtool
9492 *** is disabling shared libraries support. We urge you to upgrade GNU
9493 *** binutils to release 2.9.1 or newer. Another option is to modify
9494 *** your PATH or compiler configuration so that the native linker is
9495 *** used, and then restart.
9498 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9499 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9500 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9506 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9507 case `$LD -v 2>&1` in
9508 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9512 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9513 *** reliably create shared libraries on SCO systems. Therefore, libtool
9514 *** is disabling shared libraries support. We urge you to upgrade GNU
9515 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9516 *** your PATH or compiler configuration so that the native linker is
9517 *** used, and then restart.
9522 # For security reasons, it is highly recommended that you always
9523 # use absolute paths for naming shared libraries, and exclude the
9524 # DT_RUNPATH tag from executables and libraries. But doing so
9525 # requires that you compile everything twice, which is a pain.
9526 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9527 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
9528 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9529 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9538 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9541 hardcode_shlibpath_var
=no
9545 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9546 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9547 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9554 if test no
= "$ld_shlibs"; then
9556 hardcode_libdir_flag_spec
=
9557 export_dynamic_flag_spec
=
9558 whole_archive_flag_spec
=
9561 # PORTME fill in a description of your system's linker (not GNU ld)
9564 allow_undefined_flag
=unsupported
9565 always_export_symbols
=yes
9566 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'
9567 # Note: this linker hardcodes the directories in LIBPATH if there
9568 # are no directories specified by -L.
9569 hardcode_minus_L
=yes
9570 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9571 # Neither direct hardcoding nor static linking is supported with a
9573 hardcode_direct
=unsupported
9578 if test ia64
= "$host_cpu"; then
9579 # On IA64, the linker does run time linking by default, so we don't
9580 # have to do anything special.
9581 aix_use_runtimelinking
=no
9582 exp_sym_flag
='-Bexport'
9585 # If we're using GNU nm, then we don't want the "-C" option.
9586 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9587 # Without the "-l" option, or with the "-B" option, AIX nm treats
9588 # weak defined symbols like other global defined symbols, whereas
9589 # GNU nm marks them as "W".
9590 # While the 'weak' keyword is ignored in the Export File, we need
9591 # it in the Import File for the 'aix-soname' feature, so we have
9592 # to replace the "-B" option with "-P" for AIX nm.
9593 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9594 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'
9596 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'
9598 aix_use_runtimelinking
=no
9600 # Test if we are trying to use run time linking or normal
9601 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9602 # have runtime linking enabled, and use it for executables.
9603 # For shared libraries, we enable/disable runtime linking
9604 # depending on the kind of the shared library created -
9605 # when "with_aix_soname,aix_use_runtimelinking" is:
9606 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9607 # "aix,yes" lib.so shared, rtl:yes, for executables
9608 # lib.a static archive
9609 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9610 # lib.a(lib.so.V) shared, rtl:no, for executables
9611 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9612 # lib.a(lib.so.V) shared, rtl:no
9613 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9614 # lib.a static archive
9615 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9616 for ld_flag
in $LDFLAGS; do
9617 if (test x-brtl
= "x$ld_flag" ||
test x-Wl
,-brtl = "x$ld_flag"); then
9618 aix_use_runtimelinking
=yes
9622 if test svr4
,no
= "$with_aix_soname,$aix_use_runtimelinking"; then
9623 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9624 # so we don't have lib.a shared libs to link our executables.
9625 # We have to force runtime linking in this case.
9626 aix_use_runtimelinking
=yes
9627 LDFLAGS
="$LDFLAGS -Wl,-brtl"
9632 exp_sym_flag
='-bexport'
9633 no_entry_flag
='-bnoentry'
9636 # When large executables or shared objects are built, AIX ld can
9637 # have problems creating the table of contents. If linking a library
9638 # or program results in "error TOC overflow" add -mminimal-toc to
9639 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9640 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9644 hardcode_direct_absolute
=yes
9645 hardcode_libdir_separator
=':'
9646 link_all_deplibs
=yes
9647 file_list_spec
='$wl-f,'
9648 case $with_aix_soname,$aix_use_runtimelinking in
9649 aix
,*) ;; # traditional, no import file
9650 svr4
,* |
*,yes) # use import file
9651 # The Import File defines what to hardcode.
9653 hardcode_direct_absolute
=no
9657 if test yes = "$GCC"; then
9658 case $host_os in aix4.
[012]|aix4.
[012].
*)
9659 # We only want to do this on AIX 4.2 and lower, the check
9660 # below for broken collect2 doesn't work under 4.3+
9661 collect2name
=`$CC -print-prog-name=collect2`
9662 if test -f "$collect2name" &&
9663 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9665 # We have reworked collect2
9668 # We have old collect2
9669 hardcode_direct
=unsupported
9670 # It fails to find uninstalled libraries when the uninstalled
9671 # path is not listed in the libpath. Setting hardcode_minus_L
9672 # to unsupported forces relinking
9673 hardcode_minus_L
=yes
9674 hardcode_libdir_flag_spec
='-L$libdir'
9675 hardcode_libdir_separator
=
9679 shared_flag
='-shared'
9680 if test yes = "$aix_use_runtimelinking"; then
9681 shared_flag
="$shared_flag "'$wl-G'
9683 # Need to ensure runtime linking is disabled for the traditional
9684 # shared library, or the linker may eventually find shared libraries
9685 # /with/ Import File - we do not want to mix them.
9686 shared_flag_aix
='-shared'
9687 shared_flag_svr4
='-shared $wl-G'
9690 if test ia64
= "$host_cpu"; then
9691 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9692 # chokes on -Wl,-G. The following line is correct:
9695 if test yes = "$aix_use_runtimelinking"; then
9698 shared_flag
='$wl-bM:SRE'
9700 shared_flag_aix
='$wl-bM:SRE'
9701 shared_flag_svr4
='$wl-G'
9705 export_dynamic_flag_spec
='$wl-bexpall'
9706 # It seems that -bexpall does not export symbols beginning with
9707 # underscore (_), so it is better to generate a list of symbols to export.
9708 always_export_symbols
=yes
9709 if test aix
,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9710 # Warning - without using the other runtime loading flags (-brtl),
9711 # -berok will link without error, but may produce a broken library.
9712 allow_undefined_flag
='-berok'
9713 # Determine the default libpath from the value encoded in an
9715 if test set = "${lt_cv_aix_libpath+set}"; then
9716 aix_libpath
=$lt_cv_aix_libpath
9718 if ${lt_cv_aix_libpath_+:} false
; then :
9719 $as_echo_n "(cached) " >&6
9721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9722 /* end confdefs.h. */
9732 if ac_fn_c_try_link
"$LINENO"; then :
9734 lt_aix_libpath_sed
='
9735 /Import File Strings/,/^$/ {
9737 s/^0 *\([^ ]*\) *$/\1/
9741 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9742 # Check for a 64-bit object if we didn't find anything.
9743 if test -z "$lt_cv_aix_libpath_"; then
9744 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9747 rm -f core conftest.err conftest.
$ac_objext \
9748 conftest
$ac_exeext conftest.
$ac_ext
9749 if test -z "$lt_cv_aix_libpath_"; then
9750 lt_cv_aix_libpath_
=/usr
/lib
:/lib
9755 aix_libpath
=$lt_cv_aix_libpath_
9758 hardcode_libdir_flag_spec
='$wl-blibpath:$libdir:'"$aix_libpath"
9759 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
9761 if test ia64
= "$host_cpu"; then
9762 hardcode_libdir_flag_spec
='$wl-R $libdir:/usr/lib:/lib'
9763 allow_undefined_flag
="-z nodefs"
9764 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"
9766 # Determine the default libpath from the value encoded in an
9768 if test set = "${lt_cv_aix_libpath+set}"; then
9769 aix_libpath
=$lt_cv_aix_libpath
9771 if ${lt_cv_aix_libpath_+:} false
; then :
9772 $as_echo_n "(cached) " >&6
9774 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9775 /* end confdefs.h. */
9785 if ac_fn_c_try_link
"$LINENO"; then :
9787 lt_aix_libpath_sed
='
9788 /Import File Strings/,/^$/ {
9790 s/^0 *\([^ ]*\) *$/\1/
9794 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9795 # Check for a 64-bit object if we didn't find anything.
9796 if test -z "$lt_cv_aix_libpath_"; then
9797 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9800 rm -f core conftest.err conftest.
$ac_objext \
9801 conftest
$ac_exeext conftest.
$ac_ext
9802 if test -z "$lt_cv_aix_libpath_"; then
9803 lt_cv_aix_libpath_
=/usr
/lib
:/lib
9808 aix_libpath
=$lt_cv_aix_libpath_
9811 hardcode_libdir_flag_spec
='$wl-blibpath:$libdir:'"$aix_libpath"
9812 # Warning - without using the other run time loading flags,
9813 # -berok will link without error, but may produce a broken library.
9814 no_undefined_flag
=' $wl-bernotok'
9815 allow_undefined_flag
=' $wl-berok'
9816 if test yes = "$with_gnu_ld"; then
9817 # We only use this code for GNU lds that support --whole-archive.
9818 whole_archive_flag_spec
='$wl--whole-archive$convenience $wl--no-whole-archive'
9820 # Exported symbols can be pulled into shared objects from archives
9821 whole_archive_flag_spec
='$convenience'
9823 archive_cmds_need_lc
=yes
9824 archive_expsym_cmds
='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9825 # -brtl affects multiple linker settings, -berok does not and is overridden later
9826 compiler_flags_filtered
='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9827 if test svr4
!= "$with_aix_soname"; then
9828 # This is similar to how AIX traditionally builds its shared libraries.
9829 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'
9831 if test aix
!= "$with_aix_soname"; then
9832 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'
9834 # used by -dlpreopen to get the symbols
9835 archive_expsym_cmds
="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9837 archive_expsym_cmds
="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9845 # see comment about AmigaOS4 .so support
9846 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9847 archive_expsym_cmds
=''
9850 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)'
9851 hardcode_libdir_flag_spec
='-L$libdir'
9852 hardcode_minus_L
=yes
9858 export_dynamic_flag_spec
=-rdynamic
9861 cygwin
* | mingw
* | pw32
* | cegcc
*)
9862 # When not using gcc, we currently assume that we are using
9863 # Microsoft Visual C++.
9864 # hardcode_libdir_flag_spec is actually meaningless, as there is
9865 # no search path for DLLs.
9866 case $cc_basename in
9869 hardcode_libdir_flag_spec
=' '
9870 allow_undefined_flag
=unsupported
9871 always_export_symbols
=yes
9873 # Tell ltmain to make .lib files, not .a files.
9875 # Tell ltmain to make .dll files, not .so files.
9877 # FIXME: Setting linknames here is a bad hack.
9878 archive_cmds
='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9879 archive_expsym_cmds
='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9880 cp "$export_symbols" "$output_objdir/$soname.def";
9881 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9883 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9885 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9887 # The linker will not automatically build a static lib if we build a DLL.
9888 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9889 enable_shared_with_static_runtimes
=yes
9890 exclude_expsyms
='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9891 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9893 old_postinstall_cmds
='chmod 644 $oldlib'
9894 postlink_cmds
='lt_outputfile="@OUTPUT@"~
9895 lt_tool_outputfile="@TOOL_OUTPUT@"~
9896 case $lt_outputfile in
9899 lt_outputfile=$lt_outputfile.exe
9900 lt_tool_outputfile=$lt_tool_outputfile.exe
9903 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9904 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9905 $RM "$lt_outputfile.manifest";
9909 # Assume MSVC wrapper
9910 hardcode_libdir_flag_spec
=' '
9911 allow_undefined_flag
=unsupported
9912 # Tell ltmain to make .lib files, not .a files.
9914 # Tell ltmain to make .dll files, not .so files.
9916 # FIXME: Setting linknames here is a bad hack.
9917 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9918 # The linker will automatically build a .lib file if we build a DLL.
9919 old_archive_from_new_cmds
='true'
9920 # FIXME: Should let the user specify the lib program.
9921 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9922 enable_shared_with_static_runtimes
=yes
9927 darwin
* | rhapsody
*)
9930 archive_cmds_need_lc
=no
9932 hardcode_automatic
=yes
9933 hardcode_shlibpath_var
=unsupported
9934 if test yes = "$lt_cv_ld_force_load"; then
9935 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\"`'
9938 whole_archive_flag_spec
=''
9940 link_all_deplibs
=yes
9941 allow_undefined_flag
=$_lt_dar_allow_undefined
9942 case $cc_basename in
9943 ifort
*|nagfor
*) _lt_dar_can_shared
=yes ;;
9944 *) _lt_dar_can_shared
=$GCC ;;
9946 if test yes = "$_lt_dar_can_shared"; then
9947 output_verbose_link_cmd
=func_echo_all
9948 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9949 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9950 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"
9951 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"
9960 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9961 hardcode_libdir_flag_spec
='-L$libdir'
9962 hardcode_shlibpath_var
=no
9965 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9966 # support. Future versions do this automatically, but an explicit c++rt0.o
9967 # does not break anything, and helps significantly (at the cost of a little
9970 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9971 hardcode_libdir_flag_spec
='-R$libdir'
9973 hardcode_shlibpath_var
=no
9976 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9978 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9980 hardcode_minus_L
=yes
9981 hardcode_shlibpath_var
=no
9984 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9985 freebsd
* | dragonfly
*)
9986 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9987 hardcode_libdir_flag_spec
='-R$libdir'
9989 hardcode_shlibpath_var
=no
9993 if test yes = "$GCC"; then
9994 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'
9996 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'
9998 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
9999 hardcode_libdir_separator
=:
10000 hardcode_direct
=yes
10002 # hardcode_minus_L: Not really in the search PATH,
10003 # but as the default location of the library.
10004 hardcode_minus_L
=yes
10005 export_dynamic_flag_spec
='$wl-E'
10009 if test yes,no
= "$GCC,$with_gnu_ld"; then
10010 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10012 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10014 if test no
= "$with_gnu_ld"; then
10015 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
10016 hardcode_libdir_separator
=:
10017 hardcode_direct
=yes
10018 hardcode_direct_absolute
=yes
10019 export_dynamic_flag_spec
='$wl-E'
10020 # hardcode_minus_L: Not really in the search PATH,
10021 # but as the default location of the library.
10022 hardcode_minus_L
=yes
10027 if test yes,no
= "$GCC,$with_gnu_ld"; then
10030 archive_cmds
='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10033 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10036 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10042 archive_cmds
='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10045 archive_cmds
='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10049 # Older versions of the 11.00 compiler do not understand -b yet
10050 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10052 $as_echo_n "checking if $CC understands -b... " >&6; }
10053 if ${lt_cv_prog_compiler__b+:} false
; then :
10054 $as_echo_n "(cached) " >&6
10056 lt_cv_prog_compiler__b
=no
10057 save_LDFLAGS
=$LDFLAGS
10058 LDFLAGS
="$LDFLAGS -b"
10059 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
10060 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
10061 # The linker can only warn and ignore the option if not recognized
10062 # So say no if there are warnings
10063 if test -s conftest.err
; then
10064 # Append any errors to the config.log.
10065 cat conftest.err
1>&5
10066 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
10067 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10068 if diff conftest.exp conftest.er2
>/dev
/null
; then
10069 lt_cv_prog_compiler__b
=yes
10072 lt_cv_prog_compiler__b
=yes
10076 LDFLAGS
=$save_LDFLAGS
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10080 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10082 if test yes = "$lt_cv_prog_compiler__b"; then
10083 archive_cmds
='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10085 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10091 if test no
= "$with_gnu_ld"; then
10092 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
10093 hardcode_libdir_separator
=:
10098 hardcode_shlibpath_var
=no
10101 hardcode_direct
=yes
10102 hardcode_direct_absolute
=yes
10103 export_dynamic_flag_spec
='$wl-E'
10105 # hardcode_minus_L: Not really in the search PATH,
10106 # but as the default location of the library.
10107 hardcode_minus_L
=yes
10113 irix5
* | irix6
* | nonstopux
*)
10114 if test yes = "$GCC"; then
10115 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'
10116 # Try to use the -exported_symbol ld option, if it does not
10117 # work, assume that -exports_file does not work either and
10118 # implicitly export all symbols.
10119 # This should be the same for all languages, so no per-tag cache variable.
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10121 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10122 if ${lt_cv_irix_exported_symbol+:} false
; then :
10123 $as_echo_n "(cached) " >&6
10125 save_LDFLAGS
=$LDFLAGS
10126 LDFLAGS
="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10128 /* end confdefs.h. */
10129 int foo (void) { return 0; }
10131 if ac_fn_c_try_link
"$LINENO"; then :
10132 lt_cv_irix_exported_symbol
=yes
10134 lt_cv_irix_exported_symbol
=no
10136 rm -f core conftest.err conftest.
$ac_objext \
10137 conftest
$ac_exeext conftest.
$ac_ext
10138 LDFLAGS
=$save_LDFLAGS
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10141 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10142 if test yes = "$lt_cv_irix_exported_symbol"; then
10143 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'
10145 link_all_deplibs
=no
10147 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'
10148 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'
10150 archive_cmds_need_lc
='no'
10151 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10152 hardcode_libdir_separator
=:
10154 link_all_deplibs
=yes
10158 case $cc_basename in
10160 # Fabrice Bellard et al's Tiny C Compiler
10162 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10167 netbsd
* | netbsdelf
*-gnu)
10168 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10169 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10171 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10173 hardcode_libdir_flag_spec
='-R$libdir'
10174 hardcode_direct
=yes
10175 hardcode_shlibpath_var
=no
10179 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10180 hardcode_direct
=yes
10181 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10182 hardcode_libdir_separator
=:
10183 hardcode_shlibpath_var
=no
10189 openbsd
* | bitrig
*)
10190 if test -f /usr
/libexec
/ld.so
; then
10191 hardcode_direct
=yes
10192 hardcode_shlibpath_var
=no
10193 hardcode_direct_absolute
=yes
10194 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10195 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10196 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10197 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
10198 export_dynamic_flag_spec
='$wl-E'
10200 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10201 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
10209 hardcode_libdir_flag_spec
='-L$libdir'
10210 hardcode_minus_L
=yes
10211 allow_undefined_flag
=unsupported
10213 archive_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10214 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10215 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10216 $ECHO EXPORTS >> $output_objdir/$libname.def~
10217 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10218 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10219 emximp -o $lib $output_objdir/$libname.def'
10220 archive_expsym_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10221 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10222 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10223 $ECHO EXPORTS >> $output_objdir/$libname.def~
10224 prefix_cmds="$SED"~
10225 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10226 prefix_cmds="$prefix_cmds -e 1d";
10228 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10229 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10230 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10231 emximp -o $lib $output_objdir/$libname.def'
10232 old_archive_From_new_cmds
='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10233 enable_shared_with_static_runtimes
=yes
10237 if test yes = "$GCC"; then
10238 allow_undefined_flag
=' $wl-expect_unresolved $wl\*'
10239 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'
10241 allow_undefined_flag
=' -expect_unresolved \*'
10242 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'
10244 archive_cmds_need_lc
='no'
10245 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10246 hardcode_libdir_separator
=:
10249 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
10250 if test yes = "$GCC"; then
10251 allow_undefined_flag
=' $wl-expect_unresolved $wl\*'
10252 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'
10253 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10255 allow_undefined_flag
=' -expect_unresolved \*'
10256 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'
10257 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~
10258 $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'
10260 # Both c and cxx compiler support -rpath directly
10261 hardcode_libdir_flag_spec
='-rpath $libdir'
10263 archive_cmds_need_lc
='no'
10264 hardcode_libdir_separator
=:
10268 no_undefined_flag
=' -z defs'
10269 if test yes = "$GCC"; then
10271 archive_cmds
='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10272 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10273 $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'
10275 case `$CC -V 2>&1` in
10278 archive_cmds
='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10279 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10280 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10284 archive_cmds
='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10285 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10286 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10290 hardcode_libdir_flag_spec
='-R$libdir'
10291 hardcode_shlibpath_var
=no
10293 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10295 # The compiler driver will combine and reorder linker options,
10296 # but understands '-z linker_flag'. GCC discards it without '$wl',
10297 # but is careful enough not to reorder.
10298 # Supported since Solaris 2.6 (maybe 2.5.1?)
10299 if test yes = "$GCC"; then
10300 whole_archive_flag_spec
='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10302 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10306 link_all_deplibs
=yes
10310 if test sequent
= "$host_vendor"; then
10311 # Use $CC to link under sequent, because it throws in some extra .o
10312 # files that make .init and .fini sections work.
10313 archive_cmds
='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10315 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10317 hardcode_libdir_flag_spec
='-L$libdir'
10318 hardcode_direct
=yes
10319 hardcode_minus_L
=yes
10320 hardcode_shlibpath_var
=no
10324 case $host_vendor in
10326 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10327 hardcode_direct
=yes # is this really true???
10330 ## LD is ld it makes a PLAMLIB
10331 ## CC just makes a GrossModule.
10332 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10333 reload_cmds
='$CC -r -o $output$reload_objs'
10337 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10338 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10341 runpath_var
='LD_RUN_PATH'
10342 hardcode_shlibpath_var
=no
10346 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10347 hardcode_shlibpath_var
=no
10348 export_dynamic_flag_spec
='-Bexport'
10352 if test -d /usr
/nec
; then
10353 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10354 hardcode_shlibpath_var
=no
10355 runpath_var
=LD_RUN_PATH
10356 hardcode_runpath_var
=yes
10361 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10362 no_undefined_flag
='$wl-z,text'
10363 archive_cmds_need_lc
=no
10364 hardcode_shlibpath_var
=no
10365 runpath_var
='LD_RUN_PATH'
10367 if test yes = "$GCC"; then
10368 archive_cmds
='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10369 archive_expsym_cmds
='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10371 archive_cmds
='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10372 archive_expsym_cmds
='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10376 sysv5
* | sco3.2v5
* | sco5v6
*)
10377 # Note: We CANNOT use -z defs as we might desire, because we do not
10378 # link with -lc, and that would cause any symbols used from libc to
10379 # always be unresolved, which means just about no library would
10380 # ever link correctly. If we're not using GNU ld we use -z text
10381 # though, which does catch some bad symbols but isn't as heavy-handed
10383 no_undefined_flag
='$wl-z,text'
10384 allow_undefined_flag
='$wl-z,nodefs'
10385 archive_cmds_need_lc
=no
10386 hardcode_shlibpath_var
=no
10387 hardcode_libdir_flag_spec
='$wl-R,$libdir'
10388 hardcode_libdir_separator
=':'
10389 link_all_deplibs
=yes
10390 export_dynamic_flag_spec
='$wl-Bexport'
10391 runpath_var
='LD_RUN_PATH'
10393 if test yes = "$GCC"; then
10394 archive_cmds
='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10395 archive_expsym_cmds
='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10397 archive_cmds
='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10398 archive_expsym_cmds
='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10403 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10404 hardcode_libdir_flag_spec
='-L$libdir'
10405 hardcode_shlibpath_var
=no
10413 if test sni
= "$host_vendor"; then
10415 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10416 export_dynamic_flag_spec
='$wl-Blargedynsym'
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10423 $as_echo "$ld_shlibs" >&6; }
10424 test no
= "$ld_shlibs" && can_build_shared
=no
10426 with_gnu_ld
=$with_gnu_ld
10443 # Do we need to explicitly link libc?
10445 case "x$archive_cmds_need_lc" in
10447 # Assume -lc should be added
10448 archive_cmds_need_lc
=yes
10450 if test yes,yes = "$GCC,$enable_shared"; then
10451 case $archive_cmds in
10453 # FIXME: we may have to deal with multi-command sequences.
10456 # Test whether the compiler implicitly links with -lc since on some
10457 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10458 # to ld, don't add -lc before -lgcc.
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10460 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10461 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10462 $as_echo_n "(cached) " >&6
10465 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10468 (eval $ac_compile) 2>&5
10470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10471 test $ac_status = 0; } 2>conftest.err
; then
10474 libobjs
=conftest.
$ac_objext
10476 wl
=$lt_prog_compiler_wl
10477 pic_flag
=$lt_prog_compiler_pic
10483 lt_save_allow_undefined_flag
=$allow_undefined_flag
10484 allow_undefined_flag
=
10485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10486 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10489 test $ac_status = 0; }
10491 lt_cv_archive_cmds_need_lc
=no
10493 lt_cv_archive_cmds_need_lc
=yes
10495 allow_undefined_flag
=$lt_save_allow_undefined_flag
10497 cat conftest.err
1>&5
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10503 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10504 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10663 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10665 if test yes = "$GCC"; then
10667 darwin
*) lt_awk_arg
='/^libraries:/,/LR/' ;;
10668 *) lt_awk_arg
='/^libraries:/' ;;
10671 mingw
* | cegcc
*) lt_sed_strip_eq
='s|=\([A-Za-z]:\)|\1|g' ;;
10672 *) lt_sed_strip_eq
='s|=/|/|g' ;;
10674 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10675 case $lt_search_path_spec in
10677 # if the path contains ";" then we assume it to be the separator
10678 # otherwise default to the standard path separator (i.e. ":") - it is
10679 # assumed that no part of a normal pathname contains ";" but that should
10680 # okay in the real world where ";" in dirpaths is itself problematic.
10681 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10684 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10687 # Ok, now we have the path, separated by spaces, we can step through it
10688 # and add multilib dir if necessary...
10689 lt_tmp_lt_search_path_spec
=
10690 lt_multi_os_dir
=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10691 # ...but if some path component already ends with the multilib dir we assume
10692 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10693 case "$lt_multi_os_dir; $lt_search_path_spec " in
10694 "/; "* |
"/.; "* |
"/./; "* |
*"$lt_multi_os_dir "* |
*"$lt_multi_os_dir/ "*)
10698 for lt_sys_path
in $lt_search_path_spec; do
10699 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10700 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10701 elif test -n "$lt_multi_os_dir"; then
10702 test -d "$lt_sys_path" && \
10703 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10706 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10707 BEGIN {RS = " "; FS = "/|\n";} {
10710 for (lt_i = NF; lt_i > 0; lt_i--) {
10711 if ($lt_i != "" && $lt_i != ".") {
10712 if ($lt_i == "..") {
10715 if (lt_count == 0) {
10716 lt_foo = "/" $lt_i lt_foo;
10723 if (lt_foo != "") { lt_freq[lt_foo]++; }
10724 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10726 # AWK program above erroneously prepends '/' to C:/dos/paths
10729 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10730 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10732 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10734 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10736 library_names_spec
=
10737 libname_spec
='lib$name'
10741 postuninstall_cmds
=
10745 shlibpath_overrides_runpath
=unknown
10747 dynamic_linker
="$host_os ld.so"
10748 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10749 need_lib_prefix
=unknown
10750 hardcode_into_libs
=no
10752 # when you set need_version to no, make sure it does not cause -set_version
10753 # flags to be left without arguments
10754 need_version
=unknown
10760 version_type
=linux
# correct to gnu/linux during the next big refactor
10761 library_names_spec
='$libname$release$shared_ext$versuffix $libname.a'
10762 shlibpath_var
=LIBPATH
10764 # AIX 3 has no versioning support, so we append a major version to the name.
10765 soname_spec
='$libname$release$shared_ext$major'
10769 version_type
=linux
# correct to gnu/linux during the next big refactor
10772 hardcode_into_libs
=yes
10773 if test ia64
= "$host_cpu"; then
10774 # AIX 5 supports IA64
10775 library_names_spec
='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10776 shlibpath_var
=LD_LIBRARY_PATH
10778 # With GCC up to 2.95.x, collect2 would create an import file
10779 # for dependence libraries. The import file would start with
10780 # the line '#! .'. This would cause the generated library to
10781 # depend on '.', always an invalid library. This was fixed in
10782 # development snapshots of GCC prior to 3.0.
10784 aix4 | aix4.
[01] | aix4.
[01].
*)
10785 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10787 echo '#endif'; } |
$CC -E - |
$GREP yes > /dev
/null
; then
10790 can_build_shared
=no
10794 # Using Import Files as archive members, it is possible to support
10795 # filename-based versioning of shared library archives on AIX. While
10796 # this would work for both with and without runtime linking, it will
10797 # prevent static linking of such archives. So we do filename-based
10798 # shared library versioning with .so extension only, which is used
10799 # when both runtime linking and shared linking is enabled.
10800 # Unfortunately, runtime linking may impact performance, so we do
10801 # not want this to be the default eventually. Also, we use the
10802 # versioned .so libs for executables only if there is the -brtl
10803 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10804 # To allow for filename-based versioning support, we need to create
10805 # libNAME.so.V as an archive file, containing:
10806 # *) an Import File, referring to the versioned filename of the
10807 # archive as well as the shared archive member, telling the
10808 # bitwidth (32 or 64) of that shared object, and providing the
10809 # list of exported symbols of that shared object, eventually
10810 # decorated with the 'weak' keyword
10811 # *) the shared object with the F_LOADONLY flag set, to really avoid
10812 # it being seen by the linker.
10813 # At run time we better use the real file rather than another symlink,
10814 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10816 case $with_aix_soname,$aix_use_runtimelinking in
10817 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10818 # soname into executable. Probably we can add versioning support to
10819 # collect2, so additional links can be useful in future.
10820 aix
,yes) # traditional libtool
10821 dynamic_linker
='AIX unversionable lib.so'
10822 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10823 # instead of lib<name>.a to let people know that these are not
10824 # typical AIX shared libraries.
10825 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10827 aix
,no
) # traditional AIX only
10828 dynamic_linker
='AIX lib.a(lib.so.V)'
10829 # We preserve .a as extension for shared libraries through AIX4.2
10830 # and later when we are not doing run time linking.
10831 library_names_spec
='$libname$release.a $libname.a'
10832 soname_spec
='$libname$release$shared_ext$major'
10834 svr4
,*) # full svr4 only
10835 dynamic_linker
="AIX lib.so.V($shared_archive_member_spec.o)"
10836 library_names_spec
='$libname$release$shared_ext$major $libname$shared_ext'
10837 # We do not specify a path in Import Files, so LIBPATH fires.
10838 shlibpath_overrides_runpath
=yes
10840 *,yes) # both, prefer svr4
10841 dynamic_linker
="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10842 library_names_spec
='$libname$release$shared_ext$major $libname$shared_ext'
10843 # unpreferred sharedlib libNAME.a needs extra handling
10844 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"'
10845 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"'
10846 # We do not specify a path in Import Files, so LIBPATH fires.
10847 shlibpath_overrides_runpath
=yes
10849 *,no
) # both, prefer aix
10850 dynamic_linker
="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10851 library_names_spec
='$libname$release.a $libname.a'
10852 soname_spec
='$libname$release$shared_ext$major'
10853 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10854 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)'
10855 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"'
10858 shlibpath_var
=LIBPATH
10865 # Since July 2007 AmigaOS4 officially supports .so libraries.
10866 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10867 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10870 library_names_spec
='$libname.ixlibrary $libname.a'
10871 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10872 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'
10878 library_names_spec
='$libname$shared_ext'
10879 dynamic_linker
="$host_os ld.so"
10880 shlibpath_var
=LIBRARY_PATH
10884 version_type
=linux
# correct to gnu/linux during the next big refactor
10886 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10887 soname_spec
='$libname$release$shared_ext$major'
10888 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10889 shlibpath_var
=LD_LIBRARY_PATH
10890 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10891 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10892 # the default ld.so.conf also contains /usr/contrib/lib and
10893 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10894 # libtool to hard-code these into programs
10897 cygwin
* | mingw
* | pw32
* | cegcc
*)
10898 version_type
=windows
10903 case $GCC,$cc_basename in
10906 library_names_spec
='$libname.dll.a'
10907 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10908 postinstall_cmds
='base_file=`basename \$file`~
10909 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10910 dldir=$destdir/`dirname \$dlpath`~
10911 test -d \$dldir || mkdir -p \$dldir~
10912 $install_prog $dir/$dlname \$dldir/$dlname~
10913 chmod a+x \$dldir/$dlname~
10914 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10915 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10917 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10918 dlpath=$dir/\$dldll~
10920 shlibpath_overrides_runpath
=yes
10924 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10925 soname_spec
='`echo $libname | sed -e 's
/^lib
/cyg
/'``echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
10927 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10930 # MinGW DLLs use traditional 'lib' prefix
10931 soname_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
10934 # pw32 DLLs use 'pw' prefix rather than 'lib'
10935 library_names_spec
='`echo $libname | sed -e 's
/^lib
/pw
/'``echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
10938 dynamic_linker
='Win32 ld.exe'
10943 libname_spec
='$name'
10944 soname_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
10945 library_names_spec
='$libname.dll.lib'
10949 sys_lib_search_path_spec
=
10952 for lt_path
in $LIB
10955 # Let DOS variable expansion print the short 8.3 style file name.
10956 lt_path
=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10957 sys_lib_search_path_spec
="$sys_lib_search_path_spec $lt_path"
10960 # Convert to MSYS style.
10961 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10964 # Convert to unix form, then to dos form, then back to unix form
10965 # but this time dos style (no spaces!) so that the unix form looks
10966 # like /cygdrive/c/PROGRA~1:/cygdr...
10967 sys_lib_search_path_spec
=`cygpath --path --unix "$LIB"`
10968 sys_lib_search_path_spec
=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10969 sys_lib_search_path_spec
=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10972 sys_lib_search_path_spec
=$LIB
10973 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
10974 # It is most probably a Windows format PATH.
10975 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10977 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10979 # FIXME: find the short name or the path components, as spaces are
10980 # common. (e.g. "Program Files" -> "PROGRA~1")
10984 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10985 postinstall_cmds
='base_file=`basename \$file`~
10986 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10987 dldir=$destdir/`dirname \$dlpath`~
10988 test -d \$dldir || mkdir -p \$dldir~
10989 $install_prog $dir/$dlname \$dldir/$dlname'
10990 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10991 dlpath=$dir/\$dldll~
10993 shlibpath_overrides_runpath
=yes
10994 dynamic_linker
='Win32 link.exe'
10998 # Assume MSVC wrapper
10999 library_names_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext $libname.lib'
11000 dynamic_linker
='Win32 ld.exe'
11003 # FIXME: first we should search . and the directory the executable is in
11007 darwin
* | rhapsody
*)
11008 dynamic_linker
="$host_os dyld"
11009 version_type
=darwin
11012 library_names_spec
='$libname$release$major$shared_ext $libname$shared_ext'
11013 soname_spec
='$libname$release$major$shared_ext'
11014 shlibpath_overrides_runpath
=yes
11015 shlibpath_var
=DYLD_LIBRARY_PATH
11016 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
11018 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
11019 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
11023 version_type
=linux
# correct to gnu/linux during the next big refactor
11026 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11027 soname_spec
='$libname$release$shared_ext$major'
11028 shlibpath_var
=LD_LIBRARY_PATH
11031 freebsd
* | dragonfly
*)
11032 # DragonFly does not have aout. When/if they implement a new
11033 # versioning mechanism, adjust this.
11034 if test -x /usr
/bin
/objformat
; then
11035 objformat
=`/usr/bin/objformat`
11038 freebsd
[23].
*) objformat
=aout
;;
11039 *) objformat
=elf
;;
11042 version_type
=freebsd-
$objformat
11043 case $version_type in
11045 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11046 soname_spec
='$libname$release$shared_ext$major'
11051 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11055 shlibpath_var
=LD_LIBRARY_PATH
11058 shlibpath_overrides_runpath
=yes
11060 freebsd3.
[01]* | freebsdelf3.
[01]*)
11061 shlibpath_overrides_runpath
=yes
11062 hardcode_into_libs
=yes
11064 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
11065 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
11066 shlibpath_overrides_runpath
=no
11067 hardcode_into_libs
=yes
11069 *) # from 4.6 on, and DragonFly
11070 shlibpath_overrides_runpath
=yes
11071 hardcode_into_libs
=yes
11077 version_type
=linux
# correct to gnu/linux during the next big refactor
11080 dynamic_linker
="$host_os runtime_loader"
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
=LIBRARY_PATH
11084 shlibpath_overrides_runpath
=no
11085 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11086 hardcode_into_libs
=yes
11089 hpux9
* | hpux10
* | hpux11
*)
11090 # Give a soname corresponding to the major version so that dld.sl refuses to
11091 # link against other versions.
11098 hardcode_into_libs
=yes
11099 dynamic_linker
="$host_os dld.so"
11100 shlibpath_var
=LD_LIBRARY_PATH
11101 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11102 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11103 soname_spec
='$libname$release$shared_ext$major'
11104 if test 32 = "$HPUX_IA64_MODE"; then
11105 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11106 sys_lib_dlsearch_path_spec
=/usr
/lib
/hpux32
11108 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
11109 sys_lib_dlsearch_path_spec
=/usr
/lib
/hpux64
11114 hardcode_into_libs
=yes
11115 dynamic_linker
="$host_os dld.sl"
11116 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
11117 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11118 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11119 soname_spec
='$libname$release$shared_ext$major'
11120 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11121 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11125 dynamic_linker
="$host_os dld.sl"
11126 shlibpath_var
=SHLIB_PATH
11127 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
11128 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11129 soname_spec
='$libname$release$shared_ext$major'
11132 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11133 postinstall_cmds
='chmod 555 $lib'
11134 # or fails outright, so override atomically:
11135 install_override_mode
=555
11139 version_type
=linux
# correct to gnu/linux during the next big refactor
11142 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11143 soname_spec
='$libname$release$shared_ext$major'
11144 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
11145 shlibpath_var
=LD_LIBRARY_PATH
11146 shlibpath_overrides_runpath
=no
11147 hardcode_into_libs
=yes
11150 irix5
* | irix6
* | nonstopux
*)
11152 nonstopux
*) version_type
=nonstopux
;;
11154 if test yes = "$lt_cv_prog_gnu_ld"; then
11155 version_type
=linux
# correct to gnu/linux during the next big refactor
11162 soname_spec
='$libname$release$shared_ext$major'
11163 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11165 irix5
* | nonstopux
*)
11166 libsuff
= shlibsuff
=
11169 case $LD in # libtool.m4 will add one of these switches to LD
11170 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
11171 libsuff
= shlibsuff
= libmagic
=32-bit;;
11172 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
11173 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
11174 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
11175 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
11176 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
11180 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
11181 shlibpath_overrides_runpath
=no
11182 sys_lib_search_path_spec
="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11183 sys_lib_dlsearch_path_spec
="/usr/lib$libsuff /lib$libsuff"
11184 hardcode_into_libs
=yes
11187 # No shared lib support for Linux oldld, aout, or coff.
11188 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
11193 version_type
=none
# Android doesn't support versioned libraries.
11196 library_names_spec
='$libname$release$shared_ext'
11197 soname_spec
='$libname$release$shared_ext'
11199 shlibpath_var
=LD_LIBRARY_PATH
11200 shlibpath_overrides_runpath
=yes
11202 # This implies no fast_install, which is unacceptable.
11203 # Some rework will be needed to allow for fast_install
11204 # before this can be enabled.
11205 hardcode_into_libs
=yes
11207 dynamic_linker
='Android linker'
11208 # Don't embed -rpath directories since the linker doesn't support them.
11209 hardcode_libdir_flag_spec
='-L$libdir'
11212 # This must be glibc/ELF.
11213 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
11214 version_type
=linux
# correct to gnu/linux during the next big refactor
11217 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11218 soname_spec
='$libname$release$shared_ext$major'
11219 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11220 shlibpath_var
=LD_LIBRARY_PATH
11221 shlibpath_overrides_runpath
=no
11223 # Some binutils ld are patched to set DT_RUNPATH
11224 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
11225 $as_echo_n "(cached) " >&6
11227 lt_cv_shlibpath_overrides_runpath
=no
11228 save_LDFLAGS
=$LDFLAGS
11229 save_libdir
=$libdir
11230 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11231 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11233 /* end confdefs.h. */
11243 if ac_fn_c_try_link
"$LINENO"; then :
11244 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
11245 lt_cv_shlibpath_overrides_runpath
=yes
11248 rm -f core conftest.err conftest.
$ac_objext \
11249 conftest
$ac_exeext conftest.
$ac_ext
11250 LDFLAGS
=$save_LDFLAGS
11251 libdir
=$save_libdir
11255 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
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 # Ideally, we could use ldconfig to report *all* directores which are
11263 # searched for libraries, however this is still not possible. Aside from not
11264 # being certain /sbin/ldconfig is available, command
11265 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11266 # even though it is searched at run-time. Try to do the best guess by
11267 # appending ld.so.conf contents (and includes) to the search path.
11268 if test -f /etc
/ld.so.conf
; then
11269 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' ' '`
11270 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
11273 # We used to test for /lib/ld.so.1 and disable shared libraries on
11274 # powerpc, because MkLinux only supported shared libraries with the
11275 # GNU dynamic linker. Since this was broken with cross compilers,
11276 # most powerpc-linux boxes support dynamic linking these days and
11277 # people can always --disable-shared, the test was removed, and we
11278 # assume the GNU/Linux dynamic linker is in use.
11279 dynamic_linker
='GNU/Linux ld.so'
11286 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11287 soname_spec
='${libname}${release}${shared_ext}$major'
11288 shlibpath_var
=LD_LIBRARY_PATH
11289 shlibpath_overrides_runpath
=no
11290 hardcode_into_libs
=yes
11291 dynamic_linker
='NetBSD ld.elf_so'
11298 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11299 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11300 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11301 dynamic_linker
='NetBSD (a.out) ld.so'
11303 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11304 soname_spec
='$libname$release$shared_ext$major'
11305 dynamic_linker
='NetBSD ld.elf_so'
11307 shlibpath_var
=LD_LIBRARY_PATH
11308 shlibpath_overrides_runpath
=yes
11309 hardcode_into_libs
=yes
11313 version_type
=linux
# correct to gnu/linux during the next big refactor
11314 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11315 shlibpath_var
=LD_LIBRARY_PATH
11316 shlibpath_overrides_runpath
=yes
11323 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11324 soname_spec
='$libname$release$shared_ext$major'
11325 shlibpath_var
=LD_LIBRARY_PATH
11326 shlibpath_overrides_runpath
=no
11327 hardcode_into_libs
=yes
11328 dynamic_linker
='ldqnx.so'
11331 openbsd
* | bitrig
*)
11333 sys_lib_dlsearch_path_spec
=/usr
/lib
11335 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11340 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11341 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11342 shlibpath_var
=LD_LIBRARY_PATH
11343 shlibpath_overrides_runpath
=yes
11347 libname_spec
='$name'
11348 version_type
=windows
11352 # OS/2 can only load a DLL with a base name of 8 characters or less.
11353 soname_spec
='`test -n "$os2dllname" && libname="$os2dllname";
11354 v=$($ECHO $release$versuffix | tr -d .-);
11355 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11356 $ECHO $n$v`$shared_ext'
11357 library_names_spec
='${libname}_dll.$libext'
11358 dynamic_linker
='OS/2 ld.exe'
11359 shlibpath_var
=BEGINLIBPATH
11360 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
11361 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11362 postinstall_cmds
='base_file=`basename \$file`~
11363 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11364 dldir=$destdir/`dirname \$dlpath`~
11365 test -d \$dldir || mkdir -p \$dldir~
11366 $install_prog $dir/$dlname \$dldir/$dlname~
11367 chmod a+x \$dldir/$dlname~
11368 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11369 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11371 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11372 dlpath=$dir/\$dldll~
11376 osf3
* | osf4
* | osf5
*)
11380 soname_spec
='$libname$release$shared_ext$major'
11381 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11382 shlibpath_var
=LD_LIBRARY_PATH
11383 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11384 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11392 version_type
=linux
# correct to gnu/linux during the next big refactor
11395 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11396 soname_spec
='$libname$release$shared_ext$major'
11397 shlibpath_var
=LD_LIBRARY_PATH
11398 shlibpath_overrides_runpath
=yes
11399 hardcode_into_libs
=yes
11400 # ldd complains unless libraries are executable
11401 postinstall_cmds
='chmod +x $lib'
11406 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11407 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11408 shlibpath_var
=LD_LIBRARY_PATH
11409 shlibpath_overrides_runpath
=yes
11410 if test yes = "$with_gnu_ld"; then
11417 version_type
=linux
# correct to gnu/linux during the next big refactor
11418 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11419 soname_spec
='$libname$release$shared_ext$major'
11420 shlibpath_var
=LD_LIBRARY_PATH
11421 case $host_vendor in
11423 shlibpath_overrides_runpath
=no
11425 runpath_var
=LD_RUN_PATH
11433 shlibpath_overrides_runpath
=no
11434 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11440 if test -d /usr
/nec
; then
11441 version_type
=linux
# correct to gnu/linux during the next big refactor
11442 library_names_spec
='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11443 soname_spec
='$libname$shared_ext.$major'
11444 shlibpath_var
=LD_LIBRARY_PATH
11448 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11452 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11453 soname_spec
='$libname$release$shared_ext$major'
11454 shlibpath_var
=LD_LIBRARY_PATH
11455 shlibpath_overrides_runpath
=yes
11456 hardcode_into_libs
=yes
11457 if test yes = "$with_gnu_ld"; then
11458 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11460 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11463 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11467 sys_lib_dlsearch_path_spec
='/usr/lib'
11471 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11472 version_type
=linux
# correct to gnu/linux during the next big refactor
11475 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11476 shlibpath_var
=LD_LIBRARY_PATH
11477 shlibpath_overrides_runpath
=no
11478 hardcode_into_libs
=yes
11482 version_type
=linux
# correct to gnu/linux during the next big refactor
11483 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11484 soname_spec
='$libname$release$shared_ext$major'
11485 shlibpath_var
=LD_LIBRARY_PATH
11492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11493 $as_echo "$dynamic_linker" >&6; }
11494 test no
= "$dynamic_linker" && can_build_shared
=no
11496 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11497 if test yes = "$GCC"; then
11498 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11501 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11502 sys_lib_search_path_spec
=$lt_cv_sys_lib_search_path_spec
11505 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11506 sys_lib_dlsearch_path_spec
=$lt_cv_sys_lib_dlsearch_path_spec
11509 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11510 configure_time_dlsearch_path
=$sys_lib_dlsearch_path_spec
11512 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11513 func_munge_path_list sys_lib_dlsearch_path_spec
"$LT_SYS_LIBRARY_PATH"
11515 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11516 configure_time_lt_sys_library_path
=$LT_SYS_LIBRARY_PATH
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11615 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11617 if test -n "$hardcode_libdir_flag_spec" ||
11618 test -n "$runpath_var" ||
11619 test yes = "$hardcode_automatic"; then
11621 # We can hardcode non-existent directories.
11622 if test no
!= "$hardcode_direct" &&
11623 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11624 # have to relink, otherwise we might link with an installed library
11625 # when we should be linking with a yet-to-be-installed one
11626 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11627 test no
!= "$hardcode_minus_L"; then
11628 # Linking always hardcodes the temporary library directory.
11629 hardcode_action
=relink
11631 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11632 hardcode_action
=immediate
11635 # We cannot hardcode anything, or else we can only hardcode existing
11637 hardcode_action
=unsupported
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11640 $as_echo "$hardcode_action" >&6; }
11642 if test relink
= "$hardcode_action" ||
11643 test yes = "$inherit_rpath"; then
11644 # Fast installation is not supported
11645 enable_fast_install
=no
11646 elif test yes = "$shlibpath_overrides_runpath" ||
11647 test no
= "$enable_shared"; then
11648 # Fast installation is not necessary
11649 enable_fast_install
=needless
11657 if test yes != "$enable_dlopen"; then
11658 enable_dlopen
=unknown
11659 enable_dlopen_self
=unknown
11660 enable_dlopen_self_static
=unknown
11667 lt_cv_dlopen
=load_add_on
11669 lt_cv_dlopen_self
=yes
11672 mingw
* | pw32
* | cegcc
*)
11673 lt_cv_dlopen
=LoadLibrary
11678 lt_cv_dlopen
=dlopen
11683 # if libdl is installed we need to link against it
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11685 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11686 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11687 $as_echo_n "(cached) " >&6
11689 ac_check_lib_save_LIBS
=$LIBS
11691 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11692 /* end confdefs.h. */
11694 /* Override any GCC internal prototype to avoid an error.
11695 Use char because int might match the return type of a GCC
11696 builtin and then its argument prototype would still apply. */
11709 if ac_fn_c_try_link
"$LINENO"; then :
11710 ac_cv_lib_dl_dlopen
=yes
11712 ac_cv_lib_dl_dlopen
=no
11714 rm -f core conftest.err conftest.
$ac_objext \
11715 conftest
$ac_exeext conftest.
$ac_ext
11716 LIBS
=$ac_check_lib_save_LIBS
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11719 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11720 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11721 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-ldl
11726 lt_cv_dlopen_self
=yes
11733 # Don't try to run any link tests for TPF. We know it's impossible
11734 # because TPF is a cross-compiler, and we know how we open DSOs.
11735 lt_cv_dlopen
=dlopen
11737 lt_cv_dlopen_self
=no
11741 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11742 if test "x$ac_cv_func_shl_load" = xyes
; then :
11743 lt_cv_dlopen
=shl_load
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11746 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11747 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11748 $as_echo_n "(cached) " >&6
11750 ac_check_lib_save_LIBS
=$LIBS
11752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11753 /* end confdefs.h. */
11755 /* Override any GCC internal prototype to avoid an error.
11756 Use char because int might match the return type of a GCC
11757 builtin and then its argument prototype would still apply. */
11765 return shl_load ();
11770 if ac_fn_c_try_link
"$LINENO"; then :
11771 ac_cv_lib_dld_shl_load
=yes
11773 ac_cv_lib_dld_shl_load
=no
11775 rm -f core conftest.err conftest.
$ac_objext \
11776 conftest
$ac_exeext conftest.
$ac_ext
11777 LIBS
=$ac_check_lib_save_LIBS
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11780 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11781 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11782 lt_cv_dlopen
=shl_load lt_cv_dlopen_libs
=-ldld
11784 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11785 if test "x$ac_cv_func_dlopen" = xyes
; then :
11786 lt_cv_dlopen
=dlopen
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11789 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11790 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11791 $as_echo_n "(cached) " >&6
11793 ac_check_lib_save_LIBS
=$LIBS
11795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11796 /* end confdefs.h. */
11798 /* Override any GCC internal prototype to avoid an error.
11799 Use char because int might match the return type of a GCC
11800 builtin and then its argument prototype would still apply. */
11813 if ac_fn_c_try_link
"$LINENO"; then :
11814 ac_cv_lib_dl_dlopen
=yes
11816 ac_cv_lib_dl_dlopen
=no
11818 rm -f core conftest.err conftest.
$ac_objext \
11819 conftest
$ac_exeext conftest.
$ac_ext
11820 LIBS
=$ac_check_lib_save_LIBS
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11823 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11824 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11825 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-ldl
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11828 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11829 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11830 $as_echo_n "(cached) " >&6
11832 ac_check_lib_save_LIBS
=$LIBS
11833 LIBS
="-lsvld $LIBS"
11834 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11835 /* end confdefs.h. */
11837 /* Override any GCC internal prototype to avoid an error.
11838 Use char because int might match the return type of a GCC
11839 builtin and then its argument prototype would still apply. */
11852 if ac_fn_c_try_link
"$LINENO"; then :
11853 ac_cv_lib_svld_dlopen
=yes
11855 ac_cv_lib_svld_dlopen
=no
11857 rm -f core conftest.err conftest.
$ac_objext \
11858 conftest
$ac_exeext conftest.
$ac_ext
11859 LIBS
=$ac_check_lib_save_LIBS
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11862 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11863 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11864 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-lsvld
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11867 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11868 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11869 $as_echo_n "(cached) " >&6
11871 ac_check_lib_save_LIBS
=$LIBS
11873 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11874 /* end confdefs.h. */
11876 /* Override any GCC internal prototype to avoid an error.
11877 Use char because int might match the return type of a GCC
11878 builtin and then its argument prototype would still apply. */
11886 return dld_link ();
11891 if ac_fn_c_try_link
"$LINENO"; then :
11892 ac_cv_lib_dld_dld_link
=yes
11894 ac_cv_lib_dld_dld_link
=no
11896 rm -f core conftest.err conftest.
$ac_objext \
11897 conftest
$ac_exeext conftest.
$ac_ext
11898 LIBS
=$ac_check_lib_save_LIBS
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11901 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11902 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11903 lt_cv_dlopen
=dld_link lt_cv_dlopen_libs
=-ldld
11924 if test no
= "$lt_cv_dlopen"; then
11930 case $lt_cv_dlopen in
11932 save_CPPFLAGS
=$CPPFLAGS
11933 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11935 save_LDFLAGS
=$LDFLAGS
11936 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11939 LIBS
="$lt_cv_dlopen_libs $LIBS"
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11942 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11943 if ${lt_cv_dlopen_self+:} false
; then :
11944 $as_echo_n "(cached) " >&6
11946 if test yes = "$cross_compiling"; then :
11947 lt_cv_dlopen_self
=cross
11949 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11950 lt_status
=$lt_dlunknown
11951 cat > conftest.
$ac_ext <<_LT_EOF
11952 #line $LINENO "configure"
11953 #include "confdefs.h"
11962 # define LT_DLGLOBAL RTLD_GLOBAL
11965 # define LT_DLGLOBAL DL_GLOBAL
11967 # define LT_DLGLOBAL 0
11971 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11972 find out it does not work in some platform. */
11973 #ifndef LT_DLLAZY_OR_NOW
11975 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11978 # define LT_DLLAZY_OR_NOW DL_LAZY
11981 # define LT_DLLAZY_OR_NOW RTLD_NOW
11984 # define LT_DLLAZY_OR_NOW DL_NOW
11986 # define LT_DLLAZY_OR_NOW 0
11993 /* When -fvisibility=hidden is used, assume the code has been annotated
11994 correspondingly for the symbols needed. */
11995 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11996 int fnord () __attribute__((visibility("default")));
11999 int fnord () { return 42; }
12002 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12003 int status = $lt_dlunknown;
12007 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12010 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12011 else puts (dlerror ());
12013 /* dlclose (self); */
12021 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12022 (eval $ac_link) 2>&5
12024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12025 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev
/null
; then
12026 (.
/conftest
; exit; ) >&5 2>/dev
/null
12028 case x
$lt_status in
12029 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
12030 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
12031 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
12034 # compilation failed
12035 lt_cv_dlopen_self
=no
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12043 $as_echo "$lt_cv_dlopen_self" >&6; }
12045 if test yes = "$lt_cv_dlopen_self"; then
12046 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12048 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12049 if ${lt_cv_dlopen_self_static+:} false
; then :
12050 $as_echo_n "(cached) " >&6
12052 if test yes = "$cross_compiling"; then :
12053 lt_cv_dlopen_self_static
=cross
12055 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12056 lt_status
=$lt_dlunknown
12057 cat > conftest.
$ac_ext <<_LT_EOF
12058 #line $LINENO "configure"
12059 #include "confdefs.h"
12068 # define LT_DLGLOBAL RTLD_GLOBAL
12071 # define LT_DLGLOBAL DL_GLOBAL
12073 # define LT_DLGLOBAL 0
12077 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12078 find out it does not work in some platform. */
12079 #ifndef LT_DLLAZY_OR_NOW
12081 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12084 # define LT_DLLAZY_OR_NOW DL_LAZY
12087 # define LT_DLLAZY_OR_NOW RTLD_NOW
12090 # define LT_DLLAZY_OR_NOW DL_NOW
12092 # define LT_DLLAZY_OR_NOW 0
12099 /* When -fvisibility=hidden is used, assume the code has been annotated
12100 correspondingly for the symbols needed. */
12101 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12102 int fnord () __attribute__((visibility("default")));
12105 int fnord () { return 42; }
12108 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12109 int status = $lt_dlunknown;
12113 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12116 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12117 else puts (dlerror ());
12119 /* dlclose (self); */
12127 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12128 (eval $ac_link) 2>&5
12130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12131 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev
/null
; then
12132 (.
/conftest
; exit; ) >&5 2>/dev
/null
12134 case x
$lt_status in
12135 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
12136 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
12137 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
12140 # compilation failed
12141 lt_cv_dlopen_self_static
=no
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12149 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12152 CPPFLAGS
=$save_CPPFLAGS
12153 LDFLAGS
=$save_LDFLAGS
12158 case $lt_cv_dlopen_self in
12159 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
12160 *) enable_dlopen_self
=unknown
;;
12163 case $lt_cv_dlopen_self_static in
12164 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
12165 *) enable_dlopen_self_static
=unknown
;;
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12188 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12189 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
12190 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
12191 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12193 $as_echo "yes" >&6; }
12195 # FIXME - insert some real tests, host_os isn't really good enough
12198 if test -n "$STRIP"; then
12199 striplib
="$STRIP -x"
12200 old_striplib
="$STRIP -S"
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12202 $as_echo "yes" >&6; }
12204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12205 $as_echo "no" >&6; }
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12210 $as_echo "no" >&6; }
12226 # Report what library types will actually be built
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12228 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12230 $as_echo "$can_build_shared" >&6; }
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12233 $as_echo_n "checking whether to build shared libraries... " >&6; }
12234 test no
= "$can_build_shared" && enable_shared
=no
12236 # On AIX, shared libraries and static libraries use the same namespace, and
12237 # are all built from PIC.
12240 test yes = "$enable_shared" && enable_static
=no
12241 if test -n "$RANLIB"; then
12242 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12243 postinstall_cmds
='$RANLIB $lib'
12248 if test ia64
!= "$host_cpu"; then
12249 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12250 yes,aix
,yes) ;; # shared object as lib.so file only
12251 yes,svr4
,*) ;; # shared object as lib.so archive member only
12252 yes,*) enable_static
=no
;; # shared object in lib.a archive as well
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12258 $as_echo "$enable_shared" >&6; }
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12261 $as_echo_n "checking whether to build static libraries... " >&6; }
12262 # Make sure either enable_shared or enable_static is yes.
12263 test yes = "$enable_shared" || enable_static
=yes
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12265 $as_echo "$enable_static" >&6; }
12272 ac_cpp
='$CPP $CPPFLAGS'
12273 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12274 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12275 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12293 ac_config_commands
="$ac_config_commands libtool"
12298 # Only expand once:
12301 # By default we simply use the C compiler to build assembly code.
12303 test "${CCAS+set}" = set || CCAS
=$CC
12304 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
12308 depcc
="$CCAS" am_compiler_list
=
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12311 $as_echo_n "checking dependency style of $depcc... " >&6; }
12312 if ${am_cv_CCAS_dependencies_compiler_type+:} false
; then :
12313 $as_echo_n "(cached) " >&6
12315 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12316 # We make a subdir and do the tests there. Otherwise we can end up
12317 # making bogus files that we don't know about and never remove. For
12318 # instance it was reported that on HP-UX the gcc test will end up
12319 # making a dummy file named 'D' -- because '-MD' means "put the output
12321 rm -rf conftest.dir
12323 # Copy depcomp to subdir because otherwise we won't find it if we're
12324 # using a relative directory.
12325 cp "$am_depcomp" conftest.dir
12327 # We will build objects and dependencies in a subdirectory because
12328 # it helps to detect inapplicable dependency modes. For instance
12329 # both Tru64's cc and ICC support -MD to output dependencies as a
12330 # side effect of compilation, but ICC will put the dependencies in
12331 # the current directory while Tru64 will put them in the object
12335 am_cv_CCAS_dependencies_compiler_type
=none
12336 if test "$am_compiler_list" = ""; then
12337 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12339 am__universal
=false
12342 for depmode
in $am_compiler_list; do
12343 # Setup a source with many dependencies, because some compilers
12344 # like to wrap large dependency lists on column 80 (with \), and
12345 # we should not choose a depcomp mode which is confused by this.
12347 # We need to recreate these files for each test, as the compiler may
12348 # overwrite some of them when testing with obscure command lines.
12349 # This happens at least with the AIX C compiler.
12351 for i
in 1 2 3 4 5 6; do
12352 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
12353 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12354 # Solaris 10 /bin/sh.
12355 echo '/* dummy */' > sub
/conftst
$i.h
12357 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12359 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12360 # mode. It turns out that the SunPro C++ compiler does not properly
12361 # handle '-M -o', and we need to detect this. Also, some Intel
12362 # versions had trouble with output in subdirs.
12363 am__obj
=sub
/conftest.
${OBJEXT-o}
12364 am__minus_obj
="-o $am__obj"
12367 # This depmode causes a compiler race in universal mode.
12368 test "$am__universal" = false ||
continue
12371 # After this tag, mechanisms are not by side-effect, so they'll
12372 # only be used when explicitly requested.
12373 if test "x$enable_dependency_tracking" = xyes
; then
12379 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
12380 # This compiler won't grok '-c -o', but also, the minuso test has
12381 # not run yet. These depmodes are late enough in the game, and
12382 # so weak that their functioning should not be impacted.
12383 am__obj
=conftest.
${OBJEXT-o}
12388 if depmode
=$depmode \
12389 source=sub
/conftest.c object
=$am__obj \
12390 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
12391 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
12392 >/dev
/null
2>conftest.err
&&
12393 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
12394 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
12395 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
12396 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
12397 # icc doesn't choke on unknown options, it will just issue warnings
12398 # or remarks (even with -Werror). So we grep stderr for any message
12399 # that says an option was ignored or not supported.
12400 # When given -MP, icc 7.0 and 7.1 complain thusly:
12401 # icc: Command line warning: ignoring option '-M'; no argument required
12402 # The diagnosis changed in icc 8.0:
12403 # icc: Command line remark: option '-MP' not supported
12404 if (grep 'ignoring option' conftest.err ||
12405 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
12406 am_cv_CCAS_dependencies_compiler_type
=$depmode
12413 rm -rf conftest.dir
12415 am_cv_CCAS_dependencies_compiler_type
=none
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
12420 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
12421 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
12424 test "x$enable_dependency_tracking" != xno \
12425 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
12426 am__fastdepCCAS_TRUE
=
12427 am__fastdepCCAS_FALSE
='#'
12429 am__fastdepCCAS_TRUE
='#'
12430 am__fastdepCCAS_FALSE
=
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs author" >&5
12437 $as_echo_n "checking zfs author... " >&6; }
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_AUTHOR" >&5
12439 $as_echo "$ZFS_META_AUTHOR" >&6; }
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs license" >&5
12442 $as_echo_n "checking zfs license... " >&6; }
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_LICENSE" >&5
12444 $as_echo "$ZFS_META_LICENSE" >&6; }
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linux distribution" >&5
12449 $as_echo_n "checking linux distribution... " >&6; }
12450 if test -f /etc
/toss-release
; then
12452 elif test -f /etc
/fedora-release
; then
12454 elif test -f /etc
/redhat-release
; then
12456 elif test -f /etc
/gentoo-release
; then
12458 elif test -f /etc
/arch-release
; then
12460 elif test -f /etc
/SuSE-release
; then
12462 elif test -f /etc
/slackware-version
; then
12464 elif test -f /etc
/lunar.release
; then
12466 elif test -f /etc
/lsb-release
; then
12468 elif test -f /etc
/debian_version
; then
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VENDOR" >&5
12474 $as_echo "$VENDOR" >&6; }
12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default package type" >&5
12478 $as_echo_n "checking default package type... " >&6; }
12480 toss
) DEFAULT_PACKAGE
=rpm
;;
12481 redhat
) DEFAULT_PACKAGE
=rpm
;;
12482 fedora
) DEFAULT_PACKAGE
=rpm
;;
12483 gentoo
) DEFAULT_PACKAGE
=tgz
;;
12484 arch
) DEFAULT_PACKAGE
=tgz
;;
12485 sles
) DEFAULT_PACKAGE
=rpm
;;
12486 slackware
) DEFAULT_PACKAGE
=tgz
;;
12487 lunar
) DEFAULT_PACKAGE
=tgz
;;
12488 ubuntu
) DEFAULT_PACKAGE
=deb
;;
12489 debian
) DEFAULT_PACKAGE
=deb
;;
12490 *) DEFAULT_PACKAGE
=rpm
;;
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_PACKAGE" >&5
12493 $as_echo "$DEFAULT_PACKAGE" >&6; }
12496 DEFAULT_INIT_DIR
=$sysconfdir/init.d
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init directory" >&5
12498 $as_echo_n "checking default init directory... " >&6; }
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_DIR" >&5
12500 $as_echo "$DEFAULT_INIT_DIR" >&6; }
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init script type" >&5
12504 $as_echo_n "checking default init script type... " >&6; }
12506 toss
) DEFAULT_INIT_SCRIPT
=redhat
;;
12507 redhat
) DEFAULT_INIT_SCRIPT
=redhat
;;
12508 fedora
) DEFAULT_INIT_SCRIPT
=fedora
;;
12509 gentoo
) DEFAULT_INIT_SCRIPT
=gentoo
;;
12510 arch
) DEFAULT_INIT_SCRIPT
=lsb
;;
12511 sles
) DEFAULT_INIT_SCRIPT
=lsb
;;
12512 slackware
) DEFAULT_INIT_SCRIPT
=lsb
;;
12513 lunar
) DEFAULT_INIT_SCRIPT
=lunar
;;
12514 ubuntu
) DEFAULT_INIT_SCRIPT
=lsb
;;
12515 debian
) DEFAULT_INIT_SCRIPT
=lsb
;;
12516 *) DEFAULT_INIT_SCRIPT
=lsb
;;
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_SCRIPT" >&5
12519 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init config direectory" >&5
12523 $as_echo_n "checking default init config direectory... " >&6; }
12525 gentoo
) DEFAULT_INITCONF_DIR
=/etc
/conf.d
;;
12526 toss
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12527 redhat
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12528 fedora
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12529 sles
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12530 ubuntu
) DEFAULT_INITCONF_DIR
=/etc
/default
;;
12531 debian
) DEFAULT_INITCONF_DIR
=/etc
/default
;;
12532 *) DEFAULT_INITCONF_DIR
=/etc
/default
;;
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INITCONF_DIR" >&5
12535 $as_echo "$DEFAULT_INITCONF_DIR" >&6; }
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether initramfs-tools is available" >&5
12539 $as_echo_n "checking whether initramfs-tools is available... " >&6; }
12540 if test -d /usr
/share
/initramfs-tools
; then
12541 DEFINE_INITRAMFS
='--define "_initramfs 1"'
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12543 $as_echo "yes" >&6; }
12545 DEFINE_INITRAMFS
=''
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12547 $as_echo "no" >&6; }
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPM is available" >&5
12556 $as_echo_n "checking whether $RPM is available... " >&6; }
12557 if tmp
=$
($RPM --version 2>/dev
/null
); then :
12559 RPM_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM ($RPM_VERSION)" >&5
12562 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM" >&5
12568 $as_echo "$HAVE_RPM" >&6; }
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPMBUILD is available" >&5
12573 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
12574 if tmp
=$
($RPMBUILD --version 2>/dev
/null
); then :
12576 RPMBUILD_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
12579 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD" >&5
12585 $as_echo "$HAVE_RPMBUILD" >&6; }
12589 RPM_DEFINE_COMMON
='--define "$(DEBUG_ZFS) 1" --define "$(DEBUG_DMU_TX) 1"'
12590 RPM_DEFINE_UTIL
='--define "_dracutdir $(dracutdir)" --define "_udevdir $(udevdir)" --define "_udevruledir $(udevruledir)" --define "_initconfdir $(DEFAULT_INITCONF_DIR)" $(DEFINE_INITRAMFS)'
12591 RPM_DEFINE_KMOD
='--define "kernels $(LINUX_VERSION)" --define "require_spldir $(SPL)" --define "require_splobj $(SPL_OBJ)" --define "ksrc $(LINUX)" --define "kobj $(LINUX_OBJ)"'
12594 SRPM_DEFINE_COMMON
='--define "build_src_rpm 1"'
12599 RPM_SPEC_DIR
="rpm/generic"
12601 # Check whether --with-spec was given.
12602 if test "${with_spec+set}" = set; then :
12603 withval
=$with_spec; RPM_SPEC_DIR
="rpm/$withval"
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spec files are available" >&5
12608 $as_echo_n "checking whether spec files are available... " >&6; }
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
12610 $as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
12632 DPKGBUILD
=dpkg-buildpackage
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKG is available" >&5
12635 $as_echo_n "checking whether $DPKG is available... " >&6; }
12636 if tmp
=$
($DPKG --version 2>/dev
/null
); then :
12638 DPKG_VERSION
=$
(echo $tmp |
$AWK '/Debian/ { print $7 }')
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
12641 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG" >&5
12647 $as_echo "$HAVE_DPKG" >&6; }
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKGBUILD is available" >&5
12652 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
12653 if tmp
=$
($DPKGBUILD --version 2>/dev
/null
); then :
12655 DPKGBUILD_VERSION
=$
(echo $tmp | \
12656 $AWK '/Debian/ { print $4 }' | cut
-f-4 -d'.')
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
12659 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD" >&5
12665 $as_echo "$HAVE_DPKGBUILD" >&6; }
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ALIEN is available" >&5
12681 $as_echo_n "checking whether $ALIEN is available... " >&6; }
12682 if tmp
=$
($ALIEN --version 2>/dev
/null
); then :
12684 ALIEN_VERSION
=$
(echo $tmp |
$AWK '{ print $3 }')
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
12687 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN" >&5
12693 $as_echo "$HAVE_ALIEN" >&6; }
12703 TARGET_ASM_DIR
=asm-generic
12708 # Check whether --with-config was given.
12709 if test "${with_config+set}" = set; then :
12710 withval
=$with_config; ZFS_CONFIG
="$withval"
12713 # Check whether --enable-linux-builtin was given.
12714 if test "${enable_linux_builtin+set}" = set; then :
12715 enableval
=$enable_linux_builtin;
12717 enable_linux_builtin
=no
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs config" >&5
12722 $as_echo_n "checking zfs config... " >&6; }
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_CONFIG" >&5
12724 $as_echo "$ZFS_CONFIG" >&6; };
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-unused-but-set-variable support" >&5
12730 $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
12732 saved_flags
="$CFLAGS"
12733 CFLAGS
="$CFLAGS -Wunused-but-set-variable"
12735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12736 /* end confdefs.h. */
12746 if ac_fn_c_try_compile
"$LINENO"; then :
12748 NO_UNUSED_BUT_SET_VARIABLE
=-Wno-unused-but-set-variable
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12750 $as_echo "yes" >&6; }
12754 NO_UNUSED_BUT_SET_VARIABLE
=
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12756 $as_echo "no" >&6; }
12759 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12761 CFLAGS
="$saved_flags"
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-bool-compare support" >&5
12766 $as_echo_n "checking for -Wno-bool-compare support... " >&6; }
12768 saved_flags
="$CFLAGS"
12769 CFLAGS
="$CFLAGS -Wbool-compare"
12771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12772 /* end confdefs.h. */
12782 if ac_fn_c_try_compile
"$LINENO"; then :
12784 NO_BOOL_COMPARE
=-Wno-bool-compare
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12786 $as_echo "yes" >&6; }
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12792 $as_echo "no" >&6; }
12795 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12797 CFLAGS
="$saved_flags"
12802 case "$ZFS_CONFIG" in
12806 # Check whether --with-linux was given.
12807 if test "${with_linux+set}" = set; then :
12808 withval
=$with_linux; kernelsrc
="$withval"
12813 # Check whether --with-linux-obj was given.
12814 if test "${with_linux_obj+set}" = set; then :
12815 withval
=$with_linux_obj; kernelbuild
="$withval"
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
12820 $as_echo_n "checking kernel source directory... " >&6; }
12821 if test -z "$kernelsrc"; then :
12823 if test -e "/lib/modules/$(uname -r)/source"; then :
12825 headersdir
="/lib/modules/$(uname -r)/source"
12826 sourcelink
=$
(readlink
-f "$headersdir")
12828 elif test -e "/lib/modules/$(uname -r)/build"; then :
12830 headersdir
="/lib/modules/$(uname -r)/build"
12831 sourcelink
=$
(readlink
-f "$headersdir")
12835 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
12837 2>/dev
/null |
grep -v obj |
tail -1)
12841 if test -n "$sourcelink" && test -e ${sourcelink}; then :
12843 kernelsrc
=`readlink -f ${sourcelink}`
12847 kernelsrc
="Not found"
12853 if test "$kernelsrc" = "NONE"; then :
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
12862 $as_echo "$kernelsrc" >&6; }
12863 if test ! -d "$kernelsrc"; then :
12866 *** Please make sure the kernel devel package for your distribution
12867 *** is installed and then try again. If that fails, you can specify the
12868 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
12873 $as_echo_n "checking kernel build directory... " >&6; }
12874 if test -z "$kernelbuild"; then :
12876 if test -e "/lib/modules/$(uname -r)/build"; then :
12878 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
12880 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
12882 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
12884 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then :
12886 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
12888 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then :
12890 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
12894 kernelbuild
=${kernelsrc}
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
12900 $as_echo "$kernelbuild" >&6; }
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
12903 $as_echo_n "checking kernel source version... " >&6; }
12904 utsrelease1
=$kernelbuild/include
/linux
/version.h
12905 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
12906 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
12907 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then :
12909 utsrelease
=linux
/version.h
12911 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then :
12913 utsrelease
=linux
/utsrelease.h
12915 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then :
12917 utsrelease
=generated
/utsrelease.h
12921 if test "$utsrelease"; then :
12923 kernsrcver
=`(echo "#include <$utsrelease>";
12924 echo "kernsrcver=UTS_RELEASE") |
12925 cpp -I $kernelbuild/include |
12926 grep "^kernsrcver=" | cut -d \" -f 2`
12928 if test -z "$kernsrcver"; then :
12930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
12931 $as_echo "Not found" >&6; }
12932 as_fn_error $?
"*** Cannot determine kernel version." "$LINENO" 5
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
12939 $as_echo "Not found" >&6; }
12940 if test "x$enable_linux_builtin" != xyes
; then
12941 as_fn_error $?
"*** Cannot find UTS_RELEASE definition." "$LINENO" 5
12944 *** Cannot find UTS_RELEASE definition.
12945 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
12951 $as_echo "$kernsrcver" >&6; }
12954 LINUX_OBJ
=${kernelbuild}
12955 LINUX_VERSION
=${kernsrcver}
12962 modpost
=$LINUX/scripts
/Makefile.modpost
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
12964 $as_echo_n "checking kernel file name for module symbols... " >&6; }
12965 if test "x$enable_linux_builtin" != xyes
-a -f "$modpost"; then :
12967 if grep -q Modules.symvers
$modpost; then :
12969 LINUX_SYMBOLS
=Modules.symvers
12973 LINUX_SYMBOLS
=Module.symvers
12977 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
12980 *** Please make sure the kernel devel package for your distribution
12981 *** is installed. If you are building with a custom kernel, make sure the
12982 *** kernel is configured, built, and the '--with-linux=PATH' configure
12983 *** option refers to the location of the kernel source." "$LINENO" 5
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
12993 $as_echo "$LINUX_SYMBOLS" >&6; }
12999 # Check whether --with-spl was given.
13000 if test "${with_spl+set}" = set; then :
13001 withval
=$with_spl; splsrc
="$withval"
13006 # Check whether --with-spl-obj was given.
13007 if test "${with_spl_obj+set}" = set; then :
13008 withval
=$with_spl_obj; splbuild
="$withval"
13013 # Check whether --with-spl-timeout was given.
13014 if test "${with_spl_timeout+set}" = set; then :
13015 withval
=$with_spl_timeout; timeout
="$withval"
13021 splsrc0
="/var/lib/dkms/spl/${VERSION}/build"
13022 splsrc1
="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
13023 splsrc2
="/usr/local/src/spl-${VERSION}"
13024 splsrc3
="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
13025 splsrc4
="/usr/src/spl-${VERSION}"
13029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
13030 $as_echo_n "checking spl source directory... " >&6; }
13031 if test -z "${splsrc}"; then :
13033 if test -e "${splsrc0}/spl.release.in"; then :
13037 elif test -e "${splsrc1}/spl.release.in"; then :
13041 elif test -e "${splsrc2}/spl.release.in"; then :
13045 elif test -e "${splsrc3}/spl.release.in"; then :
13047 splsrc
=$
(readlink
-f "${splsrc3}")
13049 elif test -e "${splsrc4}/spl.release.in" ; then :
13053 elif test -e "${splsrc5}/spl.release.in"; then :
13055 splsrc
=$
(readlink
-f "${splsrc5}")
13057 elif test -e "${splsrc6}/spl.release.in" ; then :
13069 if test "$splsrc" = "NONE"; then :
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
13079 $as_echo "$splsrc" >&6; }
13080 if test ! -e "$splsrc/spl.release.in"; then :
13083 *** Please make sure the kmod spl devel package for your distribution
13084 *** is installed then try again. If that fails you can specify the
13085 *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
13090 $as_echo_n "checking spl build directory... " >&6; }
13092 if test -z "$splbuild"; then :
13094 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
13096 splbuild
="${splsrc}/${LINUX_VERSION}"
13098 elif test -e "${splsrc}/spl_config.h" ; then :
13100 splbuild
="${splsrc}"
13102 elif find -L "${splsrc}" -name spl_config.h
2> /dev
/null |
grep -wq spl_config.h
; then :
13104 splbuild
=$
(find -L "${splsrc}" -name spl_config.h |
sed 's,/spl_config.h,,')
13108 splbuild
="Not found"
13113 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
13120 timeout
=$
((timeout-1
))
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
13126 $as_echo "$splbuild" >&6; }
13127 if ! test -e "$splbuild/spl_config.h"; then :
13130 *** Please make sure the kmod spl devel <kernel> package for your
13131 *** distribution is installed then try again. If that fails you
13132 *** can specify the location of the spl objects with the
13133 *** '--with-spl-obj=PATH' option." "$LINENO" 5
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
13138 $as_echo_n "checking spl source version... " >&6; }
13139 if test -r $splbuild/spl_config.h
&&
13140 fgrep
-q SPL_META_VERSION
$splbuild/spl_config.h
; then :
13143 splsrcver
=`(echo "#include <spl_config.h>";
13144 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
13146 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
13150 if test -z "$splsrcver"; then :
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13153 $as_echo "Not found" >&6; }
13155 *** Cannot determine the version of the spl source.
13156 *** Please prepare the spl source before running this script" "$LINENO" 5
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
13161 $as_echo "$splsrcver" >&6; }
13164 SPL_OBJ
=${splbuild}
13165 SPL_VERSION
=${splsrcver}
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
13172 $as_echo_n "checking spl file name for module symbols... " >&6; }
13176 if test -r $SPL_OBJ/Module.symvers
; then :
13178 SPL_SYMBOLS
=Module.symvers
13180 elif test -r $SPL_OBJ/Modules.symvers
; then :
13182 SPL_SYMBOLS
=Modules.symvers
13184 elif test -r $SPL_OBJ/module
/Module.symvers
; then :
13186 SPL_SYMBOLS
=Module.symvers
13188 elif test -r $SPL_OBJ/module
/Modules.symvers
; then :
13190 SPL_SYMBOLS
=Modules.symvers
13194 if test $SPL_SYMBOLS != NONE
-o $timeout -le 0; then :
13201 timeout
=$
((timeout-1
))
13206 if test "$SPL_SYMBOLS" = NONE
; then :
13208 SPL_SYMBOLS
=$LINUX_SYMBOLS
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
13213 $as_echo "$SPL_SYMBOLS" >&6; }
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
13218 $as_echo_n "checking whether modules can be built... " >&6; }
13221 cat confdefs.h
- <<_ACEOF >conftest.c
13236 cat - <<_ACEOF >conftest.h
13241 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13242 echo "obj-m := conftest.o" >build
/Makefile
13244 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13245 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13247 (eval $ac_try) 2>&5
13249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13250 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13252 (eval $ac_try) 2>&5
13254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13255 test $ac_status = 0; }; }; then :
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13258 $as_echo "yes" >&6; }
13261 $as_echo "$as_me: failed program was:" >&5
13262 sed 's/^/| /' conftest.
$ac_ext >&5
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13265 $as_echo "no" >&6; }
13266 if test "x$enable_linux_builtin" != xyes
; then
13267 as_fn_error $?
"*** Unable to build an empty module." "$LINENO" 5
13270 *** Unable to build an empty module.
13271 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
13282 if test "x$cross_compiling" != xyes
; then :
13284 if test "$cross_compiling" = yes; then :
13285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13287 as_fn_error $?
"cannot run test program while cross compiling
13288 See \`config.log' for more details" "$LINENO" 5; }
13290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13291 /* end confdefs.h. */
13294 #include "$LINUX/include/linux/license.h"
13300 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
13307 if ac_fn_c_try_run
"$LINENO"; then :
13310 $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
13314 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13315 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with 16K or larger stacks" >&5
13323 $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
13326 cat confdefs.h
- <<_ACEOF >conftest.c
13329 #include <linux/module.h>
13335 #if (THREAD_SIZE < 16384)
13336 #error "THREAD_SIZE is less than 16K"
13347 cat - <<_ACEOF >conftest.h
13352 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13353 echo "obj-m := conftest.o" >build
/Makefile
13355 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13356 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13358 (eval $ac_try) 2>&5
13360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13361 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13362 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13363 (eval $ac_try) 2>&5
13365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13366 test $ac_status = 0; }; }; then :
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13369 $as_echo "yes" >&6; }
13371 $as_echo "#define HAVE_LARGE_STACKS 1" >>confdefs.h
13375 $as_echo "$as_me: failed program was:" >&5
13376 sed 's/^/| /' conftest.
$ac_ext >&5
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13379 $as_echo "no" >&6; }
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
13391 $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
13394 cat confdefs.h
- <<_ACEOF >conftest.c
13397 #include <linux/module.h>
13403 #ifndef CONFIG_DEBUG_LOCK_ALLOC
13404 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
13415 cat - <<_ACEOF >conftest.h
13420 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13421 echo "obj-m := conftest.o" >build
/Makefile
13423 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13424 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13426 (eval $ac_try) 2>&5
13428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13429 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13430 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13431 (eval $ac_try) 2>&5
13433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13434 test $ac_status = 0; }; }; then :
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13437 $as_echo "yes" >&6; }
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
13440 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
13441 tmp_flags
="$EXTRA_KCFLAGS"
13444 cat confdefs.h
- <<_ACEOF >conftest.c
13447 #include <linux/module.h>
13448 #include <linux/mutex.h>
13450 MODULE_LICENSE("$ZFS_META_LICENSE");
13460 mutex_unlock(&lock);
13470 cat - <<_ACEOF >conftest.h
13475 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13476 echo "obj-m := conftest.o" >build
/Makefile
13478 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13479 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13481 (eval $ac_try) 2>&5
13483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13484 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13485 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13486 (eval $ac_try) 2>&5
13488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13489 test $ac_status = 0; }; }; then :
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13492 $as_echo "no" >&6; }
13495 $as_echo "$as_me: failed program was:" >&5
13496 sed 's/^/| /' conftest.
$ac_ext >&5
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13499 $as_echo "yes" >&6; }
13501 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
13502 *** with the CDDL license and will prevent the module linking stage
13503 *** from succeeding. You must rebuild your kernel without this
13504 *** option enabled." "$LINENO" 5
13512 EXTRA_KCFLAGS
="$tmp_flags"
13516 $as_echo "$as_me: failed program was:" >&5
13517 sed 's/^/| /' conftest.
$ac_ext >&5
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13520 $as_echo "no" >&6; }
13533 tmp_flags
="$EXTRA_KCFLAGS"
13534 EXTRA_KCFLAGS
="-I\$(src)"
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
13537 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
13540 cat confdefs.h
- <<_ACEOF >conftest.c
13543 #include <linux/module.h>
13544 MODULE_LICENSE(ZFS_META_LICENSE);
13546 #define CREATE_TRACE_POINTS
13547 #include "conftest.h"
13553 trace_zfs_autoconf_event_one(1UL);
13554 trace_zfs_autoconf_event_two(2UL);
13564 cat - <<_ACEOF >conftest.h
13566 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
13567 #define _CONFTEST_H
13569 #undef TRACE_SYSTEM
13570 #define TRACE_SYSTEM zfs
13571 #include <linux/tracepoint.h>
13573 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
13574 TP_PROTO(unsigned long i),
13577 __field(unsigned long, i)
13582 TP_printk("i = %lu", __entry->i)
13585 #define DEFINE_AUTOCONF_EVENT(name) \
13586 DEFINE_EVENT(zfs_autoconf_event_class, name, \
13587 TP_PROTO(unsigned long i), \
13589 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
13590 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
13592 #endif /* _CONFTEST_H */
13594 #undef TRACE_INCLUDE_PATH
13595 #define TRACE_INCLUDE_PATH .
13596 #define TRACE_INCLUDE_FILE conftest
13597 #include <trace/define_trace.h>
13602 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13603 echo "obj-m := conftest.o" >build
/Makefile
13605 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13606 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13608 (eval $ac_try) 2>&5
13610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13611 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13613 (eval $ac_try) 2>&5
13615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13616 test $ac_status = 0; }; }; then :
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13619 $as_echo "yes" >&6; }
13621 $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
13625 $as_echo "$as_me: failed program was:" >&5
13626 sed 's/^/| /' conftest.
$ac_ext >&5
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13629 $as_echo "no" >&6; }
13637 EXTRA_KCFLAGS
="$tmp_flags"
13640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5
13641 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
13644 cat confdefs.h
- <<_ACEOF >conftest.c
13647 #include <linux/sched.h>
13653 current->bio_tail = (struct bio **) NULL;
13663 cat - <<_ACEOF >conftest.h
13668 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13669 echo "obj-m := conftest.o" >build
/Makefile
13671 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13672 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13673 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13674 (eval $ac_try) 2>&5
13676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13677 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13678 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13679 (eval $ac_try) 2>&5
13681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13682 test $ac_status = 0; }; }; then :
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13685 $as_echo "yes" >&6; }
13687 $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h
13691 $as_echo "$as_me: failed program was:" >&5
13692 sed 's/^/| /' conftest.
$ac_ext >&5
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13695 $as_echo "no" >&6; }
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5
13697 $as_echo_n "checking whether current->bio_list exists... " >&6; }
13700 cat confdefs.h
- <<_ACEOF >conftest.c
13703 #include <linux/sched.h>
13709 current->bio_list = (struct bio_list *) NULL;
13719 cat - <<_ACEOF >conftest.h
13724 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13725 echo "obj-m := conftest.o" >build
/Makefile
13727 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13728 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13729 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13730 (eval $ac_try) 2>&5
13732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13733 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13735 (eval $ac_try) 2>&5
13737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13738 test $ac_status = 0; }; }; then :
13740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13741 $as_echo "yes" >&6; }
13743 $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h
13747 $as_echo "$as_me: failed program was:" >&5
13748 sed 's/^/| /' conftest.
$ac_ext >&5
13750 as_fn_error $?
"no - Please file a bug report at
13751 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether submit_bio() wants 1 arg" >&5
13769 $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
13772 cat confdefs.h
- <<_ACEOF >conftest.c
13775 #include <linux/bio.h>
13782 struct bio *bio = NULL;
13783 blk_qc = submit_bio(bio);
13793 cat - <<_ACEOF >conftest.h
13798 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13799 echo "obj-m := conftest.o" >build
/Makefile
13801 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13802 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13804 (eval $ac_try) 2>&5
13806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13807 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13809 (eval $ac_try) 2>&5
13811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13812 test $ac_status = 0; }; }; then :
13814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13815 $as_echo "yes" >&6; }
13817 $as_echo "#define HAVE_1ARG_SUBMIT_BIO 1" >>confdefs.h
13821 $as_echo "$as_me: failed program was:" >&5
13822 sed 's/^/| /' conftest.
$ac_ext >&5
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13825 $as_echo "no" >&6; }
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
13836 $as_echo_n "checking block device operation prototypes... " >&6; }
13837 tmp_flags
="$EXTRA_KCFLAGS"
13838 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
13841 cat confdefs.h
- <<_ACEOF >conftest.c
13844 #include <linux/blkdev.h>
13846 int blk_open(struct block_device *bdev, fmode_t mode)
13848 int blk_ioctl(struct block_device *bdev, fmode_t mode,
13849 unsigned x, unsigned long y) { return 0; }
13850 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
13851 unsigned x, unsigned long y) { return 0; }
13853 static const struct block_device_operations
13854 bops __attribute__ ((unused)) = {
13857 .ioctl = blk_ioctl,
13858 .compat_ioctl = blk_compat_ioctl,
13874 cat - <<_ACEOF >conftest.h
13879 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13880 echo "obj-m := conftest.o" >build
/Makefile
13882 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13883 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13885 (eval $ac_try) 2>&5
13887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13888 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13890 (eval $ac_try) 2>&5
13892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13893 test $ac_status = 0; }; }; then :
13895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
13896 $as_echo "struct block_device" >&6; }
13898 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
13902 $as_echo "$as_me: failed program was:" >&5
13903 sed 's/^/| /' conftest.
$ac_ext >&5
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
13906 $as_echo "struct inode" >&6; }
13914 EXTRA_KCFLAGS
="$tmp_flags"
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
13918 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
13919 tmp_flags
="$EXTRA_KCFLAGS"
13920 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
13923 cat confdefs.h
- <<_ACEOF >conftest.c
13926 #include <linux/blkdev.h>
13928 void blk_release(struct gendisk *g, fmode_t mode) { return; }
13930 static const struct block_device_operations
13931 bops __attribute__ ((unused)) = {
13933 .release = blk_release,
13935 .compat_ioctl = NULL,
13951 cat - <<_ACEOF >conftest.h
13956 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13957 echo "obj-m := conftest.o" >build
/Makefile
13959 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13960 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13962 (eval $ac_try) 2>&5
13964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13965 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13967 (eval $ac_try) 2>&5
13969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13970 test $ac_status = 0; }; }; then :
13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
13973 $as_echo "void" >&6; }
13975 $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
13979 $as_echo "$as_me: failed program was:" >&5
13980 sed 's/^/| /' conftest.
$ac_ext >&5
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
13983 $as_echo "int" >&6; }
13991 EXTRA_KCFLAGS
="$tmp_flags"
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
13994 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
13997 cat confdefs.h
- <<_ACEOF >conftest.c
14000 #include <linux/types.h>
14006 fmode_t *ptr __attribute__ ((unused));
14016 cat - <<_ACEOF >conftest.h
14021 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14022 echo "obj-m := conftest.o" >build
/Makefile
14024 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14025 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14027 (eval $ac_try) 2>&5
14029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14030 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14032 (eval $ac_try) 2>&5
14034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14035 test $ac_status = 0; }; }; then :
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14038 $as_echo "yes" >&6; }
14040 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
14044 $as_echo "$as_me: failed program was:" >&5
14045 sed 's/^/| /' conftest.
$ac_ext >&5
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14048 $as_echo "no" >&6; }
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5
14059 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
14062 cat confdefs.h
- <<_ACEOF >conftest.c
14065 #include <linux/kobject.h>
14071 int val __attribute__ ((unused));
14072 val = KOBJ_NAME_LEN;
14082 cat - <<_ACEOF >conftest.h
14087 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14088 echo "obj-m := conftest.o" >build
/Makefile
14090 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14091 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14092 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14093 (eval $ac_try) 2>&5
14095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14096 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14098 (eval $ac_try) 2>&5
14100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14101 test $ac_status = 0; }; }; then :
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14104 $as_echo "yes" >&6; }
14106 $as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h
14110 $as_echo "$as_me: failed program was:" >&5
14111 sed 's/^/| /' conftest.
$ac_ext >&5
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14114 $as_echo "no" >&6; }
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
14125 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
14128 cat confdefs.h
- <<_ACEOF >conftest.c
14131 #include <linux/fs.h>
14137 struct block_device *bdev = NULL;
14138 (void) blkdev_get(bdev, 0, NULL);
14148 cat - <<_ACEOF >conftest.h
14153 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14154 echo "obj-m := conftest.o" >build
/Makefile
14156 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14157 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14159 (eval $ac_try) 2>&5
14161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14162 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14164 (eval $ac_try) 2>&5
14166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14167 test $ac_status = 0; }; }; then :
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14170 $as_echo "yes" >&6; }
14172 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
14176 $as_echo "$as_me: failed program was:" >&5
14177 sed 's/^/| /' conftest.
$ac_ext >&5
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14180 $as_echo "no" >&6; }
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
14190 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
14194 cat confdefs.h
- <<_ACEOF >conftest.c
14197 #include <linux/fs.h>
14203 blkdev_get_by_path(NULL, 0, NULL);
14213 cat - <<_ACEOF >conftest.h
14218 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14219 echo "obj-m := conftest.o" >build
/Makefile
14221 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14222 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14224 (eval $ac_try) 2>&5
14226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14227 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14229 (eval $ac_try) 2>&5
14231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14232 test $ac_status = 0; }; }; then :
14235 $as_echo "$as_me: failed program was:" >&5
14236 sed 's/^/| /' conftest.
$ac_ext >&5
14244 if test $rc -ne 0; then :
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14247 $as_echo "no" >&6; }
14250 if test "x$enable_linux_builtin" != xyes
; then
14252 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
14253 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
14255 if test $rc -ne 0; then
14257 for file in fs
/block_dev.c
; do
14258 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
14259 "$LINUX/$file" 2>/dev
/null
14261 if test $rc -eq 0; then
14266 if test $export -eq 0; then :
14276 if test $rc -ne 0; then :
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14279 $as_echo "no" >&6; }
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14284 $as_echo "yes" >&6; }
14286 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
14294 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
14298 cat confdefs.h
- <<_ACEOF >conftest.c
14301 #include <linux/fs.h>
14307 open_bdev_exclusive(NULL, 0, NULL);
14317 cat - <<_ACEOF >conftest.h
14322 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14323 echo "obj-m := conftest.o" >build
/Makefile
14325 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14326 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14327 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14328 (eval $ac_try) 2>&5
14330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14331 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14333 (eval $ac_try) 2>&5
14335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14336 test $ac_status = 0; }; }; then :
14339 $as_echo "$as_me: failed program was:" >&5
14340 sed 's/^/| /' conftest.
$ac_ext >&5
14348 if test $rc -ne 0; then :
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14351 $as_echo "no" >&6; }
14354 if test "x$enable_linux_builtin" != xyes
; then
14356 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
14357 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
14359 if test $rc -ne 0; then
14361 for file in fs
/block_dev.c
; do
14362 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
14363 "$LINUX/$file" 2>/dev
/null
14365 if test $rc -eq 0; then
14370 if test $export -eq 0; then :
14380 if test $rc -ne 0; then :
14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14383 $as_echo "no" >&6; }
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14388 $as_echo "yes" >&6; }
14390 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
14397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 1 arg" >&5
14398 $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
14402 cat confdefs.h
- <<_ACEOF >conftest.c
14405 #include <linux/fs.h>
14421 cat - <<_ACEOF >conftest.h
14426 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14427 echo "obj-m := conftest.o" >build
/Makefile
14429 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14430 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14432 (eval $ac_try) 2>&5
14434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14435 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14437 (eval $ac_try) 2>&5
14439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14440 test $ac_status = 0; }; }; then :
14443 $as_echo "$as_me: failed program was:" >&5
14444 sed 's/^/| /' conftest.
$ac_ext >&5
14452 if test $rc -ne 0; then :
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14455 $as_echo "no" >&6; }
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
14457 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
14461 cat confdefs.h
- <<_ACEOF >conftest.c
14464 #include <linux/fs.h>
14470 lookup_bdev(NULL, FMODE_READ);
14480 cat - <<_ACEOF >conftest.h
14485 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14486 echo "obj-m := conftest.o" >build
/Makefile
14488 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14489 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
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; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14496 (eval $ac_try) 2>&5
14498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14499 test $ac_status = 0; }; }; then :
14502 $as_echo "$as_me: failed program was:" >&5
14503 sed 's/^/| /' conftest.
$ac_ext >&5
14511 if test $rc -ne 0; then :
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14514 $as_echo "no" >&6; }
14517 if test "x$enable_linux_builtin" != xyes
; then
14519 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
14520 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
14522 if test $rc -ne 0; then
14524 for file in fs
/block_dev.c
; do
14525 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
14526 "$LINUX/$file" 2>/dev
/null
14528 if test $rc -eq 0; then
14533 if test $export -eq 0; then :
14543 if test $rc -ne 0; then :
14545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14546 $as_echo "no" >&6; }
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14551 $as_echo "yes" >&6; }
14553 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
14561 if test "x$enable_linux_builtin" != xyes
; then
14563 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
14564 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
14566 if test $rc -ne 0; then
14568 for file in fs
/block_dev.c
; do
14569 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
14570 "$LINUX/$file" 2>/dev
/null
14572 if test $rc -eq 0; then
14577 if test $export -eq 0; then :
14587 if test $rc -ne 0; then :
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14590 $as_echo "no" >&6; }
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
14592 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
14596 cat confdefs.h
- <<_ACEOF >conftest.c
14599 #include <linux/fs.h>
14605 lookup_bdev(NULL, FMODE_READ);
14615 cat - <<_ACEOF >conftest.h
14620 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14621 echo "obj-m := conftest.o" >build
/Makefile
14623 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14624 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14626 (eval $ac_try) 2>&5
14628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14629 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14631 (eval $ac_try) 2>&5
14633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14634 test $ac_status = 0; }; }; then :
14637 $as_echo "$as_me: failed program was:" >&5
14638 sed 's/^/| /' conftest.
$ac_ext >&5
14646 if test $rc -ne 0; then :
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14649 $as_echo "no" >&6; }
14652 if test "x$enable_linux_builtin" != xyes
; then
14654 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
14655 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
14657 if test $rc -ne 0; then
14659 for file in fs
/block_dev.c
; do
14660 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
14661 "$LINUX/$file" 2>/dev
/null
14663 if test $rc -eq 0; then
14668 if test $export -eq 0; then :
14678 if test $rc -ne 0; then :
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14681 $as_echo "no" >&6; }
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14686 $as_echo "yes" >&6; }
14688 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14698 $as_echo "yes" >&6; }
14700 $as_echo "#define HAVE_1ARG_LOOKUP_BDEV 1" >>confdefs.h
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
14709 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
14712 cat confdefs.h
- <<_ACEOF >conftest.c
14715 #include <linux/buffer_head.h>
14721 struct block_device *bdev = NULL;
14722 invalidate_bdev(bdev);
14732 cat - <<_ACEOF >conftest.h
14737 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14738 echo "obj-m := conftest.o" >build
/Makefile
14740 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14741 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14743 (eval $ac_try) 2>&5
14745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14746 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14748 (eval $ac_try) 2>&5
14750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14751 test $ac_status = 0; }; }; then :
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14754 $as_echo "yes" >&6; }
14756 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
14760 $as_echo "$as_me: failed program was:" >&5
14761 sed 's/^/| /' conftest.
$ac_ext >&5
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14764 $as_echo "no" >&6; }
14774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
14775 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
14776 tmp_flags
="$EXTRA_KCFLAGS"
14777 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14780 cat confdefs.h
- <<_ACEOF >conftest.c
14783 #include <linux/blkdev.h>
14789 struct block_device *bdev = NULL;
14790 bdev_logical_block_size(bdev);
14800 cat - <<_ACEOF >conftest.h
14805 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14806 echo "obj-m := conftest.o" >build
/Makefile
14808 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14809 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14810 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14811 (eval $ac_try) 2>&5
14813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14814 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14815 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14816 (eval $ac_try) 2>&5
14818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14819 test $ac_status = 0; }; }; then :
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14822 $as_echo "yes" >&6; }
14824 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
14828 $as_echo "$as_me: failed program was:" >&5
14829 sed 's/^/| /' conftest.
$ac_ext >&5
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14832 $as_echo "no" >&6; }
14840 EXTRA_KCFLAGS
="$tmp_flags"
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
14844 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
14845 tmp_flags
="$EXTRA_KCFLAGS"
14846 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14849 cat confdefs.h
- <<_ACEOF >conftest.c
14852 #include <linux/blkdev.h>
14858 struct block_device *bdev = NULL;
14859 bdev_physical_block_size(bdev);
14869 cat - <<_ACEOF >conftest.h
14874 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14875 echo "obj-m := conftest.o" >build
/Makefile
14877 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14878 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14880 (eval $ac_try) 2>&5
14882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14883 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14885 (eval $ac_try) 2>&5
14887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14888 test $ac_status = 0; }; }; then :
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14891 $as_echo "yes" >&6; }
14893 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
14897 $as_echo "$as_me: failed program was:" >&5
14898 sed 's/^/| /' conftest.
$ac_ext >&5
14900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14901 $as_echo "no" >&6; }
14909 EXTRA_KCFLAGS
="$tmp_flags"
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
14913 $as_echo_n "checking whether bio has bi_iter... " >&6; }
14916 cat confdefs.h
- <<_ACEOF >conftest.c
14919 #include <linux/bio.h>
14926 bio.bi_iter.bi_sector = 0;
14936 cat - <<_ACEOF >conftest.h
14941 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14942 echo "obj-m := conftest.o" >build
/Makefile
14944 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14945 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14947 (eval $ac_try) 2>&5
14949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14950 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14952 (eval $ac_try) 2>&5
14954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14955 test $ac_status = 0; }; }; then :
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14958 $as_echo "yes" >&6; }
14960 $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
14964 $as_echo "$as_me: failed program was:" >&5
14965 sed 's/^/| /' conftest.
$ac_ext >&5
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14968 $as_echo "no" >&6; }
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
14979 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
14982 cat confdefs.h
- <<_ACEOF >conftest.c
14985 #include <linux/bio.h>
14991 int flags __attribute__ ((unused));
14992 flags = ((1 << BIO_RW_FAILFAST_DEV) |
14993 (1 << BIO_RW_FAILFAST_TRANSPORT) |
14994 (1 << BIO_RW_FAILFAST_DRIVER));
15004 cat - <<_ACEOF >conftest.h
15009 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15010 echo "obj-m := conftest.o" >build
/Makefile
15012 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15013 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15014 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15015 (eval $ac_try) 2>&5
15017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15018 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15020 (eval $ac_try) 2>&5
15022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15023 test $ac_status = 0; }; }; then :
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15026 $as_echo "yes" >&6; }
15028 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
15032 $as_echo "$as_me: failed program was:" >&5
15033 sed 's/^/| /' conftest.
$ac_ext >&5
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15036 $as_echo "no" >&6; }
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
15047 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
15050 cat confdefs.h
- <<_ACEOF >conftest.c
15053 #include <linux/bio.h>
15059 int flags __attribute__ ((unused));
15060 flags = REQ_FAILFAST_MASK;
15070 cat - <<_ACEOF >conftest.h
15075 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15076 echo "obj-m := conftest.o" >build
/Makefile
15078 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15079 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15081 (eval $ac_try) 2>&5
15083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15084 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15086 (eval $ac_try) 2>&5
15088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15089 test $ac_status = 0; }; }; then :
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15092 $as_echo "yes" >&6; }
15094 $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h
15098 $as_echo "$as_me: failed program was:" >&5
15099 sed 's/^/| /' conftest.
$ac_ext >&5
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15102 $as_echo "no" >&6; }
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_DISCARD is defined" >&5
15113 $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
15116 cat confdefs.h
- <<_ACEOF >conftest.c
15119 #include <linux/blk_types.h>
15125 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
15135 cat - <<_ACEOF >conftest.h
15140 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15141 echo "obj-m := conftest.o" >build
/Makefile
15143 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15144 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
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; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15151 (eval $ac_try) 2>&5
15153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15154 test $ac_status = 0; }; }; then :
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15157 $as_echo "yes" >&6; }
15159 $as_echo "#define HAVE_REQ_OP_DISCARD 1" >>confdefs.h
15163 $as_echo "$as_me: failed program was:" >&5
15164 sed 's/^/| /' conftest.
$ac_ext >&5
15166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15167 $as_echo "no" >&6; }
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_SECURE_ERASE is defined" >&5
15178 $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
15181 cat confdefs.h
- <<_ACEOF >conftest.c
15184 #include <linux/blk_types.h>
15190 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
15200 cat - <<_ACEOF >conftest.h
15205 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15206 echo "obj-m := conftest.o" >build
/Makefile
15208 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15209 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15210 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15211 (eval $ac_try) 2>&5
15213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15214 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15215 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15216 (eval $ac_try) 2>&5
15218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15219 test $ac_status = 0; }; }; then :
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15222 $as_echo "yes" >&6; }
15224 $as_echo "#define HAVE_REQ_OP_SECURE_ERASE 1" >>confdefs.h
15228 $as_echo "$as_me: failed program was:" >&5
15229 sed 's/^/| /' conftest.
$ac_ext >&5
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15232 $as_echo "no" >&6; }
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_FLUSH is defined" >&5
15243 $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
15246 cat confdefs.h
- <<_ACEOF >conftest.c
15249 #include <linux/blk_types.h>
15255 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
15265 cat - <<_ACEOF >conftest.h
15270 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15271 echo "obj-m := conftest.o" >build
/Makefile
15273 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15274 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15275 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15276 (eval $ac_try) 2>&5
15278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15279 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15281 (eval $ac_try) 2>&5
15283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15284 test $ac_status = 0; }; }; then :
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15287 $as_echo "yes" >&6; }
15289 $as_echo "#define HAVE_REQ_OP_FLUSH 1" >>confdefs.h
15293 $as_echo "$as_me: failed program was:" >&5
15294 sed 's/^/| /' conftest.
$ac_ext >&5
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15297 $as_echo "no" >&6; }
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_opf is defined" >&5
15308 $as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
15311 cat confdefs.h
- <<_ACEOF >conftest.c
15314 #include <linux/bio.h>
15320 struct bio bio __attribute__ ((unused));
15331 cat - <<_ACEOF >conftest.h
15336 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15337 echo "obj-m := conftest.o" >build
/Makefile
15339 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15340 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15342 (eval $ac_try) 2>&5
15344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15345 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15347 (eval $ac_try) 2>&5
15349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15350 test $ac_status = 0; }; }; then :
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15353 $as_echo "yes" >&6; }
15355 $as_echo "#define HAVE_BIO_BI_OPF 1" >>confdefs.h
15359 $as_echo "$as_me: failed program was:" >&5
15360 sed 's/^/| /' conftest.
$ac_ext >&5
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15363 $as_echo "no" >&6; }
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5
15374 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
15377 cat confdefs.h
- <<_ACEOF >conftest.c
15380 #include <linux/bio.h>
15382 void wanted_end_io(struct bio *bio) { return; }
15384 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
15399 cat - <<_ACEOF >conftest.h
15404 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15405 echo "obj-m := conftest.o" >build
/Makefile
15407 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15408 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15410 (eval $ac_try) 2>&5
15412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15413 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15414 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15415 (eval $ac_try) 2>&5
15417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15418 test $ac_status = 0; }; }; then :
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15421 $as_echo "yes" >&6; }
15423 $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h
15427 $as_echo "$as_me: failed program was:" >&5
15428 sed 's/^/| /' conftest.
$ac_ext >&5
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15431 $as_echo "no" >&6; }
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5
15442 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
15445 cat confdefs.h
- <<_ACEOF >conftest.c
15448 #include <linux/bio.h>
15454 int flags __attribute__ ((unused));
15455 flags = BIO_RW_BARRIER;
15465 cat - <<_ACEOF >conftest.h
15470 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15471 echo "obj-m := conftest.o" >build
/Makefile
15473 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15474 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15476 (eval $ac_try) 2>&5
15478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15479 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15481 (eval $ac_try) 2>&5
15483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15484 test $ac_status = 0; }; }; then :
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15487 $as_echo "yes" >&6; }
15489 $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h
15493 $as_echo "$as_me: failed program was:" >&5
15494 sed 's/^/| /' conftest.
$ac_ext >&5
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15497 $as_echo "no" >&6; }
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5
15508 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
15511 cat confdefs.h
- <<_ACEOF >conftest.c
15514 #include <linux/bio.h>
15520 int flags __attribute__ ((unused));
15521 flags = BIO_RW_DISCARD;
15531 cat - <<_ACEOF >conftest.h
15536 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15537 echo "obj-m := conftest.o" >build
/Makefile
15539 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15540 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15542 (eval $ac_try) 2>&5
15544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15545 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15547 (eval $ac_try) 2>&5
15549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15550 test $ac_status = 0; }; }; then :
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15553 $as_echo "yes" >&6; }
15555 $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h
15559 $as_echo "$as_me: failed program was:" >&5
15560 sed 's/^/| /' conftest.
$ac_ext >&5
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15563 $as_echo "no" >&6; }
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
15574 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
15575 tmp_flags
="$EXTRA_KCFLAGS"
15576 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15579 cat confdefs.h
- <<_ACEOF >conftest.c
15582 #include <linux/blkdev.h>
15588 struct request_queue *q = NULL;
15589 (void) blk_queue_flush(q, REQ_FLUSH);
15599 cat - <<_ACEOF >conftest.h
15604 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15605 echo "obj-m := conftest.o" >build
/Makefile
15607 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15608 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15609 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15610 (eval $ac_try) 2>&5
15612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15613 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15614 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15615 (eval $ac_try) 2>&5
15617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15618 test $ac_status = 0; }; }; then :
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15621 $as_echo "yes" >&6; }
15623 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
15626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
15627 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
15630 cat confdefs.h
- <<_ACEOF >conftest.c
15633 #include <linux/module.h>
15634 #include <linux/blkdev.h>
15636 MODULE_LICENSE("$ZFS_META_LICENSE");
15642 struct request_queue *q = NULL;
15643 (void) blk_queue_flush(q, REQ_FLUSH);
15653 cat - <<_ACEOF >conftest.h
15658 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15659 echo "obj-m := conftest.o" >build
/Makefile
15661 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15662 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15664 (eval $ac_try) 2>&5
15666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15667 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15669 (eval $ac_try) 2>&5
15671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15672 test $ac_status = 0; }; }; then :
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15675 $as_echo "no" >&6; }
15678 $as_echo "$as_me: failed program was:" >&5
15679 sed 's/^/| /' conftest.
$ac_ext >&5
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15682 $as_echo "yes" >&6; }
15684 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
15695 $as_echo "$as_me: failed program was:" >&5
15696 sed 's/^/| /' conftest.
$ac_ext >&5
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15699 $as_echo "no" >&6; }
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() exists" >&5
15709 $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
15712 cat confdefs.h
- <<_ACEOF >conftest.c
15715 #include <linux/kernel.h>
15716 #include <linux/blkdev.h>
15723 struct request_queue *q = NULL;
15724 blk_queue_write_cache(q, true, true);
15734 cat - <<_ACEOF >conftest.h
15739 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15740 echo "obj-m := conftest.o" >build
/Makefile
15742 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15743 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15745 (eval $ac_try) 2>&5
15747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15748 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15750 (eval $ac_try) 2>&5
15752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15753 test $ac_status = 0; }; }; then :
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15756 $as_echo "yes" >&6; }
15758 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE 1" >>confdefs.h
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() is GPL-only" >&5
15762 $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
15765 cat confdefs.h
- <<_ACEOF >conftest.c
15768 #include <linux/kernel.h>
15769 #include <linux/module.h>
15770 #include <linux/blkdev.h>
15772 MODULE_LICENSE("$ZFS_META_LICENSE");
15778 struct request_queue *q = NULL;
15779 blk_queue_write_cache(q, true, true);
15789 cat - <<_ACEOF >conftest.h
15794 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15795 echo "obj-m := conftest.o" >build
/Makefile
15797 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15798 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15800 (eval $ac_try) 2>&5
15802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15803 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15805 (eval $ac_try) 2>&5
15807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15808 test $ac_status = 0; }; }; then :
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15811 $as_echo "no" >&6; }
15814 $as_echo "$as_me: failed program was:" >&5
15815 sed 's/^/| /' conftest.
$ac_ext >&5
15817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15818 $as_echo "yes" >&6; }
15820 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1" >>confdefs.h
15831 $as_echo "$as_me: failed program was:" >&5
15832 sed 's/^/| /' conftest.
$ac_ext >&5
15834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15835 $as_echo "no" >&6; }
15844 EXTRA_KCFLAGS
="$tmp_flags"
15847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
15848 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
15849 tmp_flags
="$EXTRA_KCFLAGS"
15850 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15853 cat confdefs.h
- <<_ACEOF >conftest.c
15856 #include <linux/blkdev.h>
15862 struct request_queue *q = NULL;
15863 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
15873 cat - <<_ACEOF >conftest.h
15878 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15879 echo "obj-m := conftest.o" >build
/Makefile
15881 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15882 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15884 (eval $ac_try) 2>&5
15886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15887 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15888 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15889 (eval $ac_try) 2>&5
15891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15892 test $ac_status = 0; }; }; then :
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15895 $as_echo "yes" >&6; }
15897 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
15901 $as_echo "$as_me: failed program was:" >&5
15902 sed 's/^/| /' conftest.
$ac_ext >&5
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15905 $as_echo "no" >&6; }
15913 EXTRA_KCFLAGS
="$tmp_flags"
15916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
15917 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
15918 tmp_flags
="$EXTRA_KCFLAGS"
15919 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15922 cat confdefs.h
- <<_ACEOF >conftest.c
15925 #include <linux/blkdev.h>
15931 struct request_queue *q = NULL;
15932 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
15942 cat - <<_ACEOF >conftest.h
15947 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15948 echo "obj-m := conftest.o" >build
/Makefile
15950 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15951 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15952 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15953 (eval $ac_try) 2>&5
15955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15956 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15958 (eval $ac_try) 2>&5
15960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15961 test $ac_status = 0; }; }; then :
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15964 $as_echo "yes" >&6; }
15966 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
15970 $as_echo "$as_me: failed program was:" >&5
15971 sed 's/^/| /' conftest.
$ac_ext >&5
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15974 $as_echo "no" >&6; }
15982 EXTRA_KCFLAGS
="$tmp_flags"
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the BIO_RW_UNPLUG enum is available" >&5
15986 $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
15987 tmp_flags
="$EXTRA_KCFLAGS"
15988 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15991 cat confdefs.h
- <<_ACEOF >conftest.c
15994 #include <linux/blkdev.h>
16000 extern enum bio_rw_flags rw;
16002 rw = BIO_RW_UNPLUG;
16012 cat - <<_ACEOF >conftest.h
16017 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16018 echo "obj-m := conftest.o" >build
/Makefile
16020 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16021 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16023 (eval $ac_try) 2>&5
16025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16026 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16028 (eval $ac_try) 2>&5
16030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16031 test $ac_status = 0; }; }; then :
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16034 $as_echo "yes" >&6; }
16036 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1" >>confdefs.h
16040 $as_echo "$as_me: failed program was:" >&5
16041 sed 's/^/| /' conftest.
$ac_ext >&5
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16044 $as_echo "no" >&6; }
16052 EXTRA_KCFLAGS
="$tmp_flags"
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct blk_plug is available" >&5
16056 $as_echo_n "checking whether struct blk_plug is available... " >&6; }
16057 tmp_flags
="$EXTRA_KCFLAGS"
16058 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16061 cat confdefs.h
- <<_ACEOF >conftest.c
16064 #include <linux/blkdev.h>
16070 struct blk_plug plug;
16072 blk_start_plug(&plug);
16073 blk_finish_plug(&plug);
16083 cat - <<_ACEOF >conftest.h
16088 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16089 echo "obj-m := conftest.o" >build
/Makefile
16091 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16092 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16094 (eval $ac_try) 2>&5
16096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16097 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16099 (eval $ac_try) 2>&5
16101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16102 test $ac_status = 0; }; }; then :
16104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16105 $as_echo "yes" >&6; }
16107 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1" >>confdefs.h
16111 $as_echo "$as_me: failed program was:" >&5
16112 sed 's/^/| /' conftest.
$ac_ext >&5
16114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16115 $as_echo "no" >&6; }
16123 EXTRA_KCFLAGS
="$tmp_flags"
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
16127 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
16128 tmp_flags
="$EXTRA_KCFLAGS"
16129 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16132 cat confdefs.h
- <<_ACEOF >conftest.c
16135 #include <linux/blkdev.h>
16141 struct gendisk *disk = NULL;
16142 (void) get_disk_ro(disk);
16152 cat - <<_ACEOF >conftest.h
16157 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16158 echo "obj-m := conftest.o" >build
/Makefile
16160 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16161 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16162 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16163 (eval $ac_try) 2>&5
16165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16166 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16168 (eval $ac_try) 2>&5
16170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16171 test $ac_status = 0; }; }; then :
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16174 $as_echo "yes" >&6; }
16176 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
16180 $as_echo "$as_me: failed program was:" >&5
16181 sed 's/^/| /' conftest.
$ac_ext >&5
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16184 $as_echo "no" >&6; }
16192 EXTRA_KCFLAGS
="$tmp_flags"
16194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
16195 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
16199 cat confdefs.h
- <<_ACEOF >conftest.c
16202 #include <linux/genhd.h>
16208 get_gendisk(0, NULL);
16218 cat - <<_ACEOF >conftest.h
16223 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16224 echo "obj-m := conftest.o" >build
/Makefile
16226 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16227 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16229 (eval $ac_try) 2>&5
16231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16232 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16233 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16234 (eval $ac_try) 2>&5
16236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16237 test $ac_status = 0; }; }; then :
16240 $as_echo "$as_me: failed program was:" >&5
16241 sed 's/^/| /' conftest.
$ac_ext >&5
16249 if test $rc -ne 0; then :
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16252 $as_echo "no" >&6; }
16255 if test "x$enable_linux_builtin" != xyes
; then
16257 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
16258 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
16260 if test $rc -ne 0; then
16262 for file in block
/genhd.c
; do
16263 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
16264 "$LINUX/$file" 2>/dev
/null
16266 if test $rc -eq 0; then
16271 if test $export -eq 0; then :
16281 if test $rc -ne 0; then :
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16284 $as_echo "no" >&6; }
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16289 $as_echo "yes" >&6; }
16291 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_op_attrs is available" >&5
16300 $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
16303 cat confdefs.h
- <<_ACEOF >conftest.c
16306 #include <linux/blk_types.h>
16312 struct bio *bio __attribute__ ((unused)) = NULL;
16314 bio_set_op_attrs(bio, 0, 0);
16324 cat - <<_ACEOF >conftest.h
16329 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16330 echo "obj-m := conftest.o" >build
/Makefile
16332 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16333 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16335 (eval $ac_try) 2>&5
16337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16338 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16340 (eval $ac_try) 2>&5
16342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16343 test $ac_status = 0; }; }; then :
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16346 $as_echo "yes" >&6; }
16348 $as_echo "#define HAVE_BIO_SET_OP_ATTRS 1" >>confdefs.h
16352 $as_echo "$as_me: failed program was:" >&5
16353 sed 's/^/| /' conftest.
$ac_ext >&5
16355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16356 $as_echo "no" >&6; }
16366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_readlink is global" >&5
16367 $as_echo_n "checking whether generic_readlink is global... " >&6; }
16370 cat confdefs.h
- <<_ACEOF >conftest.c
16373 #include <linux/fs.h>
16379 int i __attribute__ ((unused));
16381 i = generic_readlink(NULL, NULL, 0);
16391 cat - <<_ACEOF >conftest.h
16396 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16397 echo "obj-m := conftest.o" >build
/Makefile
16399 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16400 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16402 (eval $ac_try) 2>&5
16404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16405 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16406 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16407 (eval $ac_try) 2>&5
16409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16410 test $ac_status = 0; }; }; then :
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16413 $as_echo "yes" >&6; }
16415 $as_echo "#define HAVE_GENERIC_READLINK 1" >>confdefs.h
16419 $as_echo "$as_me: failed program was:" >&5
16420 sed 's/^/| /' conftest.
$ac_ext >&5
16422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16423 $as_echo "no" >&6; }
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
16434 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
16437 cat confdefs.h
- <<_ACEOF >conftest.c
16440 #include <linux/blkdev.h>
16446 struct queue_limits ql __attribute__ ((unused));
16448 ql.discard_granularity = 0;
16458 cat - <<_ACEOF >conftest.h
16463 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16464 echo "obj-m := conftest.o" >build
/Makefile
16466 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16467 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16468 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16469 (eval $ac_try) 2>&5
16471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16472 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16474 (eval $ac_try) 2>&5
16476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16477 test $ac_status = 0; }; }; then :
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16480 $as_echo "yes" >&6; }
16482 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
16486 $as_echo "$as_me: failed program was:" >&5
16487 sed 's/^/| /' conftest.
$ac_ext >&5
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16490 $as_echo "no" >&6; }
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5
16501 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
16504 cat confdefs.h
- <<_ACEOF >conftest.c
16507 #include <linux/fs.h>
16508 #include <linux/xattr.h>
16510 const struct xattr_handler xattr_test_handler = {
16516 const struct xattr_handler *xattr_handlers[] = {
16517 &xattr_test_handler,
16520 const struct super_block sb __attribute__ ((unused)) = {
16521 .s_xattr = xattr_handlers,
16537 cat - <<_ACEOF >conftest.h
16542 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16543 echo "obj-m := conftest.o" >build
/Makefile
16545 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16546 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16548 (eval $ac_try) 2>&5
16550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16551 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16552 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16553 (eval $ac_try) 2>&5
16555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16556 test $ac_status = 0; }; }; then :
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16559 $as_echo "yes" >&6; }
16561 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
16565 $as_echo "$as_me: failed program was:" >&5
16566 sed 's/^/| /' conftest.
$ac_ext >&5
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16569 $as_echo "no" >&6; }
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler has name" >&5
16580 $as_echo_n "checking whether xattr_handler has name... " >&6; }
16583 cat confdefs.h
- <<_ACEOF >conftest.c
16586 #include <linux/xattr.h>
16588 static const struct xattr_handler
16589 xops __attribute__ ((unused)) = {
16590 .name = XATTR_NAME_POSIX_ACL_ACCESS,
16606 cat - <<_ACEOF >conftest.h
16611 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16612 echo "obj-m := conftest.o" >build
/Makefile
16614 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16615 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16616 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16617 (eval $ac_try) 2>&5
16619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16620 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16622 (eval $ac_try) 2>&5
16624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16625 test $ac_status = 0; }; }; then :
16627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16628 $as_echo "yes" >&6; }
16630 $as_echo "#define HAVE_XATTR_HANDLER_NAME 1" >>confdefs.h
16634 $as_echo "$as_me: failed program was:" >&5
16635 sed 's/^/| /' conftest.
$ac_ext >&5
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16638 $as_echo "no" >&6; }
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants both dentry and inode" >&5
16649 $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
16652 cat confdefs.h
- <<_ACEOF >conftest.c
16655 #include <linux/xattr.h>
16657 int get(const struct xattr_handler *handler,
16658 struct dentry *dentry, struct inode *inode,
16659 const char *name, void *buffer, size_t size) { return 0; }
16660 static const struct xattr_handler
16661 xops __attribute__ ((unused)) = {
16678 cat - <<_ACEOF >conftest.h
16683 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16684 echo "obj-m := conftest.o" >build
/Makefile
16686 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16687 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16689 (eval $ac_try) 2>&5
16691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16692 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16694 (eval $ac_try) 2>&5
16696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16697 test $ac_status = 0; }; }; then :
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16700 $as_echo "yes" >&6; }
16702 $as_echo "#define HAVE_XATTR_GET_DENTRY_INODE 1" >>confdefs.h
16706 $as_echo "$as_me: failed program was:" >&5
16707 sed 's/^/| /' conftest.
$ac_ext >&5
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5
16710 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
16713 cat confdefs.h
- <<_ACEOF >conftest.c
16716 #include <linux/xattr.h>
16718 int get(const struct xattr_handler *handler,
16719 struct dentry *dentry, const char *name,
16720 void *buffer, size_t size) { return 0; }
16721 static const struct xattr_handler
16722 xops __attribute__ ((unused)) = {
16739 cat - <<_ACEOF >conftest.h
16744 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16745 echo "obj-m := conftest.o" >build
/Makefile
16747 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16748 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16750 (eval $ac_try) 2>&5
16752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16753 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16754 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16755 (eval $ac_try) 2>&5
16757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16758 test $ac_status = 0; }; }; then :
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16761 $as_echo "yes" >&6; }
16763 $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h
16767 $as_echo "$as_me: failed program was:" >&5
16768 sed 's/^/| /' conftest.
$ac_ext >&5
16770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16771 $as_echo "no" >&6; }
16772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
16773 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
16776 cat confdefs.h
- <<_ACEOF >conftest.c
16779 #include <linux/xattr.h>
16781 int get(struct dentry *dentry, const char *name,
16782 void *buffer, size_t size, int handler_flags)
16784 static const struct xattr_handler
16785 xops __attribute__ ((unused)) = {
16802 cat - <<_ACEOF >conftest.h
16807 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16808 echo "obj-m := conftest.o" >build
/Makefile
16810 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16811 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16813 (eval $ac_try) 2>&5
16815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16816 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16818 (eval $ac_try) 2>&5
16820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16821 test $ac_status = 0; }; }; then :
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16824 $as_echo "yes" >&6; }
16826 $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h
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: no" >&5
16834 $as_echo "no" >&6; }
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5
16836 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
16839 cat confdefs.h
- <<_ACEOF >conftest.c
16842 #include <linux/xattr.h>
16844 int get(struct inode *ip, const char *name,
16845 void *buffer, size_t size) { return 0; }
16846 static const struct xattr_handler
16847 xops __attribute__ ((unused)) = {
16864 cat - <<_ACEOF >conftest.h
16869 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16870 echo "obj-m := conftest.o" >build
/Makefile
16872 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16873 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16875 (eval $ac_try) 2>&5
16877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16878 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16880 (eval $ac_try) 2>&5
16882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16883 test $ac_status = 0; }; }; then :
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16886 $as_echo "yes" >&6; }
16888 $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h
16892 $as_echo "$as_me: failed program was:" >&5
16893 sed 's/^/| /' conftest.
$ac_ext >&5
16895 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
16926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants both dentry and inode" >&5
16927 $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
16930 cat confdefs.h
- <<_ACEOF >conftest.c
16933 #include <linux/xattr.h>
16935 int set(const struct xattr_handler *handler,
16936 struct dentry *dentry, struct inode *inode,
16937 const char *name, const void *buffer,
16938 size_t size, int flags)
16940 static const struct xattr_handler
16941 xops __attribute__ ((unused)) = {
16958 cat - <<_ACEOF >conftest.h
16963 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16964 echo "obj-m := conftest.o" >build
/Makefile
16966 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16967 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16968 { { eval echo "\"\$as_me\":${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_XATTR_SET_DENTRY_INODE 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}: checking whether xattr_handler->set() wants xattr_handler" >&5
16990 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
16993 cat confdefs.h
- <<_ACEOF >conftest.c
16996 #include <linux/xattr.h>
16998 int set(const struct xattr_handler *handler,
16999 struct dentry *dentry, const char *name,
17000 const void *buffer, size_t size, int flags)
17002 static const struct xattr_handler
17003 xops __attribute__ ((unused)) = {
17020 cat - <<_ACEOF >conftest.h
17025 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17026 echo "obj-m := conftest.o" >build
/Makefile
17028 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17029 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17031 (eval $ac_try) 2>&5
17033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17034 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17036 (eval $ac_try) 2>&5
17038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17039 test $ac_status = 0; }; }; then :
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17042 $as_echo "yes" >&6; }
17044 $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h
17048 $as_echo "$as_me: failed program was:" >&5
17049 sed 's/^/| /' conftest.
$ac_ext >&5
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17052 $as_echo "no" >&6; }
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
17054 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
17057 cat confdefs.h
- <<_ACEOF >conftest.c
17060 #include <linux/xattr.h>
17062 int set(struct dentry *dentry, const char *name,
17063 const void *buffer, size_t size, int flags,
17064 int handler_flags) { return 0; }
17065 static const struct xattr_handler
17066 xops __attribute__ ((unused)) = {
17083 cat - <<_ACEOF >conftest.h
17088 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17089 echo "obj-m := conftest.o" >build
/Makefile
17091 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17092 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17094 (eval $ac_try) 2>&5
17096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17097 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17099 (eval $ac_try) 2>&5
17101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17102 test $ac_status = 0; }; }; then :
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17105 $as_echo "yes" >&6; }
17107 $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h
17111 $as_echo "$as_me: failed program was:" >&5
17112 sed 's/^/| /' conftest.
$ac_ext >&5
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17115 $as_echo "no" >&6; }
17116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5
17117 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
17120 cat confdefs.h
- <<_ACEOF >conftest.c
17123 #include <linux/xattr.h>
17125 int set(struct inode *ip, const char *name,
17126 const void *buffer, size_t size, int flags)
17128 static const struct xattr_handler
17129 xops __attribute__ ((unused)) = {
17146 cat - <<_ACEOF >conftest.h
17151 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17152 echo "obj-m := conftest.o" >build
/Makefile
17154 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17155 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17156 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17157 (eval $ac_try) 2>&5
17159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17160 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17161 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17162 (eval $ac_try) 2>&5
17164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17165 test $ac_status = 0; }; }; then :
17167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17168 $as_echo "yes" >&6; }
17170 $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h
17174 $as_echo "$as_me: failed program was:" >&5
17175 sed 's/^/| /' conftest.
$ac_ext >&5
17177 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5
17209 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
17212 cat confdefs.h
- <<_ACEOF >conftest.c
17215 #include <linux/xattr.h>
17217 bool list(struct dentry *dentry) { return 0; }
17218 static const struct xattr_handler
17219 xops __attribute__ ((unused)) = {
17236 cat - <<_ACEOF >conftest.h
17241 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17242 echo "obj-m := conftest.o" >build
/Makefile
17244 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17245 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17247 (eval $ac_try) 2>&5
17249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17250 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17252 (eval $ac_try) 2>&5
17254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17255 test $ac_status = 0; }; }; then :
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17258 $as_echo "yes" >&6; }
17260 $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h
17264 $as_echo "$as_me: failed program was:" >&5
17265 sed 's/^/| /' conftest.
$ac_ext >&5
17267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17268 $as_echo "no" >&6; }
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5
17270 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
17273 cat confdefs.h
- <<_ACEOF >conftest.c
17276 #include <linux/xattr.h>
17278 size_t list(const struct xattr_handler *handler,
17279 struct dentry *dentry, char *list, size_t list_size,
17280 const char *name, size_t name_len) { return 0; }
17281 static const struct xattr_handler
17282 xops __attribute__ ((unused)) = {
17299 cat - <<_ACEOF >conftest.h
17304 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17305 echo "obj-m := conftest.o" >build
/Makefile
17307 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17308 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17310 (eval $ac_try) 2>&5
17312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17313 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17315 (eval $ac_try) 2>&5
17317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17318 test $ac_status = 0; }; }; then :
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17321 $as_echo "yes" >&6; }
17323 $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h
17327 $as_echo "$as_me: failed program was:" >&5
17328 sed 's/^/| /' conftest.
$ac_ext >&5
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17331 $as_echo "no" >&6; }
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
17333 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
17336 cat confdefs.h
- <<_ACEOF >conftest.c
17339 #include <linux/xattr.h>
17341 size_t list(struct dentry *dentry,
17342 char *list, size_t list_size,
17343 const char *name, size_t name_len,
17344 int handler_flags) { return 0; }
17345 static const struct xattr_handler
17346 xops __attribute__ ((unused)) = {
17363 cat - <<_ACEOF >conftest.h
17368 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17369 echo "obj-m := conftest.o" >build
/Makefile
17371 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17372 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17373 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17374 (eval $ac_try) 2>&5
17376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17377 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17378 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17379 (eval $ac_try) 2>&5
17381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17382 test $ac_status = 0; }; }; then :
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17385 $as_echo "yes" >&6; }
17387 $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h
17391 $as_echo "$as_me: failed program was:" >&5
17392 sed 's/^/| /' conftest.
$ac_ext >&5
17394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17395 $as_echo "no" >&6; }
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5
17397 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
17400 cat confdefs.h
- <<_ACEOF >conftest.c
17403 #include <linux/xattr.h>
17405 size_t list(struct inode *ip, char *lst,
17406 size_t list_size, const char *name,
17407 size_t name_len) { return 0; }
17408 static const struct xattr_handler
17409 xops __attribute__ ((unused)) = {
17426 cat - <<_ACEOF >conftest.h
17431 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17432 echo "obj-m := conftest.o" >build
/Makefile
17434 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17435 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17437 (eval $ac_try) 2>&5
17439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17440 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17442 (eval $ac_try) 2>&5
17444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17445 test $ac_status = 0; }; }; then :
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17448 $as_echo "yes" >&6; }
17450 $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h
17454 $as_echo "$as_me: failed program was:" >&5
17455 sed 's/^/| /' conftest.
$ac_ext >&5
17457 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
17489 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
17492 cat confdefs.h
- <<_ACEOF >conftest.c
17495 #include <linux/fs.h>
17501 struct inode *ip = NULL;
17502 (void) inode_owner_or_capable(ip);
17512 cat - <<_ACEOF >conftest.h
17517 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17518 echo "obj-m := conftest.o" >build
/Makefile
17520 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17521 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17522 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17523 (eval $ac_try) 2>&5
17525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17526 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17528 (eval $ac_try) 2>&5
17530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17531 test $ac_status = 0; }; }; then :
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17534 $as_echo "yes" >&6; }
17536 $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
17540 $as_echo "$as_me: failed program was:" >&5
17541 sed 's/^/| /' conftest.
$ac_ext >&5
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17544 $as_echo "no" >&6; }
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
17546 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
17549 cat confdefs.h
- <<_ACEOF >conftest.c
17552 #include <linux/fs.h>
17553 #include <linux/sched.h>
17559 struct inode *ip = NULL;
17560 (void) is_owner_or_cap(ip);
17570 cat - <<_ACEOF >conftest.h
17575 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17576 echo "obj-m := conftest.o" >build
/Makefile
17578 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17579 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17580 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17581 (eval $ac_try) 2>&5
17583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17584 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17586 (eval $ac_try) 2>&5
17588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17589 test $ac_status = 0; }; }; then :
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17592 $as_echo "yes" >&6; }
17594 $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
17598 $as_echo "$as_me: failed program was:" >&5
17599 sed 's/^/| /' conftest.
$ac_ext >&5
17601 as_fn_error $?
"no - Please file a bug report at
17602 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
17620 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
17623 cat confdefs.h
- <<_ACEOF >conftest.c
17626 #include <linux/cred.h>
17627 #include <linux/fs.h>
17628 #include <linux/posix_acl_xattr.h>
17634 posix_acl_from_xattr(&init_user_ns, NULL, 0);
17644 cat - <<_ACEOF >conftest.h
17649 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17650 echo "obj-m := conftest.o" >build
/Makefile
17652 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17653 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17655 (eval $ac_try) 2>&5
17657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17658 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17660 (eval $ac_try) 2>&5
17662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17663 test $ac_status = 0; }; }; then :
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17666 $as_echo "yes" >&6; }
17668 $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
17672 $as_echo "$as_me: failed program was:" >&5
17673 sed 's/^/| /' conftest.
$ac_ext >&5
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17676 $as_echo "no" >&6; }
17686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
17687 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
17690 cat confdefs.h
- <<_ACEOF >conftest.c
17693 #include <linux/cred.h>
17694 #include <linux/fs.h>
17695 #include <linux/posix_acl.h>
17701 struct posix_acl* tmp = posix_acl_alloc(1, 0);
17702 posix_acl_release(tmp);
17712 cat - <<_ACEOF >conftest.h
17717 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17718 echo "obj-m := conftest.o" >build
/Makefile
17720 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17721 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17723 (eval $ac_try) 2>&5
17725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17726 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17728 (eval $ac_try) 2>&5
17730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17731 test $ac_status = 0; }; }; then :
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17734 $as_echo "yes" >&6; }
17736 $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
17740 $as_echo "$as_me: failed program was:" >&5
17741 sed 's/^/| /' conftest.
$ac_ext >&5
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17744 $as_echo "no" >&6; }
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
17754 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
17757 cat confdefs.h
- <<_ACEOF >conftest.c
17760 #include <linux/cred.h>
17761 #include <linux/fs.h>
17762 #include <linux/posix_acl.h>
17764 MODULE_LICENSE("$ZFS_META_LICENSE");
17770 struct posix_acl* tmp = posix_acl_alloc(1, 0);
17771 posix_acl_release(tmp);
17781 cat - <<_ACEOF >conftest.h
17786 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17787 echo "obj-m := conftest.o" >build
/Makefile
17789 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17790 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17792 (eval $ac_try) 2>&5
17794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17795 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17797 (eval $ac_try) 2>&5
17799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17800 test $ac_status = 0; }; }; then :
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17803 $as_echo "no" >&6; }
17806 $as_echo "$as_me: failed program was:" >&5
17807 sed 's/^/| /' conftest.
$ac_ext >&5
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17810 $as_echo "yes" >&6; }
17812 $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_cached_acl() is usable" >&5
17824 $as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
17827 cat confdefs.h
- <<_ACEOF >conftest.c
17830 #include <linux/module.h>
17831 #include <linux/cred.h>
17832 #include <linux/fs.h>
17833 #include <linux/posix_acl.h>
17835 MODULE_LICENSE("$ZFS_META_LICENSE");
17841 struct inode *ip = NULL;
17842 struct posix_acl *acl = posix_acl_alloc(1, 0);
17843 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
17844 forget_cached_acl(ip, ACL_TYPE_ACCESS);
17854 cat - <<_ACEOF >conftest.h
17859 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17860 echo "obj-m := conftest.o" >build
/Makefile
17862 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17863 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17865 (eval $ac_try) 2>&5
17867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17868 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17870 (eval $ac_try) 2>&5
17872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17873 test $ac_status = 0; }; }; then :
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17876 $as_echo "yes" >&6; }
17878 $as_echo "#define HAVE_SET_CACHED_ACL_USABLE 1" >>confdefs.h
17882 $as_echo "$as_me: failed program was:" >&5
17883 sed 's/^/| /' conftest.
$ac_ext >&5
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17886 $as_echo "no" >&6; }
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
17897 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
17900 cat confdefs.h
- <<_ACEOF >conftest.c
17903 #include <linux/fs.h>
17904 #include <linux/posix_acl.h>
17910 posix_acl_chmod(NULL, 0, 0)
17920 cat - <<_ACEOF >conftest.h
17925 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17926 echo "obj-m := conftest.o" >build
/Makefile
17928 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17929 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17930 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17931 (eval $ac_try) 2>&5
17933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17934 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17936 (eval $ac_try) 2>&5
17938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17939 test $ac_status = 0; }; }; then :
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17942 $as_echo "yes" >&6; }
17944 $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
17948 $as_echo "$as_me: failed program was:" >&5
17949 sed 's/^/| /' conftest.
$ac_ext >&5
17951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17952 $as_echo "no" >&6; }
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
17962 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
17965 cat confdefs.h
- <<_ACEOF >conftest.c
17968 #include <linux/fs.h>
17969 #include <linux/posix_acl.h>
17975 __posix_acl_chmod(NULL, 0, 0)
17985 cat - <<_ACEOF >conftest.h
17990 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17991 echo "obj-m := conftest.o" >build
/Makefile
17993 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17994 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17996 (eval $ac_try) 2>&5
17998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17999 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18001 (eval $ac_try) 2>&5
18003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18004 test $ac_status = 0; }; }; then :
18006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18007 $as_echo "yes" >&6; }
18009 $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
18013 $as_echo "$as_me: failed program was:" >&5
18014 sed 's/^/| /' conftest.
$ac_ext >&5
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18017 $as_echo "no" >&6; }
18027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
18028 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
18031 cat confdefs.h
- <<_ACEOF >conftest.c
18034 #include <linux/fs.h>
18035 #include <linux/posix_acl.h>
18042 posix_acl_equiv_mode(NULL,&tmp);
18052 cat - <<_ACEOF >conftest.h
18057 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18058 echo "obj-m := conftest.o" >build
/Makefile
18060 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18061 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18063 (eval $ac_try) 2>&5
18065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18066 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18067 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18068 (eval $ac_try) 2>&5
18070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18071 test $ac_status = 0; }; }; then :
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18074 $as_echo "yes" >&6; }
18076 $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
18080 $as_echo "$as_me: failed program was:" >&5
18081 sed 's/^/| /' conftest.
$ac_ext >&5
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18084 $as_echo "no" >&6; }
18094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5
18095 $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
18098 cat confdefs.h
- <<_ACEOF >conftest.c
18101 #include <linux/fs.h>
18102 #include <linux/posix_acl.h>
18108 struct user_namespace *user_ns = NULL;
18109 const struct posix_acl *acl = NULL;
18112 error = posix_acl_valid(user_ns, acl);
18122 cat - <<_ACEOF >conftest.h
18127 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18128 echo "obj-m := conftest.o" >build
/Makefile
18130 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18131 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18132 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18133 (eval $ac_try) 2>&5
18135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18136 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18138 (eval $ac_try) 2>&5
18140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18141 test $ac_status = 0; }; }; then :
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18144 $as_echo "yes" >&6; }
18146 $as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h
18150 $as_echo "$as_me: failed program was:" >&5
18151 sed 's/^/| /' conftest.
$ac_ext >&5
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18154 $as_echo "no" >&6; }
18164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
18165 $as_echo_n "checking whether iops->permission() exists... " >&6; }
18168 cat confdefs.h
- <<_ACEOF >conftest.c
18171 #include <linux/fs.h>
18173 int permission_fn(struct inode *inode, int mask) { return 0; }
18175 static const struct inode_operations
18176 iops __attribute__ ((unused)) = {
18177 .permission = permission_fn,
18193 cat - <<_ACEOF >conftest.h
18198 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18199 echo "obj-m := conftest.o" >build
/Makefile
18201 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18202 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18204 (eval $ac_try) 2>&5
18206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18207 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18209 (eval $ac_try) 2>&5
18211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18212 test $ac_status = 0; }; }; then :
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18215 $as_echo "yes" >&6; }
18217 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
18221 $as_echo "$as_me: failed program was:" >&5
18222 sed 's/^/| /' conftest.
$ac_ext >&5
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18225 $as_echo "no" >&6; }
18235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
18236 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
18239 cat confdefs.h
- <<_ACEOF >conftest.c
18242 #include <linux/fs.h>
18244 int permission_fn(struct inode *inode, int mask,
18245 struct nameidata *nd) { return 0; }
18247 static const struct inode_operations
18248 iops __attribute__ ((unused)) = {
18249 .permission = permission_fn,
18265 cat - <<_ACEOF >conftest.h
18270 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18271 echo "obj-m := conftest.o" >build
/Makefile
18273 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18274 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18275 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18276 (eval $ac_try) 2>&5
18278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18279 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18281 (eval $ac_try) 2>&5
18283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18284 test $ac_status = 0; }; }; then :
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18287 $as_echo "yes" >&6; }
18289 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
18292 $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
18296 $as_echo "$as_me: failed program was:" >&5
18297 sed 's/^/| /' conftest.
$ac_ext >&5
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18300 $as_echo "no" >&6; }
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
18311 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
18314 cat confdefs.h
- <<_ACEOF >conftest.c
18317 #include <linux/fs.h>
18319 int check_acl_fn(struct inode *inode, int mask) { return 0; }
18321 static const struct inode_operations
18322 iops __attribute__ ((unused)) = {
18323 .check_acl = check_acl_fn,
18339 cat - <<_ACEOF >conftest.h
18344 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18345 echo "obj-m := conftest.o" >build
/Makefile
18347 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18348 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18350 (eval $ac_try) 2>&5
18352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18353 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18354 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18355 (eval $ac_try) 2>&5
18357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18358 test $ac_status = 0; }; }; then :
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18361 $as_echo "yes" >&6; }
18363 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
18367 $as_echo "$as_me: failed program was:" >&5
18368 sed 's/^/| /' conftest.
$ac_ext >&5
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18371 $as_echo "no" >&6; }
18381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
18382 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
18385 cat confdefs.h
- <<_ACEOF >conftest.c
18388 #include <linux/fs.h>
18390 int check_acl_fn(struct inode *inode, int mask,
18391 unsigned int flags) { return 0; }
18393 static const struct inode_operations
18394 iops __attribute__ ((unused)) = {
18395 .check_acl = check_acl_fn,
18411 cat - <<_ACEOF >conftest.h
18416 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18417 echo "obj-m := conftest.o" >build
/Makefile
18419 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18420 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18422 (eval $ac_try) 2>&5
18424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18425 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18427 (eval $ac_try) 2>&5
18429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18430 test $ac_status = 0; }; }; then :
18432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18433 $as_echo "yes" >&6; }
18435 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
18438 $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
18442 $as_echo "$as_me: failed program was:" >&5
18443 sed 's/^/| /' conftest.
$ac_ext >&5
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18446 $as_echo "no" >&6; }
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
18457 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
18460 cat confdefs.h
- <<_ACEOF >conftest.c
18463 #include <linux/fs.h>
18465 struct posix_acl *get_acl_fn(struct inode *inode, int type)
18468 static const struct inode_operations
18469 iops __attribute__ ((unused)) = {
18470 .get_acl = get_acl_fn,
18486 cat - <<_ACEOF >conftest.h
18491 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18492 echo "obj-m := conftest.o" >build
/Makefile
18494 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18495 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18497 (eval $ac_try) 2>&5
18499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18500 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18502 (eval $ac_try) 2>&5
18504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18505 test $ac_status = 0; }; }; then :
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18508 $as_echo "yes" >&6; }
18510 $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
18514 $as_echo "$as_me: failed program was:" >&5
18515 sed 's/^/| /' conftest.
$ac_ext >&5
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18518 $as_echo "no" >&6; }
18528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->set_acl() exists" >&5
18529 $as_echo_n "checking whether iops->set_acl() exists... " >&6; }
18532 cat confdefs.h
- <<_ACEOF >conftest.c
18535 #include <linux/fs.h>
18537 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
18540 static const struct inode_operations
18541 iops __attribute__ ((unused)) = {
18542 .set_acl = set_acl_fn,
18558 cat - <<_ACEOF >conftest.h
18563 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18564 echo "obj-m := conftest.o" >build
/Makefile
18566 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18567 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18569 (eval $ac_try) 2>&5
18571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18572 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18574 (eval $ac_try) 2>&5
18576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18577 test $ac_status = 0; }; }; then :
18579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18580 $as_echo "yes" >&6; }
18582 $as_echo "#define HAVE_SET_ACL 1" >>confdefs.h
18586 $as_echo "$as_me: failed program was:" >&5
18587 sed 's/^/| /' conftest.
$ac_ext >&5
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18590 $as_echo "no" >&6; }
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uncached_acl_sentinel() exists" >&5
18601 $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
18604 cat confdefs.h
- <<_ACEOF >conftest.c
18607 #include <linux/fs.h>
18613 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
18623 cat - <<_ACEOF >conftest.h
18628 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18629 echo "obj-m := conftest.o" >build
/Makefile
18631 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18632 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18634 (eval $ac_try) 2>&5
18636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18637 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18639 (eval $ac_try) 2>&5
18641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18642 test $ac_status = 0; }; }; then :
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18645 $as_echo "yes" >&6; }
18647 $as_echo "#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1" >>confdefs.h
18651 $as_echo "$as_me: failed program was:" >&5
18652 sed 's/^/| /' conftest.
$ac_ext >&5
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18655 $as_echo "no" >&6; }
18665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
18666 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
18670 cat confdefs.h
- <<_ACEOF >conftest.c
18673 #include <linux/fs.h>
18675 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
18676 static struct super_operations sops __attribute__ ((unused)) = {
18677 .show_options = show_options,
18693 cat - <<_ACEOF >conftest.h
18698 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18699 echo "obj-m := conftest.o" >build
/Makefile
18701 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18702 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18704 (eval $ac_try) 2>&5
18706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18707 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18709 (eval $ac_try) 2>&5
18711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18712 test $ac_status = 0; }; }; then :
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18715 $as_echo "yes" >&6; }
18717 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
18721 $as_echo "$as_me: failed program was:" >&5
18722 sed 's/^/| /' conftest.
$ac_ext >&5
18724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18725 $as_echo "no" >&6; }
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
18736 $as_echo_n "checking whether file_inode() is available... " >&6; }
18739 cat confdefs.h
- <<_ACEOF >conftest.c
18742 #include <linux/fs.h>
18748 struct file *f = NULL;
18759 cat - <<_ACEOF >conftest.h
18764 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18765 echo "obj-m := conftest.o" >build
/Makefile
18767 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18768 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18770 (eval $ac_try) 2>&5
18772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18773 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18775 (eval $ac_try) 2>&5
18777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18778 test $ac_status = 0; }; }; then :
18780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18781 $as_echo "yes" >&6; }
18783 $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
18787 $as_echo "$as_me: failed program was:" >&5
18788 sed 's/^/| /' conftest.
$ac_ext >&5
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18791 $as_echo "no" >&6; }
18801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
18802 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
18806 cat confdefs.h
- <<_ACEOF >conftest.c
18809 #include <linux/fs.h>
18811 int test_fsync(struct file *f, struct dentry *dentry, int x)
18814 static const struct file_operations
18815 fops __attribute__ ((unused)) = {
18816 .fsync = test_fsync,
18832 cat - <<_ACEOF >conftest.h
18837 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18838 echo "obj-m := conftest.o" >build
/Makefile
18840 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18841 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18843 (eval $ac_try) 2>&5
18845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18846 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18847 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18848 (eval $ac_try) 2>&5
18850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18851 test $ac_status = 0; }; }; then :
18853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
18854 $as_echo "dentry" >&6; }
18856 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
18860 $as_echo "$as_me: failed program was:" >&5
18861 sed 's/^/| /' conftest.
$ac_ext >&5
18874 cat confdefs.h
- <<_ACEOF >conftest.c
18877 #include <linux/fs.h>
18879 int test_fsync(struct file *f, int x) { return 0; }
18881 static const struct file_operations
18882 fops __attribute__ ((unused)) = {
18883 .fsync = test_fsync,
18899 cat - <<_ACEOF >conftest.h
18904 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18905 echo "obj-m := conftest.o" >build
/Makefile
18907 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18908 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18910 (eval $ac_try) 2>&5
18912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18913 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18914 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18915 (eval $ac_try) 2>&5
18917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18918 test $ac_status = 0; }; }; then :
18920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
18921 $as_echo "no dentry" >&6; }
18923 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
18927 $as_echo "$as_me: failed program was:" >&5
18928 sed 's/^/| /' conftest.
$ac_ext >&5
18941 cat confdefs.h
- <<_ACEOF >conftest.c
18944 #include <linux/fs.h>
18946 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
18949 static const struct file_operations
18950 fops __attribute__ ((unused)) = {
18951 .fsync = test_fsync,
18967 cat - <<_ACEOF >conftest.h
18972 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18973 echo "obj-m := conftest.o" >build
/Makefile
18975 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18976 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18977 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18978 (eval $ac_try) 2>&5
18980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18981 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18982 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18983 (eval $ac_try) 2>&5
18985 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18986 test $ac_status = 0; }; }; then :
18988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
18989 $as_echo "range" >&6; }
18991 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
18995 $as_echo "$as_me: failed program was:" >&5
18996 sed 's/^/| /' conftest.
$ac_ext >&5
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
19009 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
19012 cat confdefs.h
- <<_ACEOF >conftest.c
19015 #include <linux/fs.h>
19016 void evict_inode (struct inode * t) { return; }
19017 static struct super_operations sops __attribute__ ((unused)) = {
19018 .evict_inode = evict_inode,
19034 cat - <<_ACEOF >conftest.h
19039 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19040 echo "obj-m := conftest.o" >build
/Makefile
19042 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19043 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19045 (eval $ac_try) 2>&5
19047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19048 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19049 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19050 (eval $ac_try) 2>&5
19052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19053 test $ac_status = 0; }; }; then :
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19056 $as_echo "yes" >&6; }
19058 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
19062 $as_echo "$as_me: failed program was:" >&5
19063 sed 's/^/| /' conftest.
$ac_ext >&5
19065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19066 $as_echo "no" >&6; }
19076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
19077 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
19080 cat confdefs.h
- <<_ACEOF >conftest.c
19083 #include <linux/fs.h>
19085 void dirty_inode(struct inode *a, int b) { return; }
19087 static const struct super_operations
19088 sops __attribute__ ((unused)) = {
19089 .dirty_inode = dirty_inode,
19105 cat - <<_ACEOF >conftest.h
19110 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19111 echo "obj-m := conftest.o" >build
/Makefile
19113 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19114 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19116 (eval $ac_try) 2>&5
19118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19119 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19121 (eval $ac_try) 2>&5
19123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19124 test $ac_status = 0; }; }; then :
19126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19127 $as_echo "yes" >&6; }
19129 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
19133 $as_echo "$as_me: failed program was:" >&5
19134 sed 's/^/| /' conftest.
$ac_ext >&5
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19137 $as_echo "no" >&6; }
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
19148 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
19151 cat confdefs.h
- <<_ACEOF >conftest.c
19154 #include <linux/fs.h>
19156 int nr_cached_objects(struct super_block *sb) { return 0; }
19158 static const struct super_operations
19159 sops __attribute__ ((unused)) = {
19160 .nr_cached_objects = nr_cached_objects,
19176 cat - <<_ACEOF >conftest.h
19181 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19182 echo "obj-m := conftest.o" >build
/Makefile
19184 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19185 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19187 (eval $ac_try) 2>&5
19189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19190 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19192 (eval $ac_try) 2>&5
19194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19195 test $ac_status = 0; }; }; then :
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19198 $as_echo "yes" >&6; }
19200 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
19204 $as_echo "$as_me: failed program was:" >&5
19205 sed 's/^/| /' conftest.
$ac_ext >&5
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19208 $as_echo "no" >&6; }
19218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
19219 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
19222 cat confdefs.h
- <<_ACEOF >conftest.c
19225 #include <linux/fs.h>
19227 void free_cached_objects(struct super_block *sb, int x)
19230 static const struct super_operations
19231 sops __attribute__ ((unused)) = {
19232 .free_cached_objects = free_cached_objects,
19248 cat - <<_ACEOF >conftest.h
19253 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19254 echo "obj-m := conftest.o" >build
/Makefile
19256 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19257 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19259 (eval $ac_try) 2>&5
19261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19262 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19264 (eval $ac_try) 2>&5
19266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19267 test $ac_status = 0; }; }; then :
19269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19270 $as_echo "yes" >&6; }
19272 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
19276 $as_echo "$as_me: failed program was:" >&5
19277 sed 's/^/| /' conftest.
$ac_ext >&5
19279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19280 $as_echo "no" >&6; }
19291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
19292 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
19295 cat confdefs.h
- <<_ACEOF >conftest.c
19298 #include <linux/fs.h>
19300 long test_fallocate(struct file *file, int mode,
19301 loff_t offset, loff_t len) { return 0; }
19303 static const struct file_operations
19304 fops __attribute__ ((unused)) = {
19305 .fallocate = test_fallocate,
19321 cat - <<_ACEOF >conftest.h
19326 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19327 echo "obj-m := conftest.o" >build
/Makefile
19329 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19330 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19332 (eval $ac_try) 2>&5
19334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19335 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19337 (eval $ac_try) 2>&5
19339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19340 test $ac_status = 0; }; }; then :
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19343 $as_echo "yes" >&6; }
19345 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
19349 $as_echo "$as_me: failed program was:" >&5
19350 sed 's/^/| /' conftest.
$ac_ext >&5
19352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19353 $as_echo "no" >&6; }
19363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
19364 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
19367 cat confdefs.h
- <<_ACEOF >conftest.c
19370 #include <linux/fs.h>
19372 long test_fallocate(struct inode *inode, int mode,
19373 loff_t offset, loff_t len) { return 0; }
19375 static const struct inode_operations
19376 fops __attribute__ ((unused)) = {
19377 .fallocate = test_fallocate,
19393 cat - <<_ACEOF >conftest.h
19398 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19399 echo "obj-m := conftest.o" >build
/Makefile
19401 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19402 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19403 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19404 (eval $ac_try) 2>&5
19406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19407 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19408 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19409 (eval $ac_try) 2>&5
19411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19412 test $ac_status = 0; }; }; then :
19414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19415 $as_echo "yes" >&6; }
19417 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
19421 $as_echo "$as_me: failed program was:" >&5
19422 sed 's/^/| /' conftest.
$ac_ext >&5
19424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19425 $as_echo "no" >&6; }
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->aio_fsync() exists" >&5
19437 $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
19440 cat confdefs.h
- <<_ACEOF >conftest.c
19443 #include <linux/fs.h>
19445 static const struct file_operations
19446 fops __attribute__ ((unused)) = {
19463 cat - <<_ACEOF >conftest.h
19468 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19469 echo "obj-m := conftest.o" >build
/Makefile
19471 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19472 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19474 (eval $ac_try) 2>&5
19476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19477 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19479 (eval $ac_try) 2>&5
19481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19482 test $ac_status = 0; }; }; then :
19484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19485 $as_echo "yes" >&6; }
19487 $as_echo "#define HAVE_FILE_AIO_FSYNC 1" >>confdefs.h
19491 $as_echo "$as_me: failed program was:" >&5
19492 sed 's/^/| /' conftest.
$ac_ext >&5
19494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19495 $as_echo "no" >&6; }
19505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
19506 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
19509 cat confdefs.h
- <<_ACEOF >conftest.c
19512 #include <linux/fs.h>
19514 int mkdir(struct inode *inode, struct dentry *dentry,
19515 umode_t umode) { return 0; }
19517 static const struct inode_operations
19518 iops __attribute__ ((unused)) = {
19535 cat - <<_ACEOF >conftest.h
19540 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19541 echo "obj-m := conftest.o" >build
/Makefile
19543 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19544 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19546 (eval $ac_try) 2>&5
19548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19549 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19550 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19551 (eval $ac_try) 2>&5
19553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19554 test $ac_status = 0; }; }; then :
19556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19557 $as_echo "yes" >&6; }
19559 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
19563 $as_echo "$as_me: failed program was:" >&5
19564 sed 's/^/| /' conftest.
$ac_ext >&5
19566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19567 $as_echo "no" >&6; }
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5
19578 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
19581 cat confdefs.h
- <<_ACEOF >conftest.c
19584 #include <linux/fs.h>
19586 struct dentry *inode_lookup(struct inode *inode,
19587 struct dentry *dentry, struct nameidata *nidata)
19590 static const struct inode_operations iops
19591 __attribute__ ((unused)) = {
19592 .lookup = inode_lookup,
19608 cat - <<_ACEOF >conftest.h
19613 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19614 echo "obj-m := conftest.o" >build
/Makefile
19616 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19617 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19618 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19619 (eval $ac_try) 2>&5
19621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19622 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19624 (eval $ac_try) 2>&5
19626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19627 test $ac_status = 0; }; }; then :
19629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19630 $as_echo "yes" >&6; }
19632 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
19636 $as_echo "$as_me: failed program was:" >&5
19637 sed 's/^/| /' conftest.
$ac_ext >&5
19639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19640 $as_echo "no" >&6; }
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5
19651 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
19654 cat confdefs.h
- <<_ACEOF >conftest.c
19657 #include <linux/fs.h>
19659 #ifdef HAVE_MKDIR_UMODE_T
19660 int inode_create(struct inode *inode ,struct dentry *dentry,
19661 umode_t umode, struct nameidata *nidata) { return 0; }
19663 int inode_create(struct inode *inode,struct dentry *dentry,
19664 int umode, struct nameidata * nidata) { return 0; }
19667 static const struct inode_operations
19668 iops __attribute__ ((unused)) = {
19669 .create = inode_create,
19685 cat - <<_ACEOF >conftest.h
19690 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19691 echo "obj-m := conftest.o" >build
/Makefile
19693 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19694 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19695 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19696 (eval $ac_try) 2>&5
19698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19699 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19700 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19701 (eval $ac_try) 2>&5
19703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19704 test $ac_status = 0; }; }; then :
19706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19707 $as_echo "yes" >&6; }
19709 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
19713 $as_echo "$as_me: failed program was:" >&5
19714 sed 's/^/| /' conftest.
$ac_ext >&5
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19717 $as_echo "no" >&6; }
19727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5
19728 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
19731 cat confdefs.h
- <<_ACEOF >conftest.c
19734 #include <linux/fs.h>
19735 const char *get_link(struct dentry *de, struct inode *ip,
19736 struct delayed_call *done) { return "symlink"; }
19737 static struct inode_operations
19738 iops __attribute__ ((unused)) = {
19739 .get_link = get_link,
19755 cat - <<_ACEOF >conftest.h
19760 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19761 echo "obj-m := conftest.o" >build
/Makefile
19763 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19764 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19766 (eval $ac_try) 2>&5
19768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19769 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19770 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19771 (eval $ac_try) 2>&5
19773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19774 test $ac_status = 0; }; }; then :
19776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19777 $as_echo "yes" >&6; }
19779 $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h
19783 $as_echo "$as_me: failed program was:" >&5
19784 sed 's/^/| /' conftest.
$ac_ext >&5
19786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19787 $as_echo "no" >&6; }
19788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5
19789 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
19792 cat confdefs.h
- <<_ACEOF >conftest.c
19795 #include <linux/fs.h>
19796 const char *get_link(struct dentry *de, struct
19797 inode *ip, void **cookie) { return "symlink"; }
19798 static struct inode_operations
19799 iops __attribute__ ((unused)) = {
19800 .get_link = get_link,
19816 cat - <<_ACEOF >conftest.h
19821 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19822 echo "obj-m := conftest.o" >build
/Makefile
19824 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19825 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19827 (eval $ac_try) 2>&5
19829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19830 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19831 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19832 (eval $ac_try) 2>&5
19834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19835 test $ac_status = 0; }; }; then :
19837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19838 $as_echo "yes" >&6; }
19840 $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h
19844 $as_echo "$as_me: failed program was:" >&5
19845 sed 's/^/| /' conftest.
$ac_ext >&5
19847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19848 $as_echo "no" >&6; }
19850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5
19851 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
19854 cat confdefs.h
- <<_ACEOF >conftest.c
19857 #include <linux/fs.h>
19858 const char *follow_link(struct dentry *de,
19859 void **cookie) { return "symlink"; }
19860 static struct inode_operations
19861 iops __attribute__ ((unused)) = {
19862 .follow_link = follow_link,
19878 cat - <<_ACEOF >conftest.h
19883 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19884 echo "obj-m := conftest.o" >build
/Makefile
19886 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19887 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19888 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19889 (eval $ac_try) 2>&5
19891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19892 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19893 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19894 (eval $ac_try) 2>&5
19896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19897 test $ac_status = 0; }; }; then :
19899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19900 $as_echo "yes" >&6; }
19902 $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h
19906 $as_echo "$as_me: failed program was:" >&5
19907 sed 's/^/| /' conftest.
$ac_ext >&5
19909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19910 $as_echo "no" >&6; }
19911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5
19912 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
19915 cat confdefs.h
- <<_ACEOF >conftest.c
19918 #include <linux/fs.h>
19919 void *follow_link(struct dentry *de, struct
19920 nameidata *nd) { return (void *)NULL; }
19921 static struct inode_operations
19922 iops __attribute__ ((unused)) = {
19923 .follow_link = follow_link,
19939 cat - <<_ACEOF >conftest.h
19944 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19945 echo "obj-m := conftest.o" >build
/Makefile
19947 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19948 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19950 (eval $ac_try) 2>&5
19952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19953 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19955 (eval $ac_try) 2>&5
19957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19958 test $ac_status = 0; }; }; then :
19960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19961 $as_echo "yes" >&6; }
19963 $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h
19967 $as_echo "$as_me: failed program was:" >&5
19968 sed 's/^/| /' conftest.
$ac_ext >&5
19970 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
20004 cat confdefs.h
- <<_ACEOF >conftest.c
20007 #if !defined(HAVE_GET_LINK_DELAYED)
20008 #error "Expecting get_link() delayed done"
20024 cat - <<_ACEOF >conftest.h
20029 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20030 echo "obj-m := conftest.o" >build
/Makefile
20032 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20033 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20035 (eval $ac_try) 2>&5
20037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20038 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20040 (eval $ac_try) 2>&5
20042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20043 test $ac_status = 0; }; }; then :
20046 $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h
20050 $as_echo "$as_me: failed program was:" >&5
20051 sed 's/^/| /' conftest.
$ac_ext >&5
20053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5
20054 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
20057 cat confdefs.h
- <<_ACEOF >conftest.c
20060 #include <linux/fs.h>
20061 void put_link(struct inode *ip, void *cookie)
20063 static struct inode_operations
20064 iops __attribute__ ((unused)) = {
20065 .put_link = put_link,
20081 cat - <<_ACEOF >conftest.h
20086 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20087 echo "obj-m := conftest.o" >build
/Makefile
20089 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20090 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20092 (eval $ac_try) 2>&5
20094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20095 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20097 (eval $ac_try) 2>&5
20099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20100 test $ac_status = 0; }; }; then :
20102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20103 $as_echo "yes" >&6; }
20105 $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h
20109 $as_echo "$as_me: failed program was:" >&5
20110 sed 's/^/| /' conftest.
$ac_ext >&5
20112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20113 $as_echo "no" >&6; }
20114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5
20115 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
20118 cat confdefs.h
- <<_ACEOF >conftest.c
20121 #include <linux/fs.h>
20122 void put_link(struct dentry *de, struct
20123 nameidata *nd, void *ptr) { return; }
20124 static struct inode_operations
20125 iops __attribute__ ((unused)) = {
20126 .put_link = put_link,
20142 cat - <<_ACEOF >conftest.h
20147 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20148 echo "obj-m := conftest.o" >build
/Makefile
20150 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20151 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20153 (eval $ac_try) 2>&5
20155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20156 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20157 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20158 (eval $ac_try) 2>&5
20160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20161 test $ac_status = 0; }; }; then :
20163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20164 $as_echo "yes" >&6; }
20166 $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h
20170 $as_echo "$as_me: failed program was:" >&5
20171 sed 's/^/| /' conftest.
$ac_ext >&5
20173 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
20197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
20198 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
20201 cat confdefs.h
- <<_ACEOF >conftest.c
20204 #include <linux/fs.h>
20205 void truncate_range(struct inode *inode, loff_t start,
20206 loff_t end) { return; }
20207 static struct inode_operations iops __attribute__ ((unused)) = {
20208 .truncate_range = truncate_range,
20224 cat - <<_ACEOF >conftest.h
20229 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20230 echo "obj-m := conftest.o" >build
/Makefile
20232 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20233 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20235 (eval $ac_try) 2>&5
20237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20238 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20240 (eval $ac_try) 2>&5
20242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20243 test $ac_status = 0; }; }; then :
20245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20246 $as_echo "yes" >&6; }
20248 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
20252 $as_echo "$as_me: failed program was:" >&5
20253 sed 's/^/| /' conftest.
$ac_ext >&5
20255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20256 $as_echo "no" >&6; }
20266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
20267 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
20270 cat confdefs.h
- <<_ACEOF >conftest.c
20273 #include <linux/dcache.h>
20274 struct vfsmount *d_automount(struct path *p) { return NULL; }
20275 struct dentry_operations dops __attribute__ ((unused)) = {
20276 .d_automount = d_automount,
20292 cat - <<_ACEOF >conftest.h
20297 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20298 echo "obj-m := conftest.o" >build
/Makefile
20300 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20301 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20303 (eval $ac_try) 2>&5
20305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20306 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20307 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20308 (eval $ac_try) 2>&5
20310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20311 test $ac_status = 0; }; }; then :
20313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20314 $as_echo "yes" >&6; }
20316 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
20320 $as_echo "$as_me: failed program was:" >&5
20321 sed 's/^/| /' conftest.
$ac_ext >&5
20323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20324 $as_echo "no" >&6; }
20334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
20335 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
20338 cat confdefs.h
- <<_ACEOF >conftest.c
20341 #include <linux/exportfs.h>
20342 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
20343 struct inode *parent) { return 0; }
20344 static struct export_operations eops __attribute__ ((unused))={
20345 .encode_fh = encode_fh,
20361 cat - <<_ACEOF >conftest.h
20366 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20367 echo "obj-m := conftest.o" >build
/Makefile
20369 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20370 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20372 (eval $ac_try) 2>&5
20374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20375 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20376 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20377 (eval $ac_try) 2>&5
20379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20380 test $ac_status = 0; }; }; then :
20382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20383 $as_echo "yes" >&6; }
20385 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
20389 $as_echo "$as_me: failed program was:" >&5
20390 sed 's/^/| /' conftest.
$ac_ext >&5
20392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20393 $as_echo "no" >&6; }
20403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
20404 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
20407 cat confdefs.h
- <<_ACEOF >conftest.c
20410 #include <linux/exportfs.h>
20411 int commit_metadata(struct inode *inode) { return 0; }
20412 static struct export_operations eops __attribute__ ((unused))={
20413 .commit_metadata = commit_metadata,
20429 cat - <<_ACEOF >conftest.h
20434 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20435 echo "obj-m := conftest.o" >build
/Makefile
20437 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20438 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20440 (eval $ac_try) 2>&5
20442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20443 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20445 (eval $ac_try) 2>&5
20447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20448 test $ac_status = 0; }; }; then :
20450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20451 $as_echo "yes" >&6; }
20453 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
20457 $as_echo "$as_me: failed program was:" >&5
20458 sed 's/^/| /' conftest.
$ac_ext >&5
20460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20461 $as_echo "no" >&6; }
20470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
20471 $as_echo_n "checking whether clear_inode() is available... " >&6; }
20475 cat confdefs.h
- <<_ACEOF >conftest.c
20478 #include <linux/fs.h>
20494 cat - <<_ACEOF >conftest.h
20499 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20500 echo "obj-m := conftest.o" >build
/Makefile
20502 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20503 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20505 (eval $ac_try) 2>&5
20507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20508 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20510 (eval $ac_try) 2>&5
20512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20513 test $ac_status = 0; }; }; then :
20516 $as_echo "$as_me: failed program was:" >&5
20517 sed 's/^/| /' conftest.
$ac_ext >&5
20525 if test $rc -ne 0; then :
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20528 $as_echo "no" >&6; }
20531 if test "x$enable_linux_builtin" != xyes
; then
20533 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
20534 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
20536 if test $rc -ne 0; then
20538 for file in fs
/inode.c
; do
20539 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
20540 "$LINUX/$file" 2>/dev
/null
20542 if test $rc -eq 0; then
20547 if test $export -eq 0; then :
20557 if test $rc -ne 0; then :
20559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20560 $as_echo "no" >&6; }
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20565 $as_echo "yes" >&6; }
20567 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
20574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setattr_prepare() is available" >&5
20575 $as_echo_n "checking whether setattr_prepare() is available... " >&6; }
20579 cat confdefs.h
- <<_ACEOF >conftest.c
20582 #include <linux/fs.h>
20588 struct dentry *dentry = NULL;
20589 struct iattr *attr = NULL;
20592 error = setattr_prepare(dentry, attr);
20602 cat - <<_ACEOF >conftest.h
20607 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20608 echo "obj-m := conftest.o" >build
/Makefile
20610 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20611 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20613 (eval $ac_try) 2>&5
20615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20616 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20618 (eval $ac_try) 2>&5
20620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20621 test $ac_status = 0; }; }; then :
20624 $as_echo "$as_me: failed program was:" >&5
20625 sed 's/^/| /' conftest.
$ac_ext >&5
20633 if test $rc -ne 0; then :
20635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20636 $as_echo "no" >&6; }
20639 if test "x$enable_linux_builtin" != xyes
; then
20641 grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \
20642 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
20644 if test $rc -ne 0; then
20646 for file in fs
/attr.c
; do
20647 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
20648 "$LINUX/$file" 2>/dev
/null
20650 if test $rc -eq 0; then
20655 if test $export -eq 0; then :
20665 if test $rc -ne 0; then :
20667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20668 $as_echo "no" >&6; }
20672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20673 $as_echo "yes" >&6; }
20675 $as_echo "#define HAVE_SETATTR_PREPARE 1" >>confdefs.h
20682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
20683 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
20687 cat confdefs.h
- <<_ACEOF >conftest.c
20690 #include <linux/fs.h>
20696 insert_inode_locked(NULL);
20706 cat - <<_ACEOF >conftest.h
20711 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20712 echo "obj-m := conftest.o" >build
/Makefile
20714 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20715 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20717 (eval $ac_try) 2>&5
20719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20720 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20722 (eval $ac_try) 2>&5
20724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20725 test $ac_status = 0; }; }; then :
20728 $as_echo "$as_me: failed program was:" >&5
20729 sed 's/^/| /' conftest.
$ac_ext >&5
20737 if test $rc -ne 0; then :
20739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20740 $as_echo "no" >&6; }
20743 if test "x$enable_linux_builtin" != xyes
; then
20745 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
20746 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
20748 if test $rc -ne 0; then
20750 for file in fs
/inode.c
; do
20751 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
20752 "$LINUX/$file" 2>/dev
/null
20754 if test $rc -eq 0; then
20759 if test $export -eq 0; then :
20769 if test $rc -ne 0; then :
20771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20772 $as_echo "no" >&6; }
20776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20777 $as_echo "yes" >&6; }
20779 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
20786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
20787 $as_echo_n "checking whether d_make_root() is available... " >&6; }
20791 cat confdefs.h
- <<_ACEOF >conftest.c
20794 #include <linux/dcache.h>
20810 cat - <<_ACEOF >conftest.h
20815 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20816 echo "obj-m := conftest.o" >build
/Makefile
20818 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20819 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20821 (eval $ac_try) 2>&5
20823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20824 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20826 (eval $ac_try) 2>&5
20828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20829 test $ac_status = 0; }; }; then :
20832 $as_echo "$as_me: failed program was:" >&5
20833 sed 's/^/| /' conftest.
$ac_ext >&5
20841 if test $rc -ne 0; then :
20843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20844 $as_echo "no" >&6; }
20847 if test "x$enable_linux_builtin" != xyes
; then
20849 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
20850 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
20852 if test $rc -ne 0; then
20854 for file in fs
/dcache.c
; do
20855 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
20856 "$LINUX/$file" 2>/dev
/null
20858 if test $rc -eq 0; then
20863 if test $export -eq 0; then :
20873 if test $rc -ne 0; then :
20875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20876 $as_echo "no" >&6; }
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20881 $as_echo "yes" >&6; }
20883 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
20890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
20891 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
20895 cat confdefs.h
- <<_ACEOF >conftest.c
20898 #include <linux/dcache.h>
20904 d_obtain_alias(NULL);
20914 cat - <<_ACEOF >conftest.h
20919 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20920 echo "obj-m := conftest.o" >build
/Makefile
20922 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20923 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20925 (eval $ac_try) 2>&5
20927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20928 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20930 (eval $ac_try) 2>&5
20932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20933 test $ac_status = 0; }; }; then :
20936 $as_echo "$as_me: failed program was:" >&5
20937 sed 's/^/| /' conftest.
$ac_ext >&5
20945 if test $rc -ne 0; then :
20947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20948 $as_echo "no" >&6; }
20951 if test "x$enable_linux_builtin" != xyes
; then
20953 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
20954 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
20956 if test $rc -ne 0; then
20958 for file in fs
/dcache.c
; do
20959 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
20960 "$LINUX/$file" 2>/dev
/null
20962 if test $rc -eq 0; then
20967 if test $export -eq 0; then :
20977 if test $rc -ne 0; then :
20979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20980 $as_echo "no" >&6; }
20984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20985 $as_echo "yes" >&6; }
20987 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
20994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
20995 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
20999 cat confdefs.h
- <<_ACEOF >conftest.c
21002 #include <linux/dcache.h>
21008 struct inode *ip = NULL;
21009 d_prune_aliases(ip);
21019 cat - <<_ACEOF >conftest.h
21024 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21025 echo "obj-m := conftest.o" >build
/Makefile
21027 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21028 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21030 (eval $ac_try) 2>&5
21032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21033 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21035 (eval $ac_try) 2>&5
21037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21038 test $ac_status = 0; }; }; then :
21041 $as_echo "$as_me: failed program was:" >&5
21042 sed 's/^/| /' conftest.
$ac_ext >&5
21050 if test $rc -ne 0; then :
21052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21053 $as_echo "no" >&6; }
21056 if test "x$enable_linux_builtin" != xyes
; then
21058 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
21059 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21061 if test $rc -ne 0; then
21063 for file in fs
/dcache.c
; do
21064 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
21065 "$LINUX/$file" 2>/dev
/null
21067 if test $rc -eq 0; then
21072 if test $export -eq 0; then :
21082 if test $rc -ne 0; then :
21084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21085 $as_echo "no" >&6; }
21089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21090 $as_echo "yes" >&6; }
21092 $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
21099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
21100 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
21104 cat confdefs.h
- <<_ACEOF >conftest.c
21107 #include <linux/dcache.h>
21113 d_set_d_op(NULL, NULL);
21123 cat - <<_ACEOF >conftest.h
21128 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21129 echo "obj-m := conftest.o" >build
/Makefile
21131 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21132 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21134 (eval $ac_try) 2>&5
21136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21137 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21138 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21139 (eval $ac_try) 2>&5
21141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21142 test $ac_status = 0; }; }; then :
21145 $as_echo "$as_me: failed program was:" >&5
21146 sed 's/^/| /' conftest.
$ac_ext >&5
21154 if test $rc -ne 0; then :
21156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21157 $as_echo "no" >&6; }
21160 if test "x$enable_linux_builtin" != xyes
; then
21162 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
21163 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21165 if test $rc -ne 0; then
21167 for file in fs
/dcache.c
; do
21168 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
21169 "$LINUX/$file" 2>/dev
/null
21171 if test $rc -eq 0; then
21176 if test $export -eq 0; then :
21186 if test $rc -ne 0; then :
21188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21189 $as_echo "no" >&6; }
21193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21194 $as_echo "yes" >&6; }
21196 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
21204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
21205 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
21208 cat confdefs.h
- <<_ACEOF >conftest.c
21211 #include <linux/dcache.h>
21213 int revalidate (struct dentry *dentry,
21214 struct nameidata *nidata) { return 0; }
21216 static const struct dentry_operations
21217 dops __attribute__ ((unused)) = {
21218 .d_revalidate = revalidate,
21234 cat - <<_ACEOF >conftest.h
21239 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21240 echo "obj-m := conftest.o" >build
/Makefile
21242 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21243 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21244 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21245 (eval $ac_try) 2>&5
21247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21248 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21250 (eval $ac_try) 2>&5
21252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21253 test $ac_status = 0; }; }; then :
21255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21256 $as_echo "yes" >&6; }
21258 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
21262 $as_echo "$as_me: failed program was:" >&5
21263 sed 's/^/| /' conftest.
$ac_ext >&5
21265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21266 $as_echo "no" >&6; }
21276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
21277 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
21280 cat confdefs.h
- <<_ACEOF >conftest.c
21283 #include <linux/dcache.h>
21285 const struct dentry_operations test_d_op = {
21286 .d_revalidate = NULL,
21293 struct dentry d __attribute__ ((unused));
21295 d.d_op = &test_d_op;
21305 cat - <<_ACEOF >conftest.h
21310 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21311 echo "obj-m := conftest.o" >build
/Makefile
21313 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21314 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21316 (eval $ac_try) 2>&5
21318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21319 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21321 (eval $ac_try) 2>&5
21323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21324 test $ac_status = 0; }; }; then :
21326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21327 $as_echo "yes" >&6; }
21329 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
21333 $as_echo "$as_me: failed program was:" >&5
21334 sed 's/^/| /' conftest.
$ac_ext >&5
21336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21337 $as_echo "no" >&6; }
21346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5
21347 $as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
21351 cat confdefs.h
- <<_ACEOF >conftest.c
21354 #include <linux/fs.h>
21360 check_disk_size_change(NULL, NULL);
21370 cat - <<_ACEOF >conftest.h
21375 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21376 echo "obj-m := conftest.o" >build
/Makefile
21378 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21379 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21381 (eval $ac_try) 2>&5
21383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21384 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21386 (eval $ac_try) 2>&5
21388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21389 test $ac_status = 0; }; }; then :
21392 $as_echo "$as_me: failed program was:" >&5
21393 sed 's/^/| /' conftest.
$ac_ext >&5
21401 if test $rc -ne 0; then :
21403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21404 $as_echo "no" >&6; }
21407 if test "x$enable_linux_builtin" != xyes
; then
21409 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
21410 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21412 if test $rc -ne 0; then
21414 for file in fs
/block_dev.c
; do
21415 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
21416 "$LINUX/$file" 2>/dev
/null
21418 if test $rc -eq 0; then
21423 if test $export -eq 0; then :
21433 if test $rc -ne 0; then :
21435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21436 $as_echo "no" >&6; }
21440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21441 $as_echo "yes" >&6; }
21443 $as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h
21450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
21451 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
21455 cat confdefs.h
- <<_ACEOF >conftest.c
21458 #include <linux/mm.h>
21464 truncate_setsize(NULL, 0);
21474 cat - <<_ACEOF >conftest.h
21479 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21480 echo "obj-m := conftest.o" >build
/Makefile
21482 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21483 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21484 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21485 (eval $ac_try) 2>&5
21487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21488 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21490 (eval $ac_try) 2>&5
21492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21493 test $ac_status = 0; }; }; then :
21496 $as_echo "$as_me: failed program was:" >&5
21497 sed 's/^/| /' conftest.
$ac_ext >&5
21505 if test $rc -ne 0; then :
21507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21508 $as_echo "no" >&6; }
21511 if test "x$enable_linux_builtin" != xyes
; then
21513 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
21514 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21516 if test $rc -ne 0; then
21518 for file in mm
/truncate.c
; do
21519 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
21520 "$LINUX/$file" 2>/dev
/null
21522 if test $rc -eq 0; then
21527 if test $export -eq 0; then :
21537 if test $rc -ne 0; then :
21539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21540 $as_echo "no" >&6; }
21544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21545 $as_echo "yes" >&6; }
21547 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
21555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
21556 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
21559 cat confdefs.h
- <<_ACEOF >conftest.c
21562 #include <linux/security.h>
21568 struct inode *ip __attribute__ ((unused)) = NULL;
21569 struct inode *dip __attribute__ ((unused)) = NULL;
21570 const struct qstr *str __attribute__ ((unused)) = NULL;
21571 char *name __attribute__ ((unused)) = NULL;
21572 void *value __attribute__ ((unused)) = NULL;
21573 size_t len __attribute__ ((unused)) = 0;
21575 security_inode_init_security(ip, dip, str, &name, &value, &len);
21585 cat - <<_ACEOF >conftest.h
21590 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21591 echo "obj-m := conftest.o" >build
/Makefile
21593 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21594 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21596 (eval $ac_try) 2>&5
21598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21599 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21601 (eval $ac_try) 2>&5
21603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21604 test $ac_status = 0; }; }; then :
21606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21607 $as_echo "yes" >&6; }
21609 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
21613 $as_echo "$as_me: failed program was:" >&5
21614 sed 's/^/| /' conftest.
$ac_ext >&5
21616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21617 $as_echo "no" >&6; }
21627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
21628 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
21631 cat confdefs.h
- <<_ACEOF >conftest.c
21634 #include <linux/security.h>
21640 struct inode *ip __attribute__ ((unused)) = NULL;
21641 struct inode *dip __attribute__ ((unused)) = NULL;
21642 const struct qstr *str __attribute__ ((unused)) = NULL;
21643 initxattrs func __attribute__ ((unused)) = NULL;
21645 security_inode_init_security(ip, dip, str, func, NULL);
21655 cat - <<_ACEOF >conftest.h
21660 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21661 echo "obj-m := conftest.o" >build
/Makefile
21663 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21664 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21666 (eval $ac_try) 2>&5
21668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21669 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21671 (eval $ac_try) 2>&5
21673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21674 test $ac_status = 0; }; }; then :
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21677 $as_echo "yes" >&6; }
21679 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
21683 $as_echo "$as_me: failed program was:" >&5
21684 sed 's/^/| /' conftest.
$ac_ext >&5
21686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21687 $as_echo "no" >&6; }
21696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
21697 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
21701 cat confdefs.h
- <<_ACEOF >conftest.c
21704 #include <linux/fs.h>
21710 mount_nodev(NULL, 0, NULL, NULL);
21720 cat - <<_ACEOF >conftest.h
21725 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21726 echo "obj-m := conftest.o" >build
/Makefile
21728 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21729 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21731 (eval $ac_try) 2>&5
21733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21734 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21736 (eval $ac_try) 2>&5
21738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21739 test $ac_status = 0; }; }; then :
21742 $as_echo "$as_me: failed program was:" >&5
21743 sed 's/^/| /' conftest.
$ac_ext >&5
21751 if test $rc -ne 0; then :
21753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21754 $as_echo "no" >&6; }
21757 if test "x$enable_linux_builtin" != xyes
; then
21759 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
21760 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21762 if test $rc -ne 0; then
21764 for file in fs
/super.c
; do
21765 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
21766 "$LINUX/$file" 2>/dev
/null
21768 if test $rc -eq 0; then
21773 if test $export -eq 0; then :
21783 if test $rc -ne 0; then :
21785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21786 $as_echo "no" >&6; }
21790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21791 $as_echo "yes" >&6; }
21793 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
21801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
21802 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
21805 cat confdefs.h
- <<_ACEOF >conftest.c
21808 #include <linux/fs.h>
21810 int shrink(struct shrinker *s, struct shrink_control *sc)
21813 static const struct super_block
21814 sb __attribute__ ((unused)) = {
21815 .s_shrink.shrink = shrink,
21816 .s_shrink.seeks = DEFAULT_SEEKS,
21817 .s_shrink.batch = 0,
21833 cat - <<_ACEOF >conftest.h
21838 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21839 echo "obj-m := conftest.o" >build
/Makefile
21841 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21842 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21844 (eval $ac_try) 2>&5
21846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21847 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21849 (eval $ac_try) 2>&5
21851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21852 test $ac_status = 0; }; }; then :
21854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21855 $as_echo "yes" >&6; }
21857 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
21862 $as_echo "$as_me: failed program was:" >&5
21863 sed 's/^/| /' conftest.
$ac_ext >&5
21865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21866 $as_echo "no" >&6; }
21876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
21877 $as_echo_n "checking whether shrink_control has nid... " >&6; }
21880 cat confdefs.h
- <<_ACEOF >conftest.c
21883 #include <linux/fs.h>
21889 struct shrink_control sc __attribute__ ((unused));
21890 unsigned long scnidsize __attribute__ ((unused)) =
21901 cat - <<_ACEOF >conftest.h
21906 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21907 echo "obj-m := conftest.o" >build
/Makefile
21909 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21910 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21912 (eval $ac_try) 2>&5
21914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21915 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21916 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21917 (eval $ac_try) 2>&5
21919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21920 test $ac_status = 0; }; }; then :
21922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21923 $as_echo "yes" >&6; }
21925 $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
21929 $as_echo "$as_me: failed program was:" >&5
21930 sed 's/^/| /' conftest.
$ac_ext >&5
21932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21933 $as_echo "no" >&6; }
21943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
21944 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
21947 cat confdefs.h
- <<_ACEOF >conftest.c
21950 #include <linux/fs.h>
21956 struct super_block sb __attribute__ ((unused));
21958 INIT_LIST_HEAD(&sb.s_instances);
21968 cat - <<_ACEOF >conftest.h
21973 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21974 echo "obj-m := conftest.o" >build
/Makefile
21976 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21977 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21979 (eval $ac_try) 2>&5
21981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21982 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21984 (eval $ac_try) 2>&5
21986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21987 test $ac_status = 0; }; }; then :
21989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21990 $as_echo "yes" >&6; }
21992 $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
21996 $as_echo "$as_me: failed program was:" >&5
21997 sed 's/^/| /' conftest.
$ac_ext >&5
21999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22000 $as_echo "no" >&6; }
22009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
22010 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
22013 cat confdefs.h
- <<_ACEOF >conftest.c
22016 #include <linux/fs.h>
22022 struct super_block sb __attribute__ ((unused));
22033 cat - <<_ACEOF >conftest.h
22038 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22039 echo "obj-m := conftest.o" >build
/Makefile
22041 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22042 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22044 (eval $ac_try) 2>&5
22046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22047 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22049 (eval $ac_try) 2>&5
22051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22052 test $ac_status = 0; }; }; then :
22054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22055 $as_echo "yes" >&6; }
22057 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
22061 $as_echo "$as_me: failed program was:" >&5
22062 sed 's/^/| /' conftest.
$ac_ext >&5
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22065 $as_echo "no" >&6; }
22075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
22076 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
22080 cat confdefs.h
- <<_ACEOF >conftest.c
22083 #include <linux/backing-dev.h>
22084 struct backing_dev_info bdi;
22090 char *name = "bdi";
22091 int error __attribute__((unused)) =
22092 bdi_setup_and_register(&bdi, name);
22102 cat - <<_ACEOF >conftest.h
22107 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22108 echo "obj-m := conftest.o" >build
/Makefile
22110 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22111 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22113 (eval $ac_try) 2>&5
22115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22116 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22118 (eval $ac_try) 2>&5
22120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22121 test $ac_status = 0; }; }; then :
22124 $as_echo "$as_me: failed program was:" >&5
22125 sed 's/^/| /' conftest.
$ac_ext >&5
22133 if test $rc -ne 0; then :
22135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22136 $as_echo "no" >&6; }
22137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
22138 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
22142 cat confdefs.h
- <<_ACEOF >conftest.c
22145 #include <linux/backing-dev.h>
22146 struct backing_dev_info bdi;
22152 char *name = "bdi";
22153 unsigned int cap = BDI_CAP_MAP_COPY;
22154 int error __attribute__((unused)) =
22155 bdi_setup_and_register(&bdi, name, cap);
22165 cat - <<_ACEOF >conftest.h
22170 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22171 echo "obj-m := conftest.o" >build
/Makefile
22173 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22174 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22176 (eval $ac_try) 2>&5
22178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22179 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22181 (eval $ac_try) 2>&5
22183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22184 test $ac_status = 0; }; }; then :
22187 $as_echo "$as_me: failed program was:" >&5
22188 sed 's/^/| /' conftest.
$ac_ext >&5
22196 if test $rc -ne 0; then :
22198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22199 $as_echo "no" >&6; }
22202 if test "x$enable_linux_builtin" != xyes
; then
22204 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
22205 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22207 if test $rc -ne 0; then
22209 for file in mm
/backing-dev.c
; do
22210 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
22211 "$LINUX/$file" 2>/dev
/null
22213 if test $rc -eq 0; then
22218 if test $export -eq 0; then :
22228 if test $rc -ne 0; then :
22230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22231 $as_echo "no" >&6; }
22235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22236 $as_echo "yes" >&6; }
22238 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
22246 if test "x$enable_linux_builtin" != xyes
; then
22248 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
22249 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22251 if test $rc -ne 0; then
22253 for file in mm
/backing-dev.c
; do
22254 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
22255 "$LINUX/$file" 2>/dev
/null
22257 if test $rc -eq 0; then
22262 if test $export -eq 0; then :
22272 if test $rc -ne 0; then :
22274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22275 $as_echo "no" >&6; }
22276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
22277 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
22281 cat confdefs.h
- <<_ACEOF >conftest.c
22284 #include <linux/backing-dev.h>
22285 struct backing_dev_info bdi;
22291 char *name = "bdi";
22292 unsigned int cap = BDI_CAP_MAP_COPY;
22293 int error __attribute__((unused)) =
22294 bdi_setup_and_register(&bdi, name, cap);
22304 cat - <<_ACEOF >conftest.h
22309 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22310 echo "obj-m := conftest.o" >build
/Makefile
22312 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22313 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22314 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22315 (eval $ac_try) 2>&5
22317 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22318 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22320 (eval $ac_try) 2>&5
22322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22323 test $ac_status = 0; }; }; then :
22326 $as_echo "$as_me: failed program was:" >&5
22327 sed 's/^/| /' conftest.
$ac_ext >&5
22335 if test $rc -ne 0; then :
22337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22338 $as_echo "no" >&6; }
22341 if test "x$enable_linux_builtin" != xyes
; then
22343 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
22344 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22346 if test $rc -ne 0; then
22348 for file in mm
/backing-dev.c
; do
22349 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
22350 "$LINUX/$file" 2>/dev
/null
22352 if test $rc -eq 0; then
22357 if test $export -eq 0; then :
22367 if test $rc -ne 0; then :
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22370 $as_echo "no" >&6; }
22374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22375 $as_echo "yes" >&6; }
22377 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
22386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22387 $as_echo "yes" >&6; }
22389 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
22397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
22398 $as_echo_n "checking whether set_nlink() is available... " >&6; }
22401 cat confdefs.h
- <<_ACEOF >conftest.c
22404 #include <linux/fs.h>
22411 unsigned int link = 0;
22412 (void) set_nlink(&node, link);
22422 cat - <<_ACEOF >conftest.h
22427 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22428 echo "obj-m := conftest.o" >build
/Makefile
22430 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22431 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22433 (eval $ac_try) 2>&5
22435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22436 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22437 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22438 (eval $ac_try) 2>&5
22440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22441 test $ac_status = 0; }; }; then :
22443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22444 $as_echo "yes" >&6; }
22446 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
22450 $as_echo "$as_me: failed program was:" >&5
22451 sed 's/^/| /' conftest.
$ac_ext >&5
22453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22454 $as_echo "no" >&6; }
22464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
22465 $as_echo_n "checking whether elevator_change() is available... " >&6; }
22466 tmp_flags
="$EXTRA_KCFLAGS"
22467 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
22470 cat confdefs.h
- <<_ACEOF >conftest.c
22473 #include <linux/blkdev.h>
22474 #include <linux/elevator.h>
22481 struct request_queue *q = NULL;
22482 char *elevator = NULL;
22483 ret = elevator_change(q, elevator);
22493 cat - <<_ACEOF >conftest.h
22498 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22499 echo "obj-m := conftest.o" >build
/Makefile
22501 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22502 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22504 (eval $ac_try) 2>&5
22506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22507 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22508 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22509 (eval $ac_try) 2>&5
22511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22512 test $ac_status = 0; }; }; then :
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22515 $as_echo "yes" >&6; }
22517 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
22521 $as_echo "$as_me: failed program was:" >&5
22522 sed 's/^/| /' conftest.
$ac_ext >&5
22524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22525 $as_echo "no" >&6; }
22533 EXTRA_KCFLAGS
="$tmp_flags"
22535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
22536 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
22539 cat confdefs.h
- <<_ACEOF >conftest.c
22542 #include <linux/fs.h>
22548 struct file_system_type *type = NULL;
22549 int (*test)(struct super_block *,void *) = NULL;
22550 int (*set)(struct super_block *,void *) = NULL;
22553 (void) sget(type, test, set, flags, data);
22563 cat - <<_ACEOF >conftest.h
22568 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22569 echo "obj-m := conftest.o" >build
/Makefile
22571 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22572 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22574 (eval $ac_try) 2>&5
22576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22577 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22579 (eval $ac_try) 2>&5
22581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22582 test $ac_status = 0; }; }; then :
22584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22585 $as_echo "yes" >&6; }
22587 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
22591 $as_echo "$as_me: failed program was:" >&5
22592 sed 's/^/| /' conftest.
$ac_ext >&5
22594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22595 $as_echo "no" >&6; }
22604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
22605 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
22609 cat confdefs.h
- <<_ACEOF >conftest.c
22612 #include <linux/fs.h>
22618 struct file *fp __attribute__ ((unused)) = NULL;
22619 struct inode *ip __attribute__ ((unused)) = NULL;
22620 loff_t offset __attribute__ ((unused)) = 0;
22621 loff_t maxsize __attribute__ ((unused)) = 0;
22623 lseek_execute(fp, ip, offset, maxsize);
22633 cat - <<_ACEOF >conftest.h
22638 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22639 echo "obj-m := conftest.o" >build
/Makefile
22641 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22642 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22644 (eval $ac_try) 2>&5
22646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22647 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22649 (eval $ac_try) 2>&5
22651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22652 test $ac_status = 0; }; }; then :
22655 $as_echo "$as_me: failed program was:" >&5
22656 sed 's/^/| /' conftest.
$ac_ext >&5
22664 if test $rc -ne 0; then :
22666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22667 $as_echo "no" >&6; }
22670 if test "x$enable_linux_builtin" != xyes
; then
22672 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
22673 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22675 if test $rc -ne 0; then
22677 for file in fs
/read_write.c
; do
22678 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
22679 "$LINUX/$file" 2>/dev
/null
22681 if test $rc -eq 0; then
22686 if test $export -eq 0; then :
22696 if test $rc -ne 0; then :
22698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22699 $as_echo "no" >&6; }
22703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22704 $as_echo "yes" >&6; }
22706 $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
22714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate_shared() is available" >&5
22715 $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
22718 cat confdefs.h
- <<_ACEOF >conftest.c
22721 #include <linux/fs.h>
22722 int iterate(struct file *filp, struct dir_context * context)
22725 static const struct file_operations fops
22726 __attribute__ ((unused)) = {
22727 .iterate_shared = iterate,
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 :
22764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22765 $as_echo "yes" >&6; }
22767 $as_echo "#define HAVE_VFS_ITERATE_SHARED 1" >>confdefs.h
22771 $as_echo "$as_me: failed program was:" >&5
22772 sed 's/^/| /' conftest.
$ac_ext >&5
22774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22775 $as_echo "no" >&6; }
22777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
22778 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
22781 cat confdefs.h
- <<_ACEOF >conftest.c
22784 #include <linux/fs.h>
22785 int iterate(struct file *filp, struct dir_context * context)
22788 static const struct file_operations fops
22789 __attribute__ ((unused)) = {
22790 .iterate = iterate,
22806 cat - <<_ACEOF >conftest.h
22811 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22812 echo "obj-m := conftest.o" >build
/Makefile
22814 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22815 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22817 (eval $ac_try) 2>&5
22819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22820 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22822 (eval $ac_try) 2>&5
22824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22825 test $ac_status = 0; }; }; then :
22827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22828 $as_echo "yes" >&6; }
22830 $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
22834 $as_echo "$as_me: failed program was:" >&5
22835 sed 's/^/| /' conftest.
$ac_ext >&5
22837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22838 $as_echo "no" >&6; }
22840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
22841 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
22844 cat confdefs.h
- <<_ACEOF >conftest.c
22847 #include <linux/fs.h>
22848 int readdir(struct file *filp, void *entry, filldir_t func)
22851 static const struct file_operations fops
22852 __attribute__ ((unused)) = {
22853 .readdir = readdir,
22869 cat - <<_ACEOF >conftest.h
22874 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22875 echo "obj-m := conftest.o" >build
/Makefile
22877 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22878 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22880 (eval $ac_try) 2>&5
22882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22883 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22884 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22885 (eval $ac_try) 2>&5
22887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22888 test $ac_status = 0; }; }; then :
22890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22891 $as_echo "yes" >&6; }
22893 $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
22897 $as_echo "$as_me: failed program was:" >&5
22898 sed 's/^/| /' conftest.
$ac_ext >&5
22900 as_fn_error $?
"no; file a bug report with ZFSOnLinux" "$LINENO" 5
22923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
22924 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
22927 cat confdefs.h
- <<_ACEOF >conftest.c
22930 #include <linux/fs.h>
22932 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
22934 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
22937 static const struct file_operations
22938 fops __attribute__ ((unused)) = {
22939 .read_iter = test_read,
22940 .write_iter = test_write,
22956 cat - <<_ACEOF >conftest.h
22961 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22962 echo "obj-m := conftest.o" >build
/Makefile
22964 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22965 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22967 (eval $ac_try) 2>&5
22969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22970 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22972 (eval $ac_try) 2>&5
22974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22975 test $ac_status = 0; }; }; then :
22977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22978 $as_echo "yes" >&6; }
22980 $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
22984 $as_echo "$as_me: failed program was:" >&5
22985 sed 's/^/| /' conftest.
$ac_ext >&5
22987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22988 $as_echo "no" >&6; }
22997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5
22998 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
23001 cat confdefs.h
- <<_ACEOF >conftest.c
23004 #include <linux/fs.h>
23011 struct kiocb *iocb = NULL;
23012 struct iov_iter *iov = NULL;
23013 generic_write_checks(iocb, iov);
23023 cat - <<_ACEOF >conftest.h
23028 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23029 echo "obj-m := conftest.o" >build
/Makefile
23031 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23032 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23034 (eval $ac_try) 2>&5
23036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23037 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23039 (eval $ac_try) 2>&5
23041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23042 test $ac_status = 0; }; }; then :
23044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23045 $as_echo "yes" >&6; }
23047 $as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h
23051 $as_echo "$as_me: failed program was:" >&5
23052 sed 's/^/| /' conftest.
$ac_ext >&5
23054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23055 $as_echo "no" >&6; }
23065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5
23066 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
23069 cat confdefs.h
- <<_ACEOF >conftest.c
23072 #include <linux/pagemap.h>
23079 kmap_atomic(&page);
23089 cat - <<_ACEOF >conftest.h
23094 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23095 echo "obj-m := conftest.o" >build
/Makefile
23097 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23098 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23100 (eval $ac_try) 2>&5
23102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23103 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23105 (eval $ac_try) 2>&5
23107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23108 test $ac_status = 0; }; }; then :
23110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23111 $as_echo "yes" >&6; }
23113 $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h
23117 $as_echo "$as_me: failed program was:" >&5
23118 sed 's/^/| /' conftest.
$ac_ext >&5
23120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23121 $as_echo "no" >&6; }
23131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5
23132 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
23135 cat confdefs.h
- <<_ACEOF >conftest.c
23138 #include <linux/namei.h>
23144 struct path *p = NULL;
23145 follow_down_one(p);
23155 cat - <<_ACEOF >conftest.h
23160 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23161 echo "obj-m := conftest.o" >build
/Makefile
23163 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23164 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23165 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23166 (eval $ac_try) 2>&5
23168 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23169 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23170 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23171 (eval $ac_try) 2>&5
23173 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23174 test $ac_status = 0; }; }; then :
23176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23177 $as_echo "yes" >&6; }
23179 $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h
23183 $as_echo "$as_me: failed program was:" >&5
23184 sed 's/^/| /' conftest.
$ac_ext >&5
23186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23187 $as_echo "no" >&6; }
23197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5
23198 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
23201 cat confdefs.h
- <<_ACEOF >conftest.c
23204 #include <linux/blkdev.h>
23206 int make_request(struct request_queue *q, struct bio *bio)
23215 blk_queue_make_request(NULL, &make_request);
23225 cat - <<_ACEOF >conftest.h
23230 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23231 echo "obj-m := conftest.o" >build
/Makefile
23233 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23234 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23236 (eval $ac_try) 2>&5
23238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23239 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23241 (eval $ac_try) 2>&5
23243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23244 test $ac_status = 0; }; }; then :
23246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23247 $as_echo "yes" >&6; }
23249 $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h
23252 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h
23256 $as_echo "$as_me: failed program was:" >&5
23257 sed 's/^/| /' conftest.
$ac_ext >&5
23259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23260 $as_echo "no" >&6; }
23261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5
23262 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
23265 cat confdefs.h
- <<_ACEOF >conftest.c
23268 #include <linux/blkdev.h>
23270 void make_request(struct request_queue *q, struct bio *bio)
23279 blk_queue_make_request(NULL, &make_request);
23289 cat - <<_ACEOF >conftest.h
23294 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23295 echo "obj-m := conftest.o" >build
/Makefile
23297 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23298 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23299 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23300 (eval $ac_try) 2>&5
23302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23303 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23305 (eval $ac_try) 2>&5
23307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23308 test $ac_status = 0; }; }; then :
23310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23311 $as_echo "yes" >&6; }
23313 $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h
23317 $as_echo "$as_me: failed program was:" >&5
23318 sed 's/^/| /' conftest.
$ac_ext >&5
23320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23321 $as_echo "no" >&6; }
23322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5
23323 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
23326 cat confdefs.h
- <<_ACEOF >conftest.c
23329 #include <linux/blkdev.h>
23331 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
23333 return (BLK_QC_T_NONE);
23340 blk_queue_make_request(NULL, &make_request);
23350 cat - <<_ACEOF >conftest.h
23355 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23356 echo "obj-m := conftest.o" >build
/Makefile
23358 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23359 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23360 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23361 (eval $ac_try) 2>&5
23363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23364 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23365 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23366 (eval $ac_try) 2>&5
23368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23369 test $ac_status = 0; }; }; then :
23371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23372 $as_echo "yes" >&6; }
23374 $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h
23377 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h
23381 $as_echo "$as_me: failed program was:" >&5
23382 sed 's/^/| /' conftest.
$ac_ext >&5
23384 as_fn_error $?
"no - Please file a bug report at
23385 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
23409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic IO accounting symbols are avaliable" >&5
23410 $as_echo_n "checking whether generic IO accounting symbols are avaliable... " >&6; }
23414 cat confdefs.h
- <<_ACEOF >conftest.c
23417 #include <linux/bio.h>
23419 void (*generic_start_io_acct_f)(int, unsigned long,
23420 struct hd_struct *) = &generic_start_io_acct;
23421 void (*generic_end_io_acct_f)(int, struct hd_struct *,
23422 unsigned long) = &generic_end_io_acct;
23428 generic_start_io_acct(0, 0, NULL);
23429 generic_end_io_acct(0, NULL, 0);
23439 cat - <<_ACEOF >conftest.h
23444 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23445 echo "obj-m := conftest.o" >build
/Makefile
23447 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23448 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
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; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23455 (eval $ac_try) 2>&5
23457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23458 test $ac_status = 0; }; }; then :
23461 $as_echo "$as_me: failed program was:" >&5
23462 sed 's/^/| /' conftest.
$ac_ext >&5
23470 if test $rc -ne 0; then :
23472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23473 $as_echo "no" >&6; }
23476 if test "x$enable_linux_builtin" != xyes
; then
23478 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
23479 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23481 if test $rc -ne 0; then
23483 for file in block
/bio.c
; do
23484 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
23485 "$LINUX/$file" 2>/dev
/null
23487 if test $rc -eq 0; then
23492 if test $export -eq 0; then :
23502 if test $rc -ne 0; then :
23504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23505 $as_echo "no" >&6; }
23509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23510 $as_echo "yes" >&6; }
23512 $as_echo "#define HAVE_GENERIC_IO_ACCT 1" >>confdefs.h
23520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->rename() wants flags" >&5
23521 $as_echo_n "checking whether iops->rename() wants flags... " >&6; }
23524 cat confdefs.h
- <<_ACEOF >conftest.c
23527 #include <linux/fs.h>
23528 int rename_fn(struct inode *sip, struct dentry *sdp,
23529 struct inode *tip, struct dentry *tdp,
23530 unsigned int flags) { return 0; }
23532 static const struct inode_operations
23533 iops __attribute__ ((unused)) = {
23534 .rename = rename_fn,
23550 cat - <<_ACEOF >conftest.h
23555 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23556 echo "obj-m := conftest.o" >build
/Makefile
23558 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23559 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23561 (eval $ac_try) 2>&5
23563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23564 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23565 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23566 (eval $ac_try) 2>&5
23568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23569 test $ac_status = 0; }; }; then :
23571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23572 $as_echo "yes" >&6; }
23574 $as_echo "#define HAVE_RENAME_WANTS_FLAGS 1" >>confdefs.h
23578 $as_echo "$as_me: failed program was:" >&5
23579 sed 's/^/| /' conftest.
$ac_ext >&5
23581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23582 $as_echo "no" >&6; }
23592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_setxattr() exists" >&5
23593 $as_echo_n "checking whether generic_setxattr() exists... " >&6; }
23596 cat confdefs.h
- <<_ACEOF >conftest.c
23599 #include <linux/fs.h>
23600 #include <linux/xattr.h>
23602 static const struct inode_operations
23603 iops __attribute__ ((unused)) = {
23604 .setxattr = generic_setxattr
23620 cat - <<_ACEOF >conftest.h
23625 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23626 echo "obj-m := conftest.o" >build
/Makefile
23628 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23629 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23631 (eval $ac_try) 2>&5
23633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23634 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23635 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23636 (eval $ac_try) 2>&5
23638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23639 test $ac_status = 0; }; }; then :
23641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23642 $as_echo "yes" >&6; }
23644 $as_echo "#define HAVE_GENERIC_SETXATTR 1" >>confdefs.h
23648 $as_echo "$as_me: failed program was:" >&5
23649 sed 's/^/| /' conftest.
$ac_ext >&5
23651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23652 $as_echo "no" >&6; }
23662 if test "$LINUX_OBJ" != "$LINUX"; then :
23664 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
23670 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
23671 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
23672 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
23673 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
23680 # Check whether --with-mounthelperdir was given.
23681 if test "${with_mounthelperdir+set}" = set; then :
23682 withval
=$with_mounthelperdir; mounthelperdir
=$withval
23684 mounthelperdir
=/sbin
23691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
23692 $as_echo_n "checking for udev directories... " >&6; }
23694 # Check whether --with-udevdir was given.
23695 if test "${with_udevdir+set}" = set; then :
23696 withval
=$with_udevdir; udevdir
=$withval
23702 if test "x$udevdir" = xcheck
; then :
23705 path2
=/usr
/lib
/udev
23708 if test -d "$path1"; then :
23712 if test -d "$path2"; then :
23723 # Check whether --with-udevruledir was given.
23724 if test "${with_udevruledir+set}" = set; then :
23725 withval
=$with_udevruledir; udevruledir
=$withval
23727 udevruledir
="${udevdir}/rules.d"
23733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
23734 $as_echo "$udevdir;$udevruledir" >&6; }
23737 # Check whether --enable-systemd was given.
23738 if test "${enable_systemd+set}" = set; then :
23739 enableval
=$enable_systemd;
23746 # Check whether --with-systemdunitdir was given.
23747 if test "${with_systemdunitdir+set}" = set; then :
23748 withval
=$with_systemdunitdir; systemdunitdir
=$withval
23750 systemdunitdir
=/usr
/lib
/systemd
/system
23755 # Check whether --with-systemdpresetdir was given.
23756 if test "${with_systemdpresetdir+set}" = set; then :
23757 withval
=$with_systemdpresetdir; systemdpresetdir
=$withval
23759 systemdpresetdir
=/usr
/lib
/systemd
/system-preset
23764 # Check whether --with-systemdmodulesloaddir was given.
23765 if test "${with_systemdmodulesloaddir+set}" = set; then :
23766 withval
=$with_systemdmodulesloaddir; systemdmoduleloaddir
=$withval
23768 systemdmodulesloaddir
=/usr
/lib
/modules-load.d
23773 if test "x$enable_systemd" = xyes
; then :
23775 ZFS_INIT_SYSTEMD
=systemd
23776 ZFS_MODULE_LOAD
=modules-load.d
23777 modulesloaddir
=$systemdmodulesloaddir
23788 # Check whether --enable-sysvinit was given.
23789 if test "${enable_sysvinit+set}" = set; then :
23790 enableval
=$enable_sysvinit;
23792 enable_sysvinit
=yes
23796 if test "x$enable_sysvinit" = xyes
; then :
23797 ZFS_INIT_SYSV
=init.d
23803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
23804 $as_echo_n "checking for dracut directory... " >&6; }
23806 # Check whether --with-dracutdir was given.
23807 if test "${with_dracutdir+set}" = set; then :
23808 withval
=$with_dracutdir; dracutdir
=$withval
23814 if test "x$dracutdir" = xcheck
; then :
23816 path1
=/usr
/share
/dracut
23817 path2
=/usr
/lib
/dracut
23820 if test -d "$path1"; then :
23824 if test -d "$path2"; then :
23827 dracutdir
="$default"
23835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
23836 $as_echo "$dracutdir" >&6; }
23839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
23840 $as_echo_n "checking for target asm dir... " >&6; }
23841 TARGET_ARCH
=`echo ${target_cpu} | sed -e s/i.86/i386/`
23843 case $TARGET_ARCH in
23845 TARGET_ASM_DIR
=asm-
${TARGET_ARCH}
23848 TARGET_ASM_DIR
=asm-generic
23853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
23854 $as_echo "$TARGET_ASM_DIR" >&6; }
23859 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
23860 if test "x$ac_cv_header_zlib_h" = xyes
; then :
23863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23866 *** zlib.h missing, zlib-devel package required
23867 See \`config.log' for more details" "$LINENO" 5; }
23872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
23873 $as_echo_n "checking for compress2 in -lz... " >&6; }
23874 if ${ac_cv_lib_z_compress2+:} false
; then :
23875 $as_echo_n "(cached) " >&6
23877 ac_check_lib_save_LIBS
=$LIBS
23879 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23880 /* end confdefs.h. */
23882 /* Override any GCC internal prototype to avoid an error.
23883 Use char because int might match the return type of a GCC
23884 builtin and then its argument prototype would still apply. */
23892 return compress2 ();
23897 if ac_fn_c_try_link
"$LINENO"; then :
23898 ac_cv_lib_z_compress2
=yes
23900 ac_cv_lib_z_compress2
=no
23902 rm -f core conftest.err conftest.
$ac_objext \
23903 conftest
$ac_exeext conftest.
$ac_ext
23904 LIBS
=$ac_check_lib_save_LIBS
23906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
23907 $as_echo "$ac_cv_lib_z_compress2" >&6; }
23908 if test "x$ac_cv_lib_z_compress2" = xyes
; then :
23909 cat >>confdefs.h
<<_ACEOF
23910 #define HAVE_LIBZ 1
23916 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23917 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23919 *** compress2() missing, zlib-devel package required
23920 See \`config.log' for more details" "$LINENO" 5; }
23924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
23925 $as_echo_n "checking for uncompress in -lz... " >&6; }
23926 if ${ac_cv_lib_z_uncompress+:} false
; then :
23927 $as_echo_n "(cached) " >&6
23929 ac_check_lib_save_LIBS
=$LIBS
23931 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23932 /* end confdefs.h. */
23934 /* Override any GCC internal prototype to avoid an error.
23935 Use char because int might match the return type of a GCC
23936 builtin and then its argument prototype would still apply. */
23940 char uncompress ();
23944 return uncompress ();
23949 if ac_fn_c_try_link
"$LINENO"; then :
23950 ac_cv_lib_z_uncompress
=yes
23952 ac_cv_lib_z_uncompress
=no
23954 rm -f core conftest.err conftest.
$ac_objext \
23955 conftest
$ac_exeext conftest.
$ac_ext
23956 LIBS
=$ac_check_lib_save_LIBS
23958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
23959 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
23960 if test "x$ac_cv_lib_z_uncompress" = xyes
; then :
23961 cat >>confdefs.h
<<_ACEOF
23962 #define HAVE_LIBZ 1
23968 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23969 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23971 *** uncompress() missing, zlib-devel package required
23972 See \`config.log' for more details" "$LINENO" 5; }
23976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5
23977 $as_echo_n "checking for crc32 in -lz... " >&6; }
23978 if ${ac_cv_lib_z_crc32+:} false
; then :
23979 $as_echo_n "(cached) " >&6
23981 ac_check_lib_save_LIBS
=$LIBS
23983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23984 /* end confdefs.h. */
23986 /* Override any GCC internal prototype to avoid an error.
23987 Use char because int might match the return type of a GCC
23988 builtin and then its argument prototype would still apply. */
24001 if ac_fn_c_try_link
"$LINENO"; then :
24002 ac_cv_lib_z_crc32
=yes
24004 ac_cv_lib_z_crc32
=no
24006 rm -f core conftest.err conftest.
$ac_objext \
24007 conftest
$ac_exeext conftest.
$ac_ext
24008 LIBS
=$ac_check_lib_save_LIBS
24010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5
24011 $as_echo "$ac_cv_lib_z_crc32" >&6; }
24012 if test "x$ac_cv_lib_z_crc32" = xyes
; then :
24013 cat >>confdefs.h
<<_ACEOF
24014 #define HAVE_LIBZ 1
24020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24023 *** crc32() missing, zlib-devel package required
24024 See \`config.log' for more details" "$LINENO" 5; }
24031 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
24037 ac_fn_c_check_header_mongrel
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
24038 if test "x$ac_cv_header_uuid_uuid_h" = xyes
; then :
24041 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24042 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24044 *** uuid/uuid.h missing, libuuid-devel package required
24045 See \`config.log' for more details" "$LINENO" 5; }
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
24051 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
24052 if ${ac_cv_lib_uuid_uuid_generate+:} false
; then :
24053 $as_echo_n "(cached) " >&6
24055 ac_check_lib_save_LIBS
=$LIBS
24056 LIBS
="-luuid $LIBS"
24057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24058 /* end confdefs.h. */
24060 /* Override any GCC internal prototype to avoid an error.
24061 Use char because int might match the return type of a GCC
24062 builtin and then its argument prototype would still apply. */
24066 char uuid_generate ();
24070 return uuid_generate ();
24075 if ac_fn_c_try_link
"$LINENO"; then :
24076 ac_cv_lib_uuid_uuid_generate
=yes
24078 ac_cv_lib_uuid_uuid_generate
=no
24080 rm -f core conftest.err conftest.
$ac_objext \
24081 conftest
$ac_exeext conftest.
$ac_ext
24082 LIBS
=$ac_check_lib_save_LIBS
24084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
24085 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
24086 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
; then :
24087 cat >>confdefs.h
<<_ACEOF
24088 #define HAVE_LIBUUID 1
24091 LIBS
="-luuid $LIBS"
24094 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24095 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24097 *** uuid_generate() missing, libuuid-devel package required
24098 See \`config.log' for more details" "$LINENO" 5; }
24102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5
24103 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
24104 if ${ac_cv_lib_uuid_uuid_is_null+:} false
; then :
24105 $as_echo_n "(cached) " >&6
24107 ac_check_lib_save_LIBS
=$LIBS
24108 LIBS
="-luuid $LIBS"
24109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24110 /* end confdefs.h. */
24112 /* Override any GCC internal prototype to avoid an error.
24113 Use char because int might match the return type of a GCC
24114 builtin and then its argument prototype would still apply. */
24118 char uuid_is_null ();
24122 return uuid_is_null ();
24127 if ac_fn_c_try_link
"$LINENO"; then :
24128 ac_cv_lib_uuid_uuid_is_null
=yes
24130 ac_cv_lib_uuid_uuid_is_null
=no
24132 rm -f core conftest.err conftest.
$ac_objext \
24133 conftest
$ac_exeext conftest.
$ac_ext
24134 LIBS
=$ac_check_lib_save_LIBS
24136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5
24137 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
24138 if test "x$ac_cv_lib_uuid_uuid_is_null" = xyes
; then :
24139 cat >>confdefs.h
<<_ACEOF
24140 #define HAVE_LIBUUID 1
24143 LIBS
="-luuid $LIBS"
24146 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24147 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24149 *** uuid_is_null() missing, libuuid-devel package required
24150 See \`config.log' for more details" "$LINENO" 5; }
24157 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
24162 # Check whether --with-blkid was given.
24163 if test "${with_blkid+set}" = set; then :
24164 withval
=$with_blkid;
24171 if test "x$with_blkid" = xyes
; then :
24176 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
24181 if test "x$with_blkid" = xcheck
; then :
24183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
24184 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
24185 if ${ac_cv_lib_blkid_blkid_get_cache+:} false
; then :
24186 $as_echo_n "(cached) " >&6
24188 ac_check_lib_save_LIBS
=$LIBS
24189 LIBS
="-lblkid $LIBS"
24190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24191 /* end confdefs.h. */
24193 /* Override any GCC internal prototype to avoid an error.
24194 Use char because int might match the return type of a GCC
24195 builtin and then its argument prototype would still apply. */
24199 char blkid_get_cache ();
24203 return blkid_get_cache ();
24208 if ac_fn_c_try_link
"$LINENO"; then :
24209 ac_cv_lib_blkid_blkid_get_cache
=yes
24211 ac_cv_lib_blkid_blkid_get_cache
=no
24213 rm -f core conftest.err conftest.
$ac_objext \
24214 conftest
$ac_exeext conftest.
$ac_ext
24215 LIBS
=$ac_check_lib_save_LIBS
24217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
24218 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
24219 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
; then :
24221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5
24222 $as_echo_n "checking for blkid zfs support... " >&6; }
24225 truncate
-s 64M
$ZFS_DEV
24226 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
24227 dd of
=$ZFS_DEV bs
=1k count
=8 \
24228 seek
=128 conv
=notrunc
&>/dev
/null \
24229 >/dev
/null
2>/dev
/null
24230 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
24231 dd of
=$ZFS_DEV bs
=1k count
=8 \
24232 seek
=132 conv
=notrunc
&>/dev
/null \
24233 >/dev
/null
2>/dev
/null
24234 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
24235 dd of
=$ZFS_DEV bs
=1k count
=8 \
24236 seek
=136 conv
=notrunc
&>/dev
/null \
24237 >/dev
/null
2>/dev
/null
24238 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
24239 dd of
=$ZFS_DEV bs
=1k count
=8 \
24240 seek
=140 conv
=notrunc
&>/dev
/null \
24241 >/dev
/null
2>/dev
/null
24246 if test "$cross_compiling" = yes; then :
24247 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24248 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24249 as_fn_error $?
"cannot run test program while cross compiling
24250 See \`config.log' for more details" "$LINENO" 5; }
24252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24253 /* end confdefs.h. */
24256 #include <stdlib.h>
24257 #include <blkid/blkid.h>
24266 if (blkid_get_cache(&cache, NULL) < 0)
24269 value = blkid_get_tag_value(cache, "TYPE",
24272 blkid_put_cache(cache);
24276 if (strcmp(value, "zfs_member")) {
24278 blkid_put_cache(cache);
24283 blkid_put_cache(cache);
24289 if ac_fn_c_try_run
"$LINENO"; then :
24292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24293 $as_echo "yes" >&6; }
24297 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
24303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24304 $as_echo "no" >&6; }
24305 if test "x$with_blkid" != xcheck
; then :
24306 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24308 as_fn_error $?
"--with-blkid given but unavailable
24309 See \`config.log' for more details" "$LINENO" 5; }
24313 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24314 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24322 if test "x$with_blkid" != xcheck
; then :
24323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24325 as_fn_error $?
"--with-blkid given but unavailable
24326 See \`config.log' for more details" "$LINENO" 5; }
24336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
24337 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
24339 saved_flags
="$CFLAGS"
24340 CFLAGS
="$CFLAGS -Wframe-larger-than=1024"
24342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24343 /* end confdefs.h. */
24353 if ac_fn_c_try_compile
"$LINENO"; then :
24355 FRAME_LARGER_THAN
=-Wframe-larger-than=1024
24356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24357 $as_echo "yes" >&6; }
24362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24363 $as_echo "no" >&6; }
24366 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24368 CFLAGS
="$saved_flags"
24372 if test "x$runstatedir" = x
; then
24373 runstatedir
='${localstatedir}/run'
24377 for ac_func
in mlockall
24379 ac_fn_c_check_func
"$LINENO" "mlockall" "ac_cv_func_mlockall"
24380 if test "x$ac_cv_func_mlockall" = xyes
; then :
24381 cat >>confdefs.h
<<_ACEOF
24382 #define HAVE_MLOCKALL 1
24392 # Check whether --with-linux was given.
24393 if test "${with_linux+set}" = set; then :
24394 withval
=$with_linux; kernelsrc
="$withval"
24399 # Check whether --with-linux-obj was given.
24400 if test "${with_linux_obj+set}" = set; then :
24401 withval
=$with_linux_obj; kernelbuild
="$withval"
24405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
24406 $as_echo_n "checking kernel source directory... " >&6; }
24407 if test -z "$kernelsrc"; then :
24409 if test -e "/lib/modules/$(uname -r)/source"; then :
24411 headersdir
="/lib/modules/$(uname -r)/source"
24412 sourcelink
=$
(readlink
-f "$headersdir")
24414 elif test -e "/lib/modules/$(uname -r)/build"; then :
24416 headersdir
="/lib/modules/$(uname -r)/build"
24417 sourcelink
=$
(readlink
-f "$headersdir")
24421 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
24423 2>/dev
/null |
grep -v obj |
tail -1)
24427 if test -n "$sourcelink" && test -e ${sourcelink}; then :
24429 kernelsrc
=`readlink -f ${sourcelink}`
24433 kernelsrc
="Not found"
24439 if test "$kernelsrc" = "NONE"; then :
24447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
24448 $as_echo "$kernelsrc" >&6; }
24449 if test ! -d "$kernelsrc"; then :
24452 *** Please make sure the kernel devel package for your distribution
24453 *** is installed and then try again. If that fails, you can specify the
24454 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
24458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
24459 $as_echo_n "checking kernel build directory... " >&6; }
24460 if test -z "$kernelbuild"; then :
24462 if test -e "/lib/modules/$(uname -r)/build"; then :
24464 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
24466 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
24468 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
24470 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then :
24472 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
24474 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then :
24476 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
24480 kernelbuild
=${kernelsrc}
24485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
24486 $as_echo "$kernelbuild" >&6; }
24488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
24489 $as_echo_n "checking kernel source version... " >&6; }
24490 utsrelease1
=$kernelbuild/include
/linux
/version.h
24491 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
24492 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
24493 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then :
24495 utsrelease
=linux
/version.h
24497 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then :
24499 utsrelease
=linux
/utsrelease.h
24501 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then :
24503 utsrelease
=generated
/utsrelease.h
24507 if test "$utsrelease"; then :
24509 kernsrcver
=`(echo "#include <$utsrelease>";
24510 echo "kernsrcver=UTS_RELEASE") |
24511 cpp -I $kernelbuild/include |
24512 grep "^kernsrcver=" | cut -d \" -f 2`
24514 if test -z "$kernsrcver"; then :
24516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
24517 $as_echo "Not found" >&6; }
24518 as_fn_error $?
"*** Cannot determine kernel version." "$LINENO" 5
24524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
24525 $as_echo "Not found" >&6; }
24526 if test "x$enable_linux_builtin" != xyes
; then
24527 as_fn_error $?
"*** Cannot find UTS_RELEASE definition." "$LINENO" 5
24530 *** Cannot find UTS_RELEASE definition.
24531 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
24536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
24537 $as_echo "$kernsrcver" >&6; }
24540 LINUX_OBJ
=${kernelbuild}
24541 LINUX_VERSION
=${kernsrcver}
24548 modpost
=$LINUX/scripts
/Makefile.modpost
24549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
24550 $as_echo_n "checking kernel file name for module symbols... " >&6; }
24551 if test "x$enable_linux_builtin" != xyes
-a -f "$modpost"; then :
24553 if grep -q Modules.symvers
$modpost; then :
24555 LINUX_SYMBOLS
=Modules.symvers
24559 LINUX_SYMBOLS
=Module.symvers
24563 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
24566 *** Please make sure the kernel devel package for your distribution
24567 *** is installed. If you are building with a custom kernel, make sure the
24568 *** kernel is configured, built, and the '--with-linux=PATH' configure
24569 *** option refers to the location of the kernel source." "$LINENO" 5
24578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
24579 $as_echo "$LINUX_SYMBOLS" >&6; }
24585 # Check whether --with-spl was given.
24586 if test "${with_spl+set}" = set; then :
24587 withval
=$with_spl; splsrc
="$withval"
24592 # Check whether --with-spl-obj was given.
24593 if test "${with_spl_obj+set}" = set; then :
24594 withval
=$with_spl_obj; splbuild
="$withval"
24599 # Check whether --with-spl-timeout was given.
24600 if test "${with_spl_timeout+set}" = set; then :
24601 withval
=$with_spl_timeout; timeout
="$withval"
24607 splsrc0
="/var/lib/dkms/spl/${VERSION}/build"
24608 splsrc1
="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
24609 splsrc2
="/usr/local/src/spl-${VERSION}"
24610 splsrc3
="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
24611 splsrc4
="/usr/src/spl-${VERSION}"
24615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
24616 $as_echo_n "checking spl source directory... " >&6; }
24617 if test -z "${splsrc}"; then :
24619 if test -e "${splsrc0}/spl.release.in"; then :
24623 elif test -e "${splsrc1}/spl.release.in"; then :
24627 elif test -e "${splsrc2}/spl.release.in"; then :
24631 elif test -e "${splsrc3}/spl.release.in"; then :
24633 splsrc
=$
(readlink
-f "${splsrc3}")
24635 elif test -e "${splsrc4}/spl.release.in" ; then :
24639 elif test -e "${splsrc5}/spl.release.in"; then :
24641 splsrc
=$
(readlink
-f "${splsrc5}")
24643 elif test -e "${splsrc6}/spl.release.in" ; then :
24655 if test "$splsrc" = "NONE"; then :
24664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
24665 $as_echo "$splsrc" >&6; }
24666 if test ! -e "$splsrc/spl.release.in"; then :
24669 *** Please make sure the kmod spl devel package for your distribution
24670 *** is installed then try again. If that fails you can specify the
24671 *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5
24675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
24676 $as_echo_n "checking spl build directory... " >&6; }
24678 if test -z "$splbuild"; then :
24680 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
24682 splbuild
="${splsrc}/${LINUX_VERSION}"
24684 elif test -e "${splsrc}/spl_config.h" ; then :
24686 splbuild
="${splsrc}"
24688 elif find -L "${splsrc}" -name spl_config.h
2> /dev
/null |
grep -wq spl_config.h
; then :
24690 splbuild
=$
(find -L "${splsrc}" -name spl_config.h |
sed 's,/spl_config.h,,')
24694 splbuild
="Not found"
24699 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
24706 timeout
=$
((timeout-1
))
24711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
24712 $as_echo "$splbuild" >&6; }
24713 if ! test -e "$splbuild/spl_config.h"; then :
24716 *** Please make sure the kmod spl devel <kernel> package for your
24717 *** distribution is installed then try again. If that fails you
24718 *** can specify the location of the spl objects with the
24719 *** '--with-spl-obj=PATH' option." "$LINENO" 5
24723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
24724 $as_echo_n "checking spl source version... " >&6; }
24725 if test -r $splbuild/spl_config.h
&&
24726 fgrep
-q SPL_META_VERSION
$splbuild/spl_config.h
; then :
24729 splsrcver
=`(echo "#include <spl_config.h>";
24730 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
24732 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
24736 if test -z "$splsrcver"; then :
24738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
24739 $as_echo "Not found" >&6; }
24741 *** Cannot determine the version of the spl source.
24742 *** Please prepare the spl source before running this script" "$LINENO" 5
24746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
24747 $as_echo "$splsrcver" >&6; }
24750 SPL_OBJ
=${splbuild}
24751 SPL_VERSION
=${splsrcver}
24757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
24758 $as_echo_n "checking spl file name for module symbols... " >&6; }
24762 if test -r $SPL_OBJ/Module.symvers
; then :
24764 SPL_SYMBOLS
=Module.symvers
24766 elif test -r $SPL_OBJ/Modules.symvers
; then :
24768 SPL_SYMBOLS
=Modules.symvers
24770 elif test -r $SPL_OBJ/module
/Module.symvers
; then :
24772 SPL_SYMBOLS
=Module.symvers
24774 elif test -r $SPL_OBJ/module
/Modules.symvers
; then :
24776 SPL_SYMBOLS
=Modules.symvers
24780 if test $SPL_SYMBOLS != NONE
-o $timeout -le 0; then :
24787 timeout
=$
((timeout-1
))
24792 if test "$SPL_SYMBOLS" = NONE
; then :
24794 SPL_SYMBOLS
=$LINUX_SYMBOLS
24798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
24799 $as_echo "$SPL_SYMBOLS" >&6; }
24803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
24804 $as_echo_n "checking whether modules can be built... " >&6; }
24807 cat confdefs.h
- <<_ACEOF >conftest.c
24822 cat - <<_ACEOF >conftest.h
24827 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24828 echo "obj-m := conftest.o" >build
/Makefile
24830 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24831 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24833 (eval $ac_try) 2>&5
24835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24836 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24838 (eval $ac_try) 2>&5
24840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24841 test $ac_status = 0; }; }; then :
24843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24844 $as_echo "yes" >&6; }
24847 $as_echo "$as_me: failed program was:" >&5
24848 sed 's/^/| /' conftest.
$ac_ext >&5
24850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24851 $as_echo "no" >&6; }
24852 if test "x$enable_linux_builtin" != xyes
; then
24853 as_fn_error $?
"*** Unable to build an empty module." "$LINENO" 5
24856 *** Unable to build an empty module.
24857 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
24868 if test "x$cross_compiling" != xyes
; then :
24870 if test "$cross_compiling" = yes; then :
24871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24872 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24873 as_fn_error $?
"cannot run test program while cross compiling
24874 See \`config.log' for more details" "$LINENO" 5; }
24876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24877 /* end confdefs.h. */
24880 #include "$LINUX/include/linux/license.h"
24886 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
24893 if ac_fn_c_try_run
"$LINENO"; then :
24896 $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
24900 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24901 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with 16K or larger stacks" >&5
24909 $as_echo_n "checking whether kernel was built with 16K or larger stacks... " >&6; }
24912 cat confdefs.h
- <<_ACEOF >conftest.c
24915 #include <linux/module.h>
24921 #if (THREAD_SIZE < 16384)
24922 #error "THREAD_SIZE is less than 16K"
24933 cat - <<_ACEOF >conftest.h
24938 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24939 echo "obj-m := conftest.o" >build
/Makefile
24941 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24942 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24944 (eval $ac_try) 2>&5
24946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24947 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24949 (eval $ac_try) 2>&5
24951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24952 test $ac_status = 0; }; }; then :
24954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24955 $as_echo "yes" >&6; }
24957 $as_echo "#define HAVE_LARGE_STACKS 1" >>confdefs.h
24961 $as_echo "$as_me: failed program was:" >&5
24962 sed 's/^/| /' conftest.
$ac_ext >&5
24964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24965 $as_echo "no" >&6; }
24976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
24977 $as_echo_n "checking whether kernel was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
24980 cat confdefs.h
- <<_ACEOF >conftest.c
24983 #include <linux/module.h>
24989 #ifndef CONFIG_DEBUG_LOCK_ALLOC
24990 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
25001 cat - <<_ACEOF >conftest.h
25006 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25007 echo "obj-m := conftest.o" >build
/Makefile
25009 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25010 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25011 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25012 (eval $ac_try) 2>&5
25014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25015 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25016 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25017 (eval $ac_try) 2>&5
25019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25020 test $ac_status = 0; }; }; then :
25022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25023 $as_echo "yes" >&6; }
25025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
25026 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
25027 tmp_flags
="$EXTRA_KCFLAGS"
25030 cat confdefs.h
- <<_ACEOF >conftest.c
25033 #include <linux/module.h>
25034 #include <linux/mutex.h>
25036 MODULE_LICENSE("$ZFS_META_LICENSE");
25046 mutex_unlock(&lock);
25056 cat - <<_ACEOF >conftest.h
25061 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25062 echo "obj-m := conftest.o" >build
/Makefile
25064 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25065 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25066 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25067 (eval $ac_try) 2>&5
25069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25070 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25071 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25072 (eval $ac_try) 2>&5
25074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25075 test $ac_status = 0; }; }; then :
25077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25078 $as_echo "no" >&6; }
25081 $as_echo "$as_me: failed program was:" >&5
25082 sed 's/^/| /' conftest.
$ac_ext >&5
25084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25085 $as_echo "yes" >&6; }
25087 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
25088 *** with the CDDL license and will prevent the module linking stage
25089 *** from succeeding. You must rebuild your kernel without this
25090 *** option enabled." "$LINENO" 5
25098 EXTRA_KCFLAGS
="$tmp_flags"
25102 $as_echo "$as_me: failed program was:" >&5
25103 sed 's/^/| /' conftest.
$ac_ext >&5
25105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25106 $as_echo "no" >&6; }
25119 tmp_flags
="$EXTRA_KCFLAGS"
25120 EXTRA_KCFLAGS
="-I\$(src)"
25122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
25123 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
25126 cat confdefs.h
- <<_ACEOF >conftest.c
25129 #include <linux/module.h>
25130 MODULE_LICENSE(ZFS_META_LICENSE);
25132 #define CREATE_TRACE_POINTS
25133 #include "conftest.h"
25139 trace_zfs_autoconf_event_one(1UL);
25140 trace_zfs_autoconf_event_two(2UL);
25150 cat - <<_ACEOF >conftest.h
25152 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
25153 #define _CONFTEST_H
25155 #undef TRACE_SYSTEM
25156 #define TRACE_SYSTEM zfs
25157 #include <linux/tracepoint.h>
25159 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
25160 TP_PROTO(unsigned long i),
25163 __field(unsigned long, i)
25168 TP_printk("i = %lu", __entry->i)
25171 #define DEFINE_AUTOCONF_EVENT(name) \
25172 DEFINE_EVENT(zfs_autoconf_event_class, name, \
25173 TP_PROTO(unsigned long i), \
25175 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
25176 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
25178 #endif /* _CONFTEST_H */
25180 #undef TRACE_INCLUDE_PATH
25181 #define TRACE_INCLUDE_PATH .
25182 #define TRACE_INCLUDE_FILE conftest
25183 #include <trace/define_trace.h>
25188 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25189 echo "obj-m := conftest.o" >build
/Makefile
25191 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25192 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25194 (eval $ac_try) 2>&5
25196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25197 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25199 (eval $ac_try) 2>&5
25201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25202 test $ac_status = 0; }; }; then :
25204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25205 $as_echo "yes" >&6; }
25207 $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
25211 $as_echo "$as_me: failed program was:" >&5
25212 sed 's/^/| /' conftest.
$ac_ext >&5
25214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25215 $as_echo "no" >&6; }
25223 EXTRA_KCFLAGS
="$tmp_flags"
25226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5
25227 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
25230 cat confdefs.h
- <<_ACEOF >conftest.c
25233 #include <linux/sched.h>
25239 current->bio_tail = (struct bio **) NULL;
25249 cat - <<_ACEOF >conftest.h
25254 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25255 echo "obj-m := conftest.o" >build
/Makefile
25257 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25258 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25260 (eval $ac_try) 2>&5
25262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25263 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25264 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25265 (eval $ac_try) 2>&5
25267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25268 test $ac_status = 0; }; }; then :
25270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25271 $as_echo "yes" >&6; }
25273 $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h
25277 $as_echo "$as_me: failed program was:" >&5
25278 sed 's/^/| /' conftest.
$ac_ext >&5
25280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25281 $as_echo "no" >&6; }
25282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5
25283 $as_echo_n "checking whether current->bio_list exists... " >&6; }
25286 cat confdefs.h
- <<_ACEOF >conftest.c
25289 #include <linux/sched.h>
25295 current->bio_list = (struct bio_list *) NULL;
25305 cat - <<_ACEOF >conftest.h
25310 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25311 echo "obj-m := conftest.o" >build
/Makefile
25313 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25314 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25316 (eval $ac_try) 2>&5
25318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25319 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25321 (eval $ac_try) 2>&5
25323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25324 test $ac_status = 0; }; }; then :
25326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25327 $as_echo "yes" >&6; }
25329 $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h
25333 $as_echo "$as_me: failed program was:" >&5
25334 sed 's/^/| /' conftest.
$ac_ext >&5
25336 as_fn_error $?
"no - Please file a bug report at
25337 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
25354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether submit_bio() wants 1 arg" >&5
25355 $as_echo_n "checking whether submit_bio() wants 1 arg... " >&6; }
25358 cat confdefs.h
- <<_ACEOF >conftest.c
25361 #include <linux/bio.h>
25368 struct bio *bio = NULL;
25369 blk_qc = submit_bio(bio);
25379 cat - <<_ACEOF >conftest.h
25384 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25385 echo "obj-m := conftest.o" >build
/Makefile
25387 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25388 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25389 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25390 (eval $ac_try) 2>&5
25392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25393 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25394 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25395 (eval $ac_try) 2>&5
25397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25398 test $ac_status = 0; }; }; then :
25400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25401 $as_echo "yes" >&6; }
25403 $as_echo "#define HAVE_1ARG_SUBMIT_BIO 1" >>confdefs.h
25407 $as_echo "$as_me: failed program was:" >&5
25408 sed 's/^/| /' conftest.
$ac_ext >&5
25410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25411 $as_echo "no" >&6; }
25421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
25422 $as_echo_n "checking block device operation prototypes... " >&6; }
25423 tmp_flags
="$EXTRA_KCFLAGS"
25424 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
25427 cat confdefs.h
- <<_ACEOF >conftest.c
25430 #include <linux/blkdev.h>
25432 int blk_open(struct block_device *bdev, fmode_t mode)
25434 int blk_ioctl(struct block_device *bdev, fmode_t mode,
25435 unsigned x, unsigned long y) { return 0; }
25436 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
25437 unsigned x, unsigned long y) { return 0; }
25439 static const struct block_device_operations
25440 bops __attribute__ ((unused)) = {
25443 .ioctl = blk_ioctl,
25444 .compat_ioctl = blk_compat_ioctl,
25460 cat - <<_ACEOF >conftest.h
25465 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25466 echo "obj-m := conftest.o" >build
/Makefile
25468 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25469 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25471 (eval $ac_try) 2>&5
25473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25474 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25475 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25476 (eval $ac_try) 2>&5
25478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25479 test $ac_status = 0; }; }; then :
25481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
25482 $as_echo "struct block_device" >&6; }
25484 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
25488 $as_echo "$as_me: failed program was:" >&5
25489 sed 's/^/| /' conftest.
$ac_ext >&5
25491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
25492 $as_echo "struct inode" >&6; }
25500 EXTRA_KCFLAGS
="$tmp_flags"
25503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
25504 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
25505 tmp_flags
="$EXTRA_KCFLAGS"
25506 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
25509 cat confdefs.h
- <<_ACEOF >conftest.c
25512 #include <linux/blkdev.h>
25514 void blk_release(struct gendisk *g, fmode_t mode) { return; }
25516 static const struct block_device_operations
25517 bops __attribute__ ((unused)) = {
25519 .release = blk_release,
25521 .compat_ioctl = NULL,
25537 cat - <<_ACEOF >conftest.h
25542 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25543 echo "obj-m := conftest.o" >build
/Makefile
25545 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25546 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25548 (eval $ac_try) 2>&5
25550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25551 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25552 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25553 (eval $ac_try) 2>&5
25555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25556 test $ac_status = 0; }; }; then :
25558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
25559 $as_echo "void" >&6; }
25561 $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
25565 $as_echo "$as_me: failed program was:" >&5
25566 sed 's/^/| /' conftest.
$ac_ext >&5
25568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
25569 $as_echo "int" >&6; }
25577 EXTRA_KCFLAGS
="$tmp_flags"
25579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
25580 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
25583 cat confdefs.h
- <<_ACEOF >conftest.c
25586 #include <linux/types.h>
25592 fmode_t *ptr __attribute__ ((unused));
25602 cat - <<_ACEOF >conftest.h
25607 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25608 echo "obj-m := conftest.o" >build
/Makefile
25610 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25611 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25613 (eval $ac_try) 2>&5
25615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25616 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25618 (eval $ac_try) 2>&5
25620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25621 test $ac_status = 0; }; }; then :
25623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25624 $as_echo "yes" >&6; }
25626 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
25630 $as_echo "$as_me: failed program was:" >&5
25631 sed 's/^/| /' conftest.
$ac_ext >&5
25633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25634 $as_echo "no" >&6; }
25644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5
25645 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
25648 cat confdefs.h
- <<_ACEOF >conftest.c
25651 #include <linux/kobject.h>
25657 int val __attribute__ ((unused));
25658 val = KOBJ_NAME_LEN;
25668 cat - <<_ACEOF >conftest.h
25673 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25674 echo "obj-m := conftest.o" >build
/Makefile
25676 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25677 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25678 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25679 (eval $ac_try) 2>&5
25681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25682 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25684 (eval $ac_try) 2>&5
25686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25687 test $ac_status = 0; }; }; then :
25689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25690 $as_echo "yes" >&6; }
25692 $as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h
25696 $as_echo "$as_me: failed program was:" >&5
25697 sed 's/^/| /' conftest.
$ac_ext >&5
25699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25700 $as_echo "no" >&6; }
25710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
25711 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
25714 cat confdefs.h
- <<_ACEOF >conftest.c
25717 #include <linux/fs.h>
25723 struct block_device *bdev = NULL;
25724 (void) blkdev_get(bdev, 0, NULL);
25734 cat - <<_ACEOF >conftest.h
25739 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25740 echo "obj-m := conftest.o" >build
/Makefile
25742 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25743 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25745 (eval $ac_try) 2>&5
25747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25748 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25750 (eval $ac_try) 2>&5
25752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25753 test $ac_status = 0; }; }; then :
25755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25756 $as_echo "yes" >&6; }
25758 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
25762 $as_echo "$as_me: failed program was:" >&5
25763 sed 's/^/| /' conftest.
$ac_ext >&5
25765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25766 $as_echo "no" >&6; }
25775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
25776 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
25780 cat confdefs.h
- <<_ACEOF >conftest.c
25783 #include <linux/fs.h>
25789 blkdev_get_by_path(NULL, 0, NULL);
25799 cat - <<_ACEOF >conftest.h
25804 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25805 echo "obj-m := conftest.o" >build
/Makefile
25807 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25808 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25809 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25810 (eval $ac_try) 2>&5
25812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25813 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25815 (eval $ac_try) 2>&5
25817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25818 test $ac_status = 0; }; }; then :
25821 $as_echo "$as_me: failed program was:" >&5
25822 sed 's/^/| /' conftest.
$ac_ext >&5
25830 if test $rc -ne 0; then :
25832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25833 $as_echo "no" >&6; }
25836 if test "x$enable_linux_builtin" != xyes
; then
25838 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
25839 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
25841 if test $rc -ne 0; then
25843 for file in fs
/block_dev.c
; do
25844 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
25845 "$LINUX/$file" 2>/dev
/null
25847 if test $rc -eq 0; then
25852 if test $export -eq 0; then :
25862 if test $rc -ne 0; then :
25864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25865 $as_echo "no" >&6; }
25869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25870 $as_echo "yes" >&6; }
25872 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
25879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
25880 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
25884 cat confdefs.h
- <<_ACEOF >conftest.c
25887 #include <linux/fs.h>
25893 open_bdev_exclusive(NULL, 0, NULL);
25903 cat - <<_ACEOF >conftest.h
25908 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25909 echo "obj-m := conftest.o" >build
/Makefile
25911 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25912 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25913 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25914 (eval $ac_try) 2>&5
25916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25917 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25919 (eval $ac_try) 2>&5
25921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25922 test $ac_status = 0; }; }; then :
25925 $as_echo "$as_me: failed program was:" >&5
25926 sed 's/^/| /' conftest.
$ac_ext >&5
25934 if test $rc -ne 0; then :
25936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25937 $as_echo "no" >&6; }
25940 if test "x$enable_linux_builtin" != xyes
; then
25942 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
25943 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
25945 if test $rc -ne 0; then
25947 for file in fs
/block_dev.c
; do
25948 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
25949 "$LINUX/$file" 2>/dev
/null
25951 if test $rc -eq 0; then
25956 if test $export -eq 0; then :
25966 if test $rc -ne 0; then :
25968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25969 $as_echo "no" >&6; }
25973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25974 $as_echo "yes" >&6; }
25976 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
25983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 1 arg" >&5
25984 $as_echo_n "checking whether lookup_bdev() wants 1 arg... " >&6; }
25988 cat confdefs.h
- <<_ACEOF >conftest.c
25991 #include <linux/fs.h>
26007 cat - <<_ACEOF >conftest.h
26012 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26013 echo "obj-m := conftest.o" >build
/Makefile
26015 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26016 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26018 (eval $ac_try) 2>&5
26020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26021 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26023 (eval $ac_try) 2>&5
26025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26026 test $ac_status = 0; }; }; then :
26029 $as_echo "$as_me: failed program was:" >&5
26030 sed 's/^/| /' conftest.
$ac_ext >&5
26038 if test $rc -ne 0; then :
26040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26041 $as_echo "no" >&6; }
26042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
26043 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
26047 cat confdefs.h
- <<_ACEOF >conftest.c
26050 #include <linux/fs.h>
26056 lookup_bdev(NULL, FMODE_READ);
26066 cat - <<_ACEOF >conftest.h
26071 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26072 echo "obj-m := conftest.o" >build
/Makefile
26074 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26075 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26077 (eval $ac_try) 2>&5
26079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26080 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26082 (eval $ac_try) 2>&5
26084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26085 test $ac_status = 0; }; }; then :
26088 $as_echo "$as_me: failed program was:" >&5
26089 sed 's/^/| /' conftest.
$ac_ext >&5
26097 if test $rc -ne 0; then :
26099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26100 $as_echo "no" >&6; }
26103 if test "x$enable_linux_builtin" != xyes
; then
26105 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
26106 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
26108 if test $rc -ne 0; then
26110 for file in fs
/block_dev.c
; do
26111 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
26112 "$LINUX/$file" 2>/dev
/null
26114 if test $rc -eq 0; then
26119 if test $export -eq 0; then :
26129 if test $rc -ne 0; then :
26131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26132 $as_echo "no" >&6; }
26136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26137 $as_echo "yes" >&6; }
26139 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
26147 if test "x$enable_linux_builtin" != xyes
; then
26149 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
26150 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
26152 if test $rc -ne 0; then
26154 for file in fs
/block_dev.c
; do
26155 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
26156 "$LINUX/$file" 2>/dev
/null
26158 if test $rc -eq 0; then
26163 if test $export -eq 0; then :
26173 if test $rc -ne 0; then :
26175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26176 $as_echo "no" >&6; }
26177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() wants 2 args" >&5
26178 $as_echo_n "checking whether lookup_bdev() wants 2 args... " >&6; }
26182 cat confdefs.h
- <<_ACEOF >conftest.c
26185 #include <linux/fs.h>
26191 lookup_bdev(NULL, FMODE_READ);
26201 cat - <<_ACEOF >conftest.h
26206 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26207 echo "obj-m := conftest.o" >build
/Makefile
26209 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26210 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26211 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26212 (eval $ac_try) 2>&5
26214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26215 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26217 (eval $ac_try) 2>&5
26219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26220 test $ac_status = 0; }; }; then :
26223 $as_echo "$as_me: failed program was:" >&5
26224 sed 's/^/| /' conftest.
$ac_ext >&5
26232 if test $rc -ne 0; then :
26234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26235 $as_echo "no" >&6; }
26238 if test "x$enable_linux_builtin" != xyes
; then
26240 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
26241 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
26243 if test $rc -ne 0; then
26245 for file in fs
/block_dev.c
; do
26246 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
26247 "$LINUX/$file" 2>/dev
/null
26249 if test $rc -eq 0; then
26254 if test $export -eq 0; then :
26264 if test $rc -ne 0; then :
26266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26267 $as_echo "no" >&6; }
26271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26272 $as_echo "yes" >&6; }
26274 $as_echo "#define HAVE_2ARGS_LOOKUP_BDEV 1" >>confdefs.h
26283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26284 $as_echo "yes" >&6; }
26286 $as_echo "#define HAVE_1ARG_LOOKUP_BDEV 1" >>confdefs.h
26294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
26295 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
26298 cat confdefs.h
- <<_ACEOF >conftest.c
26301 #include <linux/buffer_head.h>
26307 struct block_device *bdev = NULL;
26308 invalidate_bdev(bdev);
26318 cat - <<_ACEOF >conftest.h
26323 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26324 echo "obj-m := conftest.o" >build
/Makefile
26326 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26327 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26328 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26329 (eval $ac_try) 2>&5
26331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26332 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26333 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26334 (eval $ac_try) 2>&5
26336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26337 test $ac_status = 0; }; }; then :
26339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26340 $as_echo "yes" >&6; }
26342 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
26346 $as_echo "$as_me: failed program was:" >&5
26347 sed 's/^/| /' conftest.
$ac_ext >&5
26349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26350 $as_echo "no" >&6; }
26360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
26361 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
26362 tmp_flags
="$EXTRA_KCFLAGS"
26363 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
26366 cat confdefs.h
- <<_ACEOF >conftest.c
26369 #include <linux/blkdev.h>
26375 struct block_device *bdev = NULL;
26376 bdev_logical_block_size(bdev);
26386 cat - <<_ACEOF >conftest.h
26391 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26392 echo "obj-m := conftest.o" >build
/Makefile
26394 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26395 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26396 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26397 (eval $ac_try) 2>&5
26399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26400 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26401 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26402 (eval $ac_try) 2>&5
26404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26405 test $ac_status = 0; }; }; then :
26407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26408 $as_echo "yes" >&6; }
26410 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
26414 $as_echo "$as_me: failed program was:" >&5
26415 sed 's/^/| /' conftest.
$ac_ext >&5
26417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26418 $as_echo "no" >&6; }
26426 EXTRA_KCFLAGS
="$tmp_flags"
26429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
26430 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
26431 tmp_flags
="$EXTRA_KCFLAGS"
26432 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
26435 cat confdefs.h
- <<_ACEOF >conftest.c
26438 #include <linux/blkdev.h>
26444 struct block_device *bdev = NULL;
26445 bdev_physical_block_size(bdev);
26455 cat - <<_ACEOF >conftest.h
26460 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26461 echo "obj-m := conftest.o" >build
/Makefile
26463 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26464 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26466 (eval $ac_try) 2>&5
26468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26469 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26471 (eval $ac_try) 2>&5
26473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26474 test $ac_status = 0; }; }; then :
26476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26477 $as_echo "yes" >&6; }
26479 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
26483 $as_echo "$as_me: failed program was:" >&5
26484 sed 's/^/| /' conftest.
$ac_ext >&5
26486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26487 $as_echo "no" >&6; }
26495 EXTRA_KCFLAGS
="$tmp_flags"
26498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
26499 $as_echo_n "checking whether bio has bi_iter... " >&6; }
26502 cat confdefs.h
- <<_ACEOF >conftest.c
26505 #include <linux/bio.h>
26512 bio.bi_iter.bi_sector = 0;
26522 cat - <<_ACEOF >conftest.h
26527 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26528 echo "obj-m := conftest.o" >build
/Makefile
26530 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26531 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26533 (eval $ac_try) 2>&5
26535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26536 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26538 (eval $ac_try) 2>&5
26540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26541 test $ac_status = 0; }; }; then :
26543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26544 $as_echo "yes" >&6; }
26546 $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
26550 $as_echo "$as_me: failed program was:" >&5
26551 sed 's/^/| /' conftest.
$ac_ext >&5
26553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26554 $as_echo "no" >&6; }
26564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
26565 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
26568 cat confdefs.h
- <<_ACEOF >conftest.c
26571 #include <linux/bio.h>
26577 int flags __attribute__ ((unused));
26578 flags = ((1 << BIO_RW_FAILFAST_DEV) |
26579 (1 << BIO_RW_FAILFAST_TRANSPORT) |
26580 (1 << BIO_RW_FAILFAST_DRIVER));
26590 cat - <<_ACEOF >conftest.h
26595 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26596 echo "obj-m := conftest.o" >build
/Makefile
26598 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26599 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26601 (eval $ac_try) 2>&5
26603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26604 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26606 (eval $ac_try) 2>&5
26608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26609 test $ac_status = 0; }; }; then :
26611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26612 $as_echo "yes" >&6; }
26614 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
26618 $as_echo "$as_me: failed program was:" >&5
26619 sed 's/^/| /' conftest.
$ac_ext >&5
26621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26622 $as_echo "no" >&6; }
26632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
26633 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
26636 cat confdefs.h
- <<_ACEOF >conftest.c
26639 #include <linux/bio.h>
26645 int flags __attribute__ ((unused));
26646 flags = REQ_FAILFAST_MASK;
26656 cat - <<_ACEOF >conftest.h
26661 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26662 echo "obj-m := conftest.o" >build
/Makefile
26664 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26665 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26667 (eval $ac_try) 2>&5
26669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26670 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26671 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26672 (eval $ac_try) 2>&5
26674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26675 test $ac_status = 0; }; }; then :
26677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26678 $as_echo "yes" >&6; }
26680 $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h
26684 $as_echo "$as_me: failed program was:" >&5
26685 sed 's/^/| /' conftest.
$ac_ext >&5
26687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26688 $as_echo "no" >&6; }
26698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_DISCARD is defined" >&5
26699 $as_echo_n "checking whether REQ_OP_DISCARD is defined... " >&6; }
26702 cat confdefs.h
- <<_ACEOF >conftest.c
26705 #include <linux/blk_types.h>
26711 int op __attribute__ ((unused)) = REQ_OP_DISCARD;
26721 cat - <<_ACEOF >conftest.h
26726 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26727 echo "obj-m := conftest.o" >build
/Makefile
26729 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26730 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26731 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26732 (eval $ac_try) 2>&5
26734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26735 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26737 (eval $ac_try) 2>&5
26739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26740 test $ac_status = 0; }; }; then :
26742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26743 $as_echo "yes" >&6; }
26745 $as_echo "#define HAVE_REQ_OP_DISCARD 1" >>confdefs.h
26749 $as_echo "$as_me: failed program was:" >&5
26750 sed 's/^/| /' conftest.
$ac_ext >&5
26752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26753 $as_echo "no" >&6; }
26763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_SECURE_ERASE is defined" >&5
26764 $as_echo_n "checking whether REQ_OP_SECURE_ERASE is defined... " >&6; }
26767 cat confdefs.h
- <<_ACEOF >conftest.c
26770 #include <linux/blk_types.h>
26776 int op __attribute__ ((unused)) = REQ_OP_SECURE_ERASE;
26786 cat - <<_ACEOF >conftest.h
26791 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26792 echo "obj-m := conftest.o" >build
/Makefile
26794 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26795 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26796 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26797 (eval $ac_try) 2>&5
26799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26800 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26802 (eval $ac_try) 2>&5
26804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26805 test $ac_status = 0; }; }; then :
26807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26808 $as_echo "yes" >&6; }
26810 $as_echo "#define HAVE_REQ_OP_SECURE_ERASE 1" >>confdefs.h
26814 $as_echo "$as_me: failed program was:" >&5
26815 sed 's/^/| /' conftest.
$ac_ext >&5
26817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26818 $as_echo "no" >&6; }
26828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_OP_FLUSH is defined" >&5
26829 $as_echo_n "checking whether REQ_OP_FLUSH is defined... " >&6; }
26832 cat confdefs.h
- <<_ACEOF >conftest.c
26835 #include <linux/blk_types.h>
26841 int op __attribute__ ((unused)) = REQ_OP_FLUSH;
26851 cat - <<_ACEOF >conftest.h
26856 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26857 echo "obj-m := conftest.o" >build
/Makefile
26859 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26860 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26862 (eval $ac_try) 2>&5
26864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26865 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26867 (eval $ac_try) 2>&5
26869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26870 test $ac_status = 0; }; }; then :
26872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26873 $as_echo "yes" >&6; }
26875 $as_echo "#define HAVE_REQ_OP_FLUSH 1" >>confdefs.h
26879 $as_echo "$as_me: failed program was:" >&5
26880 sed 's/^/| /' conftest.
$ac_ext >&5
26882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26883 $as_echo "no" >&6; }
26893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio->bi_opf is defined" >&5
26894 $as_echo_n "checking whether bio->bi_opf is defined... " >&6; }
26897 cat confdefs.h
- <<_ACEOF >conftest.c
26900 #include <linux/bio.h>
26906 struct bio bio __attribute__ ((unused));
26917 cat - <<_ACEOF >conftest.h
26922 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26923 echo "obj-m := conftest.o" >build
/Makefile
26925 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26926 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26928 (eval $ac_try) 2>&5
26930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26931 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26933 (eval $ac_try) 2>&5
26935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26936 test $ac_status = 0; }; }; then :
26938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26939 $as_echo "yes" >&6; }
26941 $as_echo "#define HAVE_BIO_BI_OPF 1" >>confdefs.h
26945 $as_echo "$as_me: failed program was:" >&5
26946 sed 's/^/| /' conftest.
$ac_ext >&5
26948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26949 $as_echo "no" >&6; }
26959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5
26960 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
26963 cat confdefs.h
- <<_ACEOF >conftest.c
26966 #include <linux/bio.h>
26968 void wanted_end_io(struct bio *bio) { return; }
26970 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
26985 cat - <<_ACEOF >conftest.h
26990 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26991 echo "obj-m := conftest.o" >build
/Makefile
26993 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26994 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26996 (eval $ac_try) 2>&5
26998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26999 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27001 (eval $ac_try) 2>&5
27003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27004 test $ac_status = 0; }; }; then :
27006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27007 $as_echo "yes" >&6; }
27009 $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h
27013 $as_echo "$as_me: failed program was:" >&5
27014 sed 's/^/| /' conftest.
$ac_ext >&5
27016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27017 $as_echo "no" >&6; }
27027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5
27028 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
27031 cat confdefs.h
- <<_ACEOF >conftest.c
27034 #include <linux/bio.h>
27040 int flags __attribute__ ((unused));
27041 flags = BIO_RW_BARRIER;
27051 cat - <<_ACEOF >conftest.h
27056 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27057 echo "obj-m := conftest.o" >build
/Makefile
27059 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27060 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27062 (eval $ac_try) 2>&5
27064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27065 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27066 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27067 (eval $ac_try) 2>&5
27069 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27070 test $ac_status = 0; }; }; then :
27072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27073 $as_echo "yes" >&6; }
27075 $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h
27079 $as_echo "$as_me: failed program was:" >&5
27080 sed 's/^/| /' conftest.
$ac_ext >&5
27082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27083 $as_echo "no" >&6; }
27093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5
27094 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
27097 cat confdefs.h
- <<_ACEOF >conftest.c
27100 #include <linux/bio.h>
27106 int flags __attribute__ ((unused));
27107 flags = BIO_RW_DISCARD;
27117 cat - <<_ACEOF >conftest.h
27122 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27123 echo "obj-m := conftest.o" >build
/Makefile
27125 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27126 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27128 (eval $ac_try) 2>&5
27130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27131 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27132 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27133 (eval $ac_try) 2>&5
27135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27136 test $ac_status = 0; }; }; then :
27138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27139 $as_echo "yes" >&6; }
27141 $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h
27145 $as_echo "$as_me: failed program was:" >&5
27146 sed 's/^/| /' conftest.
$ac_ext >&5
27148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27149 $as_echo "no" >&6; }
27159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
27160 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
27161 tmp_flags
="$EXTRA_KCFLAGS"
27162 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
27165 cat confdefs.h
- <<_ACEOF >conftest.c
27168 #include <linux/blkdev.h>
27174 struct request_queue *q = NULL;
27175 (void) blk_queue_flush(q, REQ_FLUSH);
27185 cat - <<_ACEOF >conftest.h
27190 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27191 echo "obj-m := conftest.o" >build
/Makefile
27193 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27194 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27196 (eval $ac_try) 2>&5
27198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27199 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27201 (eval $ac_try) 2>&5
27203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27204 test $ac_status = 0; }; }; then :
27206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27207 $as_echo "yes" >&6; }
27209 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
27212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
27213 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
27216 cat confdefs.h
- <<_ACEOF >conftest.c
27219 #include <linux/module.h>
27220 #include <linux/blkdev.h>
27222 MODULE_LICENSE("$ZFS_META_LICENSE");
27228 struct request_queue *q = NULL;
27229 (void) blk_queue_flush(q, REQ_FLUSH);
27239 cat - <<_ACEOF >conftest.h
27244 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27245 echo "obj-m := conftest.o" >build
/Makefile
27247 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27248 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27250 (eval $ac_try) 2>&5
27252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27253 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27255 (eval $ac_try) 2>&5
27257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27258 test $ac_status = 0; }; }; then :
27260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27261 $as_echo "no" >&6; }
27264 $as_echo "$as_me: failed program was:" >&5
27265 sed 's/^/| /' conftest.
$ac_ext >&5
27267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27268 $as_echo "yes" >&6; }
27270 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
27281 $as_echo "$as_me: failed program was:" >&5
27282 sed 's/^/| /' conftest.
$ac_ext >&5
27284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27285 $as_echo "no" >&6; }
27294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() exists" >&5
27295 $as_echo_n "checking whether blk_queue_write_cache() exists... " >&6; }
27298 cat confdefs.h
- <<_ACEOF >conftest.c
27301 #include <linux/kernel.h>
27302 #include <linux/blkdev.h>
27309 struct request_queue *q = NULL;
27310 blk_queue_write_cache(q, true, true);
27320 cat - <<_ACEOF >conftest.h
27325 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27326 echo "obj-m := conftest.o" >build
/Makefile
27328 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27329 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27331 (eval $ac_try) 2>&5
27333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27334 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27336 (eval $ac_try) 2>&5
27338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27339 test $ac_status = 0; }; }; then :
27341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27342 $as_echo "yes" >&6; }
27344 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE 1" >>confdefs.h
27347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_write_cache() is GPL-only" >&5
27348 $as_echo_n "checking whether blk_queue_write_cache() is GPL-only... " >&6; }
27351 cat confdefs.h
- <<_ACEOF >conftest.c
27354 #include <linux/kernel.h>
27355 #include <linux/module.h>
27356 #include <linux/blkdev.h>
27358 MODULE_LICENSE("$ZFS_META_LICENSE");
27364 struct request_queue *q = NULL;
27365 blk_queue_write_cache(q, true, true);
27375 cat - <<_ACEOF >conftest.h
27380 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27381 echo "obj-m := conftest.o" >build
/Makefile
27383 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27384 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27386 (eval $ac_try) 2>&5
27388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27389 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27390 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27391 (eval $ac_try) 2>&5
27393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27394 test $ac_status = 0; }; }; then :
27396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27397 $as_echo "no" >&6; }
27400 $as_echo "$as_me: failed program was:" >&5
27401 sed 's/^/| /' conftest.
$ac_ext >&5
27403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27404 $as_echo "yes" >&6; }
27406 $as_echo "#define HAVE_BLK_QUEUE_WRITE_CACHE_GPL_ONLY 1" >>confdefs.h
27417 $as_echo "$as_me: failed program was:" >&5
27418 sed 's/^/| /' conftest.
$ac_ext >&5
27420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27421 $as_echo "no" >&6; }
27430 EXTRA_KCFLAGS
="$tmp_flags"
27433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
27434 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
27435 tmp_flags
="$EXTRA_KCFLAGS"
27436 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
27439 cat confdefs.h
- <<_ACEOF >conftest.c
27442 #include <linux/blkdev.h>
27448 struct request_queue *q = NULL;
27449 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
27459 cat - <<_ACEOF >conftest.h
27464 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27465 echo "obj-m := conftest.o" >build
/Makefile
27467 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27468 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27469 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27470 (eval $ac_try) 2>&5
27472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27473 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27475 (eval $ac_try) 2>&5
27477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27478 test $ac_status = 0; }; }; then :
27480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27481 $as_echo "yes" >&6; }
27483 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
27487 $as_echo "$as_me: failed program was:" >&5
27488 sed 's/^/| /' conftest.
$ac_ext >&5
27490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27491 $as_echo "no" >&6; }
27499 EXTRA_KCFLAGS
="$tmp_flags"
27502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
27503 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
27504 tmp_flags
="$EXTRA_KCFLAGS"
27505 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
27508 cat confdefs.h
- <<_ACEOF >conftest.c
27511 #include <linux/blkdev.h>
27517 struct request_queue *q = NULL;
27518 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
27528 cat - <<_ACEOF >conftest.h
27533 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27534 echo "obj-m := conftest.o" >build
/Makefile
27536 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27537 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27539 (eval $ac_try) 2>&5
27541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27542 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27544 (eval $ac_try) 2>&5
27546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27547 test $ac_status = 0; }; }; then :
27549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27550 $as_echo "yes" >&6; }
27552 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
27556 $as_echo "$as_me: failed program was:" >&5
27557 sed 's/^/| /' conftest.
$ac_ext >&5
27559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27560 $as_echo "no" >&6; }
27568 EXTRA_KCFLAGS
="$tmp_flags"
27571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the BIO_RW_UNPLUG enum is available" >&5
27572 $as_echo_n "checking whether the BIO_RW_UNPLUG enum is available... " >&6; }
27573 tmp_flags
="$EXTRA_KCFLAGS"
27574 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
27577 cat confdefs.h
- <<_ACEOF >conftest.c
27580 #include <linux/blkdev.h>
27586 extern enum bio_rw_flags rw;
27588 rw = BIO_RW_UNPLUG;
27598 cat - <<_ACEOF >conftest.h
27603 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27604 echo "obj-m := conftest.o" >build
/Makefile
27606 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27607 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27609 (eval $ac_try) 2>&5
27611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27612 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27614 (eval $ac_try) 2>&5
27616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27617 test $ac_status = 0; }; }; then :
27619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27620 $as_echo "yes" >&6; }
27622 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BIO_RW_UNPLUG 1" >>confdefs.h
27626 $as_echo "$as_me: failed program was:" >&5
27627 sed 's/^/| /' conftest.
$ac_ext >&5
27629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27630 $as_echo "no" >&6; }
27638 EXTRA_KCFLAGS
="$tmp_flags"
27641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct blk_plug is available" >&5
27642 $as_echo_n "checking whether struct blk_plug is available... " >&6; }
27643 tmp_flags
="$EXTRA_KCFLAGS"
27644 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
27647 cat confdefs.h
- <<_ACEOF >conftest.c
27650 #include <linux/blkdev.h>
27656 struct blk_plug plug;
27658 blk_start_plug(&plug);
27659 blk_finish_plug(&plug);
27669 cat - <<_ACEOF >conftest.h
27674 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27675 echo "obj-m := conftest.o" >build
/Makefile
27677 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27678 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27680 (eval $ac_try) 2>&5
27682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27683 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27685 (eval $ac_try) 2>&5
27687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27688 test $ac_status = 0; }; }; then :
27690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27691 $as_echo "yes" >&6; }
27693 $as_echo "#define HAVE_BLK_QUEUE_HAVE_BLK_PLUG 1" >>confdefs.h
27697 $as_echo "$as_me: failed program was:" >&5
27698 sed 's/^/| /' conftest.
$ac_ext >&5
27700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27701 $as_echo "no" >&6; }
27709 EXTRA_KCFLAGS
="$tmp_flags"
27712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
27713 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
27714 tmp_flags
="$EXTRA_KCFLAGS"
27715 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
27718 cat confdefs.h
- <<_ACEOF >conftest.c
27721 #include <linux/blkdev.h>
27727 struct gendisk *disk = NULL;
27728 (void) get_disk_ro(disk);
27738 cat - <<_ACEOF >conftest.h
27743 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27744 echo "obj-m := conftest.o" >build
/Makefile
27746 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27747 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27749 (eval $ac_try) 2>&5
27751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27752 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27754 (eval $ac_try) 2>&5
27756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27757 test $ac_status = 0; }; }; then :
27759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27760 $as_echo "yes" >&6; }
27762 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
27766 $as_echo "$as_me: failed program was:" >&5
27767 sed 's/^/| /' conftest.
$ac_ext >&5
27769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27770 $as_echo "no" >&6; }
27778 EXTRA_KCFLAGS
="$tmp_flags"
27780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
27781 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
27785 cat confdefs.h
- <<_ACEOF >conftest.c
27788 #include <linux/genhd.h>
27794 get_gendisk(0, NULL);
27804 cat - <<_ACEOF >conftest.h
27809 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27810 echo "obj-m := conftest.o" >build
/Makefile
27812 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27813 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27815 (eval $ac_try) 2>&5
27817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27818 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27820 (eval $ac_try) 2>&5
27822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27823 test $ac_status = 0; }; }; then :
27826 $as_echo "$as_me: failed program was:" >&5
27827 sed 's/^/| /' conftest.
$ac_ext >&5
27835 if test $rc -ne 0; then :
27837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27838 $as_echo "no" >&6; }
27841 if test "x$enable_linux_builtin" != xyes
; then
27843 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
27844 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
27846 if test $rc -ne 0; then
27848 for file in block
/genhd.c
; do
27849 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
27850 "$LINUX/$file" 2>/dev
/null
27852 if test $rc -eq 0; then
27857 if test $export -eq 0; then :
27867 if test $rc -ne 0; then :
27869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27870 $as_echo "no" >&6; }
27874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27875 $as_echo "yes" >&6; }
27877 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
27885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_set_op_attrs is available" >&5
27886 $as_echo_n "checking whether bio_set_op_attrs is available... " >&6; }
27889 cat confdefs.h
- <<_ACEOF >conftest.c
27892 #include <linux/blk_types.h>
27898 struct bio *bio __attribute__ ((unused)) = NULL;
27900 bio_set_op_attrs(bio, 0, 0);
27910 cat - <<_ACEOF >conftest.h
27915 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27916 echo "obj-m := conftest.o" >build
/Makefile
27918 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27919 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27920 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27921 (eval $ac_try) 2>&5
27923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27924 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27925 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27926 (eval $ac_try) 2>&5
27928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27929 test $ac_status = 0; }; }; then :
27931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27932 $as_echo "yes" >&6; }
27934 $as_echo "#define HAVE_BIO_SET_OP_ATTRS 1" >>confdefs.h
27938 $as_echo "$as_me: failed program was:" >&5
27939 sed 's/^/| /' conftest.
$ac_ext >&5
27941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27942 $as_echo "no" >&6; }
27952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_readlink is global" >&5
27953 $as_echo_n "checking whether generic_readlink is global... " >&6; }
27956 cat confdefs.h
- <<_ACEOF >conftest.c
27959 #include <linux/fs.h>
27965 int i __attribute__ ((unused));
27967 i = generic_readlink(NULL, NULL, 0);
27977 cat - <<_ACEOF >conftest.h
27982 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27983 echo "obj-m := conftest.o" >build
/Makefile
27985 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27986 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27988 (eval $ac_try) 2>&5
27990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27991 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27993 (eval $ac_try) 2>&5
27995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27996 test $ac_status = 0; }; }; then :
27998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27999 $as_echo "yes" >&6; }
28001 $as_echo "#define HAVE_GENERIC_READLINK 1" >>confdefs.h
28005 $as_echo "$as_me: failed program was:" >&5
28006 sed 's/^/| /' conftest.
$ac_ext >&5
28008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28009 $as_echo "no" >&6; }
28019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
28020 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
28023 cat confdefs.h
- <<_ACEOF >conftest.c
28026 #include <linux/blkdev.h>
28032 struct queue_limits ql __attribute__ ((unused));
28034 ql.discard_granularity = 0;
28044 cat - <<_ACEOF >conftest.h
28049 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28050 echo "obj-m := conftest.o" >build
/Makefile
28052 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28053 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28054 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28055 (eval $ac_try) 2>&5
28057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28058 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28060 (eval $ac_try) 2>&5
28062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28063 test $ac_status = 0; }; }; then :
28065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28066 $as_echo "yes" >&6; }
28068 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
28072 $as_echo "$as_me: failed program was:" >&5
28073 sed 's/^/| /' conftest.
$ac_ext >&5
28075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28076 $as_echo "no" >&6; }
28086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5
28087 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
28090 cat confdefs.h
- <<_ACEOF >conftest.c
28093 #include <linux/fs.h>
28094 #include <linux/xattr.h>
28096 const struct xattr_handler xattr_test_handler = {
28102 const struct xattr_handler *xattr_handlers[] = {
28103 &xattr_test_handler,
28106 const struct super_block sb __attribute__ ((unused)) = {
28107 .s_xattr = xattr_handlers,
28123 cat - <<_ACEOF >conftest.h
28128 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28129 echo "obj-m := conftest.o" >build
/Makefile
28131 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28132 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28134 (eval $ac_try) 2>&5
28136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28137 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28138 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28139 (eval $ac_try) 2>&5
28141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28142 test $ac_status = 0; }; }; then :
28144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28145 $as_echo "yes" >&6; }
28147 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
28151 $as_echo "$as_me: failed program was:" >&5
28152 sed 's/^/| /' conftest.
$ac_ext >&5
28154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28155 $as_echo "no" >&6; }
28165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler has name" >&5
28166 $as_echo_n "checking whether xattr_handler has name... " >&6; }
28169 cat confdefs.h
- <<_ACEOF >conftest.c
28172 #include <linux/xattr.h>
28174 static const struct xattr_handler
28175 xops __attribute__ ((unused)) = {
28176 .name = XATTR_NAME_POSIX_ACL_ACCESS,
28192 cat - <<_ACEOF >conftest.h
28197 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28198 echo "obj-m := conftest.o" >build
/Makefile
28200 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28201 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28202 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28203 (eval $ac_try) 2>&5
28205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28206 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28208 (eval $ac_try) 2>&5
28210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28211 test $ac_status = 0; }; }; then :
28213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28214 $as_echo "yes" >&6; }
28216 $as_echo "#define HAVE_XATTR_HANDLER_NAME 1" >>confdefs.h
28220 $as_echo "$as_me: failed program was:" >&5
28221 sed 's/^/| /' conftest.
$ac_ext >&5
28223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28224 $as_echo "no" >&6; }
28234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants both dentry and inode" >&5
28235 $as_echo_n "checking whether xattr_handler->get() wants both dentry and inode... " >&6; }
28238 cat confdefs.h
- <<_ACEOF >conftest.c
28241 #include <linux/xattr.h>
28243 int get(const struct xattr_handler *handler,
28244 struct dentry *dentry, struct inode *inode,
28245 const char *name, void *buffer, size_t size) { return 0; }
28246 static const struct xattr_handler
28247 xops __attribute__ ((unused)) = {
28264 cat - <<_ACEOF >conftest.h
28269 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28270 echo "obj-m := conftest.o" >build
/Makefile
28272 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28273 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28275 (eval $ac_try) 2>&5
28277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28278 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28279 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28280 (eval $ac_try) 2>&5
28282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28283 test $ac_status = 0; }; }; then :
28285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28286 $as_echo "yes" >&6; }
28288 $as_echo "#define HAVE_XATTR_GET_DENTRY_INODE 1" >>confdefs.h
28292 $as_echo "$as_me: failed program was:" >&5
28293 sed 's/^/| /' conftest.
$ac_ext >&5
28295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5
28296 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
28299 cat confdefs.h
- <<_ACEOF >conftest.c
28302 #include <linux/xattr.h>
28304 int get(const struct xattr_handler *handler,
28305 struct dentry *dentry, const char *name,
28306 void *buffer, size_t size) { return 0; }
28307 static const struct xattr_handler
28308 xops __attribute__ ((unused)) = {
28325 cat - <<_ACEOF >conftest.h
28330 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28331 echo "obj-m := conftest.o" >build
/Makefile
28333 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28334 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28336 (eval $ac_try) 2>&5
28338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28339 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28341 (eval $ac_try) 2>&5
28343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28344 test $ac_status = 0; }; }; then :
28346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28347 $as_echo "yes" >&6; }
28349 $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h
28353 $as_echo "$as_me: failed program was:" >&5
28354 sed 's/^/| /' conftest.
$ac_ext >&5
28356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28357 $as_echo "no" >&6; }
28358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
28359 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
28362 cat confdefs.h
- <<_ACEOF >conftest.c
28365 #include <linux/xattr.h>
28367 int get(struct dentry *dentry, const char *name,
28368 void *buffer, size_t size, int handler_flags)
28370 static const struct xattr_handler
28371 xops __attribute__ ((unused)) = {
28388 cat - <<_ACEOF >conftest.h
28393 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28394 echo "obj-m := conftest.o" >build
/Makefile
28396 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28397 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28398 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28399 (eval $ac_try) 2>&5
28401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28402 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28403 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28404 (eval $ac_try) 2>&5
28406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28407 test $ac_status = 0; }; }; then :
28409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28410 $as_echo "yes" >&6; }
28412 $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h
28416 $as_echo "$as_me: failed program was:" >&5
28417 sed 's/^/| /' conftest.
$ac_ext >&5
28419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28420 $as_echo "no" >&6; }
28421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5
28422 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
28425 cat confdefs.h
- <<_ACEOF >conftest.c
28428 #include <linux/xattr.h>
28430 int get(struct inode *ip, const char *name,
28431 void *buffer, size_t size) { return 0; }
28432 static const struct xattr_handler
28433 xops __attribute__ ((unused)) = {
28450 cat - <<_ACEOF >conftest.h
28455 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28456 echo "obj-m := conftest.o" >build
/Makefile
28458 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28459 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28461 (eval $ac_try) 2>&5
28463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28464 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28466 (eval $ac_try) 2>&5
28468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28469 test $ac_status = 0; }; }; then :
28471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28472 $as_echo "yes" >&6; }
28474 $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h
28478 $as_echo "$as_me: failed program was:" >&5
28479 sed 's/^/| /' conftest.
$ac_ext >&5
28481 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
28512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants both dentry and inode" >&5
28513 $as_echo_n "checking whether xattr_handler->set() wants both dentry and inode... " >&6; }
28516 cat confdefs.h
- <<_ACEOF >conftest.c
28519 #include <linux/xattr.h>
28521 int set(const struct xattr_handler *handler,
28522 struct dentry *dentry, struct inode *inode,
28523 const char *name, const void *buffer,
28524 size_t size, int flags)
28526 static const struct xattr_handler
28527 xops __attribute__ ((unused)) = {
28544 cat - <<_ACEOF >conftest.h
28549 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28550 echo "obj-m := conftest.o" >build
/Makefile
28552 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28553 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28555 (eval $ac_try) 2>&5
28557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28558 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28560 (eval $ac_try) 2>&5
28562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28563 test $ac_status = 0; }; }; then :
28565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28566 $as_echo "yes" >&6; }
28568 $as_echo "#define HAVE_XATTR_SET_DENTRY_INODE 1" >>confdefs.h
28572 $as_echo "$as_me: failed program was:" >&5
28573 sed 's/^/| /' conftest.
$ac_ext >&5
28575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5
28576 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
28579 cat confdefs.h
- <<_ACEOF >conftest.c
28582 #include <linux/xattr.h>
28584 int set(const struct xattr_handler *handler,
28585 struct dentry *dentry, const char *name,
28586 const void *buffer, size_t size, int flags)
28588 static const struct xattr_handler
28589 xops __attribute__ ((unused)) = {
28606 cat - <<_ACEOF >conftest.h
28611 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28612 echo "obj-m := conftest.o" >build
/Makefile
28614 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28615 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28616 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28617 (eval $ac_try) 2>&5
28619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28620 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28622 (eval $ac_try) 2>&5
28624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28625 test $ac_status = 0; }; }; then :
28627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28628 $as_echo "yes" >&6; }
28630 $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h
28634 $as_echo "$as_me: failed program was:" >&5
28635 sed 's/^/| /' conftest.
$ac_ext >&5
28637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28638 $as_echo "no" >&6; }
28639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
28640 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
28643 cat confdefs.h
- <<_ACEOF >conftest.c
28646 #include <linux/xattr.h>
28648 int set(struct dentry *dentry, const char *name,
28649 const void *buffer, size_t size, int flags,
28650 int handler_flags) { return 0; }
28651 static const struct xattr_handler
28652 xops __attribute__ ((unused)) = {
28669 cat - <<_ACEOF >conftest.h
28674 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28675 echo "obj-m := conftest.o" >build
/Makefile
28677 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28678 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28679 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28680 (eval $ac_try) 2>&5
28682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28683 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28685 (eval $ac_try) 2>&5
28687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28688 test $ac_status = 0; }; }; then :
28690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28691 $as_echo "yes" >&6; }
28693 $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h
28697 $as_echo "$as_me: failed program was:" >&5
28698 sed 's/^/| /' conftest.
$ac_ext >&5
28700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28701 $as_echo "no" >&6; }
28702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5
28703 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
28706 cat confdefs.h
- <<_ACEOF >conftest.c
28709 #include <linux/xattr.h>
28711 int set(struct inode *ip, const char *name,
28712 const void *buffer, size_t size, int flags)
28714 static const struct xattr_handler
28715 xops __attribute__ ((unused)) = {
28732 cat - <<_ACEOF >conftest.h
28737 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28738 echo "obj-m := conftest.o" >build
/Makefile
28740 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28741 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28742 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28743 (eval $ac_try) 2>&5
28745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28746 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28747 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28748 (eval $ac_try) 2>&5
28750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28751 test $ac_status = 0; }; }; then :
28753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28754 $as_echo "yes" >&6; }
28756 $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h
28760 $as_echo "$as_me: failed program was:" >&5
28761 sed 's/^/| /' conftest.
$ac_ext >&5
28763 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
28794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5
28795 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
28798 cat confdefs.h
- <<_ACEOF >conftest.c
28801 #include <linux/xattr.h>
28803 bool list(struct dentry *dentry) { return 0; }
28804 static const struct xattr_handler
28805 xops __attribute__ ((unused)) = {
28822 cat - <<_ACEOF >conftest.h
28827 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28828 echo "obj-m := conftest.o" >build
/Makefile
28830 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28831 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28833 (eval $ac_try) 2>&5
28835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28836 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28838 (eval $ac_try) 2>&5
28840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28841 test $ac_status = 0; }; }; then :
28843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28844 $as_echo "yes" >&6; }
28846 $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h
28850 $as_echo "$as_me: failed program was:" >&5
28851 sed 's/^/| /' conftest.
$ac_ext >&5
28853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28854 $as_echo "no" >&6; }
28855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5
28856 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
28859 cat confdefs.h
- <<_ACEOF >conftest.c
28862 #include <linux/xattr.h>
28864 size_t list(const struct xattr_handler *handler,
28865 struct dentry *dentry, char *list, size_t list_size,
28866 const char *name, size_t name_len) { return 0; }
28867 static const struct xattr_handler
28868 xops __attribute__ ((unused)) = {
28885 cat - <<_ACEOF >conftest.h
28890 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28891 echo "obj-m := conftest.o" >build
/Makefile
28893 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28894 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28895 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28896 (eval $ac_try) 2>&5
28898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28899 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28901 (eval $ac_try) 2>&5
28903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28904 test $ac_status = 0; }; }; then :
28906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28907 $as_echo "yes" >&6; }
28909 $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h
28913 $as_echo "$as_me: failed program was:" >&5
28914 sed 's/^/| /' conftest.
$ac_ext >&5
28916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28917 $as_echo "no" >&6; }
28918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
28919 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
28922 cat confdefs.h
- <<_ACEOF >conftest.c
28925 #include <linux/xattr.h>
28927 size_t list(struct dentry *dentry,
28928 char *list, size_t list_size,
28929 const char *name, size_t name_len,
28930 int handler_flags) { return 0; }
28931 static const struct xattr_handler
28932 xops __attribute__ ((unused)) = {
28949 cat - <<_ACEOF >conftest.h
28954 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28955 echo "obj-m := conftest.o" >build
/Makefile
28957 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28958 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28960 (eval $ac_try) 2>&5
28962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28963 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28965 (eval $ac_try) 2>&5
28967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28968 test $ac_status = 0; }; }; then :
28970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28971 $as_echo "yes" >&6; }
28973 $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h
28977 $as_echo "$as_me: failed program was:" >&5
28978 sed 's/^/| /' conftest.
$ac_ext >&5
28980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28981 $as_echo "no" >&6; }
28982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5
28983 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
28986 cat confdefs.h
- <<_ACEOF >conftest.c
28989 #include <linux/xattr.h>
28991 size_t list(struct inode *ip, char *lst,
28992 size_t list_size, const char *name,
28993 size_t name_len) { return 0; }
28994 static const struct xattr_handler
28995 xops __attribute__ ((unused)) = {
29012 cat - <<_ACEOF >conftest.h
29017 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29018 echo "obj-m := conftest.o" >build
/Makefile
29020 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29021 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29023 (eval $ac_try) 2>&5
29025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29026 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29028 (eval $ac_try) 2>&5
29030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29031 test $ac_status = 0; }; }; then :
29033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29034 $as_echo "yes" >&6; }
29036 $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h
29040 $as_echo "$as_me: failed program was:" >&5
29041 sed 's/^/| /' conftest.
$ac_ext >&5
29043 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
29074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
29075 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
29078 cat confdefs.h
- <<_ACEOF >conftest.c
29081 #include <linux/fs.h>
29087 struct inode *ip = NULL;
29088 (void) inode_owner_or_capable(ip);
29098 cat - <<_ACEOF >conftest.h
29103 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29104 echo "obj-m := conftest.o" >build
/Makefile
29106 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29107 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29108 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29109 (eval $ac_try) 2>&5
29111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29112 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29113 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29114 (eval $ac_try) 2>&5
29116 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29117 test $ac_status = 0; }; }; then :
29119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29120 $as_echo "yes" >&6; }
29122 $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
29126 $as_echo "$as_me: failed program was:" >&5
29127 sed 's/^/| /' conftest.
$ac_ext >&5
29129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29130 $as_echo "no" >&6; }
29131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
29132 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
29135 cat confdefs.h
- <<_ACEOF >conftest.c
29138 #include <linux/fs.h>
29139 #include <linux/sched.h>
29145 struct inode *ip = NULL;
29146 (void) is_owner_or_cap(ip);
29156 cat - <<_ACEOF >conftest.h
29161 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29162 echo "obj-m := conftest.o" >build
/Makefile
29164 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29165 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29167 (eval $ac_try) 2>&5
29169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29170 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29172 (eval $ac_try) 2>&5
29174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29175 test $ac_status = 0; }; }; then :
29177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29178 $as_echo "yes" >&6; }
29180 $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
29184 $as_echo "$as_me: failed program was:" >&5
29185 sed 's/^/| /' conftest.
$ac_ext >&5
29187 as_fn_error $?
"no - Please file a bug report at
29188 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
29205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
29206 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
29209 cat confdefs.h
- <<_ACEOF >conftest.c
29212 #include <linux/cred.h>
29213 #include <linux/fs.h>
29214 #include <linux/posix_acl_xattr.h>
29220 posix_acl_from_xattr(&init_user_ns, NULL, 0);
29230 cat - <<_ACEOF >conftest.h
29235 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29236 echo "obj-m := conftest.o" >build
/Makefile
29238 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29239 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29241 (eval $ac_try) 2>&5
29243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29244 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29246 (eval $ac_try) 2>&5
29248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29249 test $ac_status = 0; }; }; then :
29251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29252 $as_echo "yes" >&6; }
29254 $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
29258 $as_echo "$as_me: failed program was:" >&5
29259 sed 's/^/| /' conftest.
$ac_ext >&5
29261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29262 $as_echo "no" >&6; }
29272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
29273 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
29276 cat confdefs.h
- <<_ACEOF >conftest.c
29279 #include <linux/cred.h>
29280 #include <linux/fs.h>
29281 #include <linux/posix_acl.h>
29287 struct posix_acl* tmp = posix_acl_alloc(1, 0);
29288 posix_acl_release(tmp);
29298 cat - <<_ACEOF >conftest.h
29303 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29304 echo "obj-m := conftest.o" >build
/Makefile
29306 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29307 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29308 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29309 (eval $ac_try) 2>&5
29311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29312 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29313 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29314 (eval $ac_try) 2>&5
29316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29317 test $ac_status = 0; }; }; then :
29319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29320 $as_echo "yes" >&6; }
29322 $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
29326 $as_echo "$as_me: failed program was:" >&5
29327 sed 's/^/| /' conftest.
$ac_ext >&5
29329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29330 $as_echo "no" >&6; }
29339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
29340 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
29343 cat confdefs.h
- <<_ACEOF >conftest.c
29346 #include <linux/cred.h>
29347 #include <linux/fs.h>
29348 #include <linux/posix_acl.h>
29350 MODULE_LICENSE("$ZFS_META_LICENSE");
29356 struct posix_acl* tmp = posix_acl_alloc(1, 0);
29357 posix_acl_release(tmp);
29367 cat - <<_ACEOF >conftest.h
29372 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29373 echo "obj-m := conftest.o" >build
/Makefile
29375 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29376 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29377 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29378 (eval $ac_try) 2>&5
29380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29381 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29383 (eval $ac_try) 2>&5
29385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29386 test $ac_status = 0; }; }; then :
29388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29389 $as_echo "no" >&6; }
29392 $as_echo "$as_me: failed program was:" >&5
29393 sed 's/^/| /' conftest.
$ac_ext >&5
29395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29396 $as_echo "yes" >&6; }
29398 $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
29409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_cached_acl() is usable" >&5
29410 $as_echo_n "checking whether set_cached_acl() is usable... " >&6; }
29413 cat confdefs.h
- <<_ACEOF >conftest.c
29416 #include <linux/module.h>
29417 #include <linux/cred.h>
29418 #include <linux/fs.h>
29419 #include <linux/posix_acl.h>
29421 MODULE_LICENSE("$ZFS_META_LICENSE");
29427 struct inode *ip = NULL;
29428 struct posix_acl *acl = posix_acl_alloc(1, 0);
29429 set_cached_acl(ip, ACL_TYPE_ACCESS, acl);
29430 forget_cached_acl(ip, ACL_TYPE_ACCESS);
29440 cat - <<_ACEOF >conftest.h
29445 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29446 echo "obj-m := conftest.o" >build
/Makefile
29448 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29449 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29450 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29451 (eval $ac_try) 2>&5
29453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29454 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29456 (eval $ac_try) 2>&5
29458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29459 test $ac_status = 0; }; }; then :
29461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29462 $as_echo "yes" >&6; }
29464 $as_echo "#define HAVE_SET_CACHED_ACL_USABLE 1" >>confdefs.h
29468 $as_echo "$as_me: failed program was:" >&5
29469 sed 's/^/| /' conftest.
$ac_ext >&5
29471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29472 $as_echo "no" >&6; }
29482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
29483 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
29486 cat confdefs.h
- <<_ACEOF >conftest.c
29489 #include <linux/fs.h>
29490 #include <linux/posix_acl.h>
29496 posix_acl_chmod(NULL, 0, 0)
29506 cat - <<_ACEOF >conftest.h
29511 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29512 echo "obj-m := conftest.o" >build
/Makefile
29514 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29515 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29517 (eval $ac_try) 2>&5
29519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29520 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29521 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29522 (eval $ac_try) 2>&5
29524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29525 test $ac_status = 0; }; }; then :
29527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29528 $as_echo "yes" >&6; }
29530 $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
29534 $as_echo "$as_me: failed program was:" >&5
29535 sed 's/^/| /' conftest.
$ac_ext >&5
29537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29538 $as_echo "no" >&6; }
29547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
29548 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
29551 cat confdefs.h
- <<_ACEOF >conftest.c
29554 #include <linux/fs.h>
29555 #include <linux/posix_acl.h>
29561 __posix_acl_chmod(NULL, 0, 0)
29571 cat - <<_ACEOF >conftest.h
29576 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29577 echo "obj-m := conftest.o" >build
/Makefile
29579 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29580 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29582 (eval $ac_try) 2>&5
29584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29585 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29587 (eval $ac_try) 2>&5
29589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29590 test $ac_status = 0; }; }; then :
29592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29593 $as_echo "yes" >&6; }
29595 $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
29599 $as_echo "$as_me: failed program was:" >&5
29600 sed 's/^/| /' conftest.
$ac_ext >&5
29602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29603 $as_echo "no" >&6; }
29613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
29614 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
29617 cat confdefs.h
- <<_ACEOF >conftest.c
29620 #include <linux/fs.h>
29621 #include <linux/posix_acl.h>
29628 posix_acl_equiv_mode(NULL,&tmp);
29638 cat - <<_ACEOF >conftest.h
29643 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29644 echo "obj-m := conftest.o" >build
/Makefile
29646 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29647 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29649 (eval $ac_try) 2>&5
29651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29652 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29654 (eval $ac_try) 2>&5
29656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29657 test $ac_status = 0; }; }; then :
29659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29660 $as_echo "yes" >&6; }
29662 $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
29666 $as_echo "$as_me: failed program was:" >&5
29667 sed 's/^/| /' conftest.
$ac_ext >&5
29669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29670 $as_echo "no" >&6; }
29680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5
29681 $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
29684 cat confdefs.h
- <<_ACEOF >conftest.c
29687 #include <linux/fs.h>
29688 #include <linux/posix_acl.h>
29694 struct user_namespace *user_ns = NULL;
29695 const struct posix_acl *acl = NULL;
29698 error = posix_acl_valid(user_ns, acl);
29708 cat - <<_ACEOF >conftest.h
29713 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29714 echo "obj-m := conftest.o" >build
/Makefile
29716 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29717 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29719 (eval $ac_try) 2>&5
29721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29722 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29723 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29724 (eval $ac_try) 2>&5
29726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29727 test $ac_status = 0; }; }; then :
29729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29730 $as_echo "yes" >&6; }
29732 $as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h
29736 $as_echo "$as_me: failed program was:" >&5
29737 sed 's/^/| /' conftest.
$ac_ext >&5
29739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29740 $as_echo "no" >&6; }
29750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
29751 $as_echo_n "checking whether iops->permission() exists... " >&6; }
29754 cat confdefs.h
- <<_ACEOF >conftest.c
29757 #include <linux/fs.h>
29759 int permission_fn(struct inode *inode, int mask) { return 0; }
29761 static const struct inode_operations
29762 iops __attribute__ ((unused)) = {
29763 .permission = permission_fn,
29779 cat - <<_ACEOF >conftest.h
29784 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29785 echo "obj-m := conftest.o" >build
/Makefile
29787 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29788 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29790 (eval $ac_try) 2>&5
29792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29793 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29794 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29795 (eval $ac_try) 2>&5
29797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29798 test $ac_status = 0; }; }; then :
29800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29801 $as_echo "yes" >&6; }
29803 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
29807 $as_echo "$as_me: failed program was:" >&5
29808 sed 's/^/| /' conftest.
$ac_ext >&5
29810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29811 $as_echo "no" >&6; }
29821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
29822 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
29825 cat confdefs.h
- <<_ACEOF >conftest.c
29828 #include <linux/fs.h>
29830 int permission_fn(struct inode *inode, int mask,
29831 struct nameidata *nd) { return 0; }
29833 static const struct inode_operations
29834 iops __attribute__ ((unused)) = {
29835 .permission = permission_fn,
29851 cat - <<_ACEOF >conftest.h
29856 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29857 echo "obj-m := conftest.o" >build
/Makefile
29859 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29860 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29862 (eval $ac_try) 2>&5
29864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29865 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29866 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29867 (eval $ac_try) 2>&5
29869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29870 test $ac_status = 0; }; }; then :
29872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29873 $as_echo "yes" >&6; }
29875 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
29878 $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
29882 $as_echo "$as_me: failed program was:" >&5
29883 sed 's/^/| /' conftest.
$ac_ext >&5
29885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29886 $as_echo "no" >&6; }
29896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
29897 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
29900 cat confdefs.h
- <<_ACEOF >conftest.c
29903 #include <linux/fs.h>
29905 int check_acl_fn(struct inode *inode, int mask) { return 0; }
29907 static const struct inode_operations
29908 iops __attribute__ ((unused)) = {
29909 .check_acl = check_acl_fn,
29925 cat - <<_ACEOF >conftest.h
29930 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29931 echo "obj-m := conftest.o" >build
/Makefile
29933 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29934 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29936 (eval $ac_try) 2>&5
29938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29939 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29941 (eval $ac_try) 2>&5
29943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29944 test $ac_status = 0; }; }; then :
29946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29947 $as_echo "yes" >&6; }
29949 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
29953 $as_echo "$as_me: failed program was:" >&5
29954 sed 's/^/| /' conftest.
$ac_ext >&5
29956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29957 $as_echo "no" >&6; }
29967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
29968 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
29971 cat confdefs.h
- <<_ACEOF >conftest.c
29974 #include <linux/fs.h>
29976 int check_acl_fn(struct inode *inode, int mask,
29977 unsigned int flags) { return 0; }
29979 static const struct inode_operations
29980 iops __attribute__ ((unused)) = {
29981 .check_acl = check_acl_fn,
29997 cat - <<_ACEOF >conftest.h
30002 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30003 echo "obj-m := conftest.o" >build
/Makefile
30005 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30006 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30007 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30008 (eval $ac_try) 2>&5
30010 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30011 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30013 (eval $ac_try) 2>&5
30015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30016 test $ac_status = 0; }; }; then :
30018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30019 $as_echo "yes" >&6; }
30021 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
30024 $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
30028 $as_echo "$as_me: failed program was:" >&5
30029 sed 's/^/| /' conftest.
$ac_ext >&5
30031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30032 $as_echo "no" >&6; }
30042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
30043 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
30046 cat confdefs.h
- <<_ACEOF >conftest.c
30049 #include <linux/fs.h>
30051 struct posix_acl *get_acl_fn(struct inode *inode, int type)
30054 static const struct inode_operations
30055 iops __attribute__ ((unused)) = {
30056 .get_acl = get_acl_fn,
30072 cat - <<_ACEOF >conftest.h
30077 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30078 echo "obj-m := conftest.o" >build
/Makefile
30080 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30081 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30083 (eval $ac_try) 2>&5
30085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30086 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30088 (eval $ac_try) 2>&5
30090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30091 test $ac_status = 0; }; }; then :
30093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30094 $as_echo "yes" >&6; }
30096 $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
30100 $as_echo "$as_me: failed program was:" >&5
30101 sed 's/^/| /' conftest.
$ac_ext >&5
30103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30104 $as_echo "no" >&6; }
30114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->set_acl() exists" >&5
30115 $as_echo_n "checking whether iops->set_acl() exists... " >&6; }
30118 cat confdefs.h
- <<_ACEOF >conftest.c
30121 #include <linux/fs.h>
30123 int set_acl_fn(struct inode *inode, struct posix_acl *acl, int type)
30126 static const struct inode_operations
30127 iops __attribute__ ((unused)) = {
30128 .set_acl = set_acl_fn,
30144 cat - <<_ACEOF >conftest.h
30149 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30150 echo "obj-m := conftest.o" >build
/Makefile
30152 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30153 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30154 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30155 (eval $ac_try) 2>&5
30157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30158 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30160 (eval $ac_try) 2>&5
30162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30163 test $ac_status = 0; }; }; then :
30165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30166 $as_echo "yes" >&6; }
30168 $as_echo "#define HAVE_SET_ACL 1" >>confdefs.h
30172 $as_echo "$as_me: failed program was:" >&5
30173 sed 's/^/| /' conftest.
$ac_ext >&5
30175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30176 $as_echo "no" >&6; }
30186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether uncached_acl_sentinel() exists" >&5
30187 $as_echo_n "checking whether uncached_acl_sentinel() exists... " >&6; }
30190 cat confdefs.h
- <<_ACEOF >conftest.c
30193 #include <linux/fs.h>
30199 void *sentinel __attribute__ ((unused)) = uncached_acl_sentinel(NULL);
30209 cat - <<_ACEOF >conftest.h
30214 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30215 echo "obj-m := conftest.o" >build
/Makefile
30217 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30218 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30220 (eval $ac_try) 2>&5
30222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30223 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30224 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30225 (eval $ac_try) 2>&5
30227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30228 test $ac_status = 0; }; }; then :
30230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30231 $as_echo "yes" >&6; }
30233 $as_echo "#define HAVE_KERNEL_GET_ACL_HANDLE_CACHE 1" >>confdefs.h
30237 $as_echo "$as_me: failed program was:" >&5
30238 sed 's/^/| /' conftest.
$ac_ext >&5
30240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30241 $as_echo "no" >&6; }
30251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
30252 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
30256 cat confdefs.h
- <<_ACEOF >conftest.c
30259 #include <linux/fs.h>
30261 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
30262 static struct super_operations sops __attribute__ ((unused)) = {
30263 .show_options = show_options,
30279 cat - <<_ACEOF >conftest.h
30284 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30285 echo "obj-m := conftest.o" >build
/Makefile
30287 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30288 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30290 (eval $ac_try) 2>&5
30292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30293 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30294 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30295 (eval $ac_try) 2>&5
30297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30298 test $ac_status = 0; }; }; then :
30300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30301 $as_echo "yes" >&6; }
30303 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
30307 $as_echo "$as_me: failed program was:" >&5
30308 sed 's/^/| /' conftest.
$ac_ext >&5
30310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30311 $as_echo "no" >&6; }
30321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
30322 $as_echo_n "checking whether file_inode() is available... " >&6; }
30325 cat confdefs.h
- <<_ACEOF >conftest.c
30328 #include <linux/fs.h>
30334 struct file *f = NULL;
30345 cat - <<_ACEOF >conftest.h
30350 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30351 echo "obj-m := conftest.o" >build
/Makefile
30353 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30354 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30356 (eval $ac_try) 2>&5
30358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30359 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30360 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30361 (eval $ac_try) 2>&5
30363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30364 test $ac_status = 0; }; }; then :
30366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30367 $as_echo "yes" >&6; }
30369 $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
30373 $as_echo "$as_me: failed program was:" >&5
30374 sed 's/^/| /' conftest.
$ac_ext >&5
30376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30377 $as_echo "no" >&6; }
30387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
30388 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
30392 cat confdefs.h
- <<_ACEOF >conftest.c
30395 #include <linux/fs.h>
30397 int test_fsync(struct file *f, struct dentry *dentry, int x)
30400 static const struct file_operations
30401 fops __attribute__ ((unused)) = {
30402 .fsync = test_fsync,
30418 cat - <<_ACEOF >conftest.h
30423 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30424 echo "obj-m := conftest.o" >build
/Makefile
30426 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30427 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30429 (eval $ac_try) 2>&5
30431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30432 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30434 (eval $ac_try) 2>&5
30436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30437 test $ac_status = 0; }; }; then :
30439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
30440 $as_echo "dentry" >&6; }
30442 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
30446 $as_echo "$as_me: failed program was:" >&5
30447 sed 's/^/| /' conftest.
$ac_ext >&5
30460 cat confdefs.h
- <<_ACEOF >conftest.c
30463 #include <linux/fs.h>
30465 int test_fsync(struct file *f, int x) { return 0; }
30467 static const struct file_operations
30468 fops __attribute__ ((unused)) = {
30469 .fsync = test_fsync,
30485 cat - <<_ACEOF >conftest.h
30490 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30491 echo "obj-m := conftest.o" >build
/Makefile
30493 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30494 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30495 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30496 (eval $ac_try) 2>&5
30498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30499 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30501 (eval $ac_try) 2>&5
30503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30504 test $ac_status = 0; }; }; then :
30506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
30507 $as_echo "no dentry" >&6; }
30509 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
30513 $as_echo "$as_me: failed program was:" >&5
30514 sed 's/^/| /' conftest.
$ac_ext >&5
30527 cat confdefs.h
- <<_ACEOF >conftest.c
30530 #include <linux/fs.h>
30532 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
30535 static const struct file_operations
30536 fops __attribute__ ((unused)) = {
30537 .fsync = test_fsync,
30553 cat - <<_ACEOF >conftest.h
30558 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30559 echo "obj-m := conftest.o" >build
/Makefile
30561 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30562 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30564 (eval $ac_try) 2>&5
30566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30567 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30569 (eval $ac_try) 2>&5
30571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30572 test $ac_status = 0; }; }; then :
30574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
30575 $as_echo "range" >&6; }
30577 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
30581 $as_echo "$as_me: failed program was:" >&5
30582 sed 's/^/| /' conftest.
$ac_ext >&5
30594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
30595 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
30598 cat confdefs.h
- <<_ACEOF >conftest.c
30601 #include <linux/fs.h>
30602 void evict_inode (struct inode * t) { return; }
30603 static struct super_operations sops __attribute__ ((unused)) = {
30604 .evict_inode = evict_inode,
30620 cat - <<_ACEOF >conftest.h
30625 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30626 echo "obj-m := conftest.o" >build
/Makefile
30628 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30629 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30630 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30631 (eval $ac_try) 2>&5
30633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30634 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30635 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30636 (eval $ac_try) 2>&5
30638 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30639 test $ac_status = 0; }; }; then :
30641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30642 $as_echo "yes" >&6; }
30644 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
30648 $as_echo "$as_me: failed program was:" >&5
30649 sed 's/^/| /' conftest.
$ac_ext >&5
30651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30652 $as_echo "no" >&6; }
30662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
30663 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
30666 cat confdefs.h
- <<_ACEOF >conftest.c
30669 #include <linux/fs.h>
30671 void dirty_inode(struct inode *a, int b) { return; }
30673 static const struct super_operations
30674 sops __attribute__ ((unused)) = {
30675 .dirty_inode = dirty_inode,
30691 cat - <<_ACEOF >conftest.h
30696 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30697 echo "obj-m := conftest.o" >build
/Makefile
30699 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30700 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30701 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30702 (eval $ac_try) 2>&5
30704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30705 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30707 (eval $ac_try) 2>&5
30709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30710 test $ac_status = 0; }; }; then :
30712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30713 $as_echo "yes" >&6; }
30715 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
30719 $as_echo "$as_me: failed program was:" >&5
30720 sed 's/^/| /' conftest.
$ac_ext >&5
30722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30723 $as_echo "no" >&6; }
30733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
30734 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
30737 cat confdefs.h
- <<_ACEOF >conftest.c
30740 #include <linux/fs.h>
30742 int nr_cached_objects(struct super_block *sb) { return 0; }
30744 static const struct super_operations
30745 sops __attribute__ ((unused)) = {
30746 .nr_cached_objects = nr_cached_objects,
30762 cat - <<_ACEOF >conftest.h
30767 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30768 echo "obj-m := conftest.o" >build
/Makefile
30770 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30771 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30772 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30773 (eval $ac_try) 2>&5
30775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30776 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30777 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30778 (eval $ac_try) 2>&5
30780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30781 test $ac_status = 0; }; }; then :
30783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30784 $as_echo "yes" >&6; }
30786 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
30790 $as_echo "$as_me: failed program was:" >&5
30791 sed 's/^/| /' conftest.
$ac_ext >&5
30793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30794 $as_echo "no" >&6; }
30804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
30805 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
30808 cat confdefs.h
- <<_ACEOF >conftest.c
30811 #include <linux/fs.h>
30813 void free_cached_objects(struct super_block *sb, int x)
30816 static const struct super_operations
30817 sops __attribute__ ((unused)) = {
30818 .free_cached_objects = free_cached_objects,
30834 cat - <<_ACEOF >conftest.h
30839 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30840 echo "obj-m := conftest.o" >build
/Makefile
30842 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30843 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30845 (eval $ac_try) 2>&5
30847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30848 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30850 (eval $ac_try) 2>&5
30852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30853 test $ac_status = 0; }; }; then :
30855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30856 $as_echo "yes" >&6; }
30858 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
30862 $as_echo "$as_me: failed program was:" >&5
30863 sed 's/^/| /' conftest.
$ac_ext >&5
30865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30866 $as_echo "no" >&6; }
30877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
30878 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
30881 cat confdefs.h
- <<_ACEOF >conftest.c
30884 #include <linux/fs.h>
30886 long test_fallocate(struct file *file, int mode,
30887 loff_t offset, loff_t len) { return 0; }
30889 static const struct file_operations
30890 fops __attribute__ ((unused)) = {
30891 .fallocate = test_fallocate,
30907 cat - <<_ACEOF >conftest.h
30912 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30913 echo "obj-m := conftest.o" >build
/Makefile
30915 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30916 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30918 (eval $ac_try) 2>&5
30920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30921 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30923 (eval $ac_try) 2>&5
30925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30926 test $ac_status = 0; }; }; then :
30928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30929 $as_echo "yes" >&6; }
30931 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
30935 $as_echo "$as_me: failed program was:" >&5
30936 sed 's/^/| /' conftest.
$ac_ext >&5
30938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30939 $as_echo "no" >&6; }
30949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
30950 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
30953 cat confdefs.h
- <<_ACEOF >conftest.c
30956 #include <linux/fs.h>
30958 long test_fallocate(struct inode *inode, int mode,
30959 loff_t offset, loff_t len) { return 0; }
30961 static const struct inode_operations
30962 fops __attribute__ ((unused)) = {
30963 .fallocate = test_fallocate,
30979 cat - <<_ACEOF >conftest.h
30984 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30985 echo "obj-m := conftest.o" >build
/Makefile
30987 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30988 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30990 (eval $ac_try) 2>&5
30992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30993 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30995 (eval $ac_try) 2>&5
30997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30998 test $ac_status = 0; }; }; then :
31000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31001 $as_echo "yes" >&6; }
31003 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
31007 $as_echo "$as_me: failed program was:" >&5
31008 sed 's/^/| /' conftest.
$ac_ext >&5
31010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31011 $as_echo "no" >&6; }
31022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->aio_fsync() exists" >&5
31023 $as_echo_n "checking whether fops->aio_fsync() exists... " >&6; }
31026 cat confdefs.h
- <<_ACEOF >conftest.c
31029 #include <linux/fs.h>
31031 static const struct file_operations
31032 fops __attribute__ ((unused)) = {
31049 cat - <<_ACEOF >conftest.h
31054 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31055 echo "obj-m := conftest.o" >build
/Makefile
31057 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31058 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31060 (eval $ac_try) 2>&5
31062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31063 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31065 (eval $ac_try) 2>&5
31067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31068 test $ac_status = 0; }; }; then :
31070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31071 $as_echo "yes" >&6; }
31073 $as_echo "#define HAVE_FILE_AIO_FSYNC 1" >>confdefs.h
31077 $as_echo "$as_me: failed program was:" >&5
31078 sed 's/^/| /' conftest.
$ac_ext >&5
31080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31081 $as_echo "no" >&6; }
31091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
31092 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
31095 cat confdefs.h
- <<_ACEOF >conftest.c
31098 #include <linux/fs.h>
31100 int mkdir(struct inode *inode, struct dentry *dentry,
31101 umode_t umode) { return 0; }
31103 static const struct inode_operations
31104 iops __attribute__ ((unused)) = {
31121 cat - <<_ACEOF >conftest.h
31126 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31127 echo "obj-m := conftest.o" >build
/Makefile
31129 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31130 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31131 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31132 (eval $ac_try) 2>&5
31134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31135 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31136 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31137 (eval $ac_try) 2>&5
31139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31140 test $ac_status = 0; }; }; then :
31142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31143 $as_echo "yes" >&6; }
31145 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
31149 $as_echo "$as_me: failed program was:" >&5
31150 sed 's/^/| /' conftest.
$ac_ext >&5
31152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31153 $as_echo "no" >&6; }
31163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5
31164 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
31167 cat confdefs.h
- <<_ACEOF >conftest.c
31170 #include <linux/fs.h>
31172 struct dentry *inode_lookup(struct inode *inode,
31173 struct dentry *dentry, struct nameidata *nidata)
31176 static const struct inode_operations iops
31177 __attribute__ ((unused)) = {
31178 .lookup = inode_lookup,
31194 cat - <<_ACEOF >conftest.h
31199 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31200 echo "obj-m := conftest.o" >build
/Makefile
31202 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31203 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31205 (eval $ac_try) 2>&5
31207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31208 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31210 (eval $ac_try) 2>&5
31212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31213 test $ac_status = 0; }; }; then :
31215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31216 $as_echo "yes" >&6; }
31218 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
31222 $as_echo "$as_me: failed program was:" >&5
31223 sed 's/^/| /' conftest.
$ac_ext >&5
31225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31226 $as_echo "no" >&6; }
31236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5
31237 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
31240 cat confdefs.h
- <<_ACEOF >conftest.c
31243 #include <linux/fs.h>
31245 #ifdef HAVE_MKDIR_UMODE_T
31246 int inode_create(struct inode *inode ,struct dentry *dentry,
31247 umode_t umode, struct nameidata *nidata) { return 0; }
31249 int inode_create(struct inode *inode,struct dentry *dentry,
31250 int umode, struct nameidata * nidata) { return 0; }
31253 static const struct inode_operations
31254 iops __attribute__ ((unused)) = {
31255 .create = inode_create,
31271 cat - <<_ACEOF >conftest.h
31276 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31277 echo "obj-m := conftest.o" >build
/Makefile
31279 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31280 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31282 (eval $ac_try) 2>&5
31284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31285 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31287 (eval $ac_try) 2>&5
31289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31290 test $ac_status = 0; }; }; then :
31292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31293 $as_echo "yes" >&6; }
31295 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
31299 $as_echo "$as_me: failed program was:" >&5
31300 sed 's/^/| /' conftest.
$ac_ext >&5
31302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31303 $as_echo "no" >&6; }
31313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5
31314 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
31317 cat confdefs.h
- <<_ACEOF >conftest.c
31320 #include <linux/fs.h>
31321 const char *get_link(struct dentry *de, struct inode *ip,
31322 struct delayed_call *done) { return "symlink"; }
31323 static struct inode_operations
31324 iops __attribute__ ((unused)) = {
31325 .get_link = get_link,
31341 cat - <<_ACEOF >conftest.h
31346 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31347 echo "obj-m := conftest.o" >build
/Makefile
31349 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31350 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31352 (eval $ac_try) 2>&5
31354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31355 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31356 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31357 (eval $ac_try) 2>&5
31359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31360 test $ac_status = 0; }; }; then :
31362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31363 $as_echo "yes" >&6; }
31365 $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h
31369 $as_echo "$as_me: failed program was:" >&5
31370 sed 's/^/| /' conftest.
$ac_ext >&5
31372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31373 $as_echo "no" >&6; }
31374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5
31375 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
31378 cat confdefs.h
- <<_ACEOF >conftest.c
31381 #include <linux/fs.h>
31382 const char *get_link(struct dentry *de, struct
31383 inode *ip, void **cookie) { return "symlink"; }
31384 static struct inode_operations
31385 iops __attribute__ ((unused)) = {
31386 .get_link = get_link,
31402 cat - <<_ACEOF >conftest.h
31407 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31408 echo "obj-m := conftest.o" >build
/Makefile
31410 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31411 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31413 (eval $ac_try) 2>&5
31415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31416 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31418 (eval $ac_try) 2>&5
31420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31421 test $ac_status = 0; }; }; then :
31423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31424 $as_echo "yes" >&6; }
31426 $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h
31430 $as_echo "$as_me: failed program was:" >&5
31431 sed 's/^/| /' conftest.
$ac_ext >&5
31433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31434 $as_echo "no" >&6; }
31436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5
31437 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
31440 cat confdefs.h
- <<_ACEOF >conftest.c
31443 #include <linux/fs.h>
31444 const char *follow_link(struct dentry *de,
31445 void **cookie) { return "symlink"; }
31446 static struct inode_operations
31447 iops __attribute__ ((unused)) = {
31448 .follow_link = follow_link,
31464 cat - <<_ACEOF >conftest.h
31469 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31470 echo "obj-m := conftest.o" >build
/Makefile
31472 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31473 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31475 (eval $ac_try) 2>&5
31477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31478 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31479 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31480 (eval $ac_try) 2>&5
31482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31483 test $ac_status = 0; }; }; then :
31485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31486 $as_echo "yes" >&6; }
31488 $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h
31492 $as_echo "$as_me: failed program was:" >&5
31493 sed 's/^/| /' conftest.
$ac_ext >&5
31495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31496 $as_echo "no" >&6; }
31497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5
31498 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
31501 cat confdefs.h
- <<_ACEOF >conftest.c
31504 #include <linux/fs.h>
31505 void *follow_link(struct dentry *de, struct
31506 nameidata *nd) { return (void *)NULL; }
31507 static struct inode_operations
31508 iops __attribute__ ((unused)) = {
31509 .follow_link = follow_link,
31525 cat - <<_ACEOF >conftest.h
31530 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31531 echo "obj-m := conftest.o" >build
/Makefile
31533 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31534 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31536 (eval $ac_try) 2>&5
31538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31539 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31541 (eval $ac_try) 2>&5
31543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31544 test $ac_status = 0; }; }; then :
31546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31547 $as_echo "yes" >&6; }
31549 $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h
31553 $as_echo "$as_me: failed program was:" >&5
31554 sed 's/^/| /' conftest.
$ac_ext >&5
31556 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
31590 cat confdefs.h
- <<_ACEOF >conftest.c
31593 #if !defined(HAVE_GET_LINK_DELAYED)
31594 #error "Expecting get_link() delayed done"
31610 cat - <<_ACEOF >conftest.h
31615 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31616 echo "obj-m := conftest.o" >build
/Makefile
31618 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31619 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31621 (eval $ac_try) 2>&5
31623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31624 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31625 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31626 (eval $ac_try) 2>&5
31628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31629 test $ac_status = 0; }; }; then :
31632 $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h
31636 $as_echo "$as_me: failed program was:" >&5
31637 sed 's/^/| /' conftest.
$ac_ext >&5
31639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5
31640 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
31643 cat confdefs.h
- <<_ACEOF >conftest.c
31646 #include <linux/fs.h>
31647 void put_link(struct inode *ip, void *cookie)
31649 static struct inode_operations
31650 iops __attribute__ ((unused)) = {
31651 .put_link = put_link,
31667 cat - <<_ACEOF >conftest.h
31672 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31673 echo "obj-m := conftest.o" >build
/Makefile
31675 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31676 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31677 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31678 (eval $ac_try) 2>&5
31680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31681 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31682 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31683 (eval $ac_try) 2>&5
31685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31686 test $ac_status = 0; }; }; then :
31688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31689 $as_echo "yes" >&6; }
31691 $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h
31695 $as_echo "$as_me: failed program was:" >&5
31696 sed 's/^/| /' conftest.
$ac_ext >&5
31698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31699 $as_echo "no" >&6; }
31700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5
31701 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
31704 cat confdefs.h
- <<_ACEOF >conftest.c
31707 #include <linux/fs.h>
31708 void put_link(struct dentry *de, struct
31709 nameidata *nd, void *ptr) { return; }
31710 static struct inode_operations
31711 iops __attribute__ ((unused)) = {
31712 .put_link = put_link,
31728 cat - <<_ACEOF >conftest.h
31733 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31734 echo "obj-m := conftest.o" >build
/Makefile
31736 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31737 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31739 (eval $ac_try) 2>&5
31741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31742 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31744 (eval $ac_try) 2>&5
31746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31747 test $ac_status = 0; }; }; then :
31749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31750 $as_echo "yes" >&6; }
31752 $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h
31756 $as_echo "$as_me: failed program was:" >&5
31757 sed 's/^/| /' conftest.
$ac_ext >&5
31759 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
31783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
31784 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
31787 cat confdefs.h
- <<_ACEOF >conftest.c
31790 #include <linux/fs.h>
31791 void truncate_range(struct inode *inode, loff_t start,
31792 loff_t end) { return; }
31793 static struct inode_operations iops __attribute__ ((unused)) = {
31794 .truncate_range = truncate_range,
31810 cat - <<_ACEOF >conftest.h
31815 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31816 echo "obj-m := conftest.o" >build
/Makefile
31818 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31819 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31821 (eval $ac_try) 2>&5
31823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31824 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31826 (eval $ac_try) 2>&5
31828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31829 test $ac_status = 0; }; }; then :
31831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31832 $as_echo "yes" >&6; }
31834 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
31838 $as_echo "$as_me: failed program was:" >&5
31839 sed 's/^/| /' conftest.
$ac_ext >&5
31841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31842 $as_echo "no" >&6; }
31852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
31853 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
31856 cat confdefs.h
- <<_ACEOF >conftest.c
31859 #include <linux/dcache.h>
31860 struct vfsmount *d_automount(struct path *p) { return NULL; }
31861 struct dentry_operations dops __attribute__ ((unused)) = {
31862 .d_automount = d_automount,
31878 cat - <<_ACEOF >conftest.h
31883 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31884 echo "obj-m := conftest.o" >build
/Makefile
31886 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31887 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31888 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31889 (eval $ac_try) 2>&5
31891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31892 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31893 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31894 (eval $ac_try) 2>&5
31896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31897 test $ac_status = 0; }; }; then :
31899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31900 $as_echo "yes" >&6; }
31902 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
31906 $as_echo "$as_me: failed program was:" >&5
31907 sed 's/^/| /' conftest.
$ac_ext >&5
31909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31910 $as_echo "no" >&6; }
31920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
31921 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
31924 cat confdefs.h
- <<_ACEOF >conftest.c
31927 #include <linux/exportfs.h>
31928 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
31929 struct inode *parent) { return 0; }
31930 static struct export_operations eops __attribute__ ((unused))={
31931 .encode_fh = encode_fh,
31947 cat - <<_ACEOF >conftest.h
31952 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31953 echo "obj-m := conftest.o" >build
/Makefile
31955 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31956 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31958 (eval $ac_try) 2>&5
31960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31961 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31962 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31963 (eval $ac_try) 2>&5
31965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31966 test $ac_status = 0; }; }; then :
31968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31969 $as_echo "yes" >&6; }
31971 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
31975 $as_echo "$as_me: failed program was:" >&5
31976 sed 's/^/| /' conftest.
$ac_ext >&5
31978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31979 $as_echo "no" >&6; }
31989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
31990 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
31993 cat confdefs.h
- <<_ACEOF >conftest.c
31996 #include <linux/exportfs.h>
31997 int commit_metadata(struct inode *inode) { return 0; }
31998 static struct export_operations eops __attribute__ ((unused))={
31999 .commit_metadata = commit_metadata,
32015 cat - <<_ACEOF >conftest.h
32020 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32021 echo "obj-m := conftest.o" >build
/Makefile
32023 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32024 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32026 (eval $ac_try) 2>&5
32028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32029 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32031 (eval $ac_try) 2>&5
32033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32034 test $ac_status = 0; }; }; then :
32036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32037 $as_echo "yes" >&6; }
32039 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
32043 $as_echo "$as_me: failed program was:" >&5
32044 sed 's/^/| /' conftest.
$ac_ext >&5
32046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32047 $as_echo "no" >&6; }
32056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
32057 $as_echo_n "checking whether clear_inode() is available... " >&6; }
32061 cat confdefs.h
- <<_ACEOF >conftest.c
32064 #include <linux/fs.h>
32080 cat - <<_ACEOF >conftest.h
32085 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32086 echo "obj-m := conftest.o" >build
/Makefile
32088 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32089 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32090 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32091 (eval $ac_try) 2>&5
32093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32094 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32096 (eval $ac_try) 2>&5
32098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32099 test $ac_status = 0; }; }; then :
32102 $as_echo "$as_me: failed program was:" >&5
32103 sed 's/^/| /' conftest.
$ac_ext >&5
32111 if test $rc -ne 0; then :
32113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32114 $as_echo "no" >&6; }
32117 if test "x$enable_linux_builtin" != xyes
; then
32119 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
32120 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
32122 if test $rc -ne 0; then
32124 for file in fs
/inode.c
; do
32125 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
32126 "$LINUX/$file" 2>/dev
/null
32128 if test $rc -eq 0; then
32133 if test $export -eq 0; then :
32143 if test $rc -ne 0; then :
32145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32146 $as_echo "no" >&6; }
32150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32151 $as_echo "yes" >&6; }
32153 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
32160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether setattr_prepare() is available" >&5
32161 $as_echo_n "checking whether setattr_prepare() is available... " >&6; }
32165 cat confdefs.h
- <<_ACEOF >conftest.c
32168 #include <linux/fs.h>
32174 struct dentry *dentry = NULL;
32175 struct iattr *attr = NULL;
32178 error = setattr_prepare(dentry, attr);
32188 cat - <<_ACEOF >conftest.h
32193 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32194 echo "obj-m := conftest.o" >build
/Makefile
32196 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32197 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32199 (eval $ac_try) 2>&5
32201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32202 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32204 (eval $ac_try) 2>&5
32206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32207 test $ac_status = 0; }; }; then :
32210 $as_echo "$as_me: failed program was:" >&5
32211 sed 's/^/| /' conftest.
$ac_ext >&5
32219 if test $rc -ne 0; then :
32221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32222 $as_echo "no" >&6; }
32225 if test "x$enable_linux_builtin" != xyes
; then
32227 grep -q -E '[[:space:]]setattr_prepare[[:space:]]' \
32228 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
32230 if test $rc -ne 0; then
32232 for file in fs
/attr.c
; do
32233 grep -q -E "EXPORT_SYMBOL.*(setattr_prepare)" \
32234 "$LINUX/$file" 2>/dev
/null
32236 if test $rc -eq 0; then
32241 if test $export -eq 0; then :
32251 if test $rc -ne 0; then :
32253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32254 $as_echo "no" >&6; }
32258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32259 $as_echo "yes" >&6; }
32261 $as_echo "#define HAVE_SETATTR_PREPARE 1" >>confdefs.h
32268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
32269 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
32273 cat confdefs.h
- <<_ACEOF >conftest.c
32276 #include <linux/fs.h>
32282 insert_inode_locked(NULL);
32292 cat - <<_ACEOF >conftest.h
32297 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32298 echo "obj-m := conftest.o" >build
/Makefile
32300 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32301 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32302 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32303 (eval $ac_try) 2>&5
32305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32306 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32307 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32308 (eval $ac_try) 2>&5
32310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32311 test $ac_status = 0; }; }; then :
32314 $as_echo "$as_me: failed program was:" >&5
32315 sed 's/^/| /' conftest.
$ac_ext >&5
32323 if test $rc -ne 0; then :
32325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32326 $as_echo "no" >&6; }
32329 if test "x$enable_linux_builtin" != xyes
; then
32331 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
32332 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
32334 if test $rc -ne 0; then
32336 for file in fs
/inode.c
; do
32337 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
32338 "$LINUX/$file" 2>/dev
/null
32340 if test $rc -eq 0; then
32345 if test $export -eq 0; then :
32355 if test $rc -ne 0; then :
32357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32358 $as_echo "no" >&6; }
32362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32363 $as_echo "yes" >&6; }
32365 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
32372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
32373 $as_echo_n "checking whether d_make_root() is available... " >&6; }
32377 cat confdefs.h
- <<_ACEOF >conftest.c
32380 #include <linux/dcache.h>
32396 cat - <<_ACEOF >conftest.h
32401 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32402 echo "obj-m := conftest.o" >build
/Makefile
32404 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32405 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32406 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32407 (eval $ac_try) 2>&5
32409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32410 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32412 (eval $ac_try) 2>&5
32414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32415 test $ac_status = 0; }; }; then :
32418 $as_echo "$as_me: failed program was:" >&5
32419 sed 's/^/| /' conftest.
$ac_ext >&5
32427 if test $rc -ne 0; then :
32429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32430 $as_echo "no" >&6; }
32433 if test "x$enable_linux_builtin" != xyes
; then
32435 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
32436 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
32438 if test $rc -ne 0; then
32440 for file in fs
/dcache.c
; do
32441 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
32442 "$LINUX/$file" 2>/dev
/null
32444 if test $rc -eq 0; then
32449 if test $export -eq 0; then :
32459 if test $rc -ne 0; then :
32461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32462 $as_echo "no" >&6; }
32466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32467 $as_echo "yes" >&6; }
32469 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
32476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
32477 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
32481 cat confdefs.h
- <<_ACEOF >conftest.c
32484 #include <linux/dcache.h>
32490 d_obtain_alias(NULL);
32500 cat - <<_ACEOF >conftest.h
32505 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32506 echo "obj-m := conftest.o" >build
/Makefile
32508 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32509 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32511 (eval $ac_try) 2>&5
32513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32514 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32516 (eval $ac_try) 2>&5
32518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32519 test $ac_status = 0; }; }; then :
32522 $as_echo "$as_me: failed program was:" >&5
32523 sed 's/^/| /' conftest.
$ac_ext >&5
32531 if test $rc -ne 0; then :
32533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32534 $as_echo "no" >&6; }
32537 if test "x$enable_linux_builtin" != xyes
; then
32539 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
32540 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
32542 if test $rc -ne 0; then
32544 for file in fs
/dcache.c
; do
32545 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
32546 "$LINUX/$file" 2>/dev
/null
32548 if test $rc -eq 0; then
32553 if test $export -eq 0; then :
32563 if test $rc -ne 0; then :
32565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32566 $as_echo "no" >&6; }
32570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32571 $as_echo "yes" >&6; }
32573 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
32580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
32581 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
32585 cat confdefs.h
- <<_ACEOF >conftest.c
32588 #include <linux/dcache.h>
32594 struct inode *ip = NULL;
32595 d_prune_aliases(ip);
32605 cat - <<_ACEOF >conftest.h
32610 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32611 echo "obj-m := conftest.o" >build
/Makefile
32613 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32614 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32615 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32616 (eval $ac_try) 2>&5
32618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32619 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32620 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32621 (eval $ac_try) 2>&5
32623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32624 test $ac_status = 0; }; }; then :
32627 $as_echo "$as_me: failed program was:" >&5
32628 sed 's/^/| /' conftest.
$ac_ext >&5
32636 if test $rc -ne 0; then :
32638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32639 $as_echo "no" >&6; }
32642 if test "x$enable_linux_builtin" != xyes
; then
32644 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
32645 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
32647 if test $rc -ne 0; then
32649 for file in fs
/dcache.c
; do
32650 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
32651 "$LINUX/$file" 2>/dev
/null
32653 if test $rc -eq 0; then
32658 if test $export -eq 0; then :
32668 if test $rc -ne 0; then :
32670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32671 $as_echo "no" >&6; }
32675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32676 $as_echo "yes" >&6; }
32678 $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
32685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
32686 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
32690 cat confdefs.h
- <<_ACEOF >conftest.c
32693 #include <linux/dcache.h>
32699 d_set_d_op(NULL, NULL);
32709 cat - <<_ACEOF >conftest.h
32714 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32715 echo "obj-m := conftest.o" >build
/Makefile
32717 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32718 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32720 (eval $ac_try) 2>&5
32722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32723 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32724 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32725 (eval $ac_try) 2>&5
32727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32728 test $ac_status = 0; }; }; then :
32731 $as_echo "$as_me: failed program was:" >&5
32732 sed 's/^/| /' conftest.
$ac_ext >&5
32740 if test $rc -ne 0; then :
32742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32743 $as_echo "no" >&6; }
32746 if test "x$enable_linux_builtin" != xyes
; then
32748 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
32749 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
32751 if test $rc -ne 0; then
32753 for file in fs
/dcache.c
; do
32754 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
32755 "$LINUX/$file" 2>/dev
/null
32757 if test $rc -eq 0; then
32762 if test $export -eq 0; then :
32772 if test $rc -ne 0; then :
32774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32775 $as_echo "no" >&6; }
32779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32780 $as_echo "yes" >&6; }
32782 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
32790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
32791 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
32794 cat confdefs.h
- <<_ACEOF >conftest.c
32797 #include <linux/dcache.h>
32799 int revalidate (struct dentry *dentry,
32800 struct nameidata *nidata) { return 0; }
32802 static const struct dentry_operations
32803 dops __attribute__ ((unused)) = {
32804 .d_revalidate = revalidate,
32820 cat - <<_ACEOF >conftest.h
32825 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32826 echo "obj-m := conftest.o" >build
/Makefile
32828 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32829 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32831 (eval $ac_try) 2>&5
32833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32834 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32835 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32836 (eval $ac_try) 2>&5
32838 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32839 test $ac_status = 0; }; }; then :
32841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32842 $as_echo "yes" >&6; }
32844 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
32848 $as_echo "$as_me: failed program was:" >&5
32849 sed 's/^/| /' conftest.
$ac_ext >&5
32851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32852 $as_echo "no" >&6; }
32862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
32863 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
32866 cat confdefs.h
- <<_ACEOF >conftest.c
32869 #include <linux/dcache.h>
32871 const struct dentry_operations test_d_op = {
32872 .d_revalidate = NULL,
32879 struct dentry d __attribute__ ((unused));
32881 d.d_op = &test_d_op;
32891 cat - <<_ACEOF >conftest.h
32896 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32897 echo "obj-m := conftest.o" >build
/Makefile
32899 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32900 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32902 (eval $ac_try) 2>&5
32904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32905 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32907 (eval $ac_try) 2>&5
32909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32910 test $ac_status = 0; }; }; then :
32912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32913 $as_echo "yes" >&6; }
32915 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
32919 $as_echo "$as_me: failed program was:" >&5
32920 sed 's/^/| /' conftest.
$ac_ext >&5
32922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32923 $as_echo "no" >&6; }
32932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5
32933 $as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
32937 cat confdefs.h
- <<_ACEOF >conftest.c
32940 #include <linux/fs.h>
32946 check_disk_size_change(NULL, NULL);
32956 cat - <<_ACEOF >conftest.h
32961 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32962 echo "obj-m := conftest.o" >build
/Makefile
32964 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32965 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32967 (eval $ac_try) 2>&5
32969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32970 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32972 (eval $ac_try) 2>&5
32974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32975 test $ac_status = 0; }; }; then :
32978 $as_echo "$as_me: failed program was:" >&5
32979 sed 's/^/| /' conftest.
$ac_ext >&5
32987 if test $rc -ne 0; then :
32989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32990 $as_echo "no" >&6; }
32993 if test "x$enable_linux_builtin" != xyes
; then
32995 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
32996 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
32998 if test $rc -ne 0; then
33000 for file in fs
/block_dev.c
; do
33001 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
33002 "$LINUX/$file" 2>/dev
/null
33004 if test $rc -eq 0; then
33009 if test $export -eq 0; then :
33019 if test $rc -ne 0; then :
33021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33022 $as_echo "no" >&6; }
33026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33027 $as_echo "yes" >&6; }
33029 $as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h
33036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
33037 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
33041 cat confdefs.h
- <<_ACEOF >conftest.c
33044 #include <linux/mm.h>
33050 truncate_setsize(NULL, 0);
33060 cat - <<_ACEOF >conftest.h
33065 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33066 echo "obj-m := conftest.o" >build
/Makefile
33068 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33069 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33070 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33071 (eval $ac_try) 2>&5
33073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33074 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33076 (eval $ac_try) 2>&5
33078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33079 test $ac_status = 0; }; }; then :
33082 $as_echo "$as_me: failed program was:" >&5
33083 sed 's/^/| /' conftest.
$ac_ext >&5
33091 if test $rc -ne 0; then :
33093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33094 $as_echo "no" >&6; }
33097 if test "x$enable_linux_builtin" != xyes
; then
33099 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
33100 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
33102 if test $rc -ne 0; then
33104 for file in mm
/truncate.c
; do
33105 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
33106 "$LINUX/$file" 2>/dev
/null
33108 if test $rc -eq 0; then
33113 if test $export -eq 0; then :
33123 if test $rc -ne 0; then :
33125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33126 $as_echo "no" >&6; }
33130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33131 $as_echo "yes" >&6; }
33133 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
33141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
33142 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
33145 cat confdefs.h
- <<_ACEOF >conftest.c
33148 #include <linux/security.h>
33154 struct inode *ip __attribute__ ((unused)) = NULL;
33155 struct inode *dip __attribute__ ((unused)) = NULL;
33156 const struct qstr *str __attribute__ ((unused)) = NULL;
33157 char *name __attribute__ ((unused)) = NULL;
33158 void *value __attribute__ ((unused)) = NULL;
33159 size_t len __attribute__ ((unused)) = 0;
33161 security_inode_init_security(ip, dip, str, &name, &value, &len);
33171 cat - <<_ACEOF >conftest.h
33176 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33177 echo "obj-m := conftest.o" >build
/Makefile
33179 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33180 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33181 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33182 (eval $ac_try) 2>&5
33184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33185 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33187 (eval $ac_try) 2>&5
33189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33190 test $ac_status = 0; }; }; then :
33192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33193 $as_echo "yes" >&6; }
33195 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
33199 $as_echo "$as_me: failed program was:" >&5
33200 sed 's/^/| /' conftest.
$ac_ext >&5
33202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33203 $as_echo "no" >&6; }
33213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
33214 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
33217 cat confdefs.h
- <<_ACEOF >conftest.c
33220 #include <linux/security.h>
33226 struct inode *ip __attribute__ ((unused)) = NULL;
33227 struct inode *dip __attribute__ ((unused)) = NULL;
33228 const struct qstr *str __attribute__ ((unused)) = NULL;
33229 initxattrs func __attribute__ ((unused)) = NULL;
33231 security_inode_init_security(ip, dip, str, func, NULL);
33241 cat - <<_ACEOF >conftest.h
33246 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33247 echo "obj-m := conftest.o" >build
/Makefile
33249 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33250 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33251 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33252 (eval $ac_try) 2>&5
33254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33255 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33257 (eval $ac_try) 2>&5
33259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33260 test $ac_status = 0; }; }; then :
33262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33263 $as_echo "yes" >&6; }
33265 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
33269 $as_echo "$as_me: failed program was:" >&5
33270 sed 's/^/| /' conftest.
$ac_ext >&5
33272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33273 $as_echo "no" >&6; }
33282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
33283 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
33287 cat confdefs.h
- <<_ACEOF >conftest.c
33290 #include <linux/fs.h>
33296 mount_nodev(NULL, 0, NULL, NULL);
33306 cat - <<_ACEOF >conftest.h
33311 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33312 echo "obj-m := conftest.o" >build
/Makefile
33314 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33315 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33317 (eval $ac_try) 2>&5
33319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33320 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33322 (eval $ac_try) 2>&5
33324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33325 test $ac_status = 0; }; }; then :
33328 $as_echo "$as_me: failed program was:" >&5
33329 sed 's/^/| /' conftest.
$ac_ext >&5
33337 if test $rc -ne 0; then :
33339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33340 $as_echo "no" >&6; }
33343 if test "x$enable_linux_builtin" != xyes
; then
33345 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
33346 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
33348 if test $rc -ne 0; then
33350 for file in fs
/super.c
; do
33351 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
33352 "$LINUX/$file" 2>/dev
/null
33354 if test $rc -eq 0; then
33359 if test $export -eq 0; then :
33369 if test $rc -ne 0; then :
33371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33372 $as_echo "no" >&6; }
33376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33377 $as_echo "yes" >&6; }
33379 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
33387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
33388 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
33391 cat confdefs.h
- <<_ACEOF >conftest.c
33394 #include <linux/fs.h>
33396 int shrink(struct shrinker *s, struct shrink_control *sc)
33399 static const struct super_block
33400 sb __attribute__ ((unused)) = {
33401 .s_shrink.shrink = shrink,
33402 .s_shrink.seeks = DEFAULT_SEEKS,
33403 .s_shrink.batch = 0,
33419 cat - <<_ACEOF >conftest.h
33424 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33425 echo "obj-m := conftest.o" >build
/Makefile
33427 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33428 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33429 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33430 (eval $ac_try) 2>&5
33432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33433 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33434 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33435 (eval $ac_try) 2>&5
33437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33438 test $ac_status = 0; }; }; then :
33440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33441 $as_echo "yes" >&6; }
33443 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
33448 $as_echo "$as_me: failed program was:" >&5
33449 sed 's/^/| /' conftest.
$ac_ext >&5
33451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33452 $as_echo "no" >&6; }
33462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
33463 $as_echo_n "checking whether shrink_control has nid... " >&6; }
33466 cat confdefs.h
- <<_ACEOF >conftest.c
33469 #include <linux/fs.h>
33475 struct shrink_control sc __attribute__ ((unused));
33476 unsigned long scnidsize __attribute__ ((unused)) =
33487 cat - <<_ACEOF >conftest.h
33492 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33493 echo "obj-m := conftest.o" >build
/Makefile
33495 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33496 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33497 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33498 (eval $ac_try) 2>&5
33500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33501 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33502 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33503 (eval $ac_try) 2>&5
33505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33506 test $ac_status = 0; }; }; then :
33508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33509 $as_echo "yes" >&6; }
33511 $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
33515 $as_echo "$as_me: failed program was:" >&5
33516 sed 's/^/| /' conftest.
$ac_ext >&5
33518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33519 $as_echo "no" >&6; }
33529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
33530 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
33533 cat confdefs.h
- <<_ACEOF >conftest.c
33536 #include <linux/fs.h>
33542 struct super_block sb __attribute__ ((unused));
33544 INIT_LIST_HEAD(&sb.s_instances);
33554 cat - <<_ACEOF >conftest.h
33559 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33560 echo "obj-m := conftest.o" >build
/Makefile
33562 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33563 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33564 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33565 (eval $ac_try) 2>&5
33567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33568 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33570 (eval $ac_try) 2>&5
33572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33573 test $ac_status = 0; }; }; then :
33575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33576 $as_echo "yes" >&6; }
33578 $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
33582 $as_echo "$as_me: failed program was:" >&5
33583 sed 's/^/| /' conftest.
$ac_ext >&5
33585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33586 $as_echo "no" >&6; }
33595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
33596 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
33599 cat confdefs.h
- <<_ACEOF >conftest.c
33602 #include <linux/fs.h>
33608 struct super_block sb __attribute__ ((unused));
33619 cat - <<_ACEOF >conftest.h
33624 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33625 echo "obj-m := conftest.o" >build
/Makefile
33627 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33628 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33630 (eval $ac_try) 2>&5
33632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33633 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33635 (eval $ac_try) 2>&5
33637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33638 test $ac_status = 0; }; }; then :
33640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33641 $as_echo "yes" >&6; }
33643 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
33647 $as_echo "$as_me: failed program was:" >&5
33648 sed 's/^/| /' conftest.
$ac_ext >&5
33650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33651 $as_echo "no" >&6; }
33661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
33662 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
33666 cat confdefs.h
- <<_ACEOF >conftest.c
33669 #include <linux/backing-dev.h>
33670 struct backing_dev_info bdi;
33676 char *name = "bdi";
33677 int error __attribute__((unused)) =
33678 bdi_setup_and_register(&bdi, name);
33688 cat - <<_ACEOF >conftest.h
33693 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33694 echo "obj-m := conftest.o" >build
/Makefile
33696 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33697 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33698 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33699 (eval $ac_try) 2>&5
33701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33702 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33703 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33704 (eval $ac_try) 2>&5
33706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33707 test $ac_status = 0; }; }; then :
33710 $as_echo "$as_me: failed program was:" >&5
33711 sed 's/^/| /' conftest.
$ac_ext >&5
33719 if test $rc -ne 0; then :
33721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33722 $as_echo "no" >&6; }
33723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
33724 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
33728 cat confdefs.h
- <<_ACEOF >conftest.c
33731 #include <linux/backing-dev.h>
33732 struct backing_dev_info bdi;
33738 char *name = "bdi";
33739 unsigned int cap = BDI_CAP_MAP_COPY;
33740 int error __attribute__((unused)) =
33741 bdi_setup_and_register(&bdi, name, cap);
33751 cat - <<_ACEOF >conftest.h
33756 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33757 echo "obj-m := conftest.o" >build
/Makefile
33759 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33760 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33762 (eval $ac_try) 2>&5
33764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33765 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33767 (eval $ac_try) 2>&5
33769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33770 test $ac_status = 0; }; }; then :
33773 $as_echo "$as_me: failed program was:" >&5
33774 sed 's/^/| /' conftest.
$ac_ext >&5
33782 if test $rc -ne 0; then :
33784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33785 $as_echo "no" >&6; }
33788 if test "x$enable_linux_builtin" != xyes
; then
33790 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
33791 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
33793 if test $rc -ne 0; then
33795 for file in mm
/backing-dev.c
; do
33796 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
33797 "$LINUX/$file" 2>/dev
/null
33799 if test $rc -eq 0; then
33804 if test $export -eq 0; then :
33814 if test $rc -ne 0; then :
33816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33817 $as_echo "no" >&6; }
33821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33822 $as_echo "yes" >&6; }
33824 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
33832 if test "x$enable_linux_builtin" != xyes
; then
33834 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
33835 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
33837 if test $rc -ne 0; then
33839 for file in mm
/backing-dev.c
; do
33840 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
33841 "$LINUX/$file" 2>/dev
/null
33843 if test $rc -eq 0; then
33848 if test $export -eq 0; then :
33858 if test $rc -ne 0; then :
33860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33861 $as_echo "no" >&6; }
33862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
33863 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
33867 cat confdefs.h
- <<_ACEOF >conftest.c
33870 #include <linux/backing-dev.h>
33871 struct backing_dev_info bdi;
33877 char *name = "bdi";
33878 unsigned int cap = BDI_CAP_MAP_COPY;
33879 int error __attribute__((unused)) =
33880 bdi_setup_and_register(&bdi, name, cap);
33890 cat - <<_ACEOF >conftest.h
33895 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
33896 echo "obj-m := conftest.o" >build
/Makefile
33898 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
33899 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
33900 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33901 (eval $ac_try) 2>&5
33903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33904 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
33905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
33906 (eval $ac_try) 2>&5
33908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
33909 test $ac_status = 0; }; }; then :
33912 $as_echo "$as_me: failed program was:" >&5
33913 sed 's/^/| /' conftest.
$ac_ext >&5
33921 if test $rc -ne 0; then :
33923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33924 $as_echo "no" >&6; }
33927 if test "x$enable_linux_builtin" != xyes
; then
33929 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
33930 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
33932 if test $rc -ne 0; then
33934 for file in mm
/backing-dev.c
; do
33935 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
33936 "$LINUX/$file" 2>/dev
/null
33938 if test $rc -eq 0; then
33943 if test $export -eq 0; then :
33953 if test $rc -ne 0; then :
33955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33956 $as_echo "no" >&6; }
33960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33961 $as_echo "yes" >&6; }
33963 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
33972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33973 $as_echo "yes" >&6; }
33975 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
33983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
33984 $as_echo_n "checking whether set_nlink() is available... " >&6; }
33987 cat confdefs.h
- <<_ACEOF >conftest.c
33990 #include <linux/fs.h>
33997 unsigned int link = 0;
33998 (void) set_nlink(&node, link);
34008 cat - <<_ACEOF >conftest.h
34013 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34014 echo "obj-m := conftest.o" >build
/Makefile
34016 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34017 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34018 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34019 (eval $ac_try) 2>&5
34021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34022 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34024 (eval $ac_try) 2>&5
34026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34027 test $ac_status = 0; }; }; then :
34029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34030 $as_echo "yes" >&6; }
34032 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
34036 $as_echo "$as_me: failed program was:" >&5
34037 sed 's/^/| /' conftest.
$ac_ext >&5
34039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34040 $as_echo "no" >&6; }
34050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
34051 $as_echo_n "checking whether elevator_change() is available... " >&6; }
34052 tmp_flags
="$EXTRA_KCFLAGS"
34053 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
34056 cat confdefs.h
- <<_ACEOF >conftest.c
34059 #include <linux/blkdev.h>
34060 #include <linux/elevator.h>
34067 struct request_queue *q = NULL;
34068 char *elevator = NULL;
34069 ret = elevator_change(q, elevator);
34079 cat - <<_ACEOF >conftest.h
34084 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34085 echo "obj-m := conftest.o" >build
/Makefile
34087 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34088 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34090 (eval $ac_try) 2>&5
34092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34093 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34095 (eval $ac_try) 2>&5
34097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34098 test $ac_status = 0; }; }; then :
34100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34101 $as_echo "yes" >&6; }
34103 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
34107 $as_echo "$as_me: failed program was:" >&5
34108 sed 's/^/| /' conftest.
$ac_ext >&5
34110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34111 $as_echo "no" >&6; }
34119 EXTRA_KCFLAGS
="$tmp_flags"
34121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
34122 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
34125 cat confdefs.h
- <<_ACEOF >conftest.c
34128 #include <linux/fs.h>
34134 struct file_system_type *type = NULL;
34135 int (*test)(struct super_block *,void *) = NULL;
34136 int (*set)(struct super_block *,void *) = NULL;
34139 (void) sget(type, test, set, flags, data);
34149 cat - <<_ACEOF >conftest.h
34154 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34155 echo "obj-m := conftest.o" >build
/Makefile
34157 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34158 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34159 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34160 (eval $ac_try) 2>&5
34162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34163 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34165 (eval $ac_try) 2>&5
34167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34168 test $ac_status = 0; }; }; then :
34170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34171 $as_echo "yes" >&6; }
34173 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
34177 $as_echo "$as_me: failed program was:" >&5
34178 sed 's/^/| /' conftest.
$ac_ext >&5
34180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34181 $as_echo "no" >&6; }
34190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
34191 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
34195 cat confdefs.h
- <<_ACEOF >conftest.c
34198 #include <linux/fs.h>
34204 struct file *fp __attribute__ ((unused)) = NULL;
34205 struct inode *ip __attribute__ ((unused)) = NULL;
34206 loff_t offset __attribute__ ((unused)) = 0;
34207 loff_t maxsize __attribute__ ((unused)) = 0;
34209 lseek_execute(fp, ip, offset, maxsize);
34219 cat - <<_ACEOF >conftest.h
34224 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34225 echo "obj-m := conftest.o" >build
/Makefile
34227 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34228 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34229 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34230 (eval $ac_try) 2>&5
34232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34233 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34235 (eval $ac_try) 2>&5
34237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34238 test $ac_status = 0; }; }; then :
34241 $as_echo "$as_me: failed program was:" >&5
34242 sed 's/^/| /' conftest.
$ac_ext >&5
34250 if test $rc -ne 0; then :
34252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34253 $as_echo "no" >&6; }
34256 if test "x$enable_linux_builtin" != xyes
; then
34258 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
34259 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
34261 if test $rc -ne 0; then
34263 for file in fs
/read_write.c
; do
34264 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
34265 "$LINUX/$file" 2>/dev
/null
34267 if test $rc -eq 0; then
34272 if test $export -eq 0; then :
34282 if test $rc -ne 0; then :
34284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34285 $as_echo "no" >&6; }
34289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34290 $as_echo "yes" >&6; }
34292 $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
34300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate_shared() is available" >&5
34301 $as_echo_n "checking whether fops->iterate_shared() is available... " >&6; }
34304 cat confdefs.h
- <<_ACEOF >conftest.c
34307 #include <linux/fs.h>
34308 int iterate(struct file *filp, struct dir_context * context)
34311 static const struct file_operations fops
34312 __attribute__ ((unused)) = {
34313 .iterate_shared = iterate,
34329 cat - <<_ACEOF >conftest.h
34334 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34335 echo "obj-m := conftest.o" >build
/Makefile
34337 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34338 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34340 (eval $ac_try) 2>&5
34342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34343 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34345 (eval $ac_try) 2>&5
34347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34348 test $ac_status = 0; }; }; then :
34350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34351 $as_echo "yes" >&6; }
34353 $as_echo "#define HAVE_VFS_ITERATE_SHARED 1" >>confdefs.h
34357 $as_echo "$as_me: failed program was:" >&5
34358 sed 's/^/| /' conftest.
$ac_ext >&5
34360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34361 $as_echo "no" >&6; }
34363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
34364 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
34367 cat confdefs.h
- <<_ACEOF >conftest.c
34370 #include <linux/fs.h>
34371 int iterate(struct file *filp, struct dir_context * context)
34374 static const struct file_operations fops
34375 __attribute__ ((unused)) = {
34376 .iterate = iterate,
34392 cat - <<_ACEOF >conftest.h
34397 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34398 echo "obj-m := conftest.o" >build
/Makefile
34400 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34401 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34403 (eval $ac_try) 2>&5
34405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34406 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34407 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34408 (eval $ac_try) 2>&5
34410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34411 test $ac_status = 0; }; }; then :
34413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34414 $as_echo "yes" >&6; }
34416 $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
34420 $as_echo "$as_me: failed program was:" >&5
34421 sed 's/^/| /' conftest.
$ac_ext >&5
34423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34424 $as_echo "no" >&6; }
34426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
34427 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
34430 cat confdefs.h
- <<_ACEOF >conftest.c
34433 #include <linux/fs.h>
34434 int readdir(struct file *filp, void *entry, filldir_t func)
34437 static const struct file_operations fops
34438 __attribute__ ((unused)) = {
34439 .readdir = readdir,
34455 cat - <<_ACEOF >conftest.h
34460 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34461 echo "obj-m := conftest.o" >build
/Makefile
34463 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34464 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34466 (eval $ac_try) 2>&5
34468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34469 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34470 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34471 (eval $ac_try) 2>&5
34473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34474 test $ac_status = 0; }; }; then :
34476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34477 $as_echo "yes" >&6; }
34479 $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
34483 $as_echo "$as_me: failed program was:" >&5
34484 sed 's/^/| /' conftest.
$ac_ext >&5
34486 as_fn_error $?
"no; file a bug report with ZFSOnLinux" "$LINENO" 5
34509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
34510 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
34513 cat confdefs.h
- <<_ACEOF >conftest.c
34516 #include <linux/fs.h>
34518 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
34520 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
34523 static const struct file_operations
34524 fops __attribute__ ((unused)) = {
34525 .read_iter = test_read,
34526 .write_iter = test_write,
34542 cat - <<_ACEOF >conftest.h
34547 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34548 echo "obj-m := conftest.o" >build
/Makefile
34550 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34551 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34552 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34553 (eval $ac_try) 2>&5
34555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34556 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34558 (eval $ac_try) 2>&5
34560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34561 test $ac_status = 0; }; }; then :
34563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34564 $as_echo "yes" >&6; }
34566 $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
34570 $as_echo "$as_me: failed program was:" >&5
34571 sed 's/^/| /' conftest.
$ac_ext >&5
34573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34574 $as_echo "no" >&6; }
34583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5
34584 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
34587 cat confdefs.h
- <<_ACEOF >conftest.c
34590 #include <linux/fs.h>
34597 struct kiocb *iocb = NULL;
34598 struct iov_iter *iov = NULL;
34599 generic_write_checks(iocb, iov);
34609 cat - <<_ACEOF >conftest.h
34614 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34615 echo "obj-m := conftest.o" >build
/Makefile
34617 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34618 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34620 (eval $ac_try) 2>&5
34622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34623 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34625 (eval $ac_try) 2>&5
34627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34628 test $ac_status = 0; }; }; then :
34630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34631 $as_echo "yes" >&6; }
34633 $as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h
34637 $as_echo "$as_me: failed program was:" >&5
34638 sed 's/^/| /' conftest.
$ac_ext >&5
34640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34641 $as_echo "no" >&6; }
34651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5
34652 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
34655 cat confdefs.h
- <<_ACEOF >conftest.c
34658 #include <linux/pagemap.h>
34665 kmap_atomic(&page);
34675 cat - <<_ACEOF >conftest.h
34680 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34681 echo "obj-m := conftest.o" >build
/Makefile
34683 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34684 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34686 (eval $ac_try) 2>&5
34688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34689 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34690 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34691 (eval $ac_try) 2>&5
34693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34694 test $ac_status = 0; }; }; then :
34696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34697 $as_echo "yes" >&6; }
34699 $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h
34703 $as_echo "$as_me: failed program was:" >&5
34704 sed 's/^/| /' conftest.
$ac_ext >&5
34706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34707 $as_echo "no" >&6; }
34717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5
34718 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
34721 cat confdefs.h
- <<_ACEOF >conftest.c
34724 #include <linux/namei.h>
34730 struct path *p = NULL;
34731 follow_down_one(p);
34741 cat - <<_ACEOF >conftest.h
34746 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34747 echo "obj-m := conftest.o" >build
/Makefile
34749 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34750 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34752 (eval $ac_try) 2>&5
34754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34755 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34757 (eval $ac_try) 2>&5
34759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34760 test $ac_status = 0; }; }; then :
34762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34763 $as_echo "yes" >&6; }
34765 $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h
34769 $as_echo "$as_me: failed program was:" >&5
34770 sed 's/^/| /' conftest.
$ac_ext >&5
34772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34773 $as_echo "no" >&6; }
34783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5
34784 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
34787 cat confdefs.h
- <<_ACEOF >conftest.c
34790 #include <linux/blkdev.h>
34792 int make_request(struct request_queue *q, struct bio *bio)
34801 blk_queue_make_request(NULL, &make_request);
34811 cat - <<_ACEOF >conftest.h
34816 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34817 echo "obj-m := conftest.o" >build
/Makefile
34819 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34820 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34822 (eval $ac_try) 2>&5
34824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34825 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34826 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34827 (eval $ac_try) 2>&5
34829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34830 test $ac_status = 0; }; }; then :
34832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34833 $as_echo "yes" >&6; }
34835 $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h
34838 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h
34842 $as_echo "$as_me: failed program was:" >&5
34843 sed 's/^/| /' conftest.
$ac_ext >&5
34845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34846 $as_echo "no" >&6; }
34847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5
34848 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
34851 cat confdefs.h
- <<_ACEOF >conftest.c
34854 #include <linux/blkdev.h>
34856 void make_request(struct request_queue *q, struct bio *bio)
34865 blk_queue_make_request(NULL, &make_request);
34875 cat - <<_ACEOF >conftest.h
34880 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34881 echo "obj-m := conftest.o" >build
/Makefile
34883 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34884 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34886 (eval $ac_try) 2>&5
34888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34889 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34891 (eval $ac_try) 2>&5
34893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34894 test $ac_status = 0; }; }; then :
34896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34897 $as_echo "yes" >&6; }
34899 $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h
34903 $as_echo "$as_me: failed program was:" >&5
34904 sed 's/^/| /' conftest.
$ac_ext >&5
34906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34907 $as_echo "no" >&6; }
34908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5
34909 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
34912 cat confdefs.h
- <<_ACEOF >conftest.c
34915 #include <linux/blkdev.h>
34917 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
34919 return (BLK_QC_T_NONE);
34926 blk_queue_make_request(NULL, &make_request);
34936 cat - <<_ACEOF >conftest.h
34941 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
34942 echo "obj-m := conftest.o" >build
/Makefile
34944 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
34945 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
34946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34947 (eval $ac_try) 2>&5
34949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34950 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
34951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
34952 (eval $ac_try) 2>&5
34954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
34955 test $ac_status = 0; }; }; then :
34957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34958 $as_echo "yes" >&6; }
34960 $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h
34963 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h
34967 $as_echo "$as_me: failed program was:" >&5
34968 sed 's/^/| /' conftest.
$ac_ext >&5
34970 as_fn_error $?
"no - Please file a bug report at
34971 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
34995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic IO accounting symbols are avaliable" >&5
34996 $as_echo_n "checking whether generic IO accounting symbols are avaliable... " >&6; }
35000 cat confdefs.h
- <<_ACEOF >conftest.c
35003 #include <linux/bio.h>
35005 void (*generic_start_io_acct_f)(int, unsigned long,
35006 struct hd_struct *) = &generic_start_io_acct;
35007 void (*generic_end_io_acct_f)(int, struct hd_struct *,
35008 unsigned long) = &generic_end_io_acct;
35014 generic_start_io_acct(0, 0, NULL);
35015 generic_end_io_acct(0, NULL, 0);
35025 cat - <<_ACEOF >conftest.h
35030 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35031 echo "obj-m := conftest.o" >build
/Makefile
35033 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35034 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35036 (eval $ac_try) 2>&5
35038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35039 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35041 (eval $ac_try) 2>&5
35043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35044 test $ac_status = 0; }; }; then :
35047 $as_echo "$as_me: failed program was:" >&5
35048 sed 's/^/| /' conftest.
$ac_ext >&5
35056 if test $rc -ne 0; then :
35058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35059 $as_echo "no" >&6; }
35062 if test "x$enable_linux_builtin" != xyes
; then
35064 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
35065 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
35067 if test $rc -ne 0; then
35069 for file in block
/bio.c
; do
35070 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
35071 "$LINUX/$file" 2>/dev
/null
35073 if test $rc -eq 0; then
35078 if test $export -eq 0; then :
35088 if test $rc -ne 0; then :
35090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35091 $as_echo "no" >&6; }
35095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35096 $as_echo "yes" >&6; }
35098 $as_echo "#define HAVE_GENERIC_IO_ACCT 1" >>confdefs.h
35106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->rename() wants flags" >&5
35107 $as_echo_n "checking whether iops->rename() wants flags... " >&6; }
35110 cat confdefs.h
- <<_ACEOF >conftest.c
35113 #include <linux/fs.h>
35114 int rename_fn(struct inode *sip, struct dentry *sdp,
35115 struct inode *tip, struct dentry *tdp,
35116 unsigned int flags) { return 0; }
35118 static const struct inode_operations
35119 iops __attribute__ ((unused)) = {
35120 .rename = rename_fn,
35136 cat - <<_ACEOF >conftest.h
35141 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35142 echo "obj-m := conftest.o" >build
/Makefile
35144 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35145 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35146 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35147 (eval $ac_try) 2>&5
35149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35150 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35152 (eval $ac_try) 2>&5
35154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35155 test $ac_status = 0; }; }; then :
35157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35158 $as_echo "yes" >&6; }
35160 $as_echo "#define HAVE_RENAME_WANTS_FLAGS 1" >>confdefs.h
35164 $as_echo "$as_me: failed program was:" >&5
35165 sed 's/^/| /' conftest.
$ac_ext >&5
35167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35168 $as_echo "no" >&6; }
35178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_setxattr() exists" >&5
35179 $as_echo_n "checking whether generic_setxattr() exists... " >&6; }
35182 cat confdefs.h
- <<_ACEOF >conftest.c
35185 #include <linux/fs.h>
35186 #include <linux/xattr.h>
35188 static const struct inode_operations
35189 iops __attribute__ ((unused)) = {
35190 .setxattr = generic_setxattr
35206 cat - <<_ACEOF >conftest.h
35211 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
35212 echo "obj-m := conftest.o" >build
/Makefile
35214 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
35215 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
35216 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35217 (eval $ac_try) 2>&5
35219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35220 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
35221 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
35222 (eval $ac_try) 2>&5
35224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
35225 test $ac_status = 0; }; }; then :
35227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35228 $as_echo "yes" >&6; }
35230 $as_echo "#define HAVE_GENERIC_SETXATTR 1" >>confdefs.h
35234 $as_echo "$as_me: failed program was:" >&5
35235 sed 's/^/| /' conftest.
$ac_ext >&5
35237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35238 $as_echo "no" >&6; }
35248 if test "$LINUX_OBJ" != "$LINUX"; then :
35250 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
35256 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
35257 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
35258 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
35259 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
35266 # Check whether --with-mounthelperdir was given.
35267 if test "${with_mounthelperdir+set}" = set; then :
35268 withval
=$with_mounthelperdir; mounthelperdir
=$withval
35270 mounthelperdir
=/sbin
35277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
35278 $as_echo_n "checking for udev directories... " >&6; }
35280 # Check whether --with-udevdir was given.
35281 if test "${with_udevdir+set}" = set; then :
35282 withval
=$with_udevdir; udevdir
=$withval
35288 if test "x$udevdir" = xcheck
; then :
35291 path2
=/usr
/lib
/udev
35294 if test -d "$path1"; then :
35298 if test -d "$path2"; then :
35309 # Check whether --with-udevruledir was given.
35310 if test "${with_udevruledir+set}" = set; then :
35311 withval
=$with_udevruledir; udevruledir
=$withval
35313 udevruledir
="${udevdir}/rules.d"
35319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
35320 $as_echo "$udevdir;$udevruledir" >&6; }
35323 # Check whether --enable-systemd was given.
35324 if test "${enable_systemd+set}" = set; then :
35325 enableval
=$enable_systemd;
35332 # Check whether --with-systemdunitdir was given.
35333 if test "${with_systemdunitdir+set}" = set; then :
35334 withval
=$with_systemdunitdir; systemdunitdir
=$withval
35336 systemdunitdir
=/usr
/lib
/systemd
/system
35341 # Check whether --with-systemdpresetdir was given.
35342 if test "${with_systemdpresetdir+set}" = set; then :
35343 withval
=$with_systemdpresetdir; systemdpresetdir
=$withval
35345 systemdpresetdir
=/usr
/lib
/systemd
/system-preset
35350 # Check whether --with-systemdmodulesloaddir was given.
35351 if test "${with_systemdmodulesloaddir+set}" = set; then :
35352 withval
=$with_systemdmodulesloaddir; systemdmoduleloaddir
=$withval
35354 systemdmodulesloaddir
=/usr
/lib
/modules-load.d
35359 if test "x$enable_systemd" = xyes
; then :
35361 ZFS_INIT_SYSTEMD
=systemd
35362 ZFS_MODULE_LOAD
=modules-load.d
35363 modulesloaddir
=$systemdmodulesloaddir
35374 # Check whether --enable-sysvinit was given.
35375 if test "${enable_sysvinit+set}" = set; then :
35376 enableval
=$enable_sysvinit;
35378 enable_sysvinit
=yes
35382 if test "x$enable_sysvinit" = xyes
; then :
35383 ZFS_INIT_SYSV
=init.d
35389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
35390 $as_echo_n "checking for dracut directory... " >&6; }
35392 # Check whether --with-dracutdir was given.
35393 if test "${with_dracutdir+set}" = set; then :
35394 withval
=$with_dracutdir; dracutdir
=$withval
35400 if test "x$dracutdir" = xcheck
; then :
35402 path1
=/usr
/share
/dracut
35403 path2
=/usr
/lib
/dracut
35406 if test -d "$path1"; then :
35410 if test -d "$path2"; then :
35413 dracutdir
="$default"
35421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
35422 $as_echo "$dracutdir" >&6; }
35425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
35426 $as_echo_n "checking for target asm dir... " >&6; }
35427 TARGET_ARCH
=`echo ${target_cpu} | sed -e s/i.86/i386/`
35429 case $TARGET_ARCH in
35431 TARGET_ASM_DIR
=asm-
${TARGET_ARCH}
35434 TARGET_ASM_DIR
=asm-generic
35439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
35440 $as_echo "$TARGET_ASM_DIR" >&6; }
35445 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
35446 if test "x$ac_cv_header_zlib_h" = xyes
; then :
35449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35452 *** zlib.h missing, zlib-devel package required
35453 See \`config.log' for more details" "$LINENO" 5; }
35458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
35459 $as_echo_n "checking for compress2 in -lz... " >&6; }
35460 if ${ac_cv_lib_z_compress2+:} false
; then :
35461 $as_echo_n "(cached) " >&6
35463 ac_check_lib_save_LIBS
=$LIBS
35465 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
35466 /* end confdefs.h. */
35468 /* Override any GCC internal prototype to avoid an error.
35469 Use char because int might match the return type of a GCC
35470 builtin and then its argument prototype would still apply. */
35478 return compress2 ();
35483 if ac_fn_c_try_link
"$LINENO"; then :
35484 ac_cv_lib_z_compress2
=yes
35486 ac_cv_lib_z_compress2
=no
35488 rm -f core conftest.err conftest.
$ac_objext \
35489 conftest
$ac_exeext conftest.
$ac_ext
35490 LIBS
=$ac_check_lib_save_LIBS
35492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
35493 $as_echo "$ac_cv_lib_z_compress2" >&6; }
35494 if test "x$ac_cv_lib_z_compress2" = xyes
; then :
35495 cat >>confdefs.h
<<_ACEOF
35496 #define HAVE_LIBZ 1
35502 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35503 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35505 *** compress2() missing, zlib-devel package required
35506 See \`config.log' for more details" "$LINENO" 5; }
35510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
35511 $as_echo_n "checking for uncompress in -lz... " >&6; }
35512 if ${ac_cv_lib_z_uncompress+:} false
; then :
35513 $as_echo_n "(cached) " >&6
35515 ac_check_lib_save_LIBS
=$LIBS
35517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
35518 /* end confdefs.h. */
35520 /* Override any GCC internal prototype to avoid an error.
35521 Use char because int might match the return type of a GCC
35522 builtin and then its argument prototype would still apply. */
35526 char uncompress ();
35530 return uncompress ();
35535 if ac_fn_c_try_link
"$LINENO"; then :
35536 ac_cv_lib_z_uncompress
=yes
35538 ac_cv_lib_z_uncompress
=no
35540 rm -f core conftest.err conftest.
$ac_objext \
35541 conftest
$ac_exeext conftest.
$ac_ext
35542 LIBS
=$ac_check_lib_save_LIBS
35544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
35545 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
35546 if test "x$ac_cv_lib_z_uncompress" = xyes
; then :
35547 cat >>confdefs.h
<<_ACEOF
35548 #define HAVE_LIBZ 1
35554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35557 *** uncompress() missing, zlib-devel package required
35558 See \`config.log' for more details" "$LINENO" 5; }
35562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5
35563 $as_echo_n "checking for crc32 in -lz... " >&6; }
35564 if ${ac_cv_lib_z_crc32+:} false
; then :
35565 $as_echo_n "(cached) " >&6
35567 ac_check_lib_save_LIBS
=$LIBS
35569 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
35570 /* end confdefs.h. */
35572 /* Override any GCC internal prototype to avoid an error.
35573 Use char because int might match the return type of a GCC
35574 builtin and then its argument prototype would still apply. */
35587 if ac_fn_c_try_link
"$LINENO"; then :
35588 ac_cv_lib_z_crc32
=yes
35590 ac_cv_lib_z_crc32
=no
35592 rm -f core conftest.err conftest.
$ac_objext \
35593 conftest
$ac_exeext conftest.
$ac_ext
35594 LIBS
=$ac_check_lib_save_LIBS
35596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5
35597 $as_echo "$ac_cv_lib_z_crc32" >&6; }
35598 if test "x$ac_cv_lib_z_crc32" = xyes
; then :
35599 cat >>confdefs.h
<<_ACEOF
35600 #define HAVE_LIBZ 1
35606 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35609 *** crc32() missing, zlib-devel package required
35610 See \`config.log' for more details" "$LINENO" 5; }
35617 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
35623 ac_fn_c_check_header_mongrel
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
35624 if test "x$ac_cv_header_uuid_uuid_h" = xyes
; then :
35627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35630 *** uuid/uuid.h missing, libuuid-devel package required
35631 See \`config.log' for more details" "$LINENO" 5; }
35636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
35637 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
35638 if ${ac_cv_lib_uuid_uuid_generate+:} false
; then :
35639 $as_echo_n "(cached) " >&6
35641 ac_check_lib_save_LIBS
=$LIBS
35642 LIBS
="-luuid $LIBS"
35643 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
35644 /* end confdefs.h. */
35646 /* Override any GCC internal prototype to avoid an error.
35647 Use char because int might match the return type of a GCC
35648 builtin and then its argument prototype would still apply. */
35652 char uuid_generate ();
35656 return uuid_generate ();
35661 if ac_fn_c_try_link
"$LINENO"; then :
35662 ac_cv_lib_uuid_uuid_generate
=yes
35664 ac_cv_lib_uuid_uuid_generate
=no
35666 rm -f core conftest.err conftest.
$ac_objext \
35667 conftest
$ac_exeext conftest.
$ac_ext
35668 LIBS
=$ac_check_lib_save_LIBS
35670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
35671 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
35672 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
; then :
35673 cat >>confdefs.h
<<_ACEOF
35674 #define HAVE_LIBUUID 1
35677 LIBS
="-luuid $LIBS"
35680 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35681 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35683 *** uuid_generate() missing, libuuid-devel package required
35684 See \`config.log' for more details" "$LINENO" 5; }
35688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5
35689 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
35690 if ${ac_cv_lib_uuid_uuid_is_null+:} false
; then :
35691 $as_echo_n "(cached) " >&6
35693 ac_check_lib_save_LIBS
=$LIBS
35694 LIBS
="-luuid $LIBS"
35695 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
35696 /* end confdefs.h. */
35698 /* Override any GCC internal prototype to avoid an error.
35699 Use char because int might match the return type of a GCC
35700 builtin and then its argument prototype would still apply. */
35704 char uuid_is_null ();
35708 return uuid_is_null ();
35713 if ac_fn_c_try_link
"$LINENO"; then :
35714 ac_cv_lib_uuid_uuid_is_null
=yes
35716 ac_cv_lib_uuid_uuid_is_null
=no
35718 rm -f core conftest.err conftest.
$ac_objext \
35719 conftest
$ac_exeext conftest.
$ac_ext
35720 LIBS
=$ac_check_lib_save_LIBS
35722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5
35723 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
35724 if test "x$ac_cv_lib_uuid_uuid_is_null" = xyes
; then :
35725 cat >>confdefs.h
<<_ACEOF
35726 #define HAVE_LIBUUID 1
35729 LIBS
="-luuid $LIBS"
35732 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35735 *** uuid_is_null() missing, libuuid-devel package required
35736 See \`config.log' for more details" "$LINENO" 5; }
35743 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
35748 # Check whether --with-blkid was given.
35749 if test "${with_blkid+set}" = set; then :
35750 withval
=$with_blkid;
35757 if test "x$with_blkid" = xyes
; then :
35762 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
35767 if test "x$with_blkid" = xcheck
; then :
35769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
35770 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
35771 if ${ac_cv_lib_blkid_blkid_get_cache+:} false
; then :
35772 $as_echo_n "(cached) " >&6
35774 ac_check_lib_save_LIBS
=$LIBS
35775 LIBS
="-lblkid $LIBS"
35776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
35777 /* end confdefs.h. */
35779 /* Override any GCC internal prototype to avoid an error.
35780 Use char because int might match the return type of a GCC
35781 builtin and then its argument prototype would still apply. */
35785 char blkid_get_cache ();
35789 return blkid_get_cache ();
35794 if ac_fn_c_try_link
"$LINENO"; then :
35795 ac_cv_lib_blkid_blkid_get_cache
=yes
35797 ac_cv_lib_blkid_blkid_get_cache
=no
35799 rm -f core conftest.err conftest.
$ac_objext \
35800 conftest
$ac_exeext conftest.
$ac_ext
35801 LIBS
=$ac_check_lib_save_LIBS
35803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
35804 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
35805 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
; then :
35807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5
35808 $as_echo_n "checking for blkid zfs support... " >&6; }
35811 truncate
-s 64M
$ZFS_DEV
35812 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
35813 dd of
=$ZFS_DEV bs
=1k count
=8 \
35814 seek
=128 conv
=notrunc
&>/dev
/null \
35815 >/dev
/null
2>/dev
/null
35816 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
35817 dd of
=$ZFS_DEV bs
=1k count
=8 \
35818 seek
=132 conv
=notrunc
&>/dev
/null \
35819 >/dev
/null
2>/dev
/null
35820 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
35821 dd of
=$ZFS_DEV bs
=1k count
=8 \
35822 seek
=136 conv
=notrunc
&>/dev
/null \
35823 >/dev
/null
2>/dev
/null
35824 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
35825 dd of
=$ZFS_DEV bs
=1k count
=8 \
35826 seek
=140 conv
=notrunc
&>/dev
/null \
35827 >/dev
/null
2>/dev
/null
35832 if test "$cross_compiling" = yes; then :
35833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35835 as_fn_error $?
"cannot run test program while cross compiling
35836 See \`config.log' for more details" "$LINENO" 5; }
35838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
35839 /* end confdefs.h. */
35842 #include <stdlib.h>
35843 #include <blkid/blkid.h>
35852 if (blkid_get_cache(&cache, NULL) < 0)
35855 value = blkid_get_tag_value(cache, "TYPE",
35858 blkid_put_cache(cache);
35862 if (strcmp(value, "zfs_member")) {
35864 blkid_put_cache(cache);
35869 blkid_put_cache(cache);
35875 if ac_fn_c_try_run
"$LINENO"; then :
35878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35879 $as_echo "yes" >&6; }
35883 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
35889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35890 $as_echo "no" >&6; }
35891 if test "x$with_blkid" != xcheck
; then :
35892 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35893 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35894 as_fn_error $?
"--with-blkid given but unavailable
35895 See \`config.log' for more details" "$LINENO" 5; }
35899 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
35900 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
35908 if test "x$with_blkid" != xcheck
; then :
35909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35911 as_fn_error $?
"--with-blkid given but unavailable
35912 See \`config.log' for more details" "$LINENO" 5; }
35922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
35923 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
35925 saved_flags
="$CFLAGS"
35926 CFLAGS
="$CFLAGS -Wframe-larger-than=1024"
35928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
35929 /* end confdefs.h. */
35939 if ac_fn_c_try_compile
"$LINENO"; then :
35941 FRAME_LARGER_THAN
=-Wframe-larger-than=1024
35942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35943 $as_echo "yes" >&6; }
35948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35949 $as_echo "no" >&6; }
35952 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
35954 CFLAGS
="$saved_flags"
35958 if test "x$runstatedir" = x
; then
35959 runstatedir
='${localstatedir}/run'
35963 for ac_func
in mlockall
35965 ac_fn_c_check_func
"$LINENO" "mlockall" "ac_cv_func_mlockall"
35966 if test "x$ac_cv_func_mlockall" = xyes
; then :
35967 cat >>confdefs.h
<<_ACEOF
35968 #define HAVE_MLOCKALL 1
35977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
35978 $as_echo "Error!" >&6; }
35979 as_fn_error $?
"Bad value \"$ZFS_CONFIG\" for --with-config,
35980 user kernel|user|all|srpm" "$LINENO" 5 ;;
35983 if test "$ZFS_CONFIG" = user
-o "$ZFS_CONFIG" = all
; then
35985 CONFIG_USER_FALSE
='#'
35987 CONFIG_USER_TRUE
='#'
35991 if test "$ZFS_CONFIG" = kernel
-o "$ZFS_CONFIG" = all
&&
35992 test "x$enable_linux_builtin" != xyes
; then
35993 CONFIG_KERNEL_TRUE
=
35994 CONFIG_KERNEL_FALSE
='#'
35996 CONFIG_KERNEL_TRUE
='#'
35997 CONFIG_KERNEL_FALSE
=
36002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
36003 $as_echo_n "checking whether debugging is enabled... " >&6; }
36004 # Check whether --enable-debug was given.
36005 if test "${enable_debug+set}" = set; then :
36006 enableval
=$enable_debug;
36012 if test "x$enable_debug" = xyes
; then :
36014 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG -Werror"
36015 HOSTCFLAGS
="${HOSTCFLAGS} -DDEBUG -Werror"
36016 DEBUG_CFLAGS
="-DDEBUG -Werror"
36017 DEBUG_STACKFLAGS
="-fstack-check"
36018 DEBUG_ZFS
="_with_debug"
36020 $as_echo "#define ZFS_DEBUG 1" >>confdefs.h
36025 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DNDEBUG "
36026 HOSTCFLAGS
="${HOSTCFLAGS} -DNDEBUG "
36027 DEBUG_CFLAGS
="-DNDEBUG"
36028 DEBUG_STACKFLAGS
=""
36029 DEBUG_ZFS
="_without_debug"
36036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
36037 $as_echo "$enable_debug" >&6; }
36040 # Check whether --enable-debug-dmu-tx was given.
36041 if test "${enable_debug_dmu_tx+set}" = set; then :
36042 enableval
=$enable_debug_dmu_tx;
36044 enable_debug_dmu_tx
=no
36048 if test "x$enable_debug_dmu_tx" = xyes
; then :
36050 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG_DMU_TX"
36051 DEBUG_DMU_TX
="_with_debug_dmu_tx"
36053 $as_echo "#define DEBUG_DMU_TX 1" >>confdefs.h
36058 DEBUG_DMU_TX
="_without_debug_dmu_tx"
36063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dmu tx validation is enabled" >&5
36064 $as_echo_n "checking whether dmu tx validation is enabled... " >&6; }
36065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_dmu_tx" >&5
36066 $as_echo "$enable_debug_dmu_tx" >&6; }
36069 ac_config_files
="$ac_config_files Makefile udev/Makefile udev/rules.d/Makefile etc/Makefile etc/init.d/Makefile etc/zfs/Makefile etc/systemd/Makefile etc/systemd/system/Makefile etc/modules-load.d/Makefile man/Makefile man/man1/Makefile man/man5/Makefile man/man8/Makefile lib/Makefile lib/libspl/Makefile lib/libspl/asm-generic/Makefile lib/libspl/asm-i386/Makefile lib/libspl/asm-x86_64/Makefile lib/libspl/include/Makefile lib/libspl/include/ia32/Makefile lib/libspl/include/ia32/sys/Makefile lib/libspl/include/rpc/Makefile lib/libspl/include/sys/Makefile lib/libspl/include/sys/sysevent/Makefile lib/libspl/include/sys/dktp/Makefile lib/libspl/include/util/Makefile lib/libavl/Makefile lib/libefi/Makefile lib/libnvpair/Makefile lib/libunicode/Makefile lib/libuutil/Makefile lib/libzpool/Makefile lib/libzfs/libzfs.pc lib/libzfs/libzfs_core.pc lib/libzfs/Makefile lib/libzfs_core/Makefile lib/libshare/Makefile cmd/Makefile cmd/zdb/Makefile cmd/zhack/Makefile cmd/zfs/Makefile cmd/zinject/Makefile cmd/zpool/Makefile cmd/zstreamdump/Makefile cmd/ztest/Makefile cmd/zpios/Makefile cmd/mount_zfs/Makefile cmd/fsck_zfs/Makefile cmd/zvol_id/Makefile cmd/vdev_id/Makefile cmd/arcstat/Makefile cmd/dbufstat/Makefile cmd/arc_summary/Makefile cmd/zed/Makefile contrib/Makefile contrib/bash_completion.d/Makefile contrib/dracut/Makefile contrib/dracut/90zfs/Makefile contrib/initramfs/Makefile module/Makefile module/avl/Makefile module/nvpair/Makefile module/unicode/Makefile module/zcommon/Makefile module/zfs/Makefile module/zpios/Makefile include/Makefile include/linux/Makefile include/sys/Makefile include/sys/fs/Makefile include/sys/fm/Makefile include/sys/fm/fs/Makefile scripts/Makefile scripts/zpios-profile/Makefile scripts/zpios-test/Makefile scripts/zpool-config/Makefile scripts/common.sh rpm/Makefile rpm/redhat/Makefile rpm/redhat/zfs.spec rpm/redhat/zfs-kmod.spec rpm/redhat/zfs-dkms.spec rpm/generic/Makefile rpm/generic/zfs.spec rpm/generic/zfs-kmod.spec rpm/generic/zfs-dkms.spec zfs-script-config.sh zfs.release"
36072 cat >confcache
<<\_ACEOF
36073 # This file is a shell script that caches the results of configure
36074 # tests run on this system so they can be shared between configure
36075 # scripts and configure runs, see configure's option --config-cache.
36076 # It is not useful on other systems. If it contains results you don't
36077 # want to keep, you may remove or edit it.
36079 # config.status only pays attention to the cache file if you give it
36080 # the --recheck option to rerun configure.
36082 # `ac_cv_env_foo' variables (set or unset) will be overridden when
36083 # loading this file, other *unset* `ac_cv_foo' will be assigned the
36084 # following values.
36088 # The following way of writing the cache mishandles newlines in values,
36089 # but we know of no workaround that is simple, portable, and efficient.
36090 # So, we kill variables containing newlines.
36091 # Ultrix sh set writes to stderr and can't be redirected directly,
36092 # and sets the high bit in the cache file unless we assign to the vars.
36094 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
36095 eval ac_val
=\$
$ac_var
36099 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
36100 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
36103 _ | IFS | as_nl
) ;; #(
36104 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
36105 *) { eval $ac_var=; unset $ac_var;} ;;
36111 case $as_nl`(ac_space=' '; set) 2>&1` in #(
36112 *${as_nl}ac_space
=\
*)
36113 # `set' does not quote correctly, so add quotes: double-quote
36114 # substitution turns \\\\ into \\, and sed turns \\ into \.
36117 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36120 # `set' quotes correctly as required by POSIX, so do not add quotes.
36121 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36130 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36132 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36134 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
36135 if test -w "$cache_file"; then
36136 if test "x$cache_file" != "x/dev/null"; then
36137 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
36138 $as_echo "$as_me: updating cache $cache_file" >&6;}
36139 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
36140 cat confcache
>"$cache_file"
36142 case $cache_file in #(
36144 mv -f confcache
"$cache_file"$$
&&
36145 mv -f "$cache_file"$$
"$cache_file" ;; #(
36147 mv -f confcache
"$cache_file" ;;
36152 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
36153 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36158 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
36159 # Let make expand exec_prefix.
36160 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
36162 DEFS
=-DHAVE_CONFIG_H
36167 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
36168 # 1. Remove the extension, and $U if already installed.
36169 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
36170 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
36171 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
36172 # will be set to the directory where LIBOBJS objects are built.
36173 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36174 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
36176 LIBOBJS
=$ac_libobjs
36178 LTLIBOBJS
=$ac_ltlibobjs
36181 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
36182 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
36183 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36186 $as_echo_n "checking that generated files are newer than configure... " >&6; }
36187 if test -n "$am_sleep_pid"; then
36188 # Hide warnings about reused PIDs.
36189 wait $am_sleep_pid 2>/dev
/null
36191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36192 $as_echo "done" >&6; }
36193 if test -n "$EXEEXT"; then
36195 am__EXEEXT_FALSE
='#'
36197 am__EXEEXT_TRUE
='#'
36201 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
36202 as_fn_error $?
"conditional \"AMDEP\" was never defined.
36203 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36205 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
36206 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
36207 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36209 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
36210 as_fn_error $?
"conditional \"am__fastdepCCAS\" was never defined.
36211 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36213 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
36214 as_fn_error $?
"conditional \"CONFIG_USER\" was never defined.
36215 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36217 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
36218 as_fn_error $?
"conditional \"CONFIG_KERNEL\" was never defined.
36219 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36222 : "${CONFIG_STATUS=./config.status}"
36224 ac_clean_files_save
=$ac_clean_files
36225 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
36226 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
36227 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
36229 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
36231 # Generated by $as_me.
36232 # Run this file to recreate the current configuration.
36233 # Compiler output produced by configure, useful for debugging
36234 # configure, is in config.log if it exists.
36237 ac_cs_recheck=false
36240 SHELL=\${CONFIG_SHELL-$SHELL}
36243 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
36244 ## -------------------- ##
36245 ## M4sh Initialization. ##
36246 ## -------------------- ##
36248 # Be more Bourne compatible
36249 DUALCASE
=1; export DUALCASE
# for MKS sh
36250 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
36253 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36254 # is contrary to our usage. Disable this feature.
36255 alias -g '${1+"$@"}'='"$@"'
36256 setopt NO_GLOB_SUBST
36258 case `(set -o) 2>/dev/null` in #(
36270 # Printing a long string crashes Solaris 7 /usr/bin/printf.
36271 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36272 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36273 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
36274 # Prefer a ksh shell builtin over an external printf program on Solaris,
36275 # but without wasting forks for bash or zsh.
36276 if test -z "$BASH_VERSION$ZSH_VERSION" \
36277 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36278 as_echo='print
-r --'
36279 as_echo_n='print
-rn --'
36280 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
36281 as_echo='printf %s
\n'
36282 as_echo_n='printf %s
'
36284 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36285 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
36286 as_echo_n='/usr
/ucb
/echo -n'
36288 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36289 as_echo_n_body='eval
36293 expr "X$arg" : "X\\(.*\\)$as_nl";
36294 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36296 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
36298 export as_echo_n_body
36299 as_echo_n='sh
-c $as_echo_n_body as_echo
'
36301 export as_echo_body
36302 as_echo='sh
-c $as_echo_body as_echo
'
36305 # The user is always right.
36306 if test "${PATH_SEPARATOR+set}" != set; then
36308 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36309 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36316 # We need space, tab and new line, in precisely that order. Quoting is
36317 # there to prevent editors from complaining about space-tab.
36318 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
36319 # splitting by setting IFS to empty value.)
36322 # Find who we are. Look in the path if we contain no directory separator.
36325 *[\\/]* ) as_myself=$0 ;;
36326 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36327 for as_dir in $PATH
36330 test -z "$as_dir" && as_dir=.
36331 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36337 # We did not find ourselves, most probably we were run as `sh COMMAND'
36338 # in which case we are not to be found in the path.
36339 if test "x$as_myself" = x
; then
36342 if test ! -f "$as_myself"; then
36343 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
36347 # Unset variables that we do not need and which cause bugs (e.g. in
36348 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36349 # suppresses any "Segmentation fault" message there. '((' could
36350 # trigger a bug in pdksh 5.2.14.
36351 for as_var
in BASH_ENV ENV MAIL MAILPATH
36352 do eval test x\
${$as_var+set} = xset \
36353 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
36366 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
36369 # as_fn_error STATUS ERROR [LINENO LOG_FD]
36370 # ----------------------------------------
36371 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36372 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
36373 # script with STATUS, using 1 if that was 0.
36376 as_status
=$1; test $as_status -eq 0 && as_status
=1
36378 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
36379 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
36381 $as_echo "$as_me: error: $2" >&2
36382 as_fn_exit
$as_status
36386 # as_fn_set_status STATUS
36387 # -----------------------
36388 # Set $? to STATUS, without forking.
36389 as_fn_set_status
()
36392 } # as_fn_set_status
36394 # as_fn_exit STATUS
36395 # -----------------
36396 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36400 as_fn_set_status
$1
36406 # Portably unset VAR.
36409 { eval $1=; unset $1;}
36411 as_unset
=as_fn_unset
36412 # as_fn_append VAR VALUE
36413 # ----------------------
36414 # Append the text in VALUE to the end of the definition contained in VAR. Take
36415 # advantage of any shell optimizations that allow amortized linear growth over
36416 # repeated appends, instead of the typical quadratic growth present in naive
36418 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
36419 eval 'as_fn_append ()
36430 # as_fn_arith ARG...
36431 # ------------------
36432 # Perform arithmetic evaluation on the ARGs, and store the result in the
36433 # global $as_val. Take advantage of shells that can avoid forks. The arguments
36434 # must be portable across $(()) and expr.
36435 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
36436 eval 'as_fn_arith ()
36443 as_val
=`expr "$@" || test $? -eq 1`
36448 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
36449 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
36455 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36456 as_basename
=basename
36461 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
36467 as_me
=`$as_basename -- "$0" ||
36468 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36469 X"$0" : 'X\(//\)$' \| \
36470 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36472 sed '/^.*\/\([^/][^/]*\)\/*$/{
36486 # Avoid depending upon Character Ranges.
36487 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
36488 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36489 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
36490 as_cr_digits
='0123456789'
36491 as_cr_alnum
=$as_cr_Letters$as_cr_digits
36493 ECHO_C
= ECHO_N
= ECHO_T
=
36494 case `echo -n x` in #(((((
36496 case `echo 'xy\c'` in
36497 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
36499 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
36506 rm -f conf$$ conf$$.exe conf$$.
file
36507 if test -d conf$$.dir
; then
36508 rm -f conf$$.dir
/conf$$.
file
36511 mkdir conf$$.dir
2>/dev
/null
36513 if (echo >conf$$.
file) 2>/dev
/null
; then
36514 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
36516 # ... but there are two gotchas:
36517 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36518 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
36519 # In both cases, we have to default to `cp -pR'.
36520 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
36522 elif ln conf$$.
file conf$$
2>/dev
/null
; then
36530 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
36531 rmdir conf$$.dir
2>/dev
/null
36536 # Create "$as_dir" as a directory, including parents if necessary.
36541 -*) as_dir
=.
/$as_dir;;
36543 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
36547 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36548 *) as_qdir
=$as_dir;;
36550 as_dirs
="'$as_qdir' $as_dirs"
36551 as_dir
=`$as_dirname -- "$as_dir" ||
36552 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36553 X"$as_dir" : 'X\(//\)[^/]' \| \
36554 X"$as_dir" : 'X\(//\)$' \| \
36555 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36556 $as_echo X"$as_dir" |
36557 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36561 /^X\(\/\/\)[^/].*/{
36574 test -d "$as_dir" && break
36576 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
36577 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
36581 if mkdir
-p .
2>/dev
/null
; then
36582 as_mkdir_p
='mkdir -p "$as_dir"'
36584 test -d .
/-p && rmdir .
/-p
36589 # as_fn_executable_p FILE
36590 # -----------------------
36591 # Test if FILE is an executable regular file.
36592 as_fn_executable_p
()
36594 test -f "$1" && test -x "$1"
36595 } # as_fn_executable_p
36596 as_test_x
='test -x'
36597 as_executable_p
=as_fn_executable_p
36599 # Sed expression to map a string onto a valid CPP name.
36600 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36602 # Sed expression to map a string onto a valid variable name.
36603 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36607 ## ----------------------------------- ##
36608 ## Main body of $CONFIG_STATUS script. ##
36609 ## ----------------------------------- ##
36611 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
36613 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
36614 # Save the log message, to keep $0 and so on meaningful, and to
36615 # report actual input values of CONFIG_FILES etc. instead of their
36616 # values after options handling.
36618 This file was extended by zfs $as_me 0.6.5.9, which was
36619 generated by GNU Autoconf 2.69. Invocation command line was
36621 CONFIG_FILES = $CONFIG_FILES
36622 CONFIG_HEADERS = $CONFIG_HEADERS
36623 CONFIG_LINKS = $CONFIG_LINKS
36624 CONFIG_COMMANDS = $CONFIG_COMMANDS
36627 on `(hostname || uname -n) 2>/dev/null | sed 1q`
36632 case $ac_config_files in *"
36633 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
36636 case $ac_config_headers in *"
36637 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
36641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36642 # Files that config.status was made for.
36643 config_files="$ac_config_files"
36644 config_headers="$ac_config_headers"
36645 config_commands="$ac_config_commands"
36649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
36651 \`$as_me' instantiates files and other configuration actions
36652 from templates according to the current configuration. Unless the files
36653 and actions are specified as TAGs, all are instantiated by default.
36655 Usage: $0 [OPTION]... [TAG]...
36657 -h, --help print this help, then exit
36658 -V, --version print version number and configuration settings, then exit
36659 --config print configuration, then exit
36660 -q, --quiet, --silent
36661 do not print progress messages
36662 -d, --debug don't remove temporary files
36663 --recheck update $as_me by reconfiguring in the same conditions
36664 --file=FILE[:TEMPLATE]
36665 instantiate the configuration file FILE
36666 --header=FILE[:TEMPLATE]
36667 instantiate the configuration header FILE
36669 Configuration files:
36672 Configuration headers:
36675 Configuration commands:
36678 Report bugs to the package provider."
36681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36682 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
36684 zfs config.status 0.6.5.9
36685 configured by $0, generated by GNU Autoconf 2.69,
36686 with options \\"\$ac_cs_config\\"
36688 Copyright (C) 2012 Free Software Foundation, Inc.
36689 This config.status script is free software; the Free Software Foundation
36690 gives unlimited permission to copy, distribute and modify it."
36697 test -n "\$AWK" || AWK=awk
36700 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
36701 # The default lists apply if the user does not specify any file.
36707 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
36708 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
36712 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
36724 # Handling of the options.
36725 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
36727 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
36728 $as_echo "$ac_cs_version"; exit ;;
36729 --config |
--confi |
--conf |
--con |
--co |
--c )
36730 $as_echo "$ac_cs_config"; exit ;;
36731 --debug |
--debu |
--deb |
--de |
--d |
-d )
36733 --file |
--fil |
--fi |
--f )
36736 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36737 '') as_fn_error $?
"missing file argument" ;;
36739 as_fn_append CONFIG_FILES
" '$ac_optarg'"
36740 ac_need_defaults
=false
;;
36741 --header |
--heade |
--head |
--hea )
36744 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36746 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
36747 ac_need_defaults
=false
;;
36749 # Conflict between --help and --header
36750 as_fn_error $?
"ambiguous option: \`$1'
36751 Try \`$0 --help' for more information.";;
36752 --help |
--hel |
-h )
36753 $as_echo "$ac_cs_usage"; exit ;;
36754 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
36755 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
36758 # This is an error.
36759 -*) as_fn_error $?
"unrecognized option: \`$1'
36760 Try \`$0 --help' for more information." ;;
36762 *) as_fn_append ac_config_targets
" $1"
36763 ac_need_defaults
=false
;;
36769 ac_configure_extra_args
=
36771 if $ac_cs_silent; then
36773 ac_configure_extra_args
="$ac_configure_extra_args --silent"
36777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36778 if \$ac_cs_recheck; then
36779 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
36781 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36782 CONFIG_SHELL='$SHELL'
36783 export CONFIG_SHELL
36788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
36792 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36793 ## Running $as_me. ##
36799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36803 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36806 # The HP-UX ksh and POSIX shell print the target directory to stdout
36807 # if CDPATH is set.
36808 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36810 sed_quote_subst='$sed_quote_subst'
36811 double_quote_subst='$double_quote_subst'
36812 delay_variable_subst='$delay_variable_subst'
36813 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36814 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36815 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36816 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36817 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36818 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
36819 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
36820 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36821 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36822 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
36823 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36824 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36825 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36826 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36827 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36828 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36829 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36830 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36831 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36832 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36833 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36834 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36835 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36836 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36837 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36838 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36839 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36840 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36841 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36842 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
36843 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36844 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
36845 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36846 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36847 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36848 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36849 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
36850 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36851 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36852 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36853 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
36854 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36855 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
36856 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
36857 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36858 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36859 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36860 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36861 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36862 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36863 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36864 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36865 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36866 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36867 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36868 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36869 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
36870 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36871 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"`'
36872 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
36873 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36874 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
36875 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
36876 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36877 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36878 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
36879 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
36880 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
36881 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36882 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36883 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
36884 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
36885 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36886 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36887 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36888 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36889 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36890 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36891 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36892 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36893 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36894 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36895 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36896 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36897 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36898 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36899 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36900 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36901 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36902 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36903 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36904 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36905 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36906 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36907 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
36908 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36909 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36910 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36911 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36912 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36913 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36914 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36915 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
36916 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36917 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36918 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36919 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36920 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
36921 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
36922 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36923 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36924 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36925 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36926 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36927 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36928 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36929 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36930 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36931 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36932 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36933 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36934 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36935 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36936 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36937 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36938 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36939 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36940 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
36941 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
36942 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36943 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36944 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36945 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36946 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36947 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36950 LTCFLAGS='$LTCFLAGS'
36951 compiler='$compiler_DEFAULT'
36953 # A function that is used when there is no print builtin or printf.
36954 func_fallback_echo ()
36956 eval 'cat <<_LTECHO_EOF
36961 # Quote evaled strings.
36976 deplibs_check_method \
36981 sharedlib_from_linklib_cmd \
36984 archiver_list_spec \
36990 lt_cv_sys_global_symbol_pipe \
36991 lt_cv_sys_global_symbol_to_cdecl \
36992 lt_cv_sys_global_symbol_to_import \
36993 lt_cv_sys_global_symbol_to_c_name_address \
36994 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
36995 lt_cv_nm_interface \
36996 nm_file_list_spec \
36997 lt_cv_truncate_bin \
36998 lt_prog_compiler_no_builtin_flag \
36999 lt_prog_compiler_pic \
37000 lt_prog_compiler_wl \
37001 lt_prog_compiler_static \
37002 lt_cv_prog_compiler_c_o \
37011 export_dynamic_flag_spec \
37012 whole_archive_flag_spec \
37013 compiler_needs_object \
37015 allow_undefined_flag \
37016 no_undefined_flag \
37017 hardcode_libdir_flag_spec \
37018 hardcode_libdir_separator \
37022 variables_saved_for_relink \
37024 library_names_spec \
37026 install_override_mode \
37030 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
37031 *[\\\\\\\`\\"\\\$]*)
37032 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
37035 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37040 # Double-quote double-evaled strings.
37041 for var in reload_cmds \
37042 old_postinstall_cmds \
37043 old_postuninstall_cmds \
37045 extract_expsyms_cmds \
37046 old_archive_from_new_cmds \
37047 old_archive_from_expsyms_cmds \
37049 archive_expsym_cmds \
37051 module_expsym_cmds \
37052 export_symbols_cmds \
37056 postuninstall_cmds \
37058 sys_lib_search_path_spec \
37059 configure_time_dlsearch_path \
37060 configure_time_lt_sys_library_path; do
37061 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
37062 *[\\\\\\\`\\"\\\$]*)
37063 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
37066 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37071 ac_aux_dir='$ac_aux_dir'
37073 # See if we are running on zsh, and set the options that allow our
37074 # commands through without removal of \ escapes INIT.
37075 if test -n "\${ZSH_VERSION+set}"; then
37076 setopt NO_GLOB_SUBST
37090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
37092 # Handling of arguments.
37093 for ac_config_target
in $ac_config_targets
37095 case $ac_config_target in
37096 "zfs_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS zfs_config.h" ;;
37097 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
37098 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
37099 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
37100 "udev/Makefile") CONFIG_FILES
="$CONFIG_FILES udev/Makefile" ;;
37101 "udev/rules.d/Makefile") CONFIG_FILES
="$CONFIG_FILES udev/rules.d/Makefile" ;;
37102 "etc/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/Makefile" ;;
37103 "etc/init.d/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/init.d/Makefile" ;;
37104 "etc/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/zfs/Makefile" ;;
37105 "etc/systemd/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/systemd/Makefile" ;;
37106 "etc/systemd/system/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/systemd/system/Makefile" ;;
37107 "etc/modules-load.d/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/modules-load.d/Makefile" ;;
37108 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
37109 "man/man1/Makefile") CONFIG_FILES
="$CONFIG_FILES man/man1/Makefile" ;;
37110 "man/man5/Makefile") CONFIG_FILES
="$CONFIG_FILES man/man5/Makefile" ;;
37111 "man/man8/Makefile") CONFIG_FILES
="$CONFIG_FILES man/man8/Makefile" ;;
37112 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
37113 "lib/libspl/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/Makefile" ;;
37114 "lib/libspl/asm-generic/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
37115 "lib/libspl/asm-i386/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
37116 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
37117 "lib/libspl/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/Makefile" ;;
37118 "lib/libspl/include/ia32/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
37119 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
37120 "lib/libspl/include/rpc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
37121 "lib/libspl/include/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
37122 "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
37123 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
37124 "lib/libspl/include/util/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
37125 "lib/libavl/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libavl/Makefile" ;;
37126 "lib/libefi/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libefi/Makefile" ;;
37127 "lib/libnvpair/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libnvpair/Makefile" ;;
37128 "lib/libunicode/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libunicode/Makefile" ;;
37129 "lib/libuutil/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libuutil/Makefile" ;;
37130 "lib/libzpool/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libzpool/Makefile" ;;
37131 "lib/libzfs/libzfs.pc") CONFIG_FILES
="$CONFIG_FILES lib/libzfs/libzfs.pc" ;;
37132 "lib/libzfs/libzfs_core.pc") CONFIG_FILES
="$CONFIG_FILES lib/libzfs/libzfs_core.pc" ;;
37133 "lib/libzfs/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libzfs/Makefile" ;;
37134 "lib/libzfs_core/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libzfs_core/Makefile" ;;
37135 "lib/libshare/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libshare/Makefile" ;;
37136 "cmd/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/Makefile" ;;
37137 "cmd/zdb/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zdb/Makefile" ;;
37138 "cmd/zhack/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zhack/Makefile" ;;
37139 "cmd/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zfs/Makefile" ;;
37140 "cmd/zinject/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zinject/Makefile" ;;
37141 "cmd/zpool/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpool/Makefile" ;;
37142 "cmd/zstreamdump/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zstreamdump/Makefile" ;;
37143 "cmd/ztest/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/ztest/Makefile" ;;
37144 "cmd/zpios/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpios/Makefile" ;;
37145 "cmd/mount_zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
37146 "cmd/fsck_zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/fsck_zfs/Makefile" ;;
37147 "cmd/zvol_id/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
37148 "cmd/vdev_id/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/vdev_id/Makefile" ;;
37149 "cmd/arcstat/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/arcstat/Makefile" ;;
37150 "cmd/dbufstat/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/dbufstat/Makefile" ;;
37151 "cmd/arc_summary/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/arc_summary/Makefile" ;;
37152 "cmd/zed/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zed/Makefile" ;;
37153 "contrib/Makefile") CONFIG_FILES
="$CONFIG_FILES contrib/Makefile" ;;
37154 "contrib/bash_completion.d/Makefile") CONFIG_FILES
="$CONFIG_FILES contrib/bash_completion.d/Makefile" ;;
37155 "contrib/dracut/Makefile") CONFIG_FILES
="$CONFIG_FILES contrib/dracut/Makefile" ;;
37156 "contrib/dracut/90zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES contrib/dracut/90zfs/Makefile" ;;
37157 "contrib/initramfs/Makefile") CONFIG_FILES
="$CONFIG_FILES contrib/initramfs/Makefile" ;;
37158 "module/Makefile") CONFIG_FILES
="$CONFIG_FILES module/Makefile" ;;
37159 "module/avl/Makefile") CONFIG_FILES
="$CONFIG_FILES module/avl/Makefile" ;;
37160 "module/nvpair/Makefile") CONFIG_FILES
="$CONFIG_FILES module/nvpair/Makefile" ;;
37161 "module/unicode/Makefile") CONFIG_FILES
="$CONFIG_FILES module/unicode/Makefile" ;;
37162 "module/zcommon/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zcommon/Makefile" ;;
37163 "module/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zfs/Makefile" ;;
37164 "module/zpios/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zpios/Makefile" ;;
37165 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
37166 "include/linux/Makefile") CONFIG_FILES
="$CONFIG_FILES include/linux/Makefile" ;;
37167 "include/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/Makefile" ;;
37168 "include/sys/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fs/Makefile" ;;
37169 "include/sys/fm/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/Makefile" ;;
37170 "include/sys/fm/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
37171 "scripts/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/Makefile" ;;
37172 "scripts/zpios-profile/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
37173 "scripts/zpios-test/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
37174 "scripts/zpool-config/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
37175 "scripts/common.sh") CONFIG_FILES
="$CONFIG_FILES scripts/common.sh" ;;
37176 "rpm/Makefile") CONFIG_FILES
="$CONFIG_FILES rpm/Makefile" ;;
37177 "rpm/redhat/Makefile") CONFIG_FILES
="$CONFIG_FILES rpm/redhat/Makefile" ;;
37178 "rpm/redhat/zfs.spec") CONFIG_FILES
="$CONFIG_FILES rpm/redhat/zfs.spec" ;;
37179 "rpm/redhat/zfs-kmod.spec") CONFIG_FILES
="$CONFIG_FILES rpm/redhat/zfs-kmod.spec" ;;
37180 "rpm/redhat/zfs-dkms.spec") CONFIG_FILES
="$CONFIG_FILES rpm/redhat/zfs-dkms.spec" ;;
37181 "rpm/generic/Makefile") CONFIG_FILES
="$CONFIG_FILES rpm/generic/Makefile" ;;
37182 "rpm/generic/zfs.spec") CONFIG_FILES
="$CONFIG_FILES rpm/generic/zfs.spec" ;;
37183 "rpm/generic/zfs-kmod.spec") CONFIG_FILES
="$CONFIG_FILES rpm/generic/zfs-kmod.spec" ;;
37184 "rpm/generic/zfs-dkms.spec") CONFIG_FILES
="$CONFIG_FILES rpm/generic/zfs-dkms.spec" ;;
37185 "zfs-script-config.sh") CONFIG_FILES
="$CONFIG_FILES zfs-script-config.sh" ;;
37186 "zfs.release") CONFIG_FILES
="$CONFIG_FILES zfs.release" ;;
37188 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
37193 # If the user did not use the arguments to specify the items to instantiate,
37194 # then the envvar interface is used. Set only those that are not.
37195 # We use the long form for the default assignment because of an extremely
37196 # bizarre bug on SunOS 4.1.3.
37197 if $ac_need_defaults; then
37198 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
37199 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
37200 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
37203 # Have a temporary directory for convenience. Make it in the build tree
37204 # simply because there is no reason against having it here, and in addition,
37205 # creating and moving files from /tmp can sometimes cause problems.
37206 # Hook for its removal unless debugging.
37207 # Note that there is a small window in which the directory will not be cleaned:
37208 # after its creation but before its name has been assigned to `$tmp'.
37212 trap 'exit_status=$?
37213 : "${ac_tmp:=$tmp}"
37214 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
37216 trap 'as_fn_exit 1' 1 2 13 15
37218 # Create a (secure) tmp directory for tmp files.
37221 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
37225 tmp
=.
/conf$$
-$RANDOM
37226 (umask 077 && mkdir
"$tmp")
37227 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
37230 # Set up the scripts for CONFIG_FILES section.
37231 # No need to generate them if there are no CONFIG_FILES.
37232 # This happens for instance with `./config.status config.h'.
37233 if test -n "$CONFIG_FILES"; then
37236 ac_cr
=`echo X | tr X '\015'`
37237 # On cygwin, bash can eat \r inside `` if the user requested igncr.
37238 # But we know of no other shell where ac_cr would be empty at this
37239 # point, so we can use a bashism as a fallback.
37240 if test "x$ac_cr" = x
; then
37241 eval ac_cr
=\$
\'\\r
\'
37243 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37244 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
37247 ac_cs_awk_cr
=$ac_cr
37250 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
37255 echo "cat >conf$$subs.awk <<_ACEOF" &&
37256 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37258 } >conf$$subs.sh ||
37259 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
37260 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
37262 for ac_last_try in false false false false false :; do
37263 . ./conf$$subs.sh ||
37264 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
37266 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
37267 if test $ac_delim_n = $ac_delim_num; then
37269 elif $ac_last_try; then
37270 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
37272 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
37275 rm -f conf$$subs.sh
37277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37278 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
37282 s/^/S["/; s
/!.
*/"]=/
37292 s/\(.\{148\}\)..*/\1/
37294 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
37299 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
37306 s/\(.\{148\}\)..*/\1/
37308 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
37312 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
37317 ' <conf$$subs.awk | sed '
37322 ' >>$CONFIG_STATUS || ac_write_fail=1
37323 rm -f conf$$subs.awk
37324 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37326 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
37327 for (key in S) S_is_set[key] = 1
37333 nfields = split(line, field, "@
")
37335 len = length(field[1])
37336 for (i = 2; i < nfields; i++) {
37338 keylen = length(key)
37339 if (S_is_set[key]) {
37341 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37342 len += length(value) + length(field[++i])
37353 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37354 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37355 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
37358 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
37359 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
37362 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37363 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
37364 # trailing colons and then remove the whole line if VPATH becomes empty
37365 # (actually we leave an empty line to preserve line numbers).
37366 if test "x
$srcdir" = x.; then
37367 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37385 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37386 fi # test -n "$CONFIG_FILES"
37388 # Set up the scripts for CONFIG_HEADERS section.
37389 # No need to generate them if there are no CONFIG_HEADERS.
37390 # This happens for instance with `./config.status Makefile'.
37391 if test -n "$CONFIG_HEADERS"; then
37392 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
37396 # Transform confdefs.h into an awk script `defines.awk', embedded as
37397 # here-document in config.status, that substitutes the proper values into
37398 # config.h.in to produce config.h.
37400 # Create a delimiter string that does not exist in confdefs.h, to ease
37401 # handling of long lines.
37403 for ac_last_try in false false :; do
37404 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
37405 if test -z "$ac_tt"; then
37407 elif $ac_last_try; then
37408 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
37410 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
37414 # For the awk script, D is an array of macro values keyed by name,
37415 # likewise P contains macro parameters if any. Preserve backslash
37416 # newline sequences.
37418 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37420 s/.\{148\}/&'"$ac_delim"'/g
37423 s/^[ ]*#[ ]*define[ ][ ]*/ /
37430 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
37432 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
37436 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
37437 D["\
1"]=" \
3\\\\\\n
"\\/p
37439 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
37444 s/.\{148\}/&'"$ac_delim"'/g
37449 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
37452 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
37454 ' <confdefs.h | sed '
37455 s/'"$ac_delim"'/"\\\
37456 "/g' >>$CONFIG_STATUS || ac_write_fail=1
37458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37459 for (key in D) D_is_set[key] = 1
37462 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37464 split(line, arg, " ")
37465 if (arg[1] == "#") {
37469 defundef
= substr
(arg
[1], 2)
37472 split(mac1
, mac2
, "(") #)
37474 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
37475 if (D_is_set
[macro
]) {
37476 # Preserve the white space surrounding the "#".
37477 print prefix
"define", macro P
[macro
] D
[macro
]
37480 # Replace #undef with comments. This is necessary, for example,
37481 # in the case of _POSIX_SOURCE, which is predefined and required
37482 # on some systems where configure will not decide to define it.
37483 if (defundef
== "undef") {
37484 print
"/*", prefix defundef
, macro
, "*/"
37492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
37493 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
37494 fi # test -n "$CONFIG_HEADERS"
37497 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37502 :[FHLC
]) ac_mode
=$ac_tag; continue;;
37504 case $ac_mode$ac_tag in
37506 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
37507 :[FH
]-) ac_tag
=-:-;;
37508 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
37525 -) ac_f
="$ac_tmp/stdin";;
37526 *) # Look for the file first in the build tree, then in the source tree
37527 # (if the path is not absolute). The absolute path cannot be DOS-style,
37528 # because $ac_f cannot contain `:'.
37532 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
37534 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
37536 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
37537 as_fn_append ac_file_inputs
" '$ac_f'"
37540 # Let's still pretend it is `configure' which instantiates (i.e., don't
37541 # use $as_me), people would be surprised to read:
37542 # /* config.h. Generated by config.status. */
37543 configure_input
='Generated from '`
37544 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37546 if test x
"$ac_file" != x-
; then
37547 configure_input
="$ac_file. $configure_input"
37548 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
37549 $as_echo "$as_me: creating $ac_file" >&6;}
37551 # Neutralize special characters interpreted by sed in replacement strings.
37552 case $configure_input in #(
37553 *\
&* |
*\|
* |
*\\* )
37554 ac_sed_conf_input
=`$as_echo "$configure_input" |
37555 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37556 *) ac_sed_conf_input
=$configure_input;;
37560 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
37561 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
37566 ac_dir
=`$as_dirname -- "$ac_file" ||
37567 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37568 X"$ac_file" : 'X\(//\)[^/]' \| \
37569 X"$ac_file" : 'X\(//\)$' \| \
37570 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37571 $as_echo X"$ac_file" |
37572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37576 /^X\(\/\/\)[^/].*/{
37589 as_dir
="$ac_dir"; as_fn_mkdir_p
37593 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
37595 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37596 # A ".." for each directory in $ac_dir_suffix.
37597 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37598 case $ac_top_builddir_sub in
37599 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
37600 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
37603 ac_abs_top_builddir
=$ac_pwd
37604 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
37605 # for backward compatibility:
37606 ac_top_builddir
=$ac_top_build_prefix
37609 .
) # We are building in place.
37611 ac_top_srcdir
=$ac_top_builddir_sub
37612 ac_abs_top_srcdir
=$ac_pwd ;;
37613 [\\/]* | ?
:[\\/]* ) # Absolute name.
37614 ac_srcdir
=$srcdir$ac_dir_suffix;
37615 ac_top_srcdir
=$srcdir
37616 ac_abs_top_srcdir
=$srcdir ;;
37617 *) # Relative name.
37618 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
37619 ac_top_srcdir
=$ac_top_build_prefix$srcdir
37620 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
37622 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
37632 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
37633 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
37635 ac_MKDIR_P
=$MKDIR_P
37637 [\\/$
]* | ?
:[\\/]* ) ;;
37638 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
37642 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
37643 # If the template does not know about datarootdir, expand it.
37644 # FIXME: This hack should be removed a few years after 2.60.
37645 ac_datarootdir_hack
=; ac_datarootdir_seen
=
37656 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37657 *datarootdir
*) ac_datarootdir_seen
=yes;;
37658 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
37659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
37660 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37663 ac_datarootdir_hack='
37664 s&@datadir@&$datadir&g
37665 s&@docdir@&$docdir&g
37666 s&@infodir@&$infodir&g
37667 s&@localedir@&$localedir&g
37668 s&@mandir@&$mandir&g
37669 s&\\\${datarootdir}&$datarootdir&g' ;;
37673 # Neutralize VPATH when `$srcdir' = `.'.
37674 # Shell code in configure.ac might set extrasub.
37675 # FIXME: do we really want to maintain this feature?
37676 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37677 ac_sed_extra="$ac_vpsub
37680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
37682 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
37683 s|@configure_input@|
$ac_sed_conf_input|
;t t
37684 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
37685 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
37686 s
&@srcdir@
&$ac_srcdir&;t t
37687 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
37688 s
&@top_srcdir@
&$ac_top_srcdir&;t t
37689 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
37690 s
&@builddir@
&$ac_builddir&;t t
37691 s
&@abs_builddir@
&$ac_abs_builddir&;t t
37692 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
37693 s
&@INSTALL@
&$ac_INSTALL&;t t
37694 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
37695 $ac_datarootdir_hack
37697 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
37698 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
37700 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
37701 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
37702 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37703 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
37704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
37705 which seems to be undefined. Please make sure it is defined" >&5
37706 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
37707 which seems to be undefined. Please make sure it is defined" >&2;}
37709 rm -f "$ac_tmp/stdin"
37711 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37712 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
37714 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
37720 if test x"$ac_file" != x-; then
37722 $as_echo "/* $configure_input */" \
37723 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37724 } >"$ac_tmp/config.h" \
37725 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
37726 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
37727 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
37728 $as_echo "$as_me: $ac_file is unchanged" >&6;}
37731 mv "$ac_tmp/config.h" "$ac_file" \
37732 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
37735 $as_echo "/* $configure_input */" \
37736 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
37737 || as_fn_error $? "could not create -" "$LINENO" 5
37739 # Compute "$ac_file"'s index
in $config_headers.
37742 for _am_header
in $config_headers :; do
37743 case $_am_header in
37744 $_am_arg |
$_am_arg:* )
37747 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
37750 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37751 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37752 X"$_am_arg" : 'X\(//\)[^/]' \| \
37753 X"$_am_arg" : 'X\(//\)$' \| \
37754 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37755 $as_echo X"$_am_arg" |
37756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37760 /^X\(\/\/\)[^/].*/{
37772 s/.*/./; q'`/stamp-h
$_am_stamp_count
37775 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
37776 $as_echo "$as_me: executing $ac_file commands" >&6;}
37781 case $ac_file$ac_mode in
37783 (mv zfs_config.h zfs_config.h.tmp
&&
37784 awk -f ${ac_srcdir}/config
/config.
awk zfs_config.h.tmp
>zfs_config.h
&&
37785 rm zfs_config.h.tmp
) ||
exit 1 ;;
37786 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
37787 # Older Autoconf quotes --file arguments for eval, but not when files
37788 # are listed without --file. Let's play safe and only enable the eval
37789 # if we detect the quoting.
37790 case $CONFIG_FILES in
37791 *\'*) eval set x
"$CONFIG_FILES" ;;
37792 *) set x
$CONFIG_FILES ;;
37797 # Strip MF so we end up with the name of the file.
37798 mf
=`echo "$mf" | sed -e 's/:.*$//'`
37799 # Check whether this is an Automake generated Makefile or not.
37800 # We used to match only the files named 'Makefile.in', but
37801 # some people rename them; so instead we look at the file content.
37802 # Grep'ing the first line is not enough: some people post-process
37803 # each Makefile.in and add a new line on top of each file to say so.
37804 # Grep'ing the whole file is not good either: AIX grep has a line
37805 # limit of 2048, but all sed's we know have understand at least 4000.
37806 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
37807 dirpart
=`$as_dirname -- "$mf" ||
37808 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37809 X"$mf" : 'X\(//\)[^/]' \| \
37810 X"$mf" : 'X\(//\)$' \| \
37811 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37813 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37817 /^X\(\/\/\)[^/].*/{
37833 # Extract the definition of DEPDIR, am__include, and am__quote
37834 # from the Makefile without running 'make'.
37835 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
37836 test -z "$DEPDIR" && continue
37837 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
37838 test -z "$am__include" && continue
37839 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
37840 # Find all dependency output files, they are included files with
37841 # $(DEPDIR) in their names. We invoke sed twice because it is the
37842 # simplest approach to changing $(DEPDIR) to its actual value in the
37844 for file in `sed -n "
37845 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
37846 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
37847 # Make sure the directory exists.
37848 test -f "$dirpart/$file" && continue
37849 fdir
=`$as_dirname -- "$file" ||
37850 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37851 X"$file" : 'X\(//\)[^/]' \| \
37852 X"$file" : 'X\(//\)$' \| \
37853 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37854 $as_echo X"$file" |
37855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37859 /^X\(\/\/\)[^/].*/{
37872 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
37873 # echo "creating $dirpart/$file"
37874 echo '# dummy' > "$dirpart/$file"
37881 # See if we are running on zsh, and set the options that allow our
37882 # commands through without removal of \ escapes.
37883 if test -n "${ZSH_VERSION+set}"; then
37884 setopt NO_GLOB_SUBST
37888 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37891 cat <<_LT_EOF >> "$cfgfile"
37893 # Generated automatically by $as_me ($PACKAGE) $VERSION
37894 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37895 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
37897 # Provide generalized library-building support services.
37898 # Written by Gordon Matzigkeit, 1996
37900 # Copyright (C) 2014 Free Software Foundation, Inc.
37901 # This is free software; see the source for copying conditions. There is NO
37902 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
37904 # GNU Libtool is free software; you can redistribute it and/or modify
37905 # it under the terms of the GNU General Public License as published by
37906 # the Free Software Foundation; either version 2 of of the License, or
37907 # (at your option) any later version.
37909 # As a special exception to the GNU General Public License, if you
37910 # distribute this file as part of a program or library that is built
37911 # using GNU Libtool, you may include this file under the same
37912 # distribution terms that you use for the rest of that program.
37914 # GNU Libtool is distributed in the hope that it will be useful, but
37915 # WITHOUT ANY WARRANTY; without even the implied warranty of
37916 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37917 # GNU General Public License for more details.
37919 # You should have received a copy of the GNU General Public License
37920 # along with this program. If not, see <http://www.gnu.org/licenses/>.
37923 # The names of the tagged configurations supported by this script.
37926 # Configured defaults for sys_lib_dlsearch_path munging.
37927 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
37929 # ### BEGIN LIBTOOL CONFIG
37931 # Which release of libtool.m4 was used?
37932 macro_version=$macro_version
37933 macro_revision=$macro_revision
37935 # Whether or not to build shared libraries.
37936 build_libtool_libs=$enable_shared
37938 # Whether or not to build static libraries.
37939 build_old_libs=$enable_static
37941 # What type of objects to build.
37944 # Whether or not to optimize for fast installation.
37945 fast_install=$enable_fast_install
37947 # Shared archive member basename,for filename based shared library versioning on AIX.
37948 shared_archive_member_spec=$shared_archive_member_spec
37950 # Shell to use when invoking shell scripts.
37953 # An echo program that protects backslashes.
37956 # The PATH separator for the build system.
37957 PATH_SEPARATOR=$lt_PATH_SEPARATOR
37960 host_alias=$host_alias
37964 # The build system.
37965 build_alias=$build_alias
37969 # A sed program that does not truncate output.
37972 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
37973 Xsed="\$SED -e 1s/^X//"
37975 # A grep program that handles long lines.
37981 # A literal string matcher.
37984 # A BSD- or MS-compatible name lister.
37987 # Whether we need soft or hard links.
37990 # What is the maximum length of a command?
37991 max_cmd_len=$max_cmd_len
37993 # Object file suffix (normally "o").
37996 # Executable file suffix (normally "").
37999 # whether the shell understands "unset".
38002 # turn spaces into newlines.
38005 # turn newlines into spaces.
38008 # convert \$build file names to \$host format.
38009 to_host_file_cmd=$lt_cv_to_host_file_cmd
38011 # convert \$build files to toolchain format.
38012 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38014 # An object symbol dumper.
38015 OBJDUMP=$lt_OBJDUMP
38017 # Method to check whether dependent libraries are shared objects.
38018 deplibs_check_method=$lt_deplibs_check_method
38020 # Command to use when deplibs_check_method = "file_magic".
38021 file_magic_cmd=$lt_file_magic_cmd
38023 # How to find potential files when deplibs_check_method = "file_magic".
38024 file_magic_glob=$lt_file_magic_glob
38026 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38027 want_nocaseglob=$lt_want_nocaseglob
38029 # DLL creation program.
38030 DLLTOOL=$lt_DLLTOOL
38032 # Command to associate shared and link libraries.
38033 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38038 # Flags to create an archive.
38039 AR_FLAGS=$lt_AR_FLAGS
38041 # How to feed a file listing to the archiver.
38042 archiver_list_spec=$lt_archiver_list_spec
38044 # A symbol stripping program.
38047 # Commands used to install an old-style archive.
38049 old_postinstall_cmds=$lt_old_postinstall_cmds
38050 old_postuninstall_cmds=$lt_old_postuninstall_cmds
38052 # Whether to use a lock for old archive extraction.
38053 lock_old_archive_extraction=$lock_old_archive_extraction
38058 # LTCC compiler flags.
38059 LTCFLAGS=$lt_CFLAGS
38061 # Take the output of nm and produce a listing of raw symbols and C names.
38062 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38064 # Transform the output of nm in a proper C declaration.
38065 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38067 # Transform the output of nm into a list of symbols to manually relocate.
38068 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
38070 # Transform the output of nm in a C name address pair.
38071 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38073 # Transform the output of nm in a C name address pair when lib prefix is needed.
38074 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38076 # The name lister interface.
38077 nm_interface=$lt_lt_cv_nm_interface
38079 # Specify filename containing input files for \$NM.
38080 nm_file_list_spec=$lt_nm_file_list_spec
38082 # The root where to search for dependent libraries,and where our libraries should be installed.
38083 lt_sysroot=$lt_sysroot
38085 # Command to truncate a binary pipe.
38086 lt_truncate_bin=$lt_lt_cv_truncate_bin
38088 # The name of the directory that contains temporary libtool files.
38091 # Used to examine libraries when file_magic_cmd begins with "file".
38092 MAGIC_CMD=$MAGIC_CMD
38094 # Must we lock files when doing compilation?
38095 need_locks=$lt_need_locks
38098 MANIFEST_TOOL=$lt_MANIFEST_TOOL
38100 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38101 DSYMUTIL=$lt_DSYMUTIL
38103 # Tool to change global to local symbols on Mac OS X.
38106 # Tool to manipulate fat objects and archives on Mac OS X.
38109 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
38112 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38113 OTOOL64=$lt_OTOOL64
38115 # Old archive suffix (normally "a").
38118 # Shared library suffix (normally ".so").
38119 shrext_cmds=$lt_shrext_cmds
38121 # The commands to extract the exported symbol list from a shared archive.
38122 extract_expsyms_cmds=$lt_extract_expsyms_cmds
38124 # Variables whose values should be saved in libtool wrapper scripts and
38125 # restored at link time.
38126 variables_saved_for_relink=$lt_variables_saved_for_relink
38128 # Do we need the "lib" prefix for modules?
38129 need_lib_prefix=$need_lib_prefix
38131 # Do we need a version for libraries?
38132 need_version=$need_version
38134 # Library versioning type.
38135 version_type=$version_type
38137 # Shared library runtime path variable.
38138 runpath_var=$runpath_var
38140 # Shared library path variable.
38141 shlibpath_var=$shlibpath_var
38143 # Is shlibpath searched before the hard-coded library search path?
38144 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38146 # Format of library name prefix.
38147 libname_spec=$lt_libname_spec
38149 # List of archive names. First name is the real one, the rest are links.
38150 # The last name is the one that the linker finds with -lNAME
38151 library_names_spec=$lt_library_names_spec
38153 # The coded name of the library, if different from the real name.
38154 soname_spec=$lt_soname_spec
38156 # Permission mode override for installation of shared libraries.
38157 install_override_mode=$lt_install_override_mode
38159 # Command to use after installation of a shared archive.
38160 postinstall_cmds=$lt_postinstall_cmds
38162 # Command to use after uninstallation of a shared archive.
38163 postuninstall_cmds=$lt_postuninstall_cmds
38165 # Commands used to finish a libtool library installation in a directory.
38166 finish_cmds=$lt_finish_cmds
38168 # As "finish_cmds", except a single script fragment to be evaled but
38170 finish_eval=$lt_finish_eval
38172 # Whether we should hardcode library paths into libraries.
38173 hardcode_into_libs=$hardcode_into_libs
38175 # Compile-time system search path for libraries.
38176 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38178 # Detected run-time system search path for libraries.
38179 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
38181 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
38182 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
38184 # Whether dlopen is supported.
38185 dlopen_support=$enable_dlopen
38187 # Whether dlopen of programs is supported.
38188 dlopen_self=$enable_dlopen_self
38190 # Whether dlopen of statically linked programs is supported.
38191 dlopen_self_static=$enable_dlopen_self_static
38193 # Commands to strip libraries.
38194 old_striplib=$lt_old_striplib
38195 striplib=$lt_striplib
38198 # The linker used to build libraries.
38201 # How to create reloadable object files.
38202 reload_flag=$lt_reload_flag
38203 reload_cmds=$lt_reload_cmds
38205 # Commands used to build an old-style archive.
38206 old_archive_cmds=$lt_old_archive_cmds
38208 # A language specific compiler.
38211 # Is the compiler the GNU compiler?
38214 # Compiler flag to turn off builtin functions.
38215 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38217 # Additional compiler flags for building library objects.
38218 pic_flag=$lt_lt_prog_compiler_pic
38220 # How to pass a linker flag through the compiler.
38221 wl=$lt_lt_prog_compiler_wl
38223 # Compiler flag to prevent dynamic linking.
38224 link_static_flag=$lt_lt_prog_compiler_static
38226 # Does compiler simultaneously support -c and -o options?
38227 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38229 # Whether or not to add -lc for building shared libraries.
38230 build_libtool_need_lc=$archive_cmds_need_lc
38232 # Whether or not to disallow shared libs when runtime libs are static.
38233 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38235 # Compiler flag to allow reflexive dlopens.
38236 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38238 # Compiler flag to generate shared objects directly from archives.
38239 whole_archive_flag_spec=$lt_whole_archive_flag_spec
38241 # Whether the compiler copes with passing no objects directly.
38242 compiler_needs_object=$lt_compiler_needs_object
38244 # Create an old-style archive from a shared archive.
38245 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38247 # Create a temporary old-style archive to link instead of a shared archive.
38248 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38250 # Commands used to build a shared archive.
38251 archive_cmds=$lt_archive_cmds
38252 archive_expsym_cmds=$lt_archive_expsym_cmds
38254 # Commands used to build a loadable module if different from building
38255 # a shared archive.
38256 module_cmds=$lt_module_cmds
38257 module_expsym_cmds=$lt_module_expsym_cmds
38259 # Whether we are building with GNU ld or not.
38260 with_gnu_ld=$lt_with_gnu_ld
38262 # Flag that allows shared libraries with undefined symbols to be built.
38263 allow_undefined_flag=$lt_allow_undefined_flag
38265 # Flag that enforces no undefined symbols.
38266 no_undefined_flag=$lt_no_undefined_flag
38268 # Flag to hardcode \$libdir into a binary during linking.
38269 # This must work even if \$libdir does not exist
38270 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38272 # Whether we need a single "-rpath" flag with a separated argument.
38273 hardcode_libdir_separator=$lt_hardcode_libdir_separator
38275 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
38276 # DIR into the resulting binary.
38277 hardcode_direct=$hardcode_direct
38279 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
38280 # DIR into the resulting binary and the resulting library dependency is
38281 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
38282 # library is relocated.
38283 hardcode_direct_absolute=$hardcode_direct_absolute
38285 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38286 # into the resulting binary.
38287 hardcode_minus_L=$hardcode_minus_L
38289 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38290 # into the resulting binary.
38291 hardcode_shlibpath_var=$hardcode_shlibpath_var
38293 # Set to "yes" if building a shared library automatically hardcodes DIR
38294 # into the library and all subsequent libraries and executables linked
38296 hardcode_automatic=$hardcode_automatic
38298 # Set to yes if linker adds runtime paths of dependent libraries
38299 # to runtime path list.
38300 inherit_rpath=$inherit_rpath
38302 # Whether libtool must link a program against all its dependency libraries.
38303 link_all_deplibs=$link_all_deplibs
38305 # Set to "yes" if exported symbols are required.
38306 always_export_symbols=$always_export_symbols
38308 # The commands to list exported symbols.
38309 export_symbols_cmds=$lt_export_symbols_cmds
38311 # Symbols that should not be listed in the preloaded symbols.
38312 exclude_expsyms=$lt_exclude_expsyms
38314 # Symbols that must always be exported.
38315 include_expsyms=$lt_include_expsyms
38317 # Commands necessary for linking programs (against libraries) with templates.
38318 prelink_cmds=$lt_prelink_cmds
38320 # Commands necessary for finishing linking programs.
38321 postlink_cmds=$lt_postlink_cmds
38323 # Specify filename containing input files.
38324 file_list_spec=$lt_file_list_spec
38326 # How to hardcode a shared library path into an executable.
38327 hardcode_action=$hardcode_action
38329 # ### END LIBTOOL CONFIG
38333 cat <<'_LT_EOF' >> "$cfgfile"
38335 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
38337 # func_munge_path_list VARIABLE PATH
38338 # -----------------------------------
38339 # VARIABLE is name of variable containing _space_ separated list of
38340 # directories to be munged by the contents of PATH, which is string
38343 # string "DIR[ DIR]" will be prepended to VARIABLE
38345 # string "DIR[ DIR]" will be appended to VARIABLE
38346 # "DIRP[:DIRP]::[DIRA:]DIRA"
38347 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
38348 # "DIRA[ DIRA]" will be appended to VARIABLE
38350 # VARIABLE will be replaced by "DIR[ DIR]"
38351 func_munge_path_list ()
38357 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
38360 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
38363 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
38364 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
38367 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
38373 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
38374 func_cc_basename ()
38376 for cc_temp in $*""; do
38378 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
38379 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
38384 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
38388 # ### END FUNCTIONS SHARED WITH CONFIGURE
38394 cat <<\_LT_EOF
>> "$cfgfile"
38395 # AIX sometimes has problems with the GCC collect2 program. For some
38396 # reason, if we set the COLLECT_NAMES environment variable, the problems
38397 # vanish in a puff of smoke.
38398 if test set != "${COLLECT_NAMES+set}"; then
38400 export COLLECT_NAMES
38407 ltmain
=$ac_aux_dir/ltmain.sh
38410 # We use sed instead of cat because bash on DJGPP gets confused if
38411 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38412 # text mode, it properly converts lines to CR/LF. This bash problem
38413 # is reportedly fixed, but why not run on old versions too?
38414 sed '$q' "$ltmain" >> "$cfgfile" \
38415 ||
(rm -f "$cfgfile"; exit 1)
38417 mv -f "$cfgfile" "$ofile" ||
38418 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38429 ac_clean_files
=$ac_clean_files_save
38431 test $ac_write_fail = 0 ||
38432 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
38435 # configure is writing to config.log, and then calls config.status.
38436 # config.status does its own redirection, appending to config.log.
38437 # Unfortunately, on DOS this fails, as config.log is still kept open
38438 # by configure, so config.status won't be able to write to it; its
38439 # output is simply discarded. So we exec the FD to /dev/null,
38440 # effectively closing config.log, so it can be properly (re)opened and
38441 # appended to by config.status. When coming back to configure, we
38442 # need to make the FD available again.
38443 if test "$no_create" != yes; then
38445 ac_config_status_args
=
38446 test "$silent" = yes &&
38447 ac_config_status_args
="$ac_config_status_args --quiet"
38449 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
38451 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38452 # would make configure fail if this is the last instruction.
38453 $ac_cs_success || as_fn_exit
1
38455 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
38456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
38457 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}