2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for zfs 0.6.5.6.
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.6'
591 PACKAGE_STRING
='zfs 0.6.5.6'
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
639 WANT_MMAP_LIBAIO_FALSE
640 WANT_MMAP_LIBAIO_TRUE
641 WANT_DEVNAME2DEVID_FALSE
642 WANT_DEVNAME2DEVID_TRUE
673 NO_UNUSED_BUT_SET_VARIABLE
706 am__fastdepCCAS_FALSE
758 INSTALL_STRIP_PROGRAM
778 MAINTAINER_MODE_FALSE
832 program_transform_name
845 enable_option_checking
846 enable_maintainer_mode
848 enable_dependency_tracking
865 with_systemdpresetdir
866 with_systemdmodulesloaddir
878 ac_precious_vars
='build_alias
892 # Initialize some variables set by options.
894 ac_init_version
=false
895 ac_unrecognized_opts
=
897 # The variables have the same names as the options, with
898 # dashes changed to underlines.
906 program_transform_name
=s
,x
,x
,
914 # Installation directory options.
915 # These are left unexpanded so users can "make install exec_prefix=/foo"
916 # and all the variables that are supposed to be based on exec_prefix
917 # by default will actually change.
918 # Use braces instead of parens because sh, perl, etc. also accept them.
919 # (The list follows the same order as the GNU Coding Standards.)
920 bindir
='${exec_prefix}/bin'
921 sbindir
='${exec_prefix}/sbin'
922 libexecdir
='${exec_prefix}/libexec'
923 datarootdir
='${prefix}/share'
924 datadir
='${datarootdir}'
925 sysconfdir
='${prefix}/etc'
926 sharedstatedir
='${prefix}/com'
927 localstatedir
='${prefix}/var'
928 runstatedir
='${localstatedir}/run'
929 includedir
='${prefix}/include'
930 oldincludedir
='/usr/include'
931 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
932 infodir
='${datarootdir}/info'
937 libdir
='${exec_prefix}/lib'
938 localedir
='${datarootdir}/locale'
939 mandir
='${datarootdir}/man'
945 # If the previous option needs an argument, assign it.
946 if test -n "$ac_prev"; then
947 eval $ac_prev=\
$ac_option
953 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
958 # Accept the important Cygnus configure options, so we can diagnose typos.
960 case $ac_dashdash$ac_option in
964 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
966 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
969 -build |
--build |
--buil |
--bui |
--bu)
970 ac_prev
=build_alias
;;
971 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
972 build_alias
=$ac_optarg ;;
974 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
975 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
976 ac_prev
=cache_file
;;
977 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
978 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
979 cache_file
=$ac_optarg ;;
982 cache_file
=config.cache
;;
984 -datadir |
--datadir |
--datadi |
--datad)
986 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
987 datadir
=$ac_optarg ;;
989 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
990 |
--dataroo |
--dataro |
--datar)
991 ac_prev
=datarootdir
;;
992 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
993 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
994 datarootdir
=$ac_optarg ;;
996 -disable-* |
--disable-*)
997 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
998 # Reject names that are not valid shell variable names.
999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1000 as_fn_error $?
"invalid feature name: $ac_useropt"
1001 ac_useropt_orig
=$ac_useropt
1002 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1003 case $ac_user_opts in
1005 "enable_
$ac_useropt"
1007 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1008 ac_unrecognized_sep
=', ';;
1010 eval enable_
$ac_useropt=no
;;
1012 -docdir |
--docdir |
--docdi |
--doc |
--do)
1014 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1015 docdir
=$ac_optarg ;;
1017 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1019 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1020 dvidir
=$ac_optarg ;;
1022 -enable-* |
--enable-*)
1023 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1024 # Reject names that are not valid shell variable names.
1025 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1026 as_fn_error $?
"invalid feature name: $ac_useropt"
1027 ac_useropt_orig
=$ac_useropt
1028 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1029 case $ac_user_opts in
1031 "enable_
$ac_useropt"
1033 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1034 ac_unrecognized_sep
=', ';;
1036 eval enable_
$ac_useropt=\
$ac_optarg ;;
1038 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1039 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1040 |
--exec |
--exe |
--ex)
1041 ac_prev
=exec_prefix
;;
1042 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1043 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1044 |
--exec=* |
--exe=* |
--ex=*)
1045 exec_prefix
=$ac_optarg ;;
1047 -gas |
--gas |
--ga |
--g)
1048 # Obsolete; use --with-gas.
1051 -help |
--help |
--hel |
--he |
-h)
1052 ac_init_help
=long
;;
1053 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1054 ac_init_help
=recursive
;;
1055 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1056 ac_init_help
=short
;;
1058 -host |
--host |
--hos |
--ho)
1059 ac_prev
=host_alias
;;
1060 -host=* |
--host=* |
--hos=* |
--ho=*)
1061 host_alias
=$ac_optarg ;;
1063 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1065 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1067 htmldir
=$ac_optarg ;;
1069 -includedir |
--includedir |
--includedi |
--included |
--include \
1070 |
--includ |
--inclu |
--incl |
--inc)
1071 ac_prev
=includedir
;;
1072 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1073 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1074 includedir
=$ac_optarg ;;
1076 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1078 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1079 infodir
=$ac_optarg ;;
1081 -libdir |
--libdir |
--libdi |
--libd)
1083 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1084 libdir
=$ac_optarg ;;
1086 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1087 |
--libexe |
--libex |
--libe)
1088 ac_prev
=libexecdir
;;
1089 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1090 |
--libexe=* |
--libex=* |
--libe=*)
1091 libexecdir
=$ac_optarg ;;
1093 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1094 ac_prev
=localedir
;;
1095 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1096 localedir
=$ac_optarg ;;
1098 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1099 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1100 ac_prev
=localstatedir
;;
1101 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1102 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1103 localstatedir
=$ac_optarg ;;
1105 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1107 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1108 mandir
=$ac_optarg ;;
1110 -nfp |
--nfp |
--nf)
1111 # Obsolete; use --without-fp.
1114 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1115 |
--no-cr |
--no-c |
-n)
1118 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1119 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1122 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1123 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1124 |
--oldin |
--oldi |
--old |
--ol |
--o)
1125 ac_prev
=oldincludedir
;;
1126 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1127 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1128 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1129 oldincludedir
=$ac_optarg ;;
1131 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1133 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1134 prefix
=$ac_optarg ;;
1136 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1137 |
--program-pre |
--program-pr |
--program-p)
1138 ac_prev
=program_prefix
;;
1139 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1140 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1141 program_prefix
=$ac_optarg ;;
1143 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1144 |
--program-suf |
--program-su |
--program-s)
1145 ac_prev
=program_suffix
;;
1146 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1147 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1148 program_suffix
=$ac_optarg ;;
1150 -program-transform-name |
--program-transform-name \
1151 |
--program-transform-nam |
--program-transform-na \
1152 |
--program-transform-n |
--program-transform- \
1153 |
--program-transform |
--program-transfor \
1154 |
--program-transfo |
--program-transf \
1155 |
--program-trans |
--program-tran \
1156 |
--progr-tra |
--program-tr |
--program-t)
1157 ac_prev
=program_transform_name
;;
1158 -program-transform-name=* |
--program-transform-name=* \
1159 |
--program-transform-nam=* |
--program-transform-na=* \
1160 |
--program-transform-n=* |
--program-transform-=* \
1161 |
--program-transform=* |
--program-transfor=* \
1162 |
--program-transfo=* |
--program-transf=* \
1163 |
--program-trans=* |
--program-tran=* \
1164 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1165 program_transform_name
=$ac_optarg ;;
1167 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1169 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1170 pdfdir
=$ac_optarg ;;
1172 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1174 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1177 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1178 |
-silent |
--silent |
--silen |
--sile |
--sil)
1181 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1182 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1183 |
--run |
--ru |
--r)
1184 ac_prev
=runstatedir
;;
1185 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1186 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1187 |
--run=* |
--ru=* |
--r=*)
1188 runstatedir
=$ac_optarg ;;
1190 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1192 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1194 sbindir
=$ac_optarg ;;
1196 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1197 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1198 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1200 ac_prev
=sharedstatedir
;;
1201 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1202 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1203 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1205 sharedstatedir
=$ac_optarg ;;
1207 -site |
--site |
--sit)
1209 -site=* |
--site=* |
--sit=*)
1212 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1214 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1215 srcdir
=$ac_optarg ;;
1217 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1218 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1219 ac_prev
=sysconfdir
;;
1220 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1221 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1222 sysconfdir
=$ac_optarg ;;
1224 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1225 ac_prev
=target_alias
;;
1226 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1227 target_alias
=$ac_optarg ;;
1229 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1232 -version |
--version |
--versio |
--versi |
--vers |
-V)
1233 ac_init_version
=: ;;
1236 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1239 as_fn_error $?
"invalid package name: $ac_useropt"
1240 ac_useropt_orig
=$ac_useropt
1241 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1242 case $ac_user_opts in
1246 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1247 ac_unrecognized_sep
=', ';;
1249 eval with_
$ac_useropt=\
$ac_optarg ;;
1251 -without-* |
--without-*)
1252 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1253 # Reject names that are not valid shell variable names.
1254 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1255 as_fn_error $?
"invalid package name: $ac_useropt"
1256 ac_useropt_orig
=$ac_useropt
1257 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258 case $ac_user_opts in
1262 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1263 ac_unrecognized_sep
=', ';;
1265 eval with_
$ac_useropt=no
;;
1268 # Obsolete; use --with-x.
1271 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1272 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1273 ac_prev
=x_includes
;;
1274 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1275 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1276 x_includes
=$ac_optarg ;;
1278 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1279 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1280 ac_prev
=x_libraries
;;
1281 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1282 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1283 x_libraries
=$ac_optarg ;;
1285 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1286 Try \`$0 --help' for more information"
1290 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1291 # Reject names that are not valid shell variable names.
1292 case $ac_envvar in #(
1293 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1294 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1296 eval $ac_envvar=\
$ac_optarg
1297 export $ac_envvar ;;
1300 # FIXME: should be removed in autoconf 3.0.
1301 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1302 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1303 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1304 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1310 if test -n "$ac_prev"; then
1311 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1312 as_fn_error $?
"missing argument to $ac_option"
1315 if test -n "$ac_unrecognized_opts"; then
1316 case $enable_option_checking in
1318 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1319 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1323 # Check all directory arguments for consistency.
1324 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1325 datadir sysconfdir sharedstatedir localstatedir includedir \
1326 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1327 libdir localedir mandir runstatedir
1329 eval ac_val
=\$
$ac_var
1330 # Remove trailing slashes.
1333 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1334 eval $ac_var=\
$ac_val;;
1336 # Be sure to have absolute directory names.
1338 [\\/$
]* | ?
:[\\/]* ) continue;;
1339 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1341 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1344 # There might be people who depend on the old broken behavior: `$host'
1345 # used to hold the argument of --host etc.
1346 # FIXME: To remove some day.
1349 target
=$target_alias
1351 # FIXME: To remove some day.
1352 if test "x$host_alias" != x
; then
1353 if test "x$build_alias" = x
; then
1354 cross_compiling
=maybe
1355 elif test "x$build_alias" != "x$host_alias"; then
1361 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1363 test "$silent" = yes && exec 6>/dev
/null
1366 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1367 ac_ls_di
=`ls -di .` &&
1368 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1369 as_fn_error $?
"working directory cannot be determined"
1370 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1371 as_fn_error $?
"pwd does not report name of working directory"
1374 # Find the source files, if location was not specified.
1375 if test -z "$srcdir"; then
1376 ac_srcdir_defaulted
=yes
1377 # Try the directory containing this script, then the parent directory.
1378 ac_confdir
=`$as_dirname -- "$as_myself" ||
1379 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1380 X"$as_myself" : 'X\(//\)[^/]' \| \
1381 X"$as_myself" : 'X\(//\)$' \| \
1382 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1383 $as_echo X"$as_myself" |
1384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1402 if test ! -r "$srcdir/$ac_unique_file"; then
1406 ac_srcdir_defaulted
=no
1408 if test ! -r "$srcdir/$ac_unique_file"; then
1409 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1410 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1412 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1414 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1416 # When building in place, set srcdir=.
1417 if test "$ac_abs_confdir" = "$ac_pwd"; then
1420 # Remove unnecessary trailing slashes from srcdir.
1421 # Double slashes in file names in object file debugging info
1422 # mess up M-x gdb in Emacs.
1424 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1426 for ac_var
in $ac_precious_vars; do
1427 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1428 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1429 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1430 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1434 # Report the --help message.
1436 if test "$ac_init_help" = "long"; then
1437 # Omit some internal or obsolete options to make the list less imposing.
1438 # This message is too long to be a string in the A/UX 3.1 sh.
1440 \`configure' configures zfs 0.6.5.6 to adapt to many kinds of systems.
1442 Usage: $0 [OPTION]... [VAR=VALUE]...
1444 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1445 VAR=VALUE. See below for descriptions of some of the useful variables.
1447 Defaults for the options are specified in brackets.
1450 -h, --help display this help and exit
1451 --help=short display options specific to this package
1452 --help=recursive display the short help of all the included packages
1453 -V, --version display version information and exit
1454 -q, --quiet, --silent do not print \`checking ...' messages
1455 --cache-file=FILE cache test results in FILE [disabled]
1456 -C, --config-cache alias for \`--cache-file=config.cache'
1457 -n, --no-create do not create output files
1458 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1460 Installation directories:
1461 --prefix=PREFIX install architecture-independent files in PREFIX
1462 [$ac_default_prefix]
1463 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1466 By default, \`make install' will install all the files in
1467 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1468 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1469 for instance \`--prefix=\$HOME'.
1471 For better control, use the options below.
1473 Fine tuning of the installation directories:
1474 --bindir=DIR user executables [EPREFIX/bin]
1475 --sbindir=DIR system admin executables [EPREFIX/sbin]
1476 --libexecdir=DIR program executables [EPREFIX/libexec]
1477 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1478 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1479 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1480 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1481 --libdir=DIR object code libraries [EPREFIX/lib]
1482 --includedir=DIR C header files [PREFIX/include]
1483 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1484 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1485 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1486 --infodir=DIR info documentation [DATAROOTDIR/info]
1487 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1488 --mandir=DIR man documentation [DATAROOTDIR/man]
1489 --docdir=DIR documentation root [DATAROOTDIR/doc/zfs]
1490 --htmldir=DIR html documentation [DOCDIR]
1491 --dvidir=DIR dvi documentation [DOCDIR]
1492 --pdfdir=DIR pdf documentation [DOCDIR]
1493 --psdir=DIR ps documentation [DOCDIR]
1499 --program-prefix=PREFIX prepend PREFIX to installed program names
1500 --program-suffix=SUFFIX append SUFFIX to installed program names
1501 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1504 --build=BUILD configure
for building on BUILD
[guessed
]
1505 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1506 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1510 if test -n "$ac_init_help"; then
1511 case $ac_init_help in
1512 short | recursive
) echo "Configuration of zfs 0.6.5.6:";;
1517 --disable-option-checking ignore unrecognized
--enable/--with options
1518 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1519 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1520 --enable-maintainer-mode
1521 enable make rules and dependencies not useful
(and
1522 sometimes confusing
) to the casual installer
1523 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1524 --disable-silent-rules verbose build output
(undo
: "make V=0")
1525 --enable-dependency-tracking
1526 do not reject slow dependency extractors
1527 --disable-dependency-tracking
1528 speeds up one-time build
1529 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1530 --enable-static[=PKGS
] build static libraries
[default
=yes]
1531 --enable-fast-install[=PKGS
]
1532 optimize
for fast installation
[default
=yes]
1533 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1534 --enable-linux-builtin Configure
for builtin in-tree kernel modules
1536 --enable-systemd install systemd unit
/preset files
[[default
: yes]]
1537 --enable-sysvinit install SysV init scripts
[default
: yes]
1538 --enable-debug Enable generic debug support
[default
=no
]
1539 --enable-debug-dmu-tx Enable dmu tx validation
[default
=no
]
1542 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1543 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1544 --with-pic[=PKGS
] try to use only PIC
/non-PIC objects
[default
=use
1546 --with-aix-soname=aix|svr4|both
1547 shared library versioning
(aka
"SONAME") variant to
1548 provide on AIX
, [default
=aix
].
1549 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1550 --with-sysroot[=DIR
] Search
for dependent libraries within DIR
(or the
1551 compiler
's sysroot if not specified).
1552 --with-spec=SPEC Spec files 'generic|redhat
'
1553 --with-config=CONFIG Config file 'kernel|user|all|srpm
'
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]
1569 --with-linux=PATH Path to kernel source
1570 --with-linux-obj=PATH Path to kernel build objects
1571 --with-spl=PATH Path to spl source
1572 --with-spl-obj=PATH Path to spl build objects
1573 --with-spl-timeout=SECS Wait SECS for SPL header and symver file [default=0]
1575 Some influential environment variables:
1576 CC C compiler command
1577 CFLAGS C compiler flags
1578 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1579 nonstandard directory <lib dir>
1580 LIBS libraries to pass to the linker, e.g. -l<library>
1581 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1582 you have headers in a nonstandard directory <include dir>
1584 User-defined run-time library search path.
1586 CCAS assembler compiler command (defaults to CC)
1587 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1589 Use these variables to override the choices made by `configure' or to
help
1590 it to
find libraries and programs with nonstandard names
/locations.
1592 Report bugs to the package provider.
1597 if test "$ac_init_help" = "recursive"; then
1598 # If there are subdirs, report their specific --help.
1599 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1600 test -d "$ac_dir" ||
1601 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1606 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1608 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1609 # A ".." for each directory in $ac_dir_suffix.
1610 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1611 case $ac_top_builddir_sub in
1612 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1613 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1616 ac_abs_top_builddir
=$ac_pwd
1617 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1618 # for backward compatibility:
1619 ac_top_builddir
=$ac_top_build_prefix
1622 .
) # We are building in place.
1624 ac_top_srcdir
=$ac_top_builddir_sub
1625 ac_abs_top_srcdir
=$ac_pwd ;;
1626 [\\/]* | ?
:[\\/]* ) # Absolute name.
1627 ac_srcdir
=$srcdir$ac_dir_suffix;
1628 ac_top_srcdir
=$srcdir
1629 ac_abs_top_srcdir
=$srcdir ;;
1631 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1632 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1633 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1635 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1637 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1638 # Check for guested configure.
1639 if test -f "$ac_srcdir/configure.gnu"; then
1641 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1642 elif test -f "$ac_srcdir/configure"; then
1644 $SHELL "$ac_srcdir/configure" --help=recursive
1646 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1648 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1652 test -n "$ac_init_help" && exit $ac_status
1653 if $ac_init_version; then
1655 zfs configure
0.6.5.6
1656 generated by GNU Autoconf
2.69
1658 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1659 This configure
script is free software
; the Free Software Foundation
1660 gives unlimited permission to copy
, distribute and modify it.
1665 ## ------------------------ ##
1666 ## Autoconf initialization. ##
1667 ## ------------------------ ##
1669 # ac_fn_c_try_compile LINENO
1670 # --------------------------
1671 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1672 ac_fn_c_try_compile
()
1674 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1675 rm -f conftest.
$ac_objext
1676 if { { ac_try
="$ac_compile"
1678 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 $as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_compile") 2>conftest.err
1685 if test -s conftest.err; then
1686 grep -v '^ *+' conftest.err >conftest.er1
1687 cat conftest.er1 >&5
1688 mv -f conftest.er1 conftest.err
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } && {
1692 test -z "$ac_c_werror_flag" ||
1693 test ! -s conftest.err
1694 } && test -s conftest.$ac_objext; then :
1697 $as_echo "$as_me: failed program was:" >&5
1698 sed 's/^/| /' conftest.$ac_ext >&5
1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703 as_fn_set_status $ac_retval
1705 } # ac_fn_c_try_compile
1707 # ac_fn_c_try_link LINENO
1708 # -----------------------
1709 # Try to link conftest.$ac_ext, and return whether this succeeded.
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 rm -f conftest.$ac_objext conftest$ac_exeext
1714 if { { ac_try="$ac_link"
1716 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1717 *) ac_try_echo
=$ac_try;;
1719 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1720 $as_echo "$ac_try_echo"; } >&5
1721 (eval "$ac_link") 2>conftest.err
1723 if test -s conftest.err
; then
1724 grep -v '^ *+' conftest.err
>conftest.er1
1725 cat conftest.er1
>&5
1726 mv -f conftest.er1 conftest.err
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; } && {
1730 test -z "$ac_c_werror_flag" ||
1731 test ! -s conftest.err
1732 } && test -s conftest
$ac_exeext && {
1733 test "$cross_compiling" = yes ||
1734 test -x conftest
$ac_exeext
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.
$ac_ext >&5
1743 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1744 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1745 # interfere with the next link command; also delete a directory that is
1746 # left behind by Apple's compiler. We do this before executing the actions.
1747 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749 as_fn_set_status
$ac_retval
1751 } # ac_fn_c_try_link
1753 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1754 # -------------------------------------------------------
1755 # Tests whether HEADER exists and can be compiled using the include files in
1756 # INCLUDES, setting the cache variable VAR accordingly.
1757 ac_fn_c_check_header_compile
()
1759 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1761 $as_echo_n "checking for $2... " >&6; }
1762 if eval \
${$3+:} false
; then :
1763 $as_echo_n "(cached) " >&6
1765 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1766 /* end confdefs.h. */
1770 if ac_fn_c_try_compile
"$LINENO"; then :
1775 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779 $as_echo "$ac_res" >&6; }
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1782 } # ac_fn_c_check_header_compile
1784 # ac_fn_c_try_cpp LINENO
1785 # ----------------------
1786 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1789 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1790 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1792 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1799 if test -s conftest.err; then
1800 grep -v '^ *+' conftest.err >conftest.er1
1801 cat conftest.er1 >&5
1802 mv -f conftest.er1 conftest.err
1804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1805 test $ac_status = 0; } > conftest.i && {
1806 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1807 test ! -s conftest.err
1811 $as_echo "$as_me: failed program was:" >&5
1812 sed 's/^/| /' conftest.$ac_ext >&5
1816 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1817 as_fn_set_status $ac_retval
1821 # ac_fn_c_try_run LINENO
1822 # ----------------------
1823 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1824 # that executables *can* be run.
1827 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1828 if { { ac_try="$ac_link"
1830 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1831 *) ac_try_echo
=$ac_try;;
1833 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834 $as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_link") 2>&5
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1839 { { case "(($ac_try" in
1840 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_try") 2>&5
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; }; }; then :
1851 $as_echo "$as_me: program exited with status $ac_status" >&5
1852 $as_echo "$as_me: failed program was:" >&5
1853 sed 's/^/| /' conftest.$ac_ext >&5
1855 ac_retval=$ac_status
1857 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859 as_fn_set_status $ac_retval
1863 # ac_fn_c_check_func LINENO FUNC VAR
1864 # ----------------------------------
1865 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1866 ac_fn_c_check_func ()
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1870 $as_echo_n "checking for $2... " >&6; }
1871 if eval \${$3+:} false; then :
1872 $as_echo_n "(cached) " >&6
1874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1875 /* end confdefs.h. */
1876 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1878 #define $2 innocuous_$2
1880 /* System header to define __stub macros and hopefully few prototypes,
1881 which can conflict with char $2 (); below.
1882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1883 <limits.h> exists even on freestanding compilers. */
1886 # include <limits.h>
1888 # include <assert.h>
1893 /* Override any GCC internal prototype to avoid an error.
1894 Use char because int might match the return type of a GCC
1895 builtin and then its argument prototype would still apply. */
1900 /* The GNU C library defines this for functions which it implements
1901 to always fail with ENOSYS. Some functions are actually named
1902 something starting with __ and the normal name is an alias. */
1903 #if defined __stub_$2 || defined __stub___$2
1915 if ac_fn_c_try_link "$LINENO"; then :
1920 rm -f core conftest.err conftest.$ac_objext \
1921 conftest$ac_exeext conftest.$ac_ext
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1928 } # ac_fn_c_check_func
1930 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1931 # -------------------------------------------------------
1932 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1933 # the include files in INCLUDES and setting the cache variable VAR
1935 ac_fn_c_check_header_mongrel ()
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 if eval \${$3+:} false; then :
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1940 $as_echo_n "checking for $2... " >&6; }
1941 if eval \${$3+:} false; then :
1942 $as_echo_n "(cached) " >&6
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1946 $as_echo "$ac_res" >&6; }
1948 # Is the header compilable?
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1950 $as_echo_n "checking $2 usability... " >&6; }
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1956 if ac_fn_c_try_compile "$LINENO"; then :
1957 ac_header_compiler=yes
1959 ac_header_compiler=no
1961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1963 $as_echo "$ac_header_compiler" >&6; }
1965 # Is the header present?
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1967 $as_echo_n "checking $2 presence... " >&6; }
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969 /* end confdefs.h. */
1972 if ac_fn_c_try_cpp "$LINENO"; then :
1973 ac_header_preproc=yes
1975 ac_header_preproc=no
1977 rm -f conftest.err conftest.i conftest.$ac_ext
1978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1979 $as_echo "$ac_header_preproc" >&6; }
1981 # So? What about this header?
1982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1985 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1987 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1991 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1993 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1995 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1997 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1999 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003 $as_echo_n "checking for $2... " >&6; }
2004 if eval \${$3+:} false; then :
2005 $as_echo_n "(cached) " >&6
2007 eval "$3=\$ac_header_compiler"
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011 $as_echo "$ac_res" >&6; }
2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2015 } # ac_fn_c_check_header_mongrel
2016 cat >config.log <<_ACEOF
2017 This file contains any messages produced by compilers while
2018 running configure, to aid debugging if configure makes a mistake.
2020 It was created by zfs $as_me 0.6.5.6, which was
2021 generated by GNU Autoconf 2.69. Invocation command line was
2033 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2034 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2035 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2036 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2037 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2039 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2040 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2042 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2043 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2044 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2045 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2046 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2047 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2048 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2056 test -z "$as_dir" && as_dir=.
2057 $as_echo "PATH: $as_dir"
2073 # Keep a trace of the command line.
2074 # Strip out --no-create and --no-recursion so they do not pile up.
2075 # Strip out --silent because we don't want to record it for future runs.
2076 # Also quote any args containing shell meta-characters.
2077 # Make two passes to allow for proper duplicate-argument suppression.
2081 ac_must_keep_next=false
2087 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2089 | -silent | --silent | --silen | --sile | --sil)
2092 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2095 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2097 as_fn_append ac_configure_args1 " '$ac_arg'"
2098 if test $ac_must_keep_next = true; then
2099 ac_must_keep_next=false # Got value, back to normal.
2102 *=* | --config-cache | -C | -disable-* | --disable-* \
2103 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2104 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2105 | -with-* | --with-* | -without-* | --without-* | --x)
2106 case "$ac_configure_args0 " in
2107 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2110 -* ) ac_must_keep_next=true ;;
2113 as_fn_append ac_configure_args " '$ac_arg'"
2118 { ac_configure_args0=; unset ac_configure_args0;}
2119 { ac_configure_args1=; unset ac_configure_args1;}
2121 # When interrupted or exit'd, cleanup temporary files, and complete
2122 # config.log. We remove comments because anyway the quotes in there
2123 # would cause problems or look ugly.
2124 # WARNING: Use '\'' to represent an apostrophe within the trap.
2125 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2126 trap 'exit_status=$?
2127 # Save into config.log some information that might help in debugging.
2131 $as_echo "## ---------------- ##
2132 ## Cache variables. ##
2133 ## ---------------- ##"
2135 # The following way of writing the cache mishandles newlines in values,
2137 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2138 eval ac_val=\$$ac_var
2142 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2143 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2146 _ | IFS | as_nl) ;; #(
2147 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2148 *) { eval $ac_var=; unset $ac_var;} ;;
2153 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2154 *${as_nl}ac_space=\ *)
2156 "s/'\''/'\''\\\\'\'''\''/g;
2157 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2160 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2167 $as_echo "## ----------------- ##
2168 ## Output variables. ##
2169 ## ----------------- ##"
2171 for ac_var in $ac_subst_vars
2173 eval ac_val=\$$ac_var
2175 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2177 $as_echo "$ac_var='\''$ac_val'\''"
2181 if test -n "$ac_subst_files"; then
2182 $as_echo "## ------------------- ##
2183 ## File substitutions. ##
2184 ## ------------------- ##"
2186 for ac_var in $ac_subst_files
2188 eval ac_val=\$$ac_var
2190 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2192 $as_echo "$ac_var='\''$ac_val'\''"
2197 if test -s confdefs.h; then
2198 $as_echo "## ----------- ##
2205 test "$ac_signal" != 0 &&
2206 $as_echo "$as_me: caught signal $ac_signal"
2207 $as_echo "$as_me: exit $exit_status"
2209 rm -f core *.core core.conftest.* &&
2210 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2213 for ac_signal in 1 2 13 15; do
2214 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2218 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2219 rm -f -r conftest* confdefs.h
2221 $as_echo "/* confdefs.h */" > confdefs.h
2223 # Predefined preprocessor variables.
2225 cat >>confdefs.h <<_ACEOF
2226 #define PACKAGE_NAME "$PACKAGE_NAME"
2229 cat >>confdefs.h <<_ACEOF
2230 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2233 cat >>confdefs.h <<_ACEOF
2234 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2237 cat >>confdefs.h <<_ACEOF
2238 #define PACKAGE_STRING "$PACKAGE_STRING"
2241 cat >>confdefs.h <<_ACEOF
2242 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2245 cat >>confdefs.h <<_ACEOF
2246 #define PACKAGE_URL "$PACKAGE_URL"
2250 # Let the site file select an alternate cache file if it wants to.
2251 # Prefer an explicitly selected file to automatically selected ones.
2254 if test -n "$CONFIG_SITE"; then
2255 # We do not want a PATH search for config.site.
2256 case $CONFIG_SITE in #((
2257 -*) ac_site_file1=./$CONFIG_SITE;;
2258 */*) ac_site_file1=$CONFIG_SITE;;
2259 *) ac_site_file1=./$CONFIG_SITE;;
2261 elif test "x$prefix" != xNONE; then
2262 ac_site_file1=$prefix/share/config.site
2263 ac_site_file2=$prefix/etc/config.site
2265 ac_site_file1=$ac_default_prefix/share/config.site
2266 ac_site_file2=$ac_default_prefix/etc/config.site
2268 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2270 test "x$ac_site_file" = xNONE && continue
2271 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2273 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2274 sed 's/^/| /' "$ac_site_file" >&5
2276 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2277 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2278 as_fn_error $? "failed to load site
script $ac_site_file
2279 See \
`config.log' for more details" "$LINENO" 5; }
2283 if test -r "$cache_file"; then
2284 # Some versions of bash will fail to source /dev/null (special files
2285 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2286 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2288 $as_echo "$as_me: loading cache $cache_file" >&6;}
2290 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2291 *) . "./$cache_file";;
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2296 $as_echo "$as_me: creating cache $cache_file" >&6;}
2300 # Check that the precious variables saved in the cache have kept the same
2302 ac_cache_corrupted=false
2303 for ac_var in $ac_precious_vars; do
2304 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2305 eval ac_new_set=\$ac_env_${ac_var}_set
2306 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2307 eval ac_new_val=\$ac_env_${ac_var}_value
2308 case $ac_old_set,$ac_new_set in
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2311 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2312 ac_cache_corrupted=: ;;
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2315 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2316 ac_cache_corrupted=: ;;
2319 if test "x$ac_old_val" != "x$ac_new_val"; then
2320 # differences in whitespace do not lead to failure.
2321 ac_old_val_w=`echo x
$ac_old_val`
2322 ac_new_val_w=`echo x
$ac_new_val`
2323 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2325 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2326 ac_cache_corrupted=:
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2329 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2330 eval $ac_var=\$ac_old_val
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2333 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2335 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2338 # Pass precious variables to config.status.
2339 if test "$ac_new_set" = set; then
2341 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2342 *) ac_arg=$ac_var=$ac_new_val ;;
2344 case " $ac_configure_args " in
2345 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2346 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2350 if $ac_cache_corrupted; then
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2354 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2355 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2357 ## -------------------- ##
2358 ## Main body of script. ##
2359 ## -------------------- ##
2362 ac_cpp='$CPP $CPPFLAGS'
2363 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2364 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2365 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2369 ac_cpp='$CPP $CPPFLAGS'
2370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2378 for ac_prog in gawk mawk nawk awk
2380 # Extract the first word of "$ac_prog", so it can be a program name with args.
2381 set dummy $ac_prog; ac_word=$2
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2383 $as_echo_n "checking for $ac_word... " >&6; }
2384 if ${ac_cv_prog_AWK+:} false; then :
2385 $as_echo_n "(cached) " >&6
2387 if test -n "$AWK"; then
2388 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394 test -z "$as_dir" && as_dir=.
2395 for ac_exec_ext in '' $ac_executable_extensions; do
2396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2397 ac_cv_prog_AWK="$ac_prog"
2398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2408 if test -n "$AWK"; then
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2410 $as_echo "$AWK" >&6; }
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2413 $as_echo "no" >&6; }
2417 test -n "$AWK" && break
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking metadata" >&5
2421 $as_echo_n "checking metadata... " >&6; }
2424 _zfs_ac_meta_type="none"
2425 if test -f "$META"; then
2426 _zfs_ac_meta_type="META file"
2427 _dpkg_parsechangelog=$(dpkg-parsechangelog 2>/dev/null)
2429 ZFS_META_NAME=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`;
2430 if test -n "$ZFS_META_NAME"; then
2432 cat >>confdefs.h <<_ACEOF
2433 #define ZFS_META_NAME "$ZFS_META_NAME"
2439 ZFS_META_VERSION=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`;
2440 if test -n "$ZFS_META_VERSION"; then
2442 cat >>confdefs.h <<_ACEOF
2443 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2449 if test -n "${_dpkg_parsechangelog}"; then
2450 _dpkg_version=$(echo "${_dpkg_parsechangelog}" \
2451 | $AWK '$1 == "Version:" { print $2; }' \
2453 if test "${_dpkg_version}" != "$ZFS_META_VERSION"; then
2455 *** Version $ZFS_META_VERSION in the META file is different than
2456 *** version $_dpkg_version in the debian/changelog file. DKMS and DEB
2457 *** packaging require that these files have the same version.
2462 ZFS_META_RELEASE=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`;
2464 if test -n "${_dpkg_parsechangelog}"; then
2465 _dpkg_release=$(echo "${_dpkg_parsechangelog}" \
2466 | $AWK '$1 == "Version:" { print $2; }' \
2468 if test -n "${_dpkg_release}"; then
2469 ZFS_META_RELEASE=${_dpkg_release}
2470 _zfs_ac_meta_type="dpkg-parsechangelog"
2472 elif test ! -f ".nogitrelease" && git rev-parse --git-dir > /dev/null 2>&1; then
2473 _match="${ZFS_META_NAME}-${ZFS_META_VERSION}"
2474 _alias=$(git describe --match=${_match} 2>/dev/null)
2475 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2476 if test -n "${_release}"; then
2477 ZFS_META_RELEASE=${_release}
2478 _zfs_ac_meta_type="git describe"
2482 if test -n "$ZFS_META_RELEASE"; then
2484 cat >>confdefs.h <<_ACEOF
2485 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2490 RELEASE="$ZFS_META_RELEASE"
2494 ZFS_META_LICENSE=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`;
2495 if test -n "$ZFS_META_LICENSE"; then
2497 cat >>confdefs.h <<_ACEOF
2498 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2504 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2505 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2506 test -n "$ZFS_META_RELEASE" &&
2507 ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2509 cat >>confdefs.h <<_ACEOF
2510 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2516 ZFS_META_DATA=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`;
2517 if test -n "$ZFS_META_DATA"; then
2519 cat >>confdefs.h <<_ACEOF
2520 #define ZFS_META_DATA "$ZFS_META_DATA"
2526 ZFS_META_AUTHOR=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`;
2527 if test -n "$ZFS_META_AUTHOR"; then
2529 cat >>confdefs.h <<_ACEOF
2530 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2537 ZFS_META_LT_CURRENT=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`;
2538 ZFS_META_LT_REVISION=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`;
2539 ZFS_META_LT_AGE=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`;
2540 if test -n "$ZFS_META_LT_CURRENT" \
2541 -o -n "$ZFS_META_LT_REVISION" \
2542 -o -n "$ZFS_META_LT_AGE"; then
2543 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2544 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2545 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2547 cat >>confdefs.h <<_ACEOF
2548 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2552 cat >>confdefs.h <<_ACEOF
2553 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2557 cat >>confdefs.h <<_ACEOF
2558 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_zfs_ac_meta_type" >&5
2568 $as_echo "$_zfs_ac_meta_type" >&6; }
2572 for ac_dir in config "$srcdir"/config; do
2573 if test -f "$ac_dir/install-sh"; then
2575 ac_install_sh="$ac_aux_dir/install-sh -c"
2577 elif test -f "$ac_dir/install.sh"; then
2579 ac_install_sh="$ac_aux_dir/install.sh -c"
2581 elif test -f "$ac_dir/shtool"; then
2583 ac_install_sh="$ac_aux_dir/shtool install -c"
2587 if test -z "$ac_aux_dir"; then
2588 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2591 # These three variables are undocumented and unsupported,
2592 # and are intended to be withdrawn in a future Autoconf release.
2593 # They can cause serious problems if a builder's source tree is in a directory
2594 # whose full name contains unusual characters.
2595 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2596 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2597 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2601 # Make sure we can run config.sub.
2602 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2603 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2606 $as_echo_n "checking build system type... " >&6; }
2607 if ${ac_cv_build+:} false; then :
2608 $as_echo_n "(cached) " >&6
2610 ac_build_alias=$build_alias
2611 test "x$ac_build_alias" = x &&
2612 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2613 test "x$ac_build_alias" = x &&
2614 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2615 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2616 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2620 $as_echo "$ac_cv_build" >&6; }
2621 case $ac_cv_build in
2623 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2626 ac_save_IFS=$IFS; IFS='-'
2632 # Remember, the first character of IFS is used to create $*,
2633 # except with old shells:
2636 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2640 $as_echo_n "checking host system type... " >&6; }
2641 if ${ac_cv_host+:} false; then :
2642 $as_echo_n "(cached) " >&6
2644 if test "x$host_alias" = x; then
2645 ac_cv_host=$ac_cv_build
2647 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2648 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2653 $as_echo "$ac_cv_host" >&6; }
2656 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2659 ac_save_IFS=$IFS; IFS='-'
2665 # Remember, the first character of IFS is used to create $*,
2666 # except with old shells:
2669 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2673 $as_echo_n "checking target system type... " >&6; }
2674 if ${ac_cv_target+:} false; then :
2675 $as_echo_n "(cached) " >&6
2677 if test "x$target_alias" = x; then
2678 ac_cv_target=$ac_cv_host
2680 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2681 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2686 $as_echo "$ac_cv_target" >&6; }
2687 case $ac_cv_target in
2689 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2691 target=$ac_cv_target
2692 ac_save_IFS=$IFS; IFS='-'
2698 # Remember, the first character of IFS is used to create $*,
2699 # except with old shells:
2702 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2705 # The aliases save the names the user supplied, while $host etc.
2706 # will get canonicalized.
2707 test -n "$target_alias" &&
2708 test "$program_prefix$program_suffix$program_transform_name" = \
2710 program_prefix=${target_alias}-
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2714 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2715 # Check whether --enable-maintainer-mode was given.
2716 if test "${enable_maintainer_mode+set}" = set; then :
2717 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2719 USE_MAINTAINER_MODE=no
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2723 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2724 if test $USE_MAINTAINER_MODE = yes; then
2725 MAINTAINER_MODE_TRUE=
2726 MAINTAINER_MODE_FALSE='#'
2728 MAINTAINER_MODE_TRUE='#'
2729 MAINTAINER_MODE_FALSE=
2732 MAINT=$MAINTAINER_MODE_TRUE
2735 # Check whether --enable-silent-rules was given.
2736 if test "${enable_silent_rules+set}" = set; then :
2737 enableval=$enable_silent_rules;
2740 case $enable_silent_rules in # (((
2741 yes) AM_DEFAULT_VERBOSITY=0;;
2742 no) AM_DEFAULT_VERBOSITY=1;;
2743 *) AM_DEFAULT_VERBOSITY=0;;
2745 am_make=${MAKE-make}
2746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2747 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2748 if ${am_cv_make_support_nested_variables+:} false; then :
2749 $as_echo_n "(cached) " >&6
2751 if $as_echo 'TRUE=$(BAR$(V))
2757 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2758 am_cv_make_support_nested_variables=yes
2760 am_cv_make_support_nested_variables=no
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2764 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2765 if test $am_cv_make_support_nested_variables = yes; then
2767 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2769 AM_V=$AM_DEFAULT_VERBOSITY
2770 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2774 am__api_version='1.15'
2776 # Find a good install program. We prefer a C program (faster),
2777 # so one script is as good as another. But avoid the broken or
2778 # incompatible versions:
2779 # SysV /etc/install, /usr/sbin/install
2780 # SunOS /usr/etc/install
2781 # IRIX /sbin/install
2783 # AmigaOS /C/install, which installs bootblocks on floppy discs
2784 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2785 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2786 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2787 # OS/2's system install, which has a completely different semantic
2788 # ./install, which can be erroneously created by make from ./install.sh.
2789 # Reject install programs that cannot install multiple files.
2790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2791 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2792 if test -z "$INSTALL"; then
2793 if ${ac_cv_path_install+:} false; then :
2794 $as_echo_n "(cached) " >&6
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 test -z "$as_dir" && as_dir=.
2801 # Account for people who put trailing slashes in PATH elements.
2802 case $as_dir/ in #((
2803 ./ | .// | /[cC]/* | \
2804 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2805 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2808 # OSF1 and SCO ODT 3.0 have their own names for install.
2809 # Don't use installbsd from OSF since it installs stuff as root
2811 for ac_prog in ginstall scoinst install; do
2812 for ac_exec_ext in '' $ac_executable_extensions; do
2813 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2814 if test $ac_prog = install &&
2815 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2816 # AIX install. It has an incompatible calling convention.
2818 elif test $ac_prog = install &&
2819 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2820 # program-specific install script used by HP pwplus--don't use.
2823 rm -rf conftest.one conftest.two conftest.dir
2824 echo one > conftest.one
2825 echo two > conftest.two
2827 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2828 test -s conftest.one && test -s conftest.two &&
2829 test -s conftest.dir/conftest.one &&
2830 test -s conftest.dir/conftest.two
2832 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2845 rm -rf conftest.one conftest.two conftest.dir
2848 if test "${ac_cv_path_install+set}" = set; then
2849 INSTALL=$ac_cv_path_install
2851 # As a last resort, use the slow shell script. Don't cache a
2852 # value for INSTALL within a source directory, because that will
2853 # break other packages using the cache if that directory is
2854 # removed, or if the value is a relative name.
2855 INSTALL=$ac_install_sh
2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2859 $as_echo "$INSTALL" >&6; }
2861 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2862 # It thinks the first close brace ends the variable substitution.
2863 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2865 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2867 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2870 $as_echo_n "checking whether build environment is sane... " >&6; }
2871 # Reject unsafe characters in $srcdir or the absolute working directory
2872 # name. Accept space and tab only in the latter.
2876 *[\\\"\#\$\&\'\`$am_lf]*)
2877 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2880 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2881 as_fn_error $?
"unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2884 # Do 'set' in a subshell so we don't clobber the current shell's
2885 # arguments. Must try -L first in case configure is actually a
2886 # symlink; some systems play weird games with the mod time of symlinks
2887 # (eg FreeBSD returns the mod time of the symlink's containing
2891 for am_try
in 1 2; do
2892 echo "timestamp, slept: $am_has_slept" > conftest.
file
2893 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2894 if test "$*" = "X"; then
2896 set X
`ls -t "$srcdir/configure" conftest.file`
2898 if test "$*" != "X $srcdir/configure conftest.file" \
2899 && test "$*" != "X conftest.file $srcdir/configure"; then
2901 # If neither matched, then we have a broken ls. This can happen
2902 # if, for instance, CONFIG_SHELL is bash and it inherits a
2903 # broken ls alias from the environment. This has actually
2904 # happened. Such a system could not be considered "sane".
2905 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2906 alias in your environment" "$LINENO" 5
2908 if test "$2" = conftest.
file ||
test $am_try -eq 2; then
2915 test "$2" = conftest.
file
2921 as_fn_error $?
"newly created file is older than distributed files!
2922 Check your system clock" "$LINENO" 5
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2925 $as_echo "yes" >&6; }
2926 # If we didn't sleep, we still need to ensure time stamps of config.status and
2927 # generated files are strictly newer.
2929 if grep 'slept: no' conftest.
file >/dev
/null
2>&1; then
2936 test "$program_prefix" != NONE
&&
2937 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2938 # Use a double $ so make ignores it.
2939 test "$program_suffix" != NONE
&&
2940 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2941 # Double any \ or $.
2942 # By default was `s,x,x', remove it if useless.
2943 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2944 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2946 # Expand $ac_aux_dir to an absolute path.
2947 am_aux_dir
=`cd "$ac_aux_dir" && pwd`
2949 if test x
"${MISSING+set}" != xset
; then
2952 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2954 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2957 # Use eval to expand $SHELL
2958 if eval "$MISSING --is-lightweight"; then
2959 am_missing_run
="$MISSING "
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2963 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2966 if test x
"${install_sh+set}" != xset
; then
2969 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2971 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2975 # Installed binaries are usually stripped using 'strip' when the user
2976 # run "make install-strip". However 'strip' might not be the right
2977 # tool to use in cross-compilation environments, therefore Automake
2978 # will honor the 'STRIP' environment variable to overrule this program.
2979 if test "$cross_compiling" != no
; then
2980 if test -n "$ac_tool_prefix"; then
2981 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2982 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984 $as_echo_n "checking for $ac_word... " >&6; }
2985 if ${ac_cv_prog_STRIP+:} false
; then :
2986 $as_echo_n "(cached) " >&6
2988 if test -n "$STRIP"; then
2989 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2995 test -z "$as_dir" && as_dir
=.
2996 for ac_exec_ext
in '' $ac_executable_extensions; do
2997 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2998 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 STRIP
=$ac_cv_prog_STRIP
3009 if test -n "$STRIP"; then
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3011 $as_echo "$STRIP" >&6; }
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014 $as_echo "no" >&6; }
3019 if test -z "$ac_cv_prog_STRIP"; then
3021 # Extract the first word of "strip", so it can be a program name with args.
3022 set dummy strip
; ac_word
=$2
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3024 $as_echo_n "checking for $ac_word... " >&6; }
3025 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
3026 $as_echo_n "(cached) " >&6
3028 if test -n "$ac_ct_STRIP"; then
3029 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3031 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3035 test -z "$as_dir" && as_dir
=.
3036 for ac_exec_ext
in '' $ac_executable_extensions; do
3037 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3038 ac_cv_prog_ac_ct_STRIP
="strip"
3039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3048 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3049 if test -n "$ac_ct_STRIP"; then
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3051 $as_echo "$ac_ct_STRIP" >&6; }
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054 $as_echo "no" >&6; }
3057 if test "x$ac_ct_STRIP" = x
; then
3060 case $cross_compiling:$ac_tool_warned in
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3064 ac_tool_warned
=yes ;;
3069 STRIP
="$ac_cv_prog_STRIP"
3073 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3076 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3077 if test -z "$MKDIR_P"; then
3078 if ${ac_cv_path_mkdir+:} false
; then :
3079 $as_echo_n "(cached) " >&6
3081 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3082 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3085 test -z "$as_dir" && as_dir
=.
3086 for ac_prog
in mkdir gmkdir
; do
3087 for ac_exec_ext
in '' $ac_executable_extensions; do
3088 as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext" ||
continue
3089 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3090 'mkdir (GNU coreutils) '* | \
3091 'mkdir (coreutils) '* | \
3092 'mkdir (fileutils) '4.1*)
3093 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3103 test -d .
/--version && rmdir .
/--version
3104 if test "${ac_cv_path_mkdir+set}" = set; then
3105 MKDIR_P
="$ac_cv_path_mkdir -p"
3107 # As a last resort, use the slow shell script. Don't cache a
3108 # value for MKDIR_P within a source directory, because that will
3109 # break other packages using the cache if that directory is
3110 # removed, or if the value is a relative name.
3111 MKDIR_P
="$ac_install_sh -d"
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3115 $as_echo "$MKDIR_P" >&6; }
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3118 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3120 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3121 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3122 $as_echo_n "(cached) " >&6
3124 cat >conftest.
make <<\_ACEOF
3127 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3129 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3130 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3132 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3134 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3138 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3140 $as_echo "yes" >&6; }
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144 $as_echo "no" >&6; }
3145 SET_MAKE
="MAKE=${MAKE-make}"
3148 rm -rf .tst
2>/dev
/null
3149 mkdir .tst
2>/dev
/null
3150 if test -d .tst
; then
3155 rmdir .tst
2>/dev
/null
3157 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3158 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3159 # is not polluted with repeated "-I."
3160 am__isrc
=' -I$(srcdir)'
3161 # test to see if srcdir already configured
3162 if test -f $srcdir/config.status
; then
3163 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3167 # test whether we have cygpath
3168 if test -z "$CYGPATH_W"; then
3169 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3170 CYGPATH_W
='cygpath -w'
3177 # Define the identity of the package.
3182 cat >>confdefs.h
<<_ACEOF
3183 #define PACKAGE "$PACKAGE"
3187 cat >>confdefs.h
<<_ACEOF
3188 #define VERSION "$VERSION"
3191 # Some tools Automake needs.
3193 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3196 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3199 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3202 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3205 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3207 # For better backward compatibility. To be removed once Automake 1.9.x
3208 # dies out for good. For more background, see:
3209 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3210 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3211 mkdir_p
='$(MKDIR_P)'
3213 # We need awk for the "check" target (and possibly the TAP driver). The
3214 # system "awk" is bad on some platforms.
3215 # Always define AMTAR for backward compatibility. Yes, it's still used
3216 # in the wild :-( We should find a proper way to deprecate it ...
3220 # We'll loop over all known methods to create a tar archive until one works.
3221 _am_tools
='gnutar pax cpio none'
3223 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3230 # POSIX will say in a future version that running "rm -f" with no argument
3231 # is OK; and we want to be able to make that assumption in our Makefile
3232 # recipes. So use an aggressive probe to check that the usage we want is
3233 # actually supported "in the wild" to an acceptable degree.
3234 # See automake bug#10828.
3235 # To make any issue more visible, cause the running configure to be aborted
3236 # by default if the 'rm' program in use doesn't match our expectations; the
3237 # user can still override this though.
3238 if rm -f && rm -fr && rm -rf; then : OK
; else
3242 Your 'rm' program seems unable to run without file operands specified
3243 on the command line, even when the '-f' option is present. This is contrary
3244 to the behaviour of most rm programs out there, and not conforming with
3245 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3247 Please tell bug-automake@gnu.org about your system, including the value
3248 of your $PATH and any error possibly output before this message. This
3249 can help us improve future automake versions.
3252 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
3253 echo 'Configuration will proceed anyway, since you have set the' >&2
3254 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3258 Aborting the configuration process, to ensure you take notice of the issue.
3260 You can download and install GNU coreutils to get an 'rm' implementation
3261 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3263 If you want to complete the configuration process using your problematic
3264 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3265 to "yes", and re-run configure.
3268 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
3272 ac_config_headers
="$ac_config_headers zfs_config.h"
3277 ac_cpp
='$CPP $CPPFLAGS'
3278 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3279 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3280 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3281 if test -n "$ac_tool_prefix"; then
3282 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3283 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3285 $as_echo_n "checking for $ac_word... " >&6; }
3286 if ${ac_cv_prog_CC+:} false
; then :
3287 $as_echo_n "(cached) " >&6
3289 if test -n "$CC"; then
3290 ac_cv_prog_CC
="$CC" # Let the user override the test.
3292 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3296 test -z "$as_dir" && as_dir
=.
3297 for ac_exec_ext
in '' $ac_executable_extensions; do
3298 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3299 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3310 if test -n "$CC"; then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3312 $as_echo "$CC" >&6; }
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3315 $as_echo "no" >&6; }
3320 if test -z "$ac_cv_prog_CC"; then
3322 # Extract the first word of "gcc", so it can be a program name with args.
3323 set dummy gcc
; ac_word
=$2
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3325 $as_echo_n "checking for $ac_word... " >&6; }
3326 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3327 $as_echo_n "(cached) " >&6
3329 if test -n "$ac_ct_CC"; then
3330 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3332 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3336 test -z "$as_dir" && as_dir
=.
3337 for ac_exec_ext
in '' $ac_executable_extensions; do
3338 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3339 ac_cv_prog_ac_ct_CC
="gcc"
3340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3349 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3350 if test -n "$ac_ct_CC"; then
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3352 $as_echo "$ac_ct_CC" >&6; }
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3355 $as_echo "no" >&6; }
3358 if test "x$ac_ct_CC" = x
; then
3361 case $cross_compiling:$ac_tool_warned in
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3364 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3365 ac_tool_warned
=yes ;;
3373 if test -z "$CC"; then
3374 if test -n "$ac_tool_prefix"; then
3375 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3376 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3378 $as_echo_n "checking for $ac_word... " >&6; }
3379 if ${ac_cv_prog_CC+:} false
; then :
3380 $as_echo_n "(cached) " >&6
3382 if test -n "$CC"; then
3383 ac_cv_prog_CC
="$CC" # Let the user override the test.
3385 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3389 test -z "$as_dir" && as_dir
=.
3390 for ac_exec_ext
in '' $ac_executable_extensions; do
3391 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3392 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3403 if test -n "$CC"; then
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3405 $as_echo "$CC" >&6; }
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3408 $as_echo "no" >&6; }
3414 if test -z "$CC"; then
3415 # Extract the first word of "cc", so it can be a program name with args.
3416 set dummy cc
; ac_word
=$2
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3418 $as_echo_n "checking for $ac_word... " >&6; }
3419 if ${ac_cv_prog_CC+:} false
; then :
3420 $as_echo_n "(cached) " >&6
3422 if test -n "$CC"; then
3423 ac_cv_prog_CC
="$CC" # Let the user override the test.
3426 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3430 test -z "$as_dir" && as_dir
=.
3431 for ac_exec_ext
in '' $ac_executable_extensions; do
3432 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3433 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3434 ac_prog_rejected
=yes
3438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3445 if test $ac_prog_rejected = yes; then
3446 # We found a bogon in the path, so make sure we never use it.
3447 set dummy
$ac_cv_prog_CC
3449 if test $# != 0; then
3450 # We chose a different compiler from the bogus one.
3451 # However, it has the same basename, so the bogon will be chosen
3452 # first if we set CC to just the basename; use the full file name.
3454 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3460 if test -n "$CC"; then
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3462 $as_echo "$CC" >&6; }
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3465 $as_echo "no" >&6; }
3470 if test -z "$CC"; then
3471 if test -n "$ac_tool_prefix"; then
3472 for ac_prog
in cl.exe
3474 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3475 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3477 $as_echo_n "checking for $ac_word... " >&6; }
3478 if ${ac_cv_prog_CC+:} false
; then :
3479 $as_echo_n "(cached) " >&6
3481 if test -n "$CC"; then
3482 ac_cv_prog_CC
="$CC" # Let the user override the test.
3484 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3488 test -z "$as_dir" && as_dir
=.
3489 for ac_exec_ext
in '' $ac_executable_extensions; do
3490 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3491 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3502 if test -n "$CC"; then
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3504 $as_echo "$CC" >&6; }
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3507 $as_echo "no" >&6; }
3511 test -n "$CC" && break
3514 if test -z "$CC"; then
3516 for ac_prog
in cl.exe
3518 # Extract the first word of "$ac_prog", so it can be a program name with args.
3519 set dummy
$ac_prog; ac_word
=$2
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3521 $as_echo_n "checking for $ac_word... " >&6; }
3522 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3523 $as_echo_n "(cached) " >&6
3525 if test -n "$ac_ct_CC"; then
3526 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3528 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3532 test -z "$as_dir" && as_dir
=.
3533 for ac_exec_ext
in '' $ac_executable_extensions; do
3534 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3535 ac_cv_prog_ac_ct_CC
="$ac_prog"
3536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3545 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3546 if test -n "$ac_ct_CC"; then
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3548 $as_echo "$ac_ct_CC" >&6; }
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3551 $as_echo "no" >&6; }
3555 test -n "$ac_ct_CC" && break
3558 if test "x$ac_ct_CC" = x
; then
3561 case $cross_compiling:$ac_tool_warned in
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3564 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3565 ac_tool_warned
=yes ;;
3574 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3576 as_fn_error $?
"no acceptable C compiler found in \$PATH
3577 See \`config.log' for more details" "$LINENO" 5; }
3579 # Provide some information about the compiler.
3580 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3583 for ac_option
in --version -v -V -qversion; do
3584 { { ac_try
="$ac_compiler $ac_option >&5"
3586 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3590 $as_echo "$ac_try_echo"; } >&5
3591 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3593 if test -s conftest.err; then
3595 ... rest of stderr output deleted ...
3596 10q' conftest.err >conftest.er1
3597 cat conftest.er1 >&5
3599 rm -f conftest.er1 conftest.err
3600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3601 test $ac_status = 0; }
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3615 ac_clean_files_save=$ac_clean_files
3616 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3617 # Try to create an executable without -o first, disregard a.out.
3618 # It will help us diagnose broken compilers, and finding out an intuition
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3621 $as_echo_n "checking whether the C compiler works... " >&6; }
3622 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3624 # The possible output files:
3625 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3628 for ac_file in $ac_files
3631 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3632 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3637 if { { ac_try="$ac_link_default"
3639 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3640 *) ac_try_echo
=$ac_try;;
3642 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3643 $as_echo "$ac_try_echo"; } >&5
3644 (eval "$ac_link_default") 2>&5
3646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3647 test $ac_status = 0; }; then :
3648 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3649 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3650 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3651 # so that the user can short-circuit this test for compilers unknown to
3653 for ac_file
in $ac_files ''
3655 test -f "$ac_file" ||
continue
3657 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3660 # We found the default executable, but exeext='' is most
3664 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3666 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3668 # We set ac_cv_exeext here because the later test for it is not
3669 # safe: cross compilers may not add the suffix if given an `-o'
3670 # argument, so we may need to know it at that point already.
3671 # Even if this section looks crufty: it has the advantage of
3678 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3683 if test -z "$ac_file"; then :
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685 $as_echo "no" >&6; }
3686 $as_echo "$as_me: failed program was:" >&5
3687 sed 's/^/| /' conftest.
$ac_ext >&5
3689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3690 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3691 as_fn_error
77 "C compiler cannot create executables
3692 See \`config.log' for more details" "$LINENO" 5; }
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3695 $as_echo "yes" >&6; }
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3698 $as_echo_n "checking for C compiler default output file name... " >&6; }
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3700 $as_echo "$ac_file" >&6; }
3701 ac_exeext
=$ac_cv_exeext
3703 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3704 ac_clean_files
=$ac_clean_files_save
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3706 $as_echo_n "checking for suffix of executables... " >&6; }
3707 if { { ac_try
="$ac_link"
3709 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3713 $as_echo "$ac_try_echo"; } >&5
3714 (eval "$ac_link") 2>&5
3716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717 test $ac_status = 0; }; then :
3718 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3719 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3720 # work properly (i.e., refer to `conftest.exe'), while it won't with
3722 for ac_file
in conftest.exe conftest conftest.
*; do
3723 test -f "$ac_file" ||
continue
3725 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3726 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3732 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3734 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3735 See \`config.log' for more details" "$LINENO" 5; }
3737 rm -f conftest conftest
$ac_cv_exeext
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3739 $as_echo "$ac_cv_exeext" >&6; }
3741 rm -f conftest.
$ac_ext
3742 EXEEXT
=$ac_cv_exeext
3744 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h. */
3750 FILE *f = fopen ("conftest.out", "w");
3751 return ferror (f) || fclose (f) != 0;
3757 ac_clean_files
="$ac_clean_files conftest.out"
3758 # Check that the compiler produces executables we can run. If not, either
3759 # the compiler is broken, or we cross compile.
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3761 $as_echo_n "checking whether we are cross compiling... " >&6; }
3762 if test "$cross_compiling" != yes; then
3763 { { ac_try
="$ac_link"
3765 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3766 *) ac_try_echo=$ac_try;;
3768 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3769 $as_echo "$ac_try_echo"; } >&5
3770 (eval "$ac_link") 2>&5
3772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3773 test $ac_status = 0; }
3774 if { ac_try='./conftest$ac_cv_exeext'
3775 { { case "(($ac_try" in
3776 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3777 *) ac_try_echo
=$ac_try;;
3779 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3780 $as_echo "$ac_try_echo"; } >&5
3781 (eval "$ac_try") 2>&5
3783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3784 test $ac_status = 0; }; }; then
3787 if test "$cross_compiling" = maybe
; then
3790 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3792 as_fn_error $?
"cannot run C compiled programs.
3793 If you meant to cross compile, use \`--host'.
3794 See \`config.log' for more details" "$LINENO" 5; }
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3799 $as_echo "$cross_compiling" >&6; }
3801 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3802 ac_clean_files
=$ac_clean_files_save
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3804 $as_echo_n "checking for suffix of object files... " >&6; }
3805 if ${ac_cv_objext+:} false
; then :
3806 $as_echo_n "(cached) " >&6
3808 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3809 /* end confdefs.h. */
3819 rm -f conftest.o conftest.obj
3820 if { { ac_try
="$ac_compile"
3822 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3823 *) ac_try_echo=$ac_try;;
3825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3826 $as_echo "$ac_try_echo"; } >&5
3827 (eval "$ac_compile") 2>&5
3829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3830 test $ac_status = 0; }; then :
3831 for ac_file in conftest.o conftest.obj conftest.*; do
3832 test -f "$ac_file" || continue;
3834 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3835 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3840 $as_echo "$as_me: failed program was:" >&5
3841 sed 's/^/| /' conftest.$ac_ext >&5
3843 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3845 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3846 See \
`config.log' for more details" "$LINENO" 5; }
3848 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3851 $as_echo "$ac_cv_objext" >&6; }
3852 OBJEXT=$ac_cv_objext
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3855 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3856 if ${ac_cv_c_compiler_gnu+:} false; then :
3857 $as_echo_n "(cached) " >&6
3859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3860 /* end confdefs.h. */
3873 if ac_fn_c_try_compile "$LINENO"; then :
3878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3879 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3883 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3884 if test $ac_compiler_gnu = yes; then
3889 ac_test_CFLAGS=${CFLAGS+set}
3890 ac_save_CFLAGS=$CFLAGS
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3892 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3893 if ${ac_cv_prog_cc_g+:} false; then :
3894 $as_echo_n "(cached) " >&6
3896 ac_save_c_werror_flag=$ac_c_werror_flag
3897 ac_c_werror_flag=yes
3900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3901 /* end confdefs.h. */
3911 if ac_fn_c_try_compile "$LINENO"; then :
3915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3916 /* end confdefs.h. */
3926 if ac_fn_c_try_compile "$LINENO"; then :
3929 ac_c_werror_flag=$ac_save_c_werror_flag
3931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3932 /* end confdefs.h. */
3942 if ac_fn_c_try_compile "$LINENO"; then :
3945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3950 ac_c_werror_flag=$ac_save_c_werror_flag
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3953 $as_echo "$ac_cv_prog_cc_g" >&6; }
3954 if test "$ac_test_CFLAGS" = set; then
3955 CFLAGS=$ac_save_CFLAGS
3956 elif test $ac_cv_prog_cc_g = yes; then
3957 if test "$GCC" = yes; then
3963 if test "$GCC" = yes; then
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3970 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3971 if ${ac_cv_prog_cc_c89+:} false; then :
3972 $as_echo_n "(cached) " >&6
3974 ac_cv_prog_cc_c89=no
3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3977 /* end confdefs.h. */
3981 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3982 struct buf { int x; };
3983 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3984 static char *e (p, i)
3990 static char *f (char * (*g) (char **, int), char **p, ...)
3995 s = g (p, va_arg (v,int));
4000 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4001 function prototypes and stuff, but not '\xHH' hex character constants.
4002 These don't provoke an error unfortunately, instead are silently treated
4003 as 'x'. The following induces an error, until -std is added to get
4004 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4005 array size at least. It's necessary to write '\x00'==0 to get something
4006 that's true only with -std. */
4007 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4009 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4010 inside strings and character constants. */
4012 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4014 int test (int i, double x);
4015 struct s1 {int (*f) (int a);};
4016 struct s2 {int (*f) (double a);};
4017 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4023 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4028 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4029 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4031 CC="$ac_save_CC $ac_arg"
4032 if ac_fn_c_try_compile "$LINENO"; then :
4033 ac_cv_prog_cc_c89=$ac_arg
4035 rm -f core conftest.err conftest.$ac_objext
4036 test "x$ac_cv_prog_cc_c89" != "xno" && break
4038 rm -f conftest.$ac_ext
4043 case "x$ac_cv_prog_cc_c89" in
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4046 $as_echo "none needed" >&6; } ;;
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4049 $as_echo "unsupported" >&6; } ;;
4051 CC="$CC $ac_cv_prog_cc_c89"
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4053 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4055 if test "x$ac_cv_prog_cc_c89" != xno; then :
4060 ac_cpp='$CPP $CPPFLAGS'
4061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4066 ac_cpp='$CPP $CPPFLAGS'
4067 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4068 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4069 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4071 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4072 if ${am_cv_prog_cc_c_o+:} false; then :
4073 $as_echo_n "(cached) " >&6
4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076 /* end confdefs.h. */
4086 # Make sure it works both with $CC and with simple cc.
4087 # Following AC_PROG_CC_C_O, we do the test twice because some
4088 # compilers refuse to overwrite an existing .o file with -o,
4089 # though they will create one.
4090 am_cv_prog_cc_c_o=yes
4092 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4093 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); } \
4097 && test -f conftest2.$ac_objext; then
4100 am_cv_prog_cc_c_o=no
4104 rm -f core conftest*
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4108 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4109 if test "$am_cv_prog_cc_c_o" != yes; then
4110 # Losing compiler, so override with the script.
4111 # FIXME: It is wrong to rewrite CC.
4112 # But if we don't then we get into trouble of one sort or another.
4113 # A longer-term fix would be to have automake use am__CC in this case,
4114 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4115 CC="$am_aux_dir/compile $CC"
4118 ac_cpp='$CPP $CPPFLAGS'
4119 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4120 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4121 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4123 DEPDIR="${am__leading_dot}deps"
4125 ac_config_commands="$ac_config_commands depfiles"
4128 am_make=${MAKE-make}
4129 cat > confinc << 'END'
4131 @echo this is the am__doit target
4134 # If we don't find an include directive, just comment out the code.
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4136 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4140 # First try GNU make style include.
4141 echo "include confinc" > confmf
4142 # Ignore all kinds of additional output from 'make'.
4143 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4144 *the\ am__doit\ target*)
4150 # Now try BSD make style include.
4151 if test "$am__include" = "#"; then
4152 echo '.include "confinc"' > confmf
4153 case `$am_make -s -f confmf
2> /dev
/null
` in #(
4154 *the\ am__doit\ target*)
4155 am__include=.include
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4164 $as_echo "$_am_result" >&6; }
4165 rm -f confinc confmf
4167 # Check whether --enable-dependency-tracking was given.
4168 if test "${enable_dependency_tracking+set}" = set; then :
4169 enableval=$enable_dependency_tracking;
4172 if test "x$enable_dependency_tracking" != xno; then
4173 am_depcomp="$ac_aux_dir/depcomp"
4177 if test "x$enable_dependency_tracking" != xno; then
4187 depcc="$CC" am_compiler_list=
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4190 $as_echo_n "checking dependency style of $depcc... " >&6; }
4191 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4192 $as_echo_n "(cached) " >&6
4194 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4195 # We make a subdir and do the tests there. Otherwise we can end up
4196 # making bogus files that we don't know about and never remove. For
4197 # instance it was reported that on HP-UX the gcc test will end up
4198 # making a dummy file named 'D' -- because '-MD' means "put the output
4202 # Copy depcomp to subdir because otherwise we won't find it if we're
4203 # using a relative directory.
4204 cp "$am_depcomp" conftest.dir
4206 # We will build objects and dependencies in a subdirectory because
4207 # it helps to detect inapplicable dependency modes. For instance
4208 # both Tru64's cc and ICC support -MD to output dependencies as a
4209 # side effect of compilation, but ICC will put the dependencies in
4210 # the current directory while Tru64 will put them in the object
4214 am_cv_CC_dependencies_compiler_type=none
4215 if test "$am_compiler_list" = ""; then
4216 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4219 case " $depcc " in #(
4220 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4223 for depmode in $am_compiler_list; do
4224 # Setup a source with many dependencies, because some compilers
4225 # like to wrap large dependency lists on column 80 (with \), and
4226 # we should not choose a depcomp mode which is confused by this.
4228 # We need to recreate these files for each test, as the compiler may
4229 # overwrite some of them when testing with obscure command lines.
4230 # This happens at least with the AIX C compiler.
4232 for i in 1 2 3 4 5 6; do
4233 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4234 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4235 # Solaris 10 /bin/sh.
4236 echo '/* dummy */' > sub/conftst$i.h
4238 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4240 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4241 # mode. It turns out that the SunPro C++ compiler does not properly
4242 # handle '-M -o', and we need to detect this. Also, some Intel
4243 # versions had trouble with output in subdirs.
4244 am__obj=sub/conftest.${OBJEXT-o}
4245 am__minus_obj="-o $am__obj"
4248 # This depmode causes a compiler race in universal mode.
4249 test "$am__universal" = false || continue
4252 # After this tag, mechanisms are not by side-effect, so they'll
4253 # only be used when explicitly requested.
4254 if test "x$enable_dependency_tracking" = xyes; then
4260 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4261 # This compiler won't grok '-c -o', but also, the minuso test has
4262 # not run yet. These depmodes are late enough in the game, and
4263 # so weak that their functioning should not be impacted.
4264 am__obj=conftest.${OBJEXT-o}
4269 if depmode=$depmode \
4270 source=sub/conftest.c object=$am__obj \
4271 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4272 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4273 >/dev/null 2>conftest.err &&
4274 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4275 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4276 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4277 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4278 # icc doesn't choke on unknown options, it will just issue warnings
4279 # or remarks (even with -Werror). So we grep stderr for any message
4280 # that says an option was ignored or not supported.
4281 # When given -MP, icc 7.0 and 7.1 complain thusly:
4282 # icc: Command line warning: ignoring option '-M'; no argument required
4283 # The diagnosis changed in icc 8.0:
4284 # icc: Command line remark: option '-MP' not supported
4285 if (grep 'ignoring option' conftest.err ||
4286 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4287 am_cv_CC_dependencies_compiler_type=$depmode
4296 am_cv_CC_dependencies_compiler_type=none
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4301 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4302 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4305 test "x$enable_dependency_tracking" != xno \
4306 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4308 am__fastdepCC_FALSE='#'
4310 am__fastdepCC_TRUE='#'
4311 am__fastdepCC_FALSE=
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&5
4318 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\
`" >&2;} ;;
4323 macro_version='2.4.6'
4324 macro_revision='2.4.6'
4338 ltmain=$ac_aux_dir/ltmain.sh
4340 # Backslashify metacharacters that are still active within
4341 # double-quoted strings.
4342 sed_quote_subst='s/\(["`$
\\]\
)/\\\
1/g
'
4344 # Same as above, but do not quote variable references.
4345 double_quote_subst='s
/\
(["`\\]\)/\\\1/g'
4347 # Sed substitution to delay expansion of an escaped shell variable in a
4348 # double_quote_subst'ed string.
4349 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4351 # Sed substitution to delay expansion of an escaped single quote.
4352 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4354 # Sed substitution to avoid accidental globbing in evaled expressions
4355 no_glob_subst='s/\*/\\\*/g'
4357 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4358 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4359 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print
strings" >&5
4362 $as_echo_n "checking how to print
strings...
" >&6; }
4363 # Test print first, because it will be a builtin if present.
4364 if test "X
`( print -r -- -n ) 2>/dev/null`" = X-n && \
4365 test "X
`print -r -- $ECHO 2>/dev/null`" = "X
$ECHO"; then
4367 elif test "X
`printf %s $ECHO 2>/dev/null`" = "X
$ECHO"; then
4370 # Use this function as a fallback that always works.
4371 func_fallback_echo ()
4373 eval 'cat <<_LTECHO_EOF
4377 ECHO='func_fallback_echo'
4380 # func_echo_all arg...
4381 # Invoke $ECHO with all args, space-separated.
4388 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: printf" >&5
4389 $as_echo "printf" >&6; } ;;
4390 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: print
-r" >&5
4391 $as_echo "print
-r" >&6; } ;;
4392 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result
: cat" >&5
4393 $as_echo "cat" >&6; } ;;
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a
sed that does not truncate output
" >&5
4410 $as_echo_n "checking
for a
sed that does not truncate output...
" >&6; }
4411 if ${ac_cv_path_SED+:} false; then :
4412 $as_echo_n "(cached
) " >&6
4414 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4415 for ac_i in 1 2 3 4 5 6 7; do
4416 ac_script="$ac_script$as_nl$ac_script"
4418 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4419 { ac_script=; unset ac_script;}
4420 if test -z "$SED"; then
4421 ac_path_SED_found=false
4422 # Loop through the user's path and test for each of PROGNAME-LIST
4423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 test -z "$as_dir" && as_dir=.
4428 for ac_prog in sed gsed; do
4429 for ac_exec_ext in '' $ac_executable_extensions; do
4430 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4431 as_fn_executable_p "$ac_path_SED" || continue
4432 # Check for GNU ac_path_SED and select it if it is found.
4433 # Check for GNU $ac_path_SED
4434 case `"$ac_path_SED" --version 2>&1` in
4436 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4439 $as_echo_n 0123456789 >"conftest.
in"
4442 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4443 mv "conftest.tmp
" "conftest.
in"
4444 cp "conftest.
in" "conftest.
nl"
4445 $as_echo '' >> "conftest.
nl"
4446 "$ac_path_SED" -f conftest.sed < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4447 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4448 as_fn_arith $ac_count + 1 && ac_count=$as_val
4449 if test $ac_count -gt ${ac_path_SED_max-0}; then
4450 # Best one so far, save it but keep looking for a better one
4451 ac_cv_path_SED="$ac_path_SED"
4452 ac_path_SED_max=$ac_count
4454 # 10*(2^10) chars as input seems more than enough
4455 test $ac_count -gt 10 && break
4457 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4460 $ac_path_SED_found && break 3
4465 if test -z "$ac_cv_path_SED"; then
4466 as_fn_error $? "no acceptable
sed could be found
in \
$PATH" "$LINENO" 5
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_SED" >&5
4474 $as_echo "$ac_cv_path_SED" >&6; }
4475 SED="$ac_cv_path_SED"
4478 test -z "$SED" && SED=sed
4479 Xsed="$SED -e 1s
/^X
//"
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for grep that handles long lines and
-e" >&5
4492 $as_echo_n "checking
for grep that handles long lines and
-e...
" >&6; }
4493 if ${ac_cv_path_GREP+:} false; then :
4494 $as_echo_n "(cached
) " >&6
4496 if test -z "$GREP"; then
4497 ac_path_GREP_found=false
4498 # Loop through the user's path and test for each of PROGNAME-LIST
4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4503 test -z "$as_dir" && as_dir=.
4504 for ac_prog in grep ggrep; do
4505 for ac_exec_ext in '' $ac_executable_extensions; do
4506 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4507 as_fn_executable_p "$ac_path_GREP" || continue
4508 # Check for GNU ac_path_GREP and select it if it is found.
4509 # Check for GNU $ac_path_GREP
4510 case `"$ac_path_GREP" --version 2>&1` in
4512 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4515 $as_echo_n 0123456789 >"conftest.
in"
4518 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4519 mv "conftest.tmp
" "conftest.
in"
4520 cp "conftest.
in" "conftest.
nl"
4521 $as_echo 'GREP' >> "conftest.
nl"
4522 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4523 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4524 as_fn_arith $ac_count + 1 && ac_count=$as_val
4525 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4526 # Best one so far, save it but keep looking for a better one
4527 ac_cv_path_GREP="$ac_path_GREP"
4528 ac_path_GREP_max=$ac_count
4530 # 10*(2^10) chars as input seems more than enough
4531 test $ac_count -gt 10 && break
4533 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4536 $ac_path_GREP_found && break 3
4541 if test -z "$ac_cv_path_GREP"; then
4542 as_fn_error $? "no acceptable
grep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
4545 ac_cv_path_GREP=$GREP
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_GREP" >&5
4550 $as_echo "$ac_cv_path_GREP" >&6; }
4551 GREP="$ac_cv_path_GREP"
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for egrep" >&5
4555 $as_echo_n "checking
for egrep...
" >&6; }
4556 if ${ac_cv_path_EGREP+:} false; then :
4557 $as_echo_n "(cached
) " >&6
4559 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4560 then ac_cv_path_EGREP="$GREP -E"
4562 if test -z "$EGREP"; then
4563 ac_path_EGREP_found=false
4564 # Loop through the user's path and test for each of PROGNAME-LIST
4565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4569 test -z "$as_dir" && as_dir=.
4570 for ac_prog in egrep; do
4571 for ac_exec_ext in '' $ac_executable_extensions; do
4572 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4573 as_fn_executable_p "$ac_path_EGREP" || continue
4574 # Check for GNU ac_path_EGREP and select it if it is found.
4575 # Check for GNU $ac_path_EGREP
4576 case `"$ac_path_EGREP" --version 2>&1` in
4578 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4581 $as_echo_n 0123456789 >"conftest.
in"
4584 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4585 mv "conftest.tmp
" "conftest.
in"
4586 cp "conftest.
in" "conftest.
nl"
4587 $as_echo 'EGREP' >> "conftest.
nl"
4588 "$ac_path_EGREP" 'EGREP$' < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4589 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4590 as_fn_arith $ac_count + 1 && ac_count=$as_val
4591 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4592 # Best one so far, save it but keep looking for a better one
4593 ac_cv_path_EGREP="$ac_path_EGREP"
4594 ac_path_EGREP_max=$ac_count
4596 # 10*(2^10) chars as input seems more than enough
4597 test $ac_count -gt 10 && break
4599 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4602 $ac_path_EGREP_found && break 3
4607 if test -z "$ac_cv_path_EGREP"; then
4608 as_fn_error $? "no acceptable
egrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
4611 ac_cv_path_EGREP=$EGREP
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_EGREP" >&5
4617 $as_echo "$ac_cv_path_EGREP" >&6; }
4618 EGREP="$ac_cv_path_EGREP"
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for fgrep
" >&5
4622 $as_echo_n "checking
for fgrep...
" >&6; }
4623 if ${ac_cv_path_FGREP+:} false; then :
4624 $as_echo_n "(cached
) " >&6
4626 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4627 then ac_cv_path_FGREP="$GREP -F"
4629 if test -z "$FGREP"; then
4630 ac_path_FGREP_found=false
4631 # Loop through the user's path and test for each of PROGNAME-LIST
4632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4633 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4636 test -z "$as_dir" && as_dir=.
4637 for ac_prog in fgrep; do
4638 for ac_exec_ext in '' $ac_executable_extensions; do
4639 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4640 as_fn_executable_p "$ac_path_FGREP" || continue
4641 # Check for GNU ac_path_FGREP and select it if it is found.
4642 # Check for GNU $ac_path_FGREP
4643 case `"$ac_path_FGREP" --version 2>&1` in
4645 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4648 $as_echo_n 0123456789 >"conftest.
in"
4651 cat "conftest.
in" "conftest.
in" >"conftest.tmp
"
4652 mv "conftest.tmp
" "conftest.
in"
4653 cp "conftest.
in" "conftest.
nl"
4654 $as_echo 'FGREP' >> "conftest.
nl"
4655 "$ac_path_FGREP" FGREP < "conftest.
nl" >"conftest.out
" 2>/dev/null || break
4656 diff "conftest.out
" "conftest.
nl" >/dev/null 2>&1 || break
4657 as_fn_arith $ac_count + 1 && ac_count=$as_val
4658 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4659 # Best one so far, save it but keep looking for a better one
4660 ac_cv_path_FGREP="$ac_path_FGREP"
4661 ac_path_FGREP_max=$ac_count
4663 # 10*(2^10) chars as input seems more than enough
4664 test $ac_count -gt 10 && break
4666 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4669 $ac_path_FGREP_found && break 3
4674 if test -z "$ac_cv_path_FGREP"; then
4675 as_fn_error $? "no acceptable fgrep could be found
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
" "$LINENO" 5
4678 ac_cv_path_FGREP=$FGREP
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_FGREP" >&5
4684 $as_echo "$ac_cv_path_FGREP" >&6; }
4685 FGREP="$ac_cv_path_FGREP"
4688 test -z "$GREP" && GREP=grep
4708 # Check whether --with-gnu-ld was given.
4709 if test "${with_gnu_ld+set}" = set; then :
4710 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
4716 if test yes = "$GCC"; then
4717 # Check if gcc -print-prog-name=ld gives a path.
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld used by
$CC" >&5
4719 $as_echo_n "checking
for ld used by
$CC...
" >&6; }
4722 # gcc leaves a trailing carriage return, which upsets mingw
4723 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4725 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4728 # Accept absolute paths.
4730 re_direlt='/[^/][^/]*/\.\./'
4731 # Canonicalize the pathname of ld
4732 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4733 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4734 ac_prog=`$ECHO $ac_prog| $SED "s
%$re_direlt%/%"`
4736 test -z "$LD" && LD=$ac_prog
4739 # If it fails, then pretend we aren't using GCC.
4743 # If it is relative, then search for the first ld in PATH.
4747 elif test yes = "$with_gnu_ld"; then
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for GNU ld
" >&5
4749 $as_echo_n "checking
for GNU ld...
" >&6; }
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for non-GNU ld
" >&5
4752 $as_echo_n "checking
for non-GNU ld...
" >&6; }
4754 if ${lt_cv_path_LD+:} false; then :
4755 $as_echo_n "(cached
) " >&6
4757 if test -z "$LD"; then
4758 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4759 for ac_dir in $PATH; do
4761 test -z "$ac_dir" && ac_dir=.
4762 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4763 lt_cv_path_LD=$ac_dir/$ac_prog
4764 # Check to see if the program is GNU ld. I'd rather use --version,
4765 # but apparently some variants of GNU ld only accept -v.
4766 # Break only if it was the GNU/non-GNU ld that we prefer.
4767 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4768 *GNU* | *'with BFD'*)
4769 test no != "$with_gnu_ld" && break
4772 test yes != "$with_gnu_ld" && break
4779 lt_cv_path_LD=$LD # Let the user override the test with a path.
4784 if test -n "$LD"; then
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
4786 $as_echo "$LD" >&6; }
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4789 $as_echo "no
" >&6; }
4791 test -z "$LD" && as_fn_error $? "no acceptable ld found
in \
$PATH" "$LINENO" 5
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if the linker
($LD) is GNU ld
" >&5
4793 $as_echo_n "checking
if the linker
($LD) is GNU ld...
" >&6; }
4794 if ${lt_cv_prog_gnu_ld+:} false; then :
4795 $as_echo_n "(cached
) " >&6
4797 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4798 case `$LD -v 2>&1 </dev/null` in
4799 *GNU* | *'with BFD'*)
4800 lt_cv_prog_gnu_ld=yes
4803 lt_cv_prog_gnu_ld=no
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_prog_gnu_ld" >&5
4808 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4809 with_gnu_ld=$lt_cv_prog_gnu_ld
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for BSD- or MS-compatible name lister
(nm
)" >&5
4820 $as_echo_n "checking
for BSD- or MS-compatible name lister
(nm
)...
" >&6; }
4821 if ${lt_cv_path_NM+:} false; then :
4822 $as_echo_n "(cached
) " >&6
4824 if test -n "$NM"; then
4825 # Let the user override the test.
4828 lt_nm_to_check=${ac_tool_prefix}nm
4829 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4830 lt_nm_to_check="$lt_nm_to_check nm
"
4832 for lt_tmp_nm in $lt_nm_to_check; do
4833 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
4834 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4836 test -z "$ac_dir" && ac_dir=.
4837 tmp_nm=$ac_dir/$lt_tmp_nm
4838 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
4839 # Check to see if the nm accepts a BSD-compat flag.
4840 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
4841 # nm: unknown option "B
" ignored
4842 # Tru64's nm complains that /dev/null is an invalid object file
4843 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
4845 mingw*) lt_bad_file=conftest.nm/nofile ;;
4846 *) lt_bad_file=/dev/null ;;
4848 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
4849 *$lt_bad_file* | *'Invalid file or object type'*)
4850 lt_cv_path_NM="$tmp_nm -B"
4854 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4856 lt_cv_path_NM="$tmp_nm -p"
4860 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4861 continue # so that we can try to find one that supports BSD flags
4870 : ${lt_cv_path_NM=no}
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_NM" >&5
4874 $as_echo "$lt_cv_path_NM" >&6; }
4875 if test no != "$lt_cv_path_NM"; then
4878 # Didn't find any BSD compatible name lister, look for dumpbin.
4879 if test -n "$DUMPBIN"; then :
4880 # Let the user override the test.
4882 if test -n "$ac_tool_prefix"; then
4883 for ac_prog in dumpbin "link
-dump"
4885 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4886 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
4888 $as_echo_n "checking
for $ac_word...
" >&6; }
4889 if ${ac_cv_prog_DUMPBIN+:} false; then :
4890 $as_echo_n "(cached
) " >&6
4892 if test -n "$DUMPBIN"; then
4893 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899 test -z "$as_dir" && as_dir=.
4900 for ac_exec_ext in '' $ac_executable_extensions; do
4901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4902 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4903 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
4912 DUMPBIN=$ac_cv_prog_DUMPBIN
4913 if test -n "$DUMPBIN"; then
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DUMPBIN" >&5
4915 $as_echo "$DUMPBIN" >&6; }
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4918 $as_echo "no
" >&6; }
4922 test -n "$DUMPBIN" && break
4925 if test -z "$DUMPBIN"; then
4926 ac_ct_DUMPBIN=$DUMPBIN
4927 for ac_prog in dumpbin "link
-dump"
4929 # Extract the first word of "$ac_prog", so it can be a program name with args.
4930 set dummy $ac_prog; ac_word=$2
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
4932 $as_echo_n "checking
for $ac_word...
" >&6; }
4933 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4934 $as_echo_n "(cached
) " >&6
4936 if test -n "$ac_ct_DUMPBIN"; then
4937 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 test -z "$as_dir" && as_dir=.
4944 for ac_exec_ext in '' $ac_executable_extensions; do
4945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4946 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4947 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
4956 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4957 if test -n "$ac_ct_DUMPBIN"; then
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DUMPBIN" >&5
4959 $as_echo "$ac_ct_DUMPBIN" >&6; }
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
4962 $as_echo "no
" >&6; }
4966 test -n "$ac_ct_DUMPBIN" && break
4969 if test "x
$ac_ct_DUMPBIN" = x; then
4972 case $cross_compiling:$ac_tool_warned in
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
4975 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
4976 ac_tool_warned=yes ;;
4978 DUMPBIN=$ac_ct_DUMPBIN
4982 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
4984 DUMPBIN="$DUMPBIN -symbols -headers"
4992 if test : != "$DUMPBIN"; then
4996 test -z "$NM" && NM=nm
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister
($NM) interface
" >&5
5004 $as_echo_n "checking the name lister
($NM) interface...
" >&6; }
5005 if ${lt_cv_nm_interface+:} false; then :
5006 $as_echo_n "(cached
) " >&6
5008 lt_cv_nm_interface="BSD nm
"
5009 echo "int some_variable
= 0;" > conftest.$ac_ext
5010 (eval echo "\"\
$as_me:$LINENO: $ac_compile\"" >&5)
5011 (eval "$ac_compile" 2>conftest.err)
5012 cat conftest.err >&5
5013 (eval echo "\"\
$as_me:$LINENO: $NM \\\"conftest.
$ac_objext\\\"\"" >&5)
5014 (eval "$NM \"conftest.
$ac_objext\"" 2>conftest.err > conftest.out)
5015 cat conftest.err >&5
5016 (eval echo "\"\
$as_me:$LINENO: output
\"" >&5)
5017 cat conftest.out >&5
5018 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5019 lt_cv_nm_interface="MS dumpbin
"
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_nm_interface" >&5
5024 $as_echo "$lt_cv_nm_interface" >&6; }
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
ln -s works
" >&5
5027 $as_echo_n "checking whether
ln -s works...
" >&6; }
5029 if test "$LN_S" = "ln -s"; then
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
5031 $as_echo "yes" >&6; }
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
, using
$LN_S" >&5
5034 $as_echo "no
, using
$LN_S" >&6; }
5037 # find the maximum length of command line arguments
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of
command line arguments
" >&5
5039 $as_echo_n "checking the maximum length of
command line arguments...
" >&6; }
5040 if ${lt_cv_sys_max_cmd_len+:} false; then :
5041 $as_echo_n "(cached
) " >&6
5048 # On DJGPP, this test can blow up pretty badly due to problems in libc
5049 # (any single argument exceeding 2000 bytes causes a buffer overrun
5050 # during glob expansion). Even if it were fixed, the result of this
5051 # check would be larger than it should be.
5052 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5056 # Under GNU Hurd, this test is not required because there is
5057 # no limit to the length of command line arguments.
5058 # Libtool will interpret -1 as no limit whatsoever
5059 lt_cv_sys_max_cmd_len=-1;
5062 cygwin* | mingw* | cegcc*)
5063 # On Win9x/ME, this test blows up -- it succeeds, but takes
5064 # about 5 minutes as the teststring grows exponentially.
5065 # Worse, since 9x/ME are not pre-emptively multitasking,
5066 # you end up with a "frozen
" computer, even though with patience
5067 # the test eventually succeeds (with a max line length of 256k).
5068 # Instead, let's just punt: use the minimum linelength reported by
5069 # all of the supported platforms: 8192 (on NT/2K/XP).
5070 lt_cv_sys_max_cmd_len=8192;
5074 # On MiNT this can take a long time and run out of memory.
5075 lt_cv_sys_max_cmd_len=8192;
5079 # On AmigaOS with pdksh, this test takes hours, literally.
5080 # So we just punt and use a minimum line length of 8192.
5081 lt_cv_sys_max_cmd_len=8192;
5084 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
5085 # This has been around since 386BSD, at least. Likely further.
5086 if test -x /sbin/sysctl; then
5087 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5088 elif test -x /usr/sbin/sysctl; then
5089 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5091 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5093 # And add a safety zone
5094 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5095 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5099 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5100 lt_cv_sys_max_cmd_len=196608
5104 # The test takes a long time on OS/2.
5105 lt_cv_sys_max_cmd_len=8192
5109 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5110 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5111 # nice to cause kernel panics so lets avoid the loop below.
5112 # First set a reasonable default.
5113 lt_cv_sys_max_cmd_len=16384
5115 if test -x /sbin/sysconfig; then
5116 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5117 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5122 lt_cv_sys_max_cmd_len=102400
5124 sysv5* | sco5v6* | sysv4.2uw2*)
5125 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5126 if test -n "$kargmax"; then
5127 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5129 lt_cv_sys_max_cmd_len=32768
5133 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5134 if test -n "$lt_cv_sys_max_cmd_len" && \
5135 test undefined != "$lt_cv_sys_max_cmd_len"; then
5136 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5137 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5139 # Make teststring a little bigger before we do anything with it.
5140 # a 1K string should be a reasonable start.
5141 for i in 1 2 3 4 5 6 7 8; do
5142 teststring=$teststring$teststring
5144 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5145 # If test is not a shell built-in, we'll probably end up computing a
5146 # maximum length that is only half of the actual maximum length, but
5148 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5149 = "X
$teststring$teststring"; } >/dev/null 2>&1 &&
5150 test 17 != "$i" # 1/2 MB should be enough
5153 teststring=$teststring$teststring
5155 # Only check the string length outside the loop.
5156 lt_cv_sys_max_cmd_len=`expr "X
$teststring" : ".
*" 2>&1`
5158 # Add a significant safety factor because C++ compilers can tack on
5159 # massive amounts of additional arguments before passing them to the
5160 # linker. It appears as though 1/2 is a usable value.
5161 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5168 if test -n "$lt_cv_sys_max_cmd_len"; then
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sys_max_cmd_len" >&5
5170 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: none
" >&5
5173 $as_echo "none
" >&6; }
5175 max_cmd_len=$lt_cv_sys_max_cmd_len
5186 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5196 # test EBCDIC or ASCII
5197 case `echo X|tr X '\101'` in
5198 A) # ASCII based system
5199 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5200 lt_SP2NL='tr \040 \012'
5201 lt_NL2SP='tr \015\012 \040\040'
5203 *) # EBCDIC based system
5204 lt_SP2NL='tr \100 \n'
5205 lt_NL2SP='tr \r\n \100\100'
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to
$host format
" >&5
5218 $as_echo_n "checking how to convert
$build file names to
$host format...
" >&6; }
5219 if ${lt_cv_to_host_file_cmd+:} false; then :
5220 $as_echo_n "(cached
) " >&6
5225 *-*-mingw* ) # actually msys
5226 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5229 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5231 * ) # otherwise, assume *nix
5232 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5238 *-*-mingw* ) # actually msys
5239 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5242 lt_cv_to_host_file_cmd=func_convert_file_noop
5244 * ) # otherwise, assume *nix
5245 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5249 * ) # unhandled hosts (and "normal
" native builds)
5250 lt_cv_to_host_file_cmd=func_convert_file_noop
5256 to_host_file_cmd=$lt_cv_to_host_file_cmd
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_host_file_cmd" >&5
5258 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to toolchain format
" >&5
5265 $as_echo_n "checking how to convert
$build file names to toolchain format...
" >&6; }
5266 if ${lt_cv_to_tool_file_cmd+:} false; then :
5267 $as_echo_n "(cached
) " >&6
5269 #assume ordinary cross tools, or native build.
5270 lt_cv_to_tool_file_cmd=func_convert_file_noop
5274 *-*-mingw* ) # actually msys
5275 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5283 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_tool_file_cmd" >&5
5285 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
5292 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5293 if ${lt_cv_ld_reload_flag+:} false; then :
5294 $as_echo_n "(cached
) " >&6
5296 lt_cv_ld_reload_flag='-r'
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
5299 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5300 reload_flag=$lt_cv_ld_reload_flag
5301 case $reload_flag in
5303 *) reload_flag=" $reload_flag" ;;
5305 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5307 cygwin* | mingw* | pw32* | cegcc*)
5308 if test yes != "$GCC"; then
5313 if test yes = "$GCC"; then
5314 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5316 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5329 if test -n "$ac_tool_prefix"; then
5330 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5331 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5333 $as_echo_n "checking
for $ac_word...
" >&6; }
5334 if ${ac_cv_prog_OBJDUMP+:} false; then :
5335 $as_echo_n "(cached
) " >&6
5337 if test -n "$OBJDUMP"; then
5338 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 test -z "$as_dir" && as_dir=.
5345 for ac_exec_ext in '' $ac_executable_extensions; do
5346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5347 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5348 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5357 OBJDUMP=$ac_cv_prog_OBJDUMP
5358 if test -n "$OBJDUMP"; then
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
5360 $as_echo "$OBJDUMP" >&6; }
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5363 $as_echo "no
" >&6; }
5368 if test -z "$ac_cv_prog_OBJDUMP"; then
5369 ac_ct_OBJDUMP=$OBJDUMP
5370 # Extract the first word of "objdump
", so it can be a program name with args.
5371 set dummy objdump; ac_word=$2
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5373 $as_echo_n "checking
for $ac_word...
" >&6; }
5374 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5375 $as_echo_n "(cached
) " >&6
5377 if test -n "$ac_ct_OBJDUMP"; then
5378 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5384 test -z "$as_dir" && as_dir=.
5385 for ac_exec_ext in '' $ac_executable_extensions; do
5386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5387 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5388 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5397 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5398 if test -n "$ac_ct_OBJDUMP"; then
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
5400 $as_echo "$ac_ct_OBJDUMP" >&6; }
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5403 $as_echo "no
" >&6; }
5406 if test "x
$ac_ct_OBJDUMP" = x; then
5409 case $cross_compiling:$ac_tool_warned in
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5412 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5413 ac_tool_warned=yes ;;
5415 OBJDUMP=$ac_ct_OBJDUMP
5418 OBJDUMP="$ac_cv_prog_OBJDUMP"
5421 test -z "$OBJDUMP" && OBJDUMP=objdump
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
5432 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5433 if ${lt_cv_deplibs_check_method+:} false; then :
5434 $as_echo_n "(cached
) " >&6
5436 lt_cv_file_magic_cmd='$MAGIC_CMD'
5437 lt_cv_file_magic_test_file=
5438 lt_cv_deplibs_check_method='unknown'
5439 # Need to set the preceding variable on all platforms that support
5440 # interlibrary dependencies.
5441 # 'none' -- dependencies not supported.
5442 # 'unknown' -- same as none, but documents that we really don't know.
5443 # 'pass_all' -- all dependencies passed with no checks.
5444 # 'test_compile' -- check by making test program.
5445 # 'file_magic [[regex]]' -- check by looking for files in library path
5446 # that responds to the $file_magic_cmd with a given extended regex.
5447 # If you have 'file' or equivalent on your system and you're not sure
5448 # whether 'pass_all' will *always* work, you probably want this one.
5452 lt_cv_deplibs_check_method=pass_all
5456 lt_cv_deplibs_check_method=pass_all
5460 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5461 lt_cv_file_magic_cmd='/usr/bin/file -L'
5462 lt_cv_file_magic_test_file=/shlib/libc.so
5466 # func_win32_libid is a shell function defined in ltmain.sh
5467 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5468 lt_cv_file_magic_cmd='func_win32_libid'
5472 # Base MSYS/MinGW do not provide the 'file' command needed by
5473 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5474 # unless we find 'file', for example because we are cross-compiling.
5475 if ( file / ) >/dev/null 2>&1; then
5476 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5477 lt_cv_file_magic_cmd='func_win32_libid'
5479 # Keep this pattern in sync with the one in func_win32_libid.
5480 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5481 lt_cv_file_magic_cmd='$OBJDUMP -f'
5486 # use the weaker test based on 'objdump'. See mingw*.
5487 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5488 lt_cv_file_magic_cmd='$OBJDUMP -f'
5491 darwin* | rhapsody*)
5492 lt_cv_deplibs_check_method=pass_all
5495 freebsd* | dragonfly*)
5496 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5499 # Not sure whether the presence of OpenBSD here was a mistake.
5500 # Let's accept both of them until this is cleared up.
5501 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5502 lt_cv_file_magic_cmd=/usr/bin/file
5503 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5507 lt_cv_deplibs_check_method=pass_all
5512 lt_cv_deplibs_check_method=pass_all
5515 hpux10.20* | hpux11*)
5516 lt_cv_file_magic_cmd=/usr/bin/file
5519 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5520 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5523 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]'
5524 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5527 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5528 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5534 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5535 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5538 irix5* | irix6* | nonstopux*)
5540 *-32|*"-32 ") libmagic=32-bit;;
5541 *-n32|*"-n32 ") libmagic=N32;;
5542 *-64|*"-64 ") libmagic=64-bit;;
5543 *) libmagic=never-match;;
5545 lt_cv_deplibs_check_method=pass_all
5548 # This must be glibc/ELF.
5549 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5550 lt_cv_deplibs_check_method=pass_all
5553 netbsd* | netbsdelf*-gnu)
5554 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5555 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5557 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5562 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5563 lt_cv_file_magic_cmd=/usr/bin/file
5564 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5568 lt_cv_deplibs_check_method=pass_all
5572 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
5573 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5575 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5579 osf3* | osf4* | osf5*)
5580 lt_cv_deplibs_check_method=pass_all
5584 lt_cv_deplibs_check_method=pass_all
5588 lt_cv_deplibs_check_method=pass_all
5591 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5592 lt_cv_deplibs_check_method=pass_all
5596 case $host_vendor in
5598 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]'
5599 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5602 lt_cv_deplibs_check_method=pass_all
5605 lt_cv_file_magic_cmd='/bin/file'
5606 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5609 lt_cv_file_magic_cmd='/bin/file'
5610 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5611 lt_cv_file_magic_test_file=/lib/libc.so
5614 lt_cv_deplibs_check_method=pass_all
5617 lt_cv_deplibs_check_method=pass_all
5623 lt_cv_deplibs_check_method=pass_all
5626 lt_cv_deplibs_check_method=pass_all
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
5632 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5636 if test "$build" = "$host"; then
5639 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5642 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s
/\
(..\
)/s\
/[\
1]\
/[\
1]\
/g
;/g
"`
5648 file_magic_cmd=$lt_cv_file_magic_cmd
5649 deplibs_check_method=$lt_cv_deplibs_check_method
5650 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5673 if test -n "$ac_tool_prefix"; then
5674 # Extract the first word of "${ac_tool_prefix}dlltool
", so it can be a program name with args.
5675 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5677 $as_echo_n "checking
for $ac_word...
" >&6; }
5678 if ${ac_cv_prog_DLLTOOL+:} false; then :
5679 $as_echo_n "(cached
) " >&6
5681 if test -n "$DLLTOOL"; then
5682 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5688 test -z "$as_dir" && as_dir=.
5689 for ac_exec_ext in '' $ac_executable_extensions; do
5690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5691 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool
"
5692 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5701 DLLTOOL=$ac_cv_prog_DLLTOOL
5702 if test -n "$DLLTOOL"; then
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
5704 $as_echo "$DLLTOOL" >&6; }
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5707 $as_echo "no
" >&6; }
5712 if test -z "$ac_cv_prog_DLLTOOL"; then
5713 ac_ct_DLLTOOL=$DLLTOOL
5714 # Extract the first word of "dlltool
", so it can be a program name with args.
5715 set dummy dlltool; ac_word=$2
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5717 $as_echo_n "checking
for $ac_word...
" >&6; }
5718 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5719 $as_echo_n "(cached
) " >&6
5721 if test -n "$ac_ct_DLLTOOL"; then
5722 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5728 test -z "$as_dir" && as_dir=.
5729 for ac_exec_ext in '' $ac_executable_extensions; do
5730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5731 ac_cv_prog_ac_ct_DLLTOOL="dlltool
"
5732 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5741 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5742 if test -n "$ac_ct_DLLTOOL"; then
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DLLTOOL" >&5
5744 $as_echo "$ac_ct_DLLTOOL" >&6; }
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5747 $as_echo "no
" >&6; }
5750 if test "x
$ac_ct_DLLTOOL" = x; then
5753 case $cross_compiling:$ac_tool_warned in
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5756 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5757 ac_tool_warned=yes ;;
5759 DLLTOOL=$ac_ct_DLLTOOL
5762 DLLTOOL="$ac_cv_prog_DLLTOOL"
5765 test -z "$DLLTOOL" && DLLTOOL=dlltool
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries
" >&5
5777 $as_echo_n "checking how to associate runtime and link libraries...
" >&6; }
5778 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5779 $as_echo_n "(cached
) " >&6
5781 lt_cv_sharedlib_from_linklib_cmd='unknown'
5784 cygwin* | mingw* | pw32* | cegcc*)
5785 # two different shell functions defined in ltmain.sh;
5786 # decide which one to use based on capabilities of $DLLTOOL
5787 case `$DLLTOOL --help 2>&1` in
5788 *--identify-strict*)
5789 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5792 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5797 # fallback: assume linklib IS sharedlib
5798 lt_cv_sharedlib_from_linklib_cmd=$ECHO
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sharedlib_from_linklib_cmd" >&5
5804 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5805 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5806 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5815 if test -n "$ac_tool_prefix"; then
5818 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5819 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5821 $as_echo_n "checking
for $ac_word...
" >&6; }
5822 if ${ac_cv_prog_AR+:} false; then :
5823 $as_echo_n "(cached
) " >&6
5825 if test -n "$AR"; then
5826 ac_cv_prog_AR="$AR" # Let the user override the test.
5828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832 test -z "$as_dir" && as_dir=.
5833 for ac_exec_ext in '' $ac_executable_extensions; do
5834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5835 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5836 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5846 if test -n "$AR"; then
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
5848 $as_echo "$AR" >&6; }
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5851 $as_echo "no
" >&6; }
5855 test -n "$AR" && break
5858 if test -z "$AR"; then
5862 # Extract the first word of "$ac_prog", so it can be a program name with args.
5863 set dummy $ac_prog; ac_word=$2
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5865 $as_echo_n "checking
for $ac_word...
" >&6; }
5866 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5867 $as_echo_n "(cached
) " >&6
5869 if test -n "$ac_ct_AR"; then
5870 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5876 test -z "$as_dir" && as_dir=.
5877 for ac_exec_ext in '' $ac_executable_extensions; do
5878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5879 ac_cv_prog_ac_ct_AR="$ac_prog"
5880 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5889 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5890 if test -n "$ac_ct_AR"; then
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
5892 $as_echo "$ac_ct_AR" >&6; }
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5895 $as_echo "no
" >&6; }
5899 test -n "$ac_ct_AR" && break
5902 if test "x
$ac_ct_AR" = x; then
5905 case $cross_compiling:$ac_tool_warned in
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5908 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5909 ac_tool_warned=yes ;;
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for archiver @FILE support
" >&5
5929 $as_echo_n "checking
for archiver @FILE support...
" >&6; }
5930 if ${lt_cv_ar_at_file+:} false; then :
5931 $as_echo_n "(cached
) " >&6
5934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5935 /* end confdefs.h. */
5945 if ac_fn_c_try_compile "$LINENO"; then :
5946 echo conftest.$ac_objext > conftest.lst
5947 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5948 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5949 (eval $lt_ar_try) 2>&5
5951 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5952 test $ac_status = 0; }
5953 if test 0 -eq "$ac_status"; then
5954 # Ensure the archiver fails upon bogus file names.
5955 rm -f conftest.$ac_objext libconftest.a
5956 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5957 (eval $lt_ar_try) 2>&5
5959 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5960 test $ac_status = 0; }
5961 if test 0 -ne "$ac_status"; then
5965 rm -f conftest.* libconftest.a
5968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ar_at_file" >&5
5972 $as_echo "$lt_cv_ar_at_file" >&6; }
5974 if test no = "$lt_cv_ar_at_file"; then
5977 archiver_list_spec=$lt_cv_ar_at_file
5986 if test -n "$ac_tool_prefix"; then
5987 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
5988 set dummy ${ac_tool_prefix}strip; ac_word=$2
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5990 $as_echo_n "checking
for $ac_word...
" >&6; }
5991 if ${ac_cv_prog_STRIP+:} false; then :
5992 $as_echo_n "(cached
) " >&6
5994 if test -n "$STRIP"; then
5995 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6001 test -z "$as_dir" && as_dir=.
6002 for ac_exec_ext in '' $ac_executable_extensions; do
6003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6004 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
6005 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6014 STRIP=$ac_cv_prog_STRIP
6015 if test -n "$STRIP"; then
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
6017 $as_echo "$STRIP" >&6; }
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6020 $as_echo "no
" >&6; }
6025 if test -z "$ac_cv_prog_STRIP"; then
6027 # Extract the first word of "strip
", so it can be a program name with args.
6028 set dummy strip; ac_word=$2
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6030 $as_echo_n "checking
for $ac_word...
" >&6; }
6031 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6032 $as_echo_n "(cached
) " >&6
6034 if test -n "$ac_ct_STRIP"; then
6035 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6041 test -z "$as_dir" && as_dir=.
6042 for ac_exec_ext in '' $ac_executable_extensions; do
6043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6044 ac_cv_prog_ac_ct_STRIP="strip
"
6045 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6054 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6055 if test -n "$ac_ct_STRIP"; then
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
6057 $as_echo "$ac_ct_STRIP" >&6; }
6059 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6060 $as_echo "no
" >&6; }
6063 if test "x
$ac_ct_STRIP" = x; then
6066 case $cross_compiling:$ac_tool_warned in
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6069 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6070 ac_tool_warned=yes ;;
6075 STRIP="$ac_cv_prog_STRIP"
6078 test -z "$STRIP" && STRIP=:
6085 if test -n "$ac_tool_prefix"; then
6086 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
6087 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6089 $as_echo_n "checking
for $ac_word...
" >&6; }
6090 if ${ac_cv_prog_RANLIB+:} false; then :
6091 $as_echo_n "(cached
) " >&6
6093 if test -n "$RANLIB"; then
6094 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100 test -z "$as_dir" && as_dir=.
6101 for ac_exec_ext in '' $ac_executable_extensions; do
6102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6103 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
6104 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6113 RANLIB=$ac_cv_prog_RANLIB
6114 if test -n "$RANLIB"; then
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
6116 $as_echo "$RANLIB" >&6; }
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6119 $as_echo "no
" >&6; }
6124 if test -z "$ac_cv_prog_RANLIB"; then
6125 ac_ct_RANLIB=$RANLIB
6126 # Extract the first word of "ranlib
", so it can be a program name with args.
6127 set dummy ranlib; ac_word=$2
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6129 $as_echo_n "checking
for $ac_word...
" >&6; }
6130 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6131 $as_echo_n "(cached
) " >&6
6133 if test -n "$ac_ct_RANLIB"; then
6134 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6140 test -z "$as_dir" && as_dir=.
6141 for ac_exec_ext in '' $ac_executable_extensions; do
6142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6143 ac_cv_prog_ac_ct_RANLIB="ranlib
"
6144 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6153 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6154 if test -n "$ac_ct_RANLIB"; then
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
6156 $as_echo "$ac_ct_RANLIB" >&6; }
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6159 $as_echo "no
" >&6; }
6162 if test "x
$ac_ct_RANLIB" = x; then
6165 case $cross_compiling:$ac_tool_warned in
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6168 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6169 ac_tool_warned=yes ;;
6171 RANLIB=$ac_ct_RANLIB
6174 RANLIB="$ac_cv_prog_RANLIB"
6177 test -z "$RANLIB" && RANLIB=:
6184 # Determine commands to create old-style static archives.
6185 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6186 old_postinstall_cmds='chmod 644 $oldlib'
6187 old_postuninstall_cmds=
6189 if test -n "$RANLIB"; then
6192 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$tool_oldlib"
6195 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$tool_oldlib"
6198 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$tool_oldlib"
6203 lock_old_archive_extraction=yes ;;
6205 lock_old_archive_extraction=no ;;
6246 # If no C compiler was specified, use CC.
6249 # If no C compiler flags were specified, use CFLAGS.
6250 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6252 # Allow CC to be a program name with arguments.
6256 # Check for command to grab the raw symbol name followed by C symbol from nm.
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
6258 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
6259 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6260 $as_echo_n "(cached
) " >&6
6263 # These are sane defaults that work on at least a few old systems.
6264 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6266 # Character class describing NM global symbol codes.
6267 symcode='[BCDEGRST]'
6269 # Regexp to match symbols that can be accessed directly from C.
6270 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6272 # Define system-specific variables.
6277 cygwin* | mingw* | pw32* | cegcc*)
6278 symcode='[ABCDGISTW]'
6281 if test ia64 = "$host_cpu"; then
6282 symcode='[ABCDEGRST]'
6286 symcode='[BCDEGRST]'
6289 symcode='[BCDEGQRST]'
6300 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6308 # If we're using GNU nm, then use its standard symbol codes.
6309 case `$NM -V 2>&1` in
6310 *GNU* | *'with BFD'*)
6311 symcode='[ABCDGIRSTW]' ;;
6314 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6315 # Gets list of data symbols to import.
6316 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
6317 # Adjust the below global symbol transforms to fixup imported variables.
6318 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6319 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6320 lt_c_name_lib_hook="\
6321 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6322 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6324 # Disable hooks by default.
6325 lt_cv_sys_global_symbol_to_import=
6331 # Transform an extracted symbol line into a proper C declaration.
6332 # Some systems (esp. on ia64) link data and code symbols differently,
6333 # so use this general approach.
6334 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
6336 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6337 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
6339 # Transform an extracted symbol line into symbol name and symbol address
6340 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
6342 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6343 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
6345 # Transform an extracted symbol line into symbol name with lib prefix and
6347 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
6348 $lt_c_name_lib_hook\
6349 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
6350 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
6351 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
6353 # Handle CRLF in mingw tool chain
6357 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6361 # Try without a prefix underscore, then with it.
6362 for ac_symprfx in "" "_
"; do
6364 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6365 symxfrm="\\1 $ac_symprfx\\2 \\2"
6367 # Write the raw and C identifiers.
6368 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6369 # Fake it for dumpbin and say T for any non-static function,
6370 # D for any global variable and I for any imported variable.
6371 # Also find C++ and __fastcall symbols from MSVC++,
6372 # which start with @ or ?.
6373 lt_cv_sys_global_symbol_pipe="$AWK '"\
6374 " {last_section=section; section=\$ 3};"\
6375 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6376 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6377 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
6378 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
6379 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
6380 " \$ 0!~/External *\|/{next};"\
6381 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6382 " {if(hide[section]) next};"\
6383 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
6384 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
6385 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
6386 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
6387 " ' prfx
=^
$ac_symprfx"
6389 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6391 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe |
sed '/ __gnu_lto/d'"
6393 # Check to see that the pipe works correctly.
6397 cat > conftest.$ac_ext <<_LT_EOF
6402 void nm_test_func(void);
6403 void nm_test_func(void){}
6407 int main(){nm_test_var='a';nm_test_func();return(0);}
6410 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6411 (eval $ac_compile) 2>&5
6413 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6414 test $ac_status = 0; }; then
6415 # Now try to grab the symbols.
6417 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
6418 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6420 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6421 test $ac_status = 0; } && test -s "$nlist"; then
6422 # Try sorting and uniquifying the output.
6423 if sort "$nlist" | uniq > "$nlist"T; then
6424 mv -f "$nlist"T "$nlist"
6429 # Make sure that we snagged all the symbols we need.
6430 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6431 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6432 cat <<_LT_EOF > conftest.$ac_ext
6433 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6434 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
6435 /* DATA imports from DLLs on WIN32 can't be const, because runtime
6436 relocations are performed -- see ld's documentation on pseudo-relocs. */
6437 # define LT_DLSYM_CONST
6438 #elif defined __osf__
6439 /* This system does not cope well with relocations in const data. */
6440 # define LT_DLSYM_CONST
6442 # define LT_DLSYM_CONST const
6450 # Now generate the symbol file.
6451 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6453 cat <<_LT_EOF >> conftest.$ac_ext
6455 /* The mapping between symbol names and symbols. */
6456 LT_DLSYM_CONST struct {
6460 lt__PROGRAM__LTX_preloaded_symbols[] =
6462 { "@PROGRAM@
", (void *) 0 },
6464 $SED "s
/^
$symcode$symcode* .
* \
(.
*\
)$
/ {\"\
1\", (void
*) \
&\
1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6465 cat <<\_LT_EOF >> conftest.$ac_ext
6469 /* This works around a problem in FreeBSD linker */
6470 #ifdef FREEBSD_WORKAROUND
6471 static const void *lt_preloaded_setup() {
6472 return lt__PROGRAM__LTX_preloaded_symbols;
6480 # Now try linking the two files.
6481 mv conftest.$ac_objext conftstm.$ac_objext
6482 lt_globsym_save_LIBS=$LIBS
6483 lt_globsym_save_CFLAGS=$CFLAGS
6484 LIBS=conftstm.$ac_objext
6485 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6486 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6487 (eval $ac_link) 2>&5
6489 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6490 test $ac_status = 0; } && test -s conftest$ac_exeext; then
6493 LIBS=$lt_globsym_save_LIBS
6494 CFLAGS=$lt_globsym_save_CFLAGS
6496 echo "cannot
find nm_test_func
in $nlist" >&5
6499 echo "cannot
find nm_test_var
in $nlist" >&5
6502 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
6505 echo "$progname: failed program was
:" >&5
6506 cat conftest.$ac_ext >&5
6508 rm -rf conftest* conftst*
6510 # Do not use the global_symbol_pipe unless it works.
6511 if test yes = "$pipe_works"; then
6514 lt_cv_sys_global_symbol_pipe=
6520 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6521 lt_cv_sys_global_symbol_to_cdecl=
6523 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
6525 $as_echo "failed
" >&6; }
6527 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
6528 $as_echo "ok
" >&6; }
6531 # Response file support.
6532 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6533 nm_file_list_spec='@'
6534 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6535 nm_file_list_spec='@'
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for sysroot
" >&5
6575 $as_echo_n "checking
for sysroot...
" >&6; }
6577 # Check whether --with-sysroot was given.
6578 if test "${with_sysroot+set}" = set; then :
6579 withval=$with_sysroot;
6586 case $with_sysroot in #(
6588 if test yes = "$GCC"; then
6589 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6593 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $with_sysroot" >&5
6599 $as_echo "$with_sysroot" >&6; }
6600 as_fn_error $? "The sysroot must be an absolute path.
" "$LINENO" 5
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${lt_sysroot:-no}" >&5
6605 $as_echo "${lt_sysroot:-no}" >&6; }
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for a working
dd" >&5
6612 $as_echo_n "checking
for a working
dd...
" >&6; }
6613 if ${ac_cv_path_lt_DD+:} false; then :
6614 $as_echo_n "(cached
) " >&6
6616 printf 0123456789abcdef0123456789abcdef >conftest.i
6617 cat conftest.i conftest.i >conftest2.i
6619 if test -z "$lt_DD"; then
6620 ac_path_lt_DD_found=false
6621 # Loop through the user's path and test for each of PROGNAME-LIST
6622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6626 test -z "$as_dir" && as_dir=.
6627 for ac_prog in dd; do
6628 for ac_exec_ext in '' $ac_executable_extensions; do
6629 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
6630 as_fn_executable_p "$ac_path_lt_DD" || continue
6631 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6632 cmp -s conftest.i conftest.out \
6633 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
6635 $ac_path_lt_DD_found && break 3
6640 if test -z "$ac_cv_path_lt_DD"; then
6644 ac_cv_path_lt_DD=$lt_DD
6647 rm -f conftest.i conftest2.i conftest.out
6649 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_lt_DD" >&5
6650 $as_echo "$ac_cv_path_lt_DD" >&6; }
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes
" >&5
6654 $as_echo_n "checking how to truncate binary pipes...
" >&6; }
6655 if ${lt_cv_truncate_bin+:} false; then :
6656 $as_echo_n "(cached
) " >&6
6658 printf 0123456789abcdef0123456789abcdef >conftest.i
6659 cat conftest.i conftest.i >conftest2.i
6661 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
6662 cmp -s conftest.i conftest.out \
6663 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs
=4096 count
=1"
6665 rm -f conftest.i conftest2.i conftest.out
6666 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q
"
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_truncate_bin" >&5
6669 $as_echo "$lt_cv_truncate_bin" >&6; }
6677 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
6680 for cc_temp in $*""; do
6682 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6683 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6688 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s
%.
*/%%; s
%^
$host_alias-%%"`
6691 # Check whether --enable-libtool-lock was given.
6692 if test "${enable_libtool_lock+set}" = set; then :
6693 enableval=$enable_libtool_lock;
6696 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
6698 # Some flags need to be propagated to the compiler or linker for good
6702 # Find out what ABI is being produced by ac_compile, and set mode
6703 # options accordingly.
6704 echo 'int i;' > conftest.$ac_ext
6705 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6706 (eval $ac_compile) 2>&5
6708 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6709 test $ac_status = 0; }; then
6710 case `/usr/bin/file conftest.$ac_objext` in
6722 # Find out what ABI is being produced by ac_compile, and set linker
6723 # options accordingly.
6724 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6725 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6726 (eval $ac_compile) 2>&5
6728 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6729 test $ac_status = 0; }; then
6730 if test yes = "$lt_cv_prog_gnu_ld"; then
6731 case `/usr/bin/file conftest.$ac_objext` in
6733 LD="${LD-ld} -melf32bsmip"
6736 LD="${LD-ld} -melf32bmipn32"
6739 LD="${LD-ld} -melf64bmip"
6743 case `/usr/bin/file conftest.$ac_objext` in
6760 # Find out what ABI is being produced by ac_compile, and set linker
6761 # options accordingly.
6762 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6763 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6764 (eval $ac_compile) 2>&5
6766 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6767 test $ac_status = 0; }; then
6769 case `/usr/bin/file conftest.$ac_objext` in
6777 case `/usr/bin/file conftest.$ac_objext` in
6779 emul="${emul}btsmip
"
6782 emul="${emul}ltsmip
"
6785 case `/usr/bin/file conftest.$ac_objext` in
6790 LD="${LD-ld} -m $emul"
6795 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6796 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6797 # Find out what ABI is being produced by ac_compile, and set linker
6798 # options accordingly. Note that the listed cases only cover the
6799 # situations where additional linker options are needed (such as when
6800 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
6801 # vice versa); the common cases where no linker options are needed do
6802 # not appear in the list.
6803 echo 'int i;' > conftest.$ac_ext
6804 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6805 (eval $ac_compile) 2>&5
6807 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6808 test $ac_status = 0; }; then
6809 case `/usr/bin/file conftest.o` in
6812 x86_64-*kfreebsd*-gnu)
6813 LD="${LD-ld} -m elf_i386_fbsd
"
6816 case `/usr/bin/file conftest.o` in
6818 LD="${LD-ld} -m elf32_x86_64
"
6821 LD="${LD-ld} -m elf_i386
"
6825 powerpc64le-*linux*)
6826 LD="${LD-ld} -m elf32lppclinux
"
6829 LD="${LD-ld} -m elf32ppclinux
"
6832 LD="${LD-ld} -m elf_s390
"
6835 LD="${LD-ld} -m elf32_sparc
"
6841 x86_64-*kfreebsd*-gnu)
6842 LD="${LD-ld} -m elf_x86_64_fbsd
"
6845 LD="${LD-ld} -m elf_x86_64
"
6848 LD="${LD-ld} -m elf64lppc
"
6851 LD="${LD-ld} -m elf64ppc
"
6853 s390*-*linux*|s390*-*tpf*)
6854 LD="${LD-ld} -m elf64_s390
"
6857 LD="${LD-ld} -m elf64_sparc
"
6867 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6869 CFLAGS="$CFLAGS -belf"
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
6871 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6872 if ${lt_cv_cc_needs_belf+:} false; then :
6873 $as_echo_n "(cached
) " >&6
6876 ac_cpp='$CPP $CPPFLAGS'
6877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6882 /* end confdefs.h. */
6892 if ac_fn_c_try_link "$LINENO"; then :
6893 lt_cv_cc_needs_belf=yes
6895 lt_cv_cc_needs_belf=no
6897 rm -f core conftest.err conftest.$ac_objext \
6898 conftest$ac_exeext conftest.$ac_ext
6900 ac_cpp='$CPP $CPPFLAGS'
6901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6906 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
6907 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6908 if test yes != "$lt_cv_cc_needs_belf"; then
6909 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6914 # Find out what ABI is being produced by ac_compile, and set linker
6915 # options accordingly.
6916 echo 'int i;' > conftest.$ac_ext
6917 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6918 (eval $ac_compile) 2>&5
6920 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6921 test $ac_status = 0; }; then
6922 case `/usr/bin/file conftest.o` in
6924 case $lt_cv_prog_gnu_ld in
6927 i?86-*-solaris*|x86_64-*-solaris*)
6928 LD="${LD-ld} -m elf_x86_64
"
6931 LD="${LD-ld} -m elf64_sparc
"
6934 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6935 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6940 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6952 need_locks=$enable_libtool_lock
6954 if test -n "$ac_tool_prefix"; then
6955 # Extract the first word of "${ac_tool_prefix}mt
", so it can be a program name with args.
6956 set dummy ${ac_tool_prefix}mt; ac_word=$2
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6958 $as_echo_n "checking
for $ac_word...
" >&6; }
6959 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6960 $as_echo_n "(cached
) " >&6
6962 if test -n "$MANIFEST_TOOL"; then
6963 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6969 test -z "$as_dir" && as_dir=.
6970 for ac_exec_ext in '' $ac_executable_extensions; do
6971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6972 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt
"
6973 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6982 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6983 if test -n "$MANIFEST_TOOL"; then
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MANIFEST_TOOL" >&5
6985 $as_echo "$MANIFEST_TOOL" >&6; }
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6988 $as_echo "no
" >&6; }
6993 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6994 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6995 # Extract the first word of "mt
", so it can be a program name with args.
6996 set dummy mt; ac_word=$2
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6998 $as_echo_n "checking
for $ac_word...
" >&6; }
6999 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7000 $as_echo_n "(cached
) " >&6
7002 if test -n "$ac_ct_MANIFEST_TOOL"; then
7003 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009 test -z "$as_dir" && as_dir=.
7010 for ac_exec_ext in '' $ac_executable_extensions; do
7011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7012 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt
"
7013 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7022 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7023 if test -n "$ac_ct_MANIFEST_TOOL"; then
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_MANIFEST_TOOL" >&5
7025 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7028 $as_echo "no
" >&6; }
7031 if test "x
$ac_ct_MANIFEST_TOOL" = x; then
7034 case $cross_compiling:$ac_tool_warned in
7036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7037 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7038 ac_tool_warned=yes ;;
7040 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7043 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7046 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $MANIFEST_TOOL is a manifest tool
" >&5
7048 $as_echo_n "checking
if $MANIFEST_TOOL is a manifest tool...
" >&6; }
7049 if ${lt_cv_path_mainfest_tool+:} false; then :
7050 $as_echo_n "(cached
) " >&6
7052 lt_cv_path_mainfest_tool=no
7053 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7054 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7055 cat conftest.err >&5
7056 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7057 lt_cv_path_mainfest_tool=yes
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_mainfest_tool" >&5
7062 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7063 if test yes != "$lt_cv_path_mainfest_tool"; then
7073 rhapsody* | darwin*)
7074 if test -n "$ac_tool_prefix"; then
7075 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
7076 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7078 $as_echo_n "checking
for $ac_word...
" >&6; }
7079 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7080 $as_echo_n "(cached
) " >&6
7082 if test -n "$DSYMUTIL"; then
7083 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7089 test -z "$as_dir" && as_dir=.
7090 for ac_exec_ext in '' $ac_executable_extensions; do
7091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7092 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
7093 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7102 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7103 if test -n "$DSYMUTIL"; then
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
7105 $as_echo "$DSYMUTIL" >&6; }
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7108 $as_echo "no
" >&6; }
7113 if test -z "$ac_cv_prog_DSYMUTIL"; then
7114 ac_ct_DSYMUTIL=$DSYMUTIL
7115 # Extract the first word of "dsymutil
", so it can be a program name with args.
7116 set dummy dsymutil; ac_word=$2
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7118 $as_echo_n "checking
for $ac_word...
" >&6; }
7119 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7120 $as_echo_n "(cached
) " >&6
7122 if test -n "$ac_ct_DSYMUTIL"; then
7123 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129 test -z "$as_dir" && as_dir=.
7130 for ac_exec_ext in '' $ac_executable_extensions; do
7131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7132 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
7133 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7142 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7143 if test -n "$ac_ct_DSYMUTIL"; then
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
7145 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7148 $as_echo "no
" >&6; }
7151 if test "x
$ac_ct_DSYMUTIL" = x; then
7154 case $cross_compiling:$ac_tool_warned in
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7157 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7158 ac_tool_warned=yes ;;
7160 DSYMUTIL=$ac_ct_DSYMUTIL
7163 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7166 if test -n "$ac_tool_prefix"; then
7167 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
7168 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7170 $as_echo_n "checking
for $ac_word...
" >&6; }
7171 if ${ac_cv_prog_NMEDIT+:} false; then :
7172 $as_echo_n "(cached
) " >&6
7174 if test -n "$NMEDIT"; then
7175 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181 test -z "$as_dir" && as_dir=.
7182 for ac_exec_ext in '' $ac_executable_extensions; do
7183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7184 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
7185 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7194 NMEDIT=$ac_cv_prog_NMEDIT
7195 if test -n "$NMEDIT"; then
7196 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
7197 $as_echo "$NMEDIT" >&6; }
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7200 $as_echo "no
" >&6; }
7205 if test -z "$ac_cv_prog_NMEDIT"; then
7206 ac_ct_NMEDIT=$NMEDIT
7207 # Extract the first word of "nmedit
", so it can be a program name with args.
7208 set dummy nmedit; ac_word=$2
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7210 $as_echo_n "checking
for $ac_word...
" >&6; }
7211 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7212 $as_echo_n "(cached
) " >&6
7214 if test -n "$ac_ct_NMEDIT"; then
7215 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221 test -z "$as_dir" && as_dir=.
7222 for ac_exec_ext in '' $ac_executable_extensions; do
7223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7224 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
7225 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7234 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7235 if test -n "$ac_ct_NMEDIT"; then
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
7237 $as_echo "$ac_ct_NMEDIT" >&6; }
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7240 $as_echo "no
" >&6; }
7243 if test "x
$ac_ct_NMEDIT" = x; then
7246 case $cross_compiling:$ac_tool_warned in
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7249 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7250 ac_tool_warned=yes ;;
7252 NMEDIT=$ac_ct_NMEDIT
7255 NMEDIT="$ac_cv_prog_NMEDIT"
7258 if test -n "$ac_tool_prefix"; then
7259 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
7260 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7262 $as_echo_n "checking
for $ac_word...
" >&6; }
7263 if ${ac_cv_prog_LIPO+:} false; then :
7264 $as_echo_n "(cached
) " >&6
7266 if test -n "$LIPO"; then
7267 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 test -z "$as_dir" && as_dir=.
7274 for ac_exec_ext in '' $ac_executable_extensions; do
7275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7276 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
7277 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7286 LIPO=$ac_cv_prog_LIPO
7287 if test -n "$LIPO"; then
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
7289 $as_echo "$LIPO" >&6; }
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7292 $as_echo "no
" >&6; }
7297 if test -z "$ac_cv_prog_LIPO"; then
7299 # Extract the first word of "lipo
", so it can be a program name with args.
7300 set dummy lipo; ac_word=$2
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7302 $as_echo_n "checking
for $ac_word...
" >&6; }
7303 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7304 $as_echo_n "(cached
) " >&6
7306 if test -n "$ac_ct_LIPO"; then
7307 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313 test -z "$as_dir" && as_dir=.
7314 for ac_exec_ext in '' $ac_executable_extensions; do
7315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7316 ac_cv_prog_ac_ct_LIPO="lipo
"
7317 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7326 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7327 if test -n "$ac_ct_LIPO"; then
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
7329 $as_echo "$ac_ct_LIPO" >&6; }
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7332 $as_echo "no
" >&6; }
7335 if test "x
$ac_ct_LIPO" = x; then
7338 case $cross_compiling:$ac_tool_warned in
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7341 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7342 ac_tool_warned=yes ;;
7347 LIPO="$ac_cv_prog_LIPO"
7350 if test -n "$ac_tool_prefix"; then
7351 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7352 set dummy ${ac_tool_prefix}otool; ac_word=$2
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7354 $as_echo_n "checking
for $ac_word...
" >&6; }
7355 if ${ac_cv_prog_OTOOL+:} false; then :
7356 $as_echo_n "(cached
) " >&6
7358 if test -n "$OTOOL"; then
7359 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7365 test -z "$as_dir" && as_dir=.
7366 for ac_exec_ext in '' $ac_executable_extensions; do
7367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7368 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7369 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7378 OTOOL=$ac_cv_prog_OTOOL
7379 if test -n "$OTOOL"; then
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7381 $as_echo "$OTOOL" >&6; }
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7384 $as_echo "no
" >&6; }
7389 if test -z "$ac_cv_prog_OTOOL"; then
7391 # Extract the first word of "otool
", so it can be a program name with args.
7392 set dummy otool; ac_word=$2
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7394 $as_echo_n "checking
for $ac_word...
" >&6; }
7395 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7396 $as_echo_n "(cached
) " >&6
7398 if test -n "$ac_ct_OTOOL"; then
7399 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405 test -z "$as_dir" && as_dir=.
7406 for ac_exec_ext in '' $ac_executable_extensions; do
7407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7408 ac_cv_prog_ac_ct_OTOOL="otool
"
7409 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7418 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7419 if test -n "$ac_ct_OTOOL"; then
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7421 $as_echo "$ac_ct_OTOOL" >&6; }
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7424 $as_echo "no
" >&6; }
7427 if test "x
$ac_ct_OTOOL" = x; then
7430 case $cross_compiling:$ac_tool_warned in
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7433 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7434 ac_tool_warned=yes ;;
7439 OTOOL="$ac_cv_prog_OTOOL"
7442 if test -n "$ac_tool_prefix"; then
7443 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7444 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7446 $as_echo_n "checking
for $ac_word...
" >&6; }
7447 if ${ac_cv_prog_OTOOL64+:} false; then :
7448 $as_echo_n "(cached
) " >&6
7450 if test -n "$OTOOL64"; then
7451 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7457 test -z "$as_dir" && as_dir=.
7458 for ac_exec_ext in '' $ac_executable_extensions; do
7459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7460 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7461 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7470 OTOOL64=$ac_cv_prog_OTOOL64
7471 if test -n "$OTOOL64"; then
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7473 $as_echo "$OTOOL64" >&6; }
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7476 $as_echo "no
" >&6; }
7481 if test -z "$ac_cv_prog_OTOOL64"; then
7482 ac_ct_OTOOL64=$OTOOL64
7483 # Extract the first word of "otool64
", so it can be a program name with args.
7484 set dummy otool64; ac_word=$2
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7486 $as_echo_n "checking
for $ac_word...
" >&6; }
7487 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7488 $as_echo_n "(cached
) " >&6
7490 if test -n "$ac_ct_OTOOL64"; then
7491 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7497 test -z "$as_dir" && as_dir=.
7498 for ac_exec_ext in '' $ac_executable_extensions; do
7499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7500 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7501 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7510 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7511 if test -n "$ac_ct_OTOOL64"; then
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7513 $as_echo "$ac_ct_OTOOL64" >&6; }
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7516 $as_echo "no
" >&6; }
7519 if test "x
$ac_ct_OTOOL64" = x; then
7522 case $cross_compiling:$ac_tool_warned in
7524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7525 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7526 ac_tool_warned=yes ;;
7528 OTOOL64=$ac_ct_OTOOL64
7531 OTOOL64="$ac_cv_prog_OTOOL64"
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
7561 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
7562 if ${lt_cv_apple_cc_single_mod+:} false; then :
7563 $as_echo_n "(cached
) " >&6
7565 lt_cv_apple_cc_single_mod=no
7566 if test -z "$LT_MULTI_MODULE"; then
7567 # By default we will add the -single_module flag. You can override
7568 # by either setting the environment variable LT_MULTI_MODULE
7569 # non-empty at configure time, or by adding -multi_module to the
7571 rm -rf libconftest.dylib*
7572 echo "int foo
(void
){return 1;}" > conftest.c
7573 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7574 -dynamiclib -Wl,-single_module conftest.c
" >&5
7575 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7576 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7578 # If there is a non-empty error log, and "single_module
"
7579 # appears in it, assume the flag caused a linker warning
7580 if test -s conftest.err && $GREP single_module conftest.err; then
7581 cat conftest.err >&5
7582 # Otherwise, if the output was created with a 0 exit code from
7583 # the compiler, it worked.
7584 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
7585 lt_cv_apple_cc_single_mod=yes
7587 cat conftest.err >&5
7589 rm -rf libconftest.dylib*
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
7594 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
7597 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
7598 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7599 $as_echo_n "(cached
) " >&6
7601 lt_cv_ld_exported_symbols_list=no
7602 save_LDFLAGS=$LDFLAGS
7603 echo "_main
" > conftest.sym
7604 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
7605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7606 /* end confdefs.h. */
7616 if ac_fn_c_try_link "$LINENO"; then :
7617 lt_cv_ld_exported_symbols_list=yes
7619 lt_cv_ld_exported_symbols_list=no
7621 rm -f core conftest.err conftest.$ac_objext \
7622 conftest$ac_exeext conftest.$ac_ext
7623 LDFLAGS=$save_LDFLAGS
7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
7627 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
7630 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
7631 if ${lt_cv_ld_force_load+:} false; then :
7632 $as_echo_n "(cached
) " >&6
7634 lt_cv_ld_force_load=no
7635 cat > conftest.c << _LT_EOF
7636 int forced_loaded() { return 2;}
7638 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
7639 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7640 echo "$AR cru libconftest.a conftest.o
" >&5
7641 $AR cru libconftest.a conftest.o 2>&5
7642 echo "$RANLIB libconftest.a
" >&5
7643 $RANLIB libconftest.a 2>&5
7644 cat > conftest.c << _LT_EOF
7645 int main() { return 0;}
7647 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
7648 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7650 if test -s conftest.err && $GREP force_load conftest.err; then
7651 cat conftest.err >&5
7652 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
7653 lt_cv_ld_force_load=yes
7655 cat conftest.err >&5
7657 rm -f conftest.err libconftest.a conftest conftest.c
7658 rm -rf conftest.dSYM
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
7662 $as_echo "$lt_cv_ld_force_load" >&6; }
7664 rhapsody* | darwin1.[012])
7665 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
7667 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7668 darwin*) # darwin 5.x on
7669 # if running on 10.5 or later, the deployment target defaults
7670 # to the OS version, if on x86, and 10.4, the deployment
7671 # target defaults to 10.4. Don't you love it?
7672 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7673 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7674 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7676 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
7678 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
7682 if test yes = "$lt_cv_apple_cc_single_mod"; then
7683 _lt_dar_single_mod='$single_module'
7685 if test yes = "$lt_cv_ld_exported_symbols_list"; then
7686 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
7688 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
7690 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
7691 _lt_dsymutil='~$DSYMUTIL $lib || :'
7698 # func_munge_path_list VARIABLE PATH
7699 # -----------------------------------
7700 # VARIABLE is name of variable containing _space_ separated list of
7701 # directories to be munged by the contents of PATH, which is string
7704 # string "DIR
[ DIR
]" will be prepended to VARIABLE
7706 # string "DIR
[ DIR
]" will be appended to VARIABLE
7707 # "DIRP
[:DIRP
]::[DIRA
:]DIRA
"
7708 # string "DIRP
[ DIRP
]" will be prepended to VARIABLE and string
7709 # "DIRA
[ DIRA
]" will be appended to VARIABLE
7711 # VARIABLE will be replaced by "DIR
[ DIR
]"
7712 func_munge_path_list ()
7718 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
7721 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
7724 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
7725 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
7728 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
7734 ac_cpp='$CPP $CPPFLAGS'
7735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
7739 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
7740 # On Suns, sometimes $CPP names a directory.
7741 if test -n "$CPP" && test -d "$CPP"; then
7744 if test -z "$CPP"; then
7745 if ${ac_cv_prog_CPP+:} false; then :
7746 $as_echo_n "(cached
) " >&6
7748 # Double quotes because CPP needs to be expanded
7749 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
7752 for ac_c_preproc_warn_flag in '' yes
7754 # Use a header file that comes with gcc, so configuring glibc
7755 # with a fresh cross-compiler works.
7756 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7757 # <limits.h> exists even on freestanding compilers.
7758 # On the NeXT, cc -E runs the code through the compiler's parser,
7759 # not just through cpp. "Syntax error
" is here to catch this case.
7760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7761 /* end confdefs.h. */
7763 # include <limits.h>
7765 # include <assert.h>
7769 if ac_fn_c_try_cpp "$LINENO"; then :
7772 # Broken: fails on valid input.
7775 rm -f conftest.err conftest.i conftest.$ac_ext
7777 # OK, works on sane cases. Now check whether nonexistent headers
7778 # can be detected and how.
7779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7780 /* end confdefs.h. */
7781 #include <ac_nonexistent.h>
7783 if ac_fn_c_try_cpp "$LINENO"; then :
7784 # Broken: success on invalid input.
7787 # Passes both tests.
7791 rm -f conftest.err conftest.i conftest.$ac_ext
7794 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7795 rm -f conftest.i conftest.err conftest.$ac_ext
7796 if $ac_preproc_ok; then :
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
7809 $as_echo "$CPP" >&6; }
7811 for ac_c_preproc_warn_flag in '' yes
7813 # Use a header file that comes with gcc, so configuring glibc
7814 # with a fresh cross-compiler works.
7815 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7816 # <limits.h> exists even on freestanding compilers.
7817 # On the NeXT, cc -E runs the code through the compiler's parser,
7818 # not just through cpp. "Syntax error
" is here to catch this case.
7819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7820 /* end confdefs.h. */
7822 # include <limits.h>
7824 # include <assert.h>
7828 if ac_fn_c_try_cpp "$LINENO"; then :
7831 # Broken: fails on valid input.
7834 rm -f conftest.err conftest.i conftest.$ac_ext
7836 # OK, works on sane cases. Now check whether nonexistent headers
7837 # can be detected and how.
7838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7839 /* end confdefs.h. */
7840 #include <ac_nonexistent.h>
7842 if ac_fn_c_try_cpp "$LINENO"; then :
7843 # Broken: success on invalid input.
7846 # Passes both tests.
7850 rm -f conftest.err conftest.i conftest.$ac_ext
7853 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7854 rm -f conftest.i conftest.err conftest.$ac_ext
7855 if $ac_preproc_ok; then :
7858 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
7859 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7860 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7861 See \`config.log' for more details
" "$LINENO" 5; }
7865 ac_cpp='$CPP $CPPFLAGS'
7866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
7872 $as_echo_n "checking
for ANSI C header files...
" >&6; }
7873 if ${ac_cv_header_stdc+:} false; then :
7874 $as_echo_n "(cached
) " >&6
7876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h. */
7891 if ac_fn_c_try_compile "$LINENO"; then :
7892 ac_cv_header_stdc=yes
7894 ac_cv_header_stdc=no
7896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7898 if test $ac_cv_header_stdc = yes; then
7899 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901 /* end confdefs.h. */
7905 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7906 $EGREP "memchr
" >/dev/null 2>&1; then :
7909 ac_cv_header_stdc=no
7915 if test $ac_cv_header_stdc = yes; then
7916 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7918 /* end confdefs.h. */
7922 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7923 $EGREP "free
" >/dev/null 2>&1; then :
7926 ac_cv_header_stdc=no
7932 if test $ac_cv_header_stdc = yes; then
7933 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7934 if test "$cross_compiling" = yes; then :
7937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7938 /* end confdefs.h. */
7941 #if ((' ' & 0x0FF) == 0x020)
7942 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7943 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7945 # define ISLOWER(c) \
7946 (('a' <= (c) && (c) <= 'i') \
7947 || ('j' <= (c) && (c) <= 'r') \
7948 || ('s' <= (c) && (c) <= 'z'))
7949 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7952 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7957 for (i = 0; i < 256; i++)
7958 if (XOR (islower (i), ISLOWER (i))
7959 || toupper (i) != TOUPPER (i))
7964 if ac_fn_c_try_run "$LINENO"; then :
7967 ac_cv_header_stdc=no
7969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7970 conftest.$ac_objext conftest.beam conftest.$ac_ext
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
7976 $as_echo "$ac_cv_header_stdc" >&6; }
7977 if test $ac_cv_header_stdc = yes; then
7979 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7983 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7984 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7985 inttypes.h stdint.h unistd.h
7987 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7988 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7990 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7991 cat >>confdefs.h
<<_ACEOF
7992 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8000 for ac_header
in dlfcn.h
8002 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8004 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
8005 cat >>confdefs.h
<<_ACEOF
8006 #define HAVE_DLFCN_H 1
8027 # Check whether --enable-shared was given.
8028 if test "${enable_shared+set}" = set; then :
8029 enableval
=$enable_shared; p
=${PACKAGE-default}
8031 yes) enable_shared
=yes ;;
8032 no
) enable_shared
=no
;;
8035 # Look at the argument we got. We use all the common list separators.
8036 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8037 for pkg
in $enableval; do
8039 if test "X$pkg" = "X$p"; then
8058 # Check whether --enable-static was given.
8059 if test "${enable_static+set}" = set; then :
8060 enableval
=$enable_static; p
=${PACKAGE-default}
8062 yes) enable_static
=yes ;;
8063 no
) enable_static
=no
;;
8066 # Look at the argument we got. We use all the common list separators.
8067 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8068 for pkg
in $enableval; do
8070 if test "X$pkg" = "X$p"; then
8090 # Check whether --with-pic was given.
8091 if test "${with_pic+set}" = set; then :
8092 withval
=$with_pic; lt_p
=${PACKAGE-default}
8094 yes|no
) pic_mode
=$withval ;;
8097 # Look at the argument we got. We use all the common list separators.
8098 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8099 for lt_pkg
in $withval; do
8101 if test "X$lt_pkg" = "X$lt_p"; then
8119 # Check whether --enable-fast-install was given.
8120 if test "${enable_fast_install+set}" = set; then :
8121 enableval
=$enable_fast_install; p
=${PACKAGE-default}
8123 yes) enable_fast_install
=yes ;;
8124 no
) enable_fast_install
=no
;;
8126 enable_fast_install
=no
8127 # Look at the argument we got. We use all the common list separators.
8128 lt_save_ifs
=$IFS; IFS
=$IFS$PATH_SEPARATOR,
8129 for pkg
in $enableval; do
8131 if test "X$pkg" = "X$p"; then
8132 enable_fast_install
=yes
8139 enable_fast_install
=yes
8149 shared_archive_member_spec
=
8150 case $host,$enable_shared in
8151 power
*-*-aix[5-9]*,yes)
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8153 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
8155 # Check whether --with-aix-soname was given.
8156 if test "${with_aix_soname+set}" = set; then :
8157 withval
=$with_aix_soname; case $withval in
8161 as_fn_error $?
"Unknown argument to --with-aix-soname" "$LINENO" 5
8164 lt_cv_with_aix_soname
=$with_aix_soname
8166 if ${lt_cv_with_aix_soname+:} false
; then :
8167 $as_echo_n "(cached) " >&6
8169 lt_cv_with_aix_soname
=aix
8172 with_aix_soname
=$lt_cv_with_aix_soname
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8176 $as_echo "$with_aix_soname" >&6; }
8177 if test aix
!= "$with_aix_soname"; then
8178 # For the AIX way of multilib, we name the shared archive member
8179 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8180 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8181 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8182 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8183 if test 64 = "${OBJECT_MODE-32}"; then
8184 shared_archive_member_spec
=shr_64
8186 shared_archive_member_spec
=shr
8204 # This can be used to rebuild libtool when needed
8205 LIBTOOL_DEPS
=$ltmain
8207 # Always use our own libtool.
8208 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
8239 test -z "$LN_S" && LN_S
="ln -s"
8254 if test -n "${ZSH_VERSION+set}"; then
8255 setopt NO_GLOB_SUBST
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8259 $as_echo_n "checking for objdir... " >&6; }
8260 if ${lt_cv_objdir+:} false
; then :
8261 $as_echo_n "(cached) " >&6
8263 rm -f .libs
2>/dev
/null
8264 mkdir .libs
2>/dev
/null
8265 if test -d .libs
; then
8268 # MS-DOS does not allow filenames that begin with a dot.
8271 rmdir .libs
2>/dev
/null
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8274 $as_echo "$lt_cv_objdir" >&6; }
8275 objdir
=$lt_cv_objdir
8281 cat >>confdefs.h
<<_ACEOF
8282 #define LT_OBJDIR "$lt_cv_objdir/"
8290 # AIX sometimes has problems with the GCC collect2 program. For some
8291 # reason, if we set the COLLECT_NAMES environment variable, the problems
8292 # vanish in a puff of smoke.
8293 if test set != "${COLLECT_NAMES+set}"; then
8295 export COLLECT_NAMES
8302 can_build_shared
=yes
8304 # All known linkers require a '.a' archive for static linking (except MSVC,
8305 # which needs '.lib').
8308 with_gnu_ld
=$lt_cv_prog_gnu_ld
8313 # Set sane defaults for various variables
8314 test -z "$CC" && CC
=cc
8315 test -z "$LTCC" && LTCC
=$CC
8316 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8317 test -z "$LD" && LD
=ld
8318 test -z "$ac_objext" && ac_objext
=o
8320 func_cc_basename
$compiler
8321 cc_basename
=$func_cc_basename_result
8324 # Only perform the check for file, if the check method requires it
8325 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8326 case $deplibs_check_method in
8328 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8330 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8331 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8332 $as_echo_n "(cached) " >&6
8336 lt_cv_path_MAGIC_CMD
=$MAGIC_CMD # Let the user override the test with a path.
8339 lt_save_MAGIC_CMD
=$MAGIC_CMD
8340 lt_save_ifs
=$IFS; IFS
=$PATH_SEPARATOR
8341 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8342 for ac_dir
in $ac_dummy; do
8344 test -z "$ac_dir" && ac_dir
=.
8345 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8346 lt_cv_path_MAGIC_CMD
=$ac_dir/"${ac_tool_prefix}file"
8347 if test -n "$file_magic_test_file"; then
8348 case $deplibs_check_method in
8350 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8351 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8352 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8353 $EGREP "$file_magic_regex" > /dev
/null
; then
8358 *** Warning: the command libtool uses to detect shared libraries,
8359 *** $file_magic_cmd, produces output that libtool cannot recognize.
8360 *** The result is that libtool may fail to recognize shared libraries
8361 *** as such. This will affect the creation of libtool libraries that
8362 *** depend on shared libraries, but programs linked with such libtool
8363 *** libraries will work regardless of this problem. Nevertheless, you
8364 *** may want to report the problem to your system manager and/or to
8365 *** bug-libtool@gnu.org
8375 MAGIC_CMD
=$lt_save_MAGIC_CMD
8380 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8381 if test -n "$MAGIC_CMD"; then
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8383 $as_echo "$MAGIC_CMD" >&6; }
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386 $as_echo "no" >&6; }
8393 if test -z "$lt_cv_path_MAGIC_CMD"; then
8394 if test -n "$ac_tool_prefix"; then
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8396 $as_echo_n "checking for file... " >&6; }
8397 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8398 $as_echo_n "(cached) " >&6
8402 lt_cv_path_MAGIC_CMD
=$MAGIC_CMD # Let the user override the test with a path.
8405 lt_save_MAGIC_CMD
=$MAGIC_CMD
8406 lt_save_ifs
=$IFS; IFS
=$PATH_SEPARATOR
8407 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8408 for ac_dir
in $ac_dummy; do
8410 test -z "$ac_dir" && ac_dir
=.
8411 if test -f "$ac_dir/file"; then
8412 lt_cv_path_MAGIC_CMD
=$ac_dir/"file"
8413 if test -n "$file_magic_test_file"; then
8414 case $deplibs_check_method in
8416 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8417 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8418 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
8419 $EGREP "$file_magic_regex" > /dev
/null
; then
8424 *** Warning: the command libtool uses to detect shared libraries,
8425 *** $file_magic_cmd, produces output that libtool cannot recognize.
8426 *** The result is that libtool may fail to recognize shared libraries
8427 *** as such. This will affect the creation of libtool libraries that
8428 *** depend on shared libraries, but programs linked with such libtool
8429 *** libraries will work regardless of this problem. Nevertheless, you
8430 *** may want to report the problem to your system manager and/or to
8431 *** bug-libtool@gnu.org
8441 MAGIC_CMD
=$lt_save_MAGIC_CMD
8446 MAGIC_CMD
=$lt_cv_path_MAGIC_CMD
8447 if test -n "$MAGIC_CMD"; then
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8449 $as_echo "$MAGIC_CMD" >&6; }
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8452 $as_echo "no" >&6; }
8465 # Use C for the default configuration in the libtool script
8469 ac_cpp
='$CPP $CPPFLAGS'
8470 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8471 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8472 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8475 # Source file extension for C test sources.
8478 # Object file extension for compiled C test sources.
8482 # Code to be used in simple compile tests
8483 lt_simple_compile_test_code
="int some_variable = 0;"
8485 # Code to be used in simple link tests
8486 lt_simple_link_test_code
='int main(){return(0);}'
8494 # If no C compiler was specified, use CC.
8497 # If no C compiler flags were specified, use CFLAGS.
8498 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8500 # Allow CC to be a program name with arguments.
8503 # Save the default compiler, since it gets overwritten when the other
8504 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8505 compiler_DEFAULT
=$CC
8507 # save warnings/boilerplate of simple test code
8508 ac_outfile
=conftest.
$ac_objext
8509 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8510 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8511 _lt_compiler_boilerplate
=`cat conftest.err`
8514 ac_outfile
=conftest.
$ac_objext
8515 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8516 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8517 _lt_linker_boilerplate
=`cat conftest.err`
8522 ## There is no encapsulation within the following macros, do not change
8523 ## the running order or otherwise move them around unless you know exactly
8524 ## what you are doing...
8525 if test -n "$compiler"; then
8527 lt_prog_compiler_no_builtin_flag
=
8529 if test yes = "$GCC"; then
8530 case $cc_basename in
8532 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8534 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8538 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8539 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
8540 $as_echo_n "(cached) " >&6
8542 lt_cv_prog_compiler_rtti_exceptions
=no
8543 ac_outfile
=conftest.
$ac_objext
8544 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8545 lt_compiler_flag
="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
8546 # Insert the option either (1) after the last *FLAGS variable, or
8547 # (2) before a word containing "conftest.", or (3) at the end.
8548 # Note that $ac_compile itself does not contain backslashes and begins
8549 # with a dollar sign (not a hyphen), so the echo should work correctly.
8550 # The option is referenced via a variable to avoid confusing sed.
8551 lt_compile
=`echo "$ac_compile" | $SED \
8552 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8553 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8554 -e 's:$: $lt_compiler_flag:'`
8555 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8556 (eval "$lt_compile" 2>conftest.err
)
8558 cat conftest.err
>&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 if (exit $ac_status) && test -s "$ac_outfile"; then
8561 # The compiler can only warn and ignore the option if not recognized
8562 # So say no if there are warnings other than the usual output.
8563 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8564 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8565 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8566 lt_cv_prog_compiler_rtti_exceptions
=yes
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8573 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8575 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
8576 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8588 lt_prog_compiler_wl
=
8589 lt_prog_compiler_pic
=
8590 lt_prog_compiler_static
=
8593 if test yes = "$GCC"; then
8594 lt_prog_compiler_wl
='-Wl,'
8595 lt_prog_compiler_static
='-static'
8599 # All AIX code is PIC.
8600 if test ia64
= "$host_cpu"; then
8601 # AIX 5 now supports IA64 processor
8602 lt_prog_compiler_static
='-Bstatic'
8604 lt_prog_compiler_pic
='-fPIC'
8610 # see comment about AmigaOS4 .so support
8611 lt_prog_compiler_pic
='-fPIC'
8614 # FIXME: we need at least 68020 code to build shared libraries, but
8615 # adding the '-m68020' flag to GCC prevents building anything better,
8617 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8622 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8623 # PIC is the default for these OSes.
8626 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8627 # This hack is so that the source file can tell whether it is being
8628 # built for inclusion in a dll (and should export symbols for example).
8629 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8630 # (--disable-auto-import) libraries
8631 lt_prog_compiler_pic
='-DDLL_EXPORT'
8634 lt_prog_compiler_static
='$wl-static'
8639 darwin
* | rhapsody
*)
8640 # PIC is the default on this platform
8641 # Common symbols not allowed in MH_DYLIB files
8642 lt_prog_compiler_pic
='-fno-common'
8646 # PIC is the default for Haiku.
8647 # The "-static" flag exists, but is broken.
8648 lt_prog_compiler_static
=
8652 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8653 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8654 # sets the default TLS model and affects inlining.
8660 lt_prog_compiler_pic
='-fPIC'
8666 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8667 # Instead, we relocate shared libraries at runtime.
8671 # Just because we use GCC doesn't mean we suddenly get shared libraries
8672 # on systems that don't support them.
8673 lt_prog_compiler_can_build_shared
=no
8678 # QNX uses GNU C++, but need to define -shared option too, otherwise
8680 lt_prog_compiler_pic
='-fPIC -shared'
8684 if test -d /usr
/nec
; then
8685 lt_prog_compiler_pic
=-Kconform_pic
8690 lt_prog_compiler_pic
='-fPIC'
8694 case $cc_basename in
8695 nvcc
*) # Cuda Compiler Driver 2.2
8696 lt_prog_compiler_wl
='-Xlinker '
8697 if test -n "$lt_prog_compiler_pic"; then
8698 lt_prog_compiler_pic
="-Xcompiler $lt_prog_compiler_pic"
8703 # PORTME Check for flag to pass linker flags through the system compiler.
8706 lt_prog_compiler_wl
='-Wl,'
8707 if test ia64
= "$host_cpu"; then
8708 # AIX 5 now supports IA64 processor
8709 lt_prog_compiler_static
='-Bstatic'
8711 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8715 darwin
* | rhapsody
*)
8716 # PIC is the default on this platform
8717 # Common symbols not allowed in MH_DYLIB files
8718 lt_prog_compiler_pic
='-fno-common'
8719 case $cc_basename in
8721 # NAG Fortran compiler
8722 lt_prog_compiler_wl
='-Wl,-Wl,,'
8723 lt_prog_compiler_pic
='-PIC'
8724 lt_prog_compiler_static
='-Bstatic'
8729 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8730 # This hack is so that the source file can tell whether it is being
8731 # built for inclusion in a dll (and should export symbols for example).
8732 lt_prog_compiler_pic
='-DDLL_EXPORT'
8735 lt_prog_compiler_static
='$wl-static'
8740 hpux9
* | hpux10
* | hpux11
*)
8741 lt_prog_compiler_wl
='-Wl,'
8742 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8749 lt_prog_compiler_pic
='+Z'
8752 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8753 lt_prog_compiler_static
='$wl-a ${wl}archive'
8756 irix5
* | irix6
* | nonstopux
*)
8757 lt_prog_compiler_wl
='-Wl,'
8758 # PIC (with -KPIC) is the default.
8759 lt_prog_compiler_static
='-non_shared'
8762 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
8763 case $cc_basename in
8764 # old Intel for x86_64, which still supported -KPIC.
8766 lt_prog_compiler_wl
='-Wl,'
8767 lt_prog_compiler_pic
='-KPIC'
8768 lt_prog_compiler_static
='-static'
8770 # icc used to be incompatible with GCC.
8771 # ICC 10 doesn't accept -KPIC any more.
8773 lt_prog_compiler_wl
='-Wl,'
8774 lt_prog_compiler_pic
='-fPIC'
8775 lt_prog_compiler_static
='-static'
8777 # Lahey Fortran 8.1.
8779 lt_prog_compiler_wl
='-Wl,'
8780 lt_prog_compiler_pic
='--shared'
8781 lt_prog_compiler_static
='--static'
8784 # NAG Fortran compiler
8785 lt_prog_compiler_wl
='-Wl,-Wl,,'
8786 lt_prog_compiler_pic
='-PIC'
8787 lt_prog_compiler_static
='-Bstatic'
8790 # Fabrice Bellard et al's Tiny C Compiler
8791 lt_prog_compiler_wl
='-Wl,'
8792 lt_prog_compiler_pic
='-fPIC'
8793 lt_prog_compiler_static
='-static'
8795 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8796 # Portland Group compilers (*not* the Pentium gcc compiler,
8797 # which looks to be a dead project)
8798 lt_prog_compiler_wl
='-Wl,'
8799 lt_prog_compiler_pic
='-fpic'
8800 lt_prog_compiler_static
='-Bstatic'
8803 lt_prog_compiler_wl
='-Wl,'
8804 # All Alpha code is PIC.
8805 lt_prog_compiler_static
='-non_shared'
8807 xl
* | bgxl
* | bgf
* | mpixl
*)
8808 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8809 lt_prog_compiler_wl
='-Wl,'
8810 lt_prog_compiler_pic
='-qpic'
8811 lt_prog_compiler_static
='-qstaticlink'
8814 case `$CC -V 2>&1 | sed 5q` in
8815 *Sun\ Ceres\ Fortran
* |
*Sun
*Fortran
*\
[1-7].
* |
*Sun
*Fortran
*\
8.
[0-3]*)
8816 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8817 lt_prog_compiler_pic
='-KPIC'
8818 lt_prog_compiler_static
='-Bstatic'
8819 lt_prog_compiler_wl
=''
8821 *Sun\ F
* |
*Sun
*Fortran
*)
8822 lt_prog_compiler_pic
='-KPIC'
8823 lt_prog_compiler_static
='-Bstatic'
8824 lt_prog_compiler_wl
='-Qoption ld '
8828 lt_prog_compiler_pic
='-KPIC'
8829 lt_prog_compiler_static
='-Bstatic'
8830 lt_prog_compiler_wl
='-Wl,'
8832 *Intel
*\
[CF
]*Compiler
*)
8833 lt_prog_compiler_wl
='-Wl,'
8834 lt_prog_compiler_pic
='-fPIC'
8835 lt_prog_compiler_static
='-static'
8838 lt_prog_compiler_wl
='-Wl,'
8839 lt_prog_compiler_pic
='-fpic'
8840 lt_prog_compiler_static
='-Bstatic'
8848 lt_prog_compiler_pic
='-KPIC'
8849 lt_prog_compiler_static
='-Bstatic'
8853 # QNX uses GNU C++, but need to define -shared option too, otherwise
8855 lt_prog_compiler_pic
='-fPIC -shared'
8858 osf3
* | osf4
* | osf5
*)
8859 lt_prog_compiler_wl
='-Wl,'
8860 # All OSF/1 code is PIC.
8861 lt_prog_compiler_static
='-non_shared'
8865 lt_prog_compiler_static
='-non_shared'
8869 lt_prog_compiler_pic
='-KPIC'
8870 lt_prog_compiler_static
='-Bstatic'
8871 case $cc_basename in
8872 f77
* | f90
* | f95
* | sunf77
* | sunf90
* | sunf95
*)
8873 lt_prog_compiler_wl
='-Qoption ld ';;
8875 lt_prog_compiler_wl
='-Wl,';;
8880 lt_prog_compiler_wl
='-Qoption ld '
8881 lt_prog_compiler_pic
='-PIC'
8882 lt_prog_compiler_static
='-Bstatic'
8885 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8886 lt_prog_compiler_wl
='-Wl,'
8887 lt_prog_compiler_pic
='-KPIC'
8888 lt_prog_compiler_static
='-Bstatic'
8892 if test -d /usr
/nec
; then
8893 lt_prog_compiler_pic
='-Kconform_pic'
8894 lt_prog_compiler_static
='-Bstatic'
8898 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8899 lt_prog_compiler_wl
='-Wl,'
8900 lt_prog_compiler_pic
='-KPIC'
8901 lt_prog_compiler_static
='-Bstatic'
8905 lt_prog_compiler_wl
='-Wl,'
8906 lt_prog_compiler_can_build_shared
=no
8910 lt_prog_compiler_pic
='-pic'
8911 lt_prog_compiler_static
='-Bstatic'
8915 lt_prog_compiler_can_build_shared
=no
8921 # For platforms that do not support PIC, -DPIC is meaningless:
8923 lt_prog_compiler_pic
=
8926 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8931 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8932 if ${lt_cv_prog_compiler_pic+:} false
; then :
8933 $as_echo_n "(cached) " >&6
8935 lt_cv_prog_compiler_pic
=$lt_prog_compiler_pic
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8938 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8939 lt_prog_compiler_pic
=$lt_cv_prog_compiler_pic
8942 # Check to make sure the PIC flag actually works.
8944 if test -n "$lt_prog_compiler_pic"; then
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8946 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8947 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
8948 $as_echo_n "(cached) " >&6
8950 lt_cv_prog_compiler_pic_works
=no
8951 ac_outfile
=conftest.
$ac_objext
8952 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8953 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
8954 # Insert the option either (1) after the last *FLAGS variable, or
8955 # (2) before a word containing "conftest.", or (3) at the end.
8956 # Note that $ac_compile itself does not contain backslashes and begins
8957 # with a dollar sign (not a hyphen), so the echo should work correctly.
8958 # The option is referenced via a variable to avoid confusing sed.
8959 lt_compile
=`echo "$ac_compile" | $SED \
8960 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8961 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8962 -e 's:$: $lt_compiler_flag:'`
8963 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8964 (eval "$lt_compile" 2>conftest.err
)
8966 cat conftest.err
>&5
8967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8968 if (exit $ac_status) && test -s "$ac_outfile"; then
8969 # The compiler can only warn and ignore the option if not recognized
8970 # So say no if there are warnings other than the usual output.
8971 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8972 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8973 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8974 lt_cv_prog_compiler_pic_works
=yes
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8981 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8983 if test yes = "$lt_cv_prog_compiler_pic_works"; then
8984 case $lt_prog_compiler_pic in
8986 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8989 lt_prog_compiler_pic
=
8990 lt_prog_compiler_can_build_shared
=no
9006 # Check to make sure the static flag actually works.
9008 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9010 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9011 if ${lt_cv_prog_compiler_static_works+:} false
; then :
9012 $as_echo_n "(cached) " >&6
9014 lt_cv_prog_compiler_static_works
=no
9015 save_LDFLAGS
=$LDFLAGS
9016 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
9017 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9018 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9019 # The linker can only warn and ignore the option if not recognized
9020 # So say no if there are warnings
9021 if test -s conftest.err
; then
9022 # Append any errors to the config.log.
9023 cat conftest.err
1>&5
9024 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9025 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9026 if diff conftest.exp conftest.er2
>/dev
/null
; then
9027 lt_cv_prog_compiler_static_works
=yes
9030 lt_cv_prog_compiler_static_works
=yes
9034 LDFLAGS
=$save_LDFLAGS
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9038 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9040 if test yes = "$lt_cv_prog_compiler_static_works"; then
9043 lt_prog_compiler_static
=
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9053 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9054 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9055 $as_echo_n "(cached) " >&6
9057 lt_cv_prog_compiler_c_o
=no
9058 $RM -r conftest
2>/dev
/null
9062 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9064 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9065 # Insert the option either (1) after the last *FLAGS variable, or
9066 # (2) before a word containing "conftest.", or (3) at the end.
9067 # Note that $ac_compile itself does not contain backslashes and begins
9068 # with a dollar sign (not a hyphen), so the echo should work correctly.
9069 lt_compile
=`echo "$ac_compile" | $SED \
9070 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9071 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9072 -e 's:$: $lt_compiler_flag:'`
9073 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9074 (eval "$lt_compile" 2>out
/conftest.err
)
9076 cat out
/conftest.err
>&5
9077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9078 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9080 # The compiler can only warn and ignore the option if not recognized
9081 # So say no if there are warnings
9082 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
9083 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9084 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9085 lt_cv_prog_compiler_c_o
=yes
9090 # SGI C++ compiler will create directory out/ii_files/ for
9091 # template instantiation
9092 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9093 $RM out
/* && rmdir out
9099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9100 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9108 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9109 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9110 $as_echo_n "(cached) " >&6
9112 lt_cv_prog_compiler_c_o
=no
9113 $RM -r conftest
2>/dev
/null
9117 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9119 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9120 # Insert the option either (1) after the last *FLAGS variable, or
9121 # (2) before a word containing "conftest.", or (3) at the end.
9122 # Note that $ac_compile itself does not contain backslashes and begins
9123 # with a dollar sign (not a hyphen), so the echo should work correctly.
9124 lt_compile
=`echo "$ac_compile" | $SED \
9125 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9126 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9127 -e 's:$: $lt_compiler_flag:'`
9128 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9129 (eval "$lt_compile" 2>out
/conftest.err
)
9131 cat out
/conftest.err
>&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9135 # The compiler can only warn and ignore the option if not recognized
9136 # So say no if there are warnings
9137 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
9138 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9139 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9140 lt_cv_prog_compiler_c_o
=yes
9145 # SGI C++ compiler will create directory out/ii_files/ for
9146 # template instantiation
9147 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9148 $RM out
/* && rmdir out
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9155 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9160 hard_links
=nottested
9161 if test no
= "$lt_cv_prog_compiler_c_o" && test no
!= "$need_locks"; then
9162 # do not overwrite the value of need_locks provided by the user
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9164 $as_echo_n "checking if we can lock with hard links... " >&6; }
9167 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9169 ln conftest.a conftest.b
2>&5 || hard_links
=no
9170 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9172 $as_echo "$hard_links" >&6; }
9173 if test no
= "$hard_links"; then
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9175 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9188 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9191 allow_undefined_flag
=
9192 always_export_symbols
=no
9194 archive_expsym_cmds
=
9195 compiler_needs_object
=no
9196 enable_shared_with_static_runtimes
=no
9197 export_dynamic_flag_spec
=
9198 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9199 hardcode_automatic
=no
9201 hardcode_direct_absolute
=no
9202 hardcode_libdir_flag_spec
=
9203 hardcode_libdir_separator
=
9205 hardcode_shlibpath_var
=unsupported
9207 link_all_deplibs
=unknown
9210 old_archive_from_new_cmds
=
9211 old_archive_from_expsyms_cmds
=
9212 thread_safe_flag_spec
=
9213 whole_archive_flag_spec
=
9214 # include_expsyms should be a list of space-separated symbols to be *always*
9215 # included in the symbol list
9217 # exclude_expsyms can be an extended regexp of symbols to exclude
9218 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9219 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9220 # as well as any symbol that contains 'd'.
9221 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9222 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9223 # platforms (ab)use it in PIC code, but their linkers get confused if
9224 # the symbol is explicitly referenced. Since portable code cannot
9225 # rely on this symbol name, it's probably fine to never include it in
9226 # preloaded symbol tables.
9227 # Exclude shared library initialization/finalization symbols.
9228 extract_expsyms_cmds
=
9231 cygwin
* | mingw
* | pw32
* | cegcc
*)
9232 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9233 # When not using gcc, we currently assume that we are using
9234 # Microsoft Visual C++.
9235 if test yes != "$GCC"; then
9240 # we just hope/assume this is gcc and not c89 (= MSVC++)
9246 linux
* | k
*bsd
*-gnu | gnu
*)
9253 # On some targets, GNU ld is compatible enough with the native linker
9254 # that we're better off using the native interface for both.
9255 lt_use_gnu_ld_interface
=no
9256 if test yes = "$with_gnu_ld"; then
9259 # The AIX port of GNU ld has always aspired to compatibility
9260 # with the native linker. However, as the warning in the GNU ld
9261 # block says, versions before 2.19.5* couldn't really create working
9262 # shared libraries, regardless of the interface used.
9263 case `$LD -v 2>&1` in
9264 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
9265 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
9266 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
9268 lt_use_gnu_ld_interface
=yes
9273 lt_use_gnu_ld_interface
=yes
9278 if test yes = "$lt_use_gnu_ld_interface"; then
9279 # If archive_cmds runs LD, not CC, wlarc should be empty
9282 # Set some defaults for GNU ld with shared library support. These
9283 # are reset later if shared libraries are not supported. Putting them
9284 # here allows them to be overridden if necessary.
9285 runpath_var
=LD_RUN_PATH
9286 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
9287 export_dynamic_flag_spec
='$wl--export-dynamic'
9288 # ancient GNU ld didn't support --whole-archive et. al.
9289 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
9290 whole_archive_flag_spec
=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9292 whole_archive_flag_spec
=
9294 supports_anon_versioning
=no
9295 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
9296 *GNU\ gold
*) supports_anon_versioning
=yes ;;
9297 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
9298 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9299 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9300 *\
2.11.
*) ;; # other 2.11 versions
9301 *) supports_anon_versioning
=yes ;;
9304 # See if GNU ld supports shared libraries.
9307 # On AIX/PPC, the GNU linker is very broken
9308 if test ia64
!= "$host_cpu"; then
9312 *** Warning: the GNU linker, at least up to release 2.19, is reported
9313 *** to be unable to reliably create shared libraries on AIX.
9314 *** Therefore, libtool is disabling shared libraries support. If you
9315 *** really care for shared libraries, you may want to install binutils
9316 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9317 *** You will then need to restart the configuration process.
9326 # see comment about AmigaOS4 .so support
9327 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9328 archive_expsym_cmds
=''
9331 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)'
9332 hardcode_libdir_flag_spec
='-L$libdir'
9333 hardcode_minus_L
=yes
9339 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9340 allow_undefined_flag
=unsupported
9341 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9342 # support --undefined. This deserves some investigation. FIXME
9343 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9349 cygwin
* | mingw
* | pw32
* | cegcc
*)
9350 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9351 # as there is no search path for DLLs.
9352 hardcode_libdir_flag_spec
='-L$libdir'
9353 export_dynamic_flag_spec
='$wl--export-all-symbols'
9354 allow_undefined_flag
=unsupported
9355 always_export_symbols
=no
9356 enable_shared_with_static_runtimes
=yes
9357 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'
9358 exclude_expsyms
='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9360 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
9361 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9362 # If the export-symbols file already is a .def file, use it as
9363 # is; otherwise, prepend EXPORTS...
9364 archive_expsym_cmds
='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9365 cp $export_symbols $output_objdir/$soname.def;
9367 echo EXPORTS > $output_objdir/$soname.def;
9368 cat $export_symbols >> $output_objdir/$soname.def;
9370 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9377 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9378 link_all_deplibs
=yes
9382 hardcode_libdir_flag_spec
='-L$libdir'
9383 hardcode_minus_L
=yes
9384 allow_undefined_flag
=unsupported
9386 archive_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9387 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9388 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9389 $ECHO EXPORTS >> $output_objdir/$libname.def~
9390 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9391 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9392 emximp -o $lib $output_objdir/$libname.def'
9393 archive_expsym_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9394 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9395 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9396 $ECHO EXPORTS >> $output_objdir/$libname.def~
9398 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9399 prefix_cmds="$prefix_cmds -e 1d";
9401 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9402 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9403 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9404 emximp -o $lib $output_objdir/$libname.def'
9405 old_archive_From_new_cmds
='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9406 enable_shared_with_static_runtimes
=yes
9411 hardcode_shlibpath_var
=no
9412 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
9413 export_dynamic_flag_spec
='$wl-E'
9414 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9415 # Instead, shared libraries are loaded at an image base (0x10000000 by
9416 # default) and relocated if they conflict, which is a slow very memory
9417 # consuming and fragmenting process. To avoid this, we pick a random,
9418 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9419 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9420 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9421 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'
9424 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9426 if test linux-dietlibc
= "$host_os"; then
9427 case $cc_basename in
9428 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9431 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
9432 && test no
= "$tmp_diet"
9434 tmp_addflag
=' $pic_flag'
9435 tmp_sharedflag
='-shared'
9436 case $cc_basename,$host_cpu in
9437 pgcc
*) # Portland Group C compiler
9438 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'
9439 tmp_addflag
=' $pic_flag'
9441 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9442 # Portland Group f77 and f90 compilers
9443 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'
9444 tmp_addflag
=' $pic_flag -Mnomain' ;;
9445 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9446 tmp_addflag
=' -i_dynamic' ;;
9447 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9448 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9449 ifc
* | ifort
*) # Intel Fortran compiler
9450 tmp_addflag
=' -nofor_main' ;;
9451 lf95
*) # Lahey Fortran 8.1
9452 whole_archive_flag_spec
=
9453 tmp_sharedflag
='--shared' ;;
9454 nagfor
*) # NAGFOR 5.3
9455 tmp_sharedflag
='-Wl,-shared' ;;
9456 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9457 tmp_sharedflag
='-qmkshrobj'
9459 nvcc
*) # Cuda Compiler Driver 2.2
9460 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'
9461 compiler_needs_object
=yes
9464 case `$CC -V 2>&1 | sed 5q` in
9465 *Sun\ C
*) # Sun C 5.9
9466 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'
9467 compiler_needs_object
=yes
9468 tmp_sharedflag
='-G' ;;
9469 *Sun\ F
*) # Sun Fortran 8.3
9470 tmp_sharedflag
='-G' ;;
9472 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9474 if test yes = "$supports_anon_versioning"; then
9475 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9476 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9477 echo "local: *; };" >> $output_objdir/$libname.ver~
9478 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9481 case $cc_basename in
9483 export_dynamic_flag_spec
='-rdynamic'
9485 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9486 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9487 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9488 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
9489 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9490 if test yes = "$supports_anon_versioning"; then
9491 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9492 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9493 echo "local: *; };" >> $output_objdir/$libname.ver~
9494 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9503 netbsd
* | netbsdelf
*-gnu)
9504 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9505 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9508 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9509 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9514 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9518 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9519 *** create shared libraries on Solaris systems. Therefore, libtool
9520 *** is disabling shared libraries support. We urge you to upgrade GNU
9521 *** binutils to release 2.9.1 or newer. Another option is to modify
9522 *** your PATH or compiler configuration so that the native linker is
9523 *** used, and then restart.
9526 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9527 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9528 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9534 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9535 case `$LD -v 2>&1` in
9536 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9540 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
9541 *** reliably create shared libraries on SCO systems. Therefore, libtool
9542 *** is disabling shared libraries support. We urge you to upgrade GNU
9543 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9544 *** your PATH or compiler configuration so that the native linker is
9545 *** used, and then restart.
9550 # For security reasons, it is highly recommended that you always
9551 # use absolute paths for naming shared libraries, and exclude the
9552 # DT_RUNPATH tag from executables and libraries. But doing so
9553 # requires that you compile everything twice, which is a pain.
9554 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9555 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
9556 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9557 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9566 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9569 hardcode_shlibpath_var
=no
9573 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9574 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9575 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9582 if test no
= "$ld_shlibs"; then
9584 hardcode_libdir_flag_spec
=
9585 export_dynamic_flag_spec
=
9586 whole_archive_flag_spec
=
9589 # PORTME fill in a description of your system's linker (not GNU ld)
9592 allow_undefined_flag
=unsupported
9593 always_export_symbols
=yes
9594 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'
9595 # Note: this linker hardcodes the directories in LIBPATH if there
9596 # are no directories specified by -L.
9597 hardcode_minus_L
=yes
9598 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
9599 # Neither direct hardcoding nor static linking is supported with a
9601 hardcode_direct
=unsupported
9606 if test ia64
= "$host_cpu"; then
9607 # On IA64, the linker does run time linking by default, so we don't
9608 # have to do anything special.
9609 aix_use_runtimelinking
=no
9610 exp_sym_flag
='-Bexport'
9613 # If we're using GNU nm, then we don't want the "-C" option.
9614 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
9615 # Without the "-l" option, or with the "-B" option, AIX nm treats
9616 # weak defined symbols like other global defined symbols, whereas
9617 # GNU nm marks them as "W".
9618 # While the 'weak' keyword is ignored in the Export File, we need
9619 # it in the Import File for the 'aix-soname' feature, so we have
9620 # to replace the "-B" option with "-P" for AIX nm.
9621 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9622 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'
9624 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'
9626 aix_use_runtimelinking
=no
9628 # Test if we are trying to use run time linking or normal
9629 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9630 # have runtime linking enabled, and use it for executables.
9631 # For shared libraries, we enable/disable runtime linking
9632 # depending on the kind of the shared library created -
9633 # when "with_aix_soname,aix_use_runtimelinking" is:
9634 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
9635 # "aix,yes" lib.so shared, rtl:yes, for executables
9636 # lib.a static archive
9637 # "both,no" lib.so.V(shr.o) shared, rtl:yes
9638 # lib.a(lib.so.V) shared, rtl:no, for executables
9639 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
9640 # lib.a(lib.so.V) shared, rtl:no
9641 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
9642 # lib.a static archive
9643 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9644 for ld_flag
in $LDFLAGS; do
9645 if (test x-brtl
= "x$ld_flag" ||
test x-Wl
,-brtl = "x$ld_flag"); then
9646 aix_use_runtimelinking
=yes
9650 if test svr4
,no
= "$with_aix_soname,$aix_use_runtimelinking"; then
9651 # With aix-soname=svr4, we create the lib.so.V shared archives only,
9652 # so we don't have lib.a shared libs to link our executables.
9653 # We have to force runtime linking in this case.
9654 aix_use_runtimelinking
=yes
9655 LDFLAGS
="$LDFLAGS -Wl,-brtl"
9660 exp_sym_flag
='-bexport'
9661 no_entry_flag
='-bnoentry'
9664 # When large executables or shared objects are built, AIX ld can
9665 # have problems creating the table of contents. If linking a library
9666 # or program results in "error TOC overflow" add -mminimal-toc to
9667 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9668 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9672 hardcode_direct_absolute
=yes
9673 hardcode_libdir_separator
=':'
9674 link_all_deplibs
=yes
9675 file_list_spec
='$wl-f,'
9676 case $with_aix_soname,$aix_use_runtimelinking in
9677 aix
,*) ;; # traditional, no import file
9678 svr4
,* |
*,yes) # use import file
9679 # The Import File defines what to hardcode.
9681 hardcode_direct_absolute
=no
9685 if test yes = "$GCC"; then
9686 case $host_os in aix4.
[012]|aix4.
[012].
*)
9687 # We only want to do this on AIX 4.2 and lower, the check
9688 # below for broken collect2 doesn't work under 4.3+
9689 collect2name
=`$CC -print-prog-name=collect2`
9690 if test -f "$collect2name" &&
9691 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9693 # We have reworked collect2
9696 # We have old collect2
9697 hardcode_direct
=unsupported
9698 # It fails to find uninstalled libraries when the uninstalled
9699 # path is not listed in the libpath. Setting hardcode_minus_L
9700 # to unsupported forces relinking
9701 hardcode_minus_L
=yes
9702 hardcode_libdir_flag_spec
='-L$libdir'
9703 hardcode_libdir_separator
=
9707 shared_flag
='-shared'
9708 if test yes = "$aix_use_runtimelinking"; then
9709 shared_flag
="$shared_flag "'$wl-G'
9711 # Need to ensure runtime linking is disabled for the traditional
9712 # shared library, or the linker may eventually find shared libraries
9713 # /with/ Import File - we do not want to mix them.
9714 shared_flag_aix
='-shared'
9715 shared_flag_svr4
='-shared $wl-G'
9718 if test ia64
= "$host_cpu"; then
9719 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9720 # chokes on -Wl,-G. The following line is correct:
9723 if test yes = "$aix_use_runtimelinking"; then
9726 shared_flag
='$wl-bM:SRE'
9728 shared_flag_aix
='$wl-bM:SRE'
9729 shared_flag_svr4
='$wl-G'
9733 export_dynamic_flag_spec
='$wl-bexpall'
9734 # It seems that -bexpall does not export symbols beginning with
9735 # underscore (_), so it is better to generate a list of symbols to export.
9736 always_export_symbols
=yes
9737 if test aix
,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
9738 # Warning - without using the other runtime loading flags (-brtl),
9739 # -berok will link without error, but may produce a broken library.
9740 allow_undefined_flag
='-berok'
9741 # Determine the default libpath from the value encoded in an
9743 if test set = "${lt_cv_aix_libpath+set}"; then
9744 aix_libpath
=$lt_cv_aix_libpath
9746 if ${lt_cv_aix_libpath_+:} false
; then :
9747 $as_echo_n "(cached) " >&6
9749 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9750 /* end confdefs.h. */
9760 if ac_fn_c_try_link
"$LINENO"; then :
9762 lt_aix_libpath_sed
='
9763 /Import File Strings/,/^$/ {
9765 s/^0 *\([^ ]*\) *$/\1/
9769 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9770 # Check for a 64-bit object if we didn't find anything.
9771 if test -z "$lt_cv_aix_libpath_"; then
9772 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9775 rm -f core conftest.err conftest.
$ac_objext \
9776 conftest
$ac_exeext conftest.
$ac_ext
9777 if test -z "$lt_cv_aix_libpath_"; then
9778 lt_cv_aix_libpath_
=/usr
/lib
:/lib
9783 aix_libpath
=$lt_cv_aix_libpath_
9786 hardcode_libdir_flag_spec
='$wl-blibpath:$libdir:'"$aix_libpath"
9787 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
9789 if test ia64
= "$host_cpu"; then
9790 hardcode_libdir_flag_spec
='$wl-R $libdir:/usr/lib:/lib'
9791 allow_undefined_flag
="-z nodefs"
9792 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"
9794 # Determine the default libpath from the value encoded in an
9796 if test set = "${lt_cv_aix_libpath+set}"; then
9797 aix_libpath
=$lt_cv_aix_libpath
9799 if ${lt_cv_aix_libpath_+:} false
; then :
9800 $as_echo_n "(cached) " >&6
9802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9803 /* end confdefs.h. */
9813 if ac_fn_c_try_link
"$LINENO"; then :
9815 lt_aix_libpath_sed
='
9816 /Import File Strings/,/^$/ {
9818 s/^0 *\([^ ]*\) *$/\1/
9822 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9823 # Check for a 64-bit object if we didn't find anything.
9824 if test -z "$lt_cv_aix_libpath_"; then
9825 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9828 rm -f core conftest.err conftest.
$ac_objext \
9829 conftest
$ac_exeext conftest.
$ac_ext
9830 if test -z "$lt_cv_aix_libpath_"; then
9831 lt_cv_aix_libpath_
=/usr
/lib
:/lib
9836 aix_libpath
=$lt_cv_aix_libpath_
9839 hardcode_libdir_flag_spec
='$wl-blibpath:$libdir:'"$aix_libpath"
9840 # Warning - without using the other run time loading flags,
9841 # -berok will link without error, but may produce a broken library.
9842 no_undefined_flag
=' $wl-bernotok'
9843 allow_undefined_flag
=' $wl-berok'
9844 if test yes = "$with_gnu_ld"; then
9845 # We only use this code for GNU lds that support --whole-archive.
9846 whole_archive_flag_spec
='$wl--whole-archive$convenience $wl--no-whole-archive'
9848 # Exported symbols can be pulled into shared objects from archives
9849 whole_archive_flag_spec
='$convenience'
9851 archive_cmds_need_lc
=yes
9852 archive_expsym_cmds
='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
9853 # -brtl affects multiple linker settings, -berok does not and is overridden later
9854 compiler_flags_filtered
='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
9855 if test svr4
!= "$with_aix_soname"; then
9856 # This is similar to how AIX traditionally builds its shared libraries.
9857 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'
9859 if test aix
!= "$with_aix_soname"; then
9860 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'
9862 # used by -dlpreopen to get the symbols
9863 archive_expsym_cmds
="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
9865 archive_expsym_cmds
="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
9873 # see comment about AmigaOS4 .so support
9874 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9875 archive_expsym_cmds
=''
9878 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)'
9879 hardcode_libdir_flag_spec
='-L$libdir'
9880 hardcode_minus_L
=yes
9886 export_dynamic_flag_spec
=-rdynamic
9889 cygwin
* | mingw
* | pw32
* | cegcc
*)
9890 # When not using gcc, we currently assume that we are using
9891 # Microsoft Visual C++.
9892 # hardcode_libdir_flag_spec is actually meaningless, as there is
9893 # no search path for DLLs.
9894 case $cc_basename in
9897 hardcode_libdir_flag_spec
=' '
9898 allow_undefined_flag
=unsupported
9899 always_export_symbols
=yes
9901 # Tell ltmain to make .lib files, not .a files.
9903 # Tell ltmain to make .dll files, not .so files.
9905 # FIXME: Setting linknames here is a bad hack.
9906 archive_cmds
='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
9907 archive_expsym_cmds
='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9908 cp "$export_symbols" "$output_objdir/$soname.def";
9909 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
9911 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
9913 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9915 # The linker will not automatically build a static lib if we build a DLL.
9916 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9917 enable_shared_with_static_runtimes
=yes
9918 exclude_expsyms
='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9919 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9921 old_postinstall_cmds
='chmod 644 $oldlib'
9922 postlink_cmds
='lt_outputfile="@OUTPUT@"~
9923 lt_tool_outputfile="@TOOL_OUTPUT@"~
9924 case $lt_outputfile in
9927 lt_outputfile=$lt_outputfile.exe
9928 lt_tool_outputfile=$lt_tool_outputfile.exe
9931 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
9932 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9933 $RM "$lt_outputfile.manifest";
9937 # Assume MSVC wrapper
9938 hardcode_libdir_flag_spec
=' '
9939 allow_undefined_flag
=unsupported
9940 # Tell ltmain to make .lib files, not .a files.
9942 # Tell ltmain to make .dll files, not .so files.
9944 # FIXME: Setting linknames here is a bad hack.
9945 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9946 # The linker will automatically build a .lib file if we build a DLL.
9947 old_archive_from_new_cmds
='true'
9948 # FIXME: Should let the user specify the lib program.
9949 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9950 enable_shared_with_static_runtimes
=yes
9955 darwin
* | rhapsody
*)
9958 archive_cmds_need_lc
=no
9960 hardcode_automatic
=yes
9961 hardcode_shlibpath_var
=unsupported
9962 if test yes = "$lt_cv_ld_force_load"; then
9963 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\"`'
9966 whole_archive_flag_spec
=''
9968 link_all_deplibs
=yes
9969 allow_undefined_flag
=$_lt_dar_allow_undefined
9970 case $cc_basename in
9971 ifort
*|nagfor
*) _lt_dar_can_shared
=yes ;;
9972 *) _lt_dar_can_shared
=$GCC ;;
9974 if test yes = "$_lt_dar_can_shared"; then
9975 output_verbose_link_cmd
=func_echo_all
9976 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
9977 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
9978 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"
9979 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"
9988 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9989 hardcode_libdir_flag_spec
='-L$libdir'
9990 hardcode_shlibpath_var
=no
9993 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9994 # support. Future versions do this automatically, but an explicit c++rt0.o
9995 # does not break anything, and helps significantly (at the cost of a little
9998 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9999 hardcode_libdir_flag_spec
='-R$libdir'
10000 hardcode_direct
=yes
10001 hardcode_shlibpath_var
=no
10004 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10006 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10007 hardcode_direct
=yes
10008 hardcode_minus_L
=yes
10009 hardcode_shlibpath_var
=no
10012 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10013 freebsd
* | dragonfly
*)
10014 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10015 hardcode_libdir_flag_spec
='-R$libdir'
10016 hardcode_direct
=yes
10017 hardcode_shlibpath_var
=no
10021 if test yes = "$GCC"; then
10022 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'
10024 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'
10026 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
10027 hardcode_libdir_separator
=:
10028 hardcode_direct
=yes
10030 # hardcode_minus_L: Not really in the search PATH,
10031 # but as the default location of the library.
10032 hardcode_minus_L
=yes
10033 export_dynamic_flag_spec
='$wl-E'
10037 if test yes,no
= "$GCC,$with_gnu_ld"; then
10038 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10040 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10042 if test no
= "$with_gnu_ld"; then
10043 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
10044 hardcode_libdir_separator
=:
10045 hardcode_direct
=yes
10046 hardcode_direct_absolute
=yes
10047 export_dynamic_flag_spec
='$wl-E'
10048 # hardcode_minus_L: Not really in the search PATH,
10049 # but as the default location of the library.
10050 hardcode_minus_L
=yes
10055 if test yes,no
= "$GCC,$with_gnu_ld"; then
10058 archive_cmds
='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10061 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10064 archive_cmds
='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10070 archive_cmds
='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10073 archive_cmds
='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10077 # Older versions of the 11.00 compiler do not understand -b yet
10078 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10080 $as_echo_n "checking if $CC understands -b... " >&6; }
10081 if ${lt_cv_prog_compiler__b+:} false
; then :
10082 $as_echo_n "(cached) " >&6
10084 lt_cv_prog_compiler__b
=no
10085 save_LDFLAGS
=$LDFLAGS
10086 LDFLAGS
="$LDFLAGS -b"
10087 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
10088 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
10089 # The linker can only warn and ignore the option if not recognized
10090 # So say no if there are warnings
10091 if test -s conftest.err
; then
10092 # Append any errors to the config.log.
10093 cat conftest.err
1>&5
10094 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
10095 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10096 if diff conftest.exp conftest.er2
>/dev
/null
; then
10097 lt_cv_prog_compiler__b
=yes
10100 lt_cv_prog_compiler__b
=yes
10104 LDFLAGS
=$save_LDFLAGS
10107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10108 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10110 if test yes = "$lt_cv_prog_compiler__b"; then
10111 archive_cmds
='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10113 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10119 if test no
= "$with_gnu_ld"; then
10120 hardcode_libdir_flag_spec
='$wl+b $wl$libdir'
10121 hardcode_libdir_separator
=:
10126 hardcode_shlibpath_var
=no
10129 hardcode_direct
=yes
10130 hardcode_direct_absolute
=yes
10131 export_dynamic_flag_spec
='$wl-E'
10133 # hardcode_minus_L: Not really in the search PATH,
10134 # but as the default location of the library.
10135 hardcode_minus_L
=yes
10141 irix5
* | irix6
* | nonstopux
*)
10142 if test yes = "$GCC"; then
10143 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'
10144 # Try to use the -exported_symbol ld option, if it does not
10145 # work, assume that -exports_file does not work either and
10146 # implicitly export all symbols.
10147 # This should be the same for all languages, so no per-tag cache variable.
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10149 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10150 if ${lt_cv_irix_exported_symbol+:} false
; then :
10151 $as_echo_n "(cached) " >&6
10153 save_LDFLAGS
=$LDFLAGS
10154 LDFLAGS
="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10156 /* end confdefs.h. */
10157 int foo (void) { return 0; }
10159 if ac_fn_c_try_link
"$LINENO"; then :
10160 lt_cv_irix_exported_symbol
=yes
10162 lt_cv_irix_exported_symbol
=no
10164 rm -f core conftest.err conftest.
$ac_objext \
10165 conftest
$ac_exeext conftest.
$ac_ext
10166 LDFLAGS
=$save_LDFLAGS
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10169 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10170 if test yes = "$lt_cv_irix_exported_symbol"; then
10171 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'
10173 link_all_deplibs
=no
10175 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'
10176 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'
10178 archive_cmds_need_lc
='no'
10179 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10180 hardcode_libdir_separator
=:
10182 link_all_deplibs
=yes
10186 case $cc_basename in
10188 # Fabrice Bellard et al's Tiny C Compiler
10190 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10195 netbsd
* | netbsdelf
*-gnu)
10196 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10197 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10199 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10201 hardcode_libdir_flag_spec
='-R$libdir'
10202 hardcode_direct
=yes
10203 hardcode_shlibpath_var
=no
10207 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10208 hardcode_direct
=yes
10209 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10210 hardcode_libdir_separator
=:
10211 hardcode_shlibpath_var
=no
10217 openbsd
* | bitrig
*)
10218 if test -f /usr
/libexec
/ld.so
; then
10219 hardcode_direct
=yes
10220 hardcode_shlibpath_var
=no
10221 hardcode_direct_absolute
=yes
10222 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10223 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10224 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10225 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
10226 export_dynamic_flag_spec
='$wl-E'
10228 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10229 hardcode_libdir_flag_spec
='$wl-rpath,$libdir'
10237 hardcode_libdir_flag_spec
='-L$libdir'
10238 hardcode_minus_L
=yes
10239 allow_undefined_flag
=unsupported
10241 archive_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10242 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10243 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10244 $ECHO EXPORTS >> $output_objdir/$libname.def~
10245 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10246 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10247 emximp -o $lib $output_objdir/$libname.def'
10248 archive_expsym_cmds
='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10249 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10250 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10251 $ECHO EXPORTS >> $output_objdir/$libname.def~
10252 prefix_cmds="$SED"~
10253 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10254 prefix_cmds="$prefix_cmds -e 1d";
10256 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10257 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10258 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10259 emximp -o $lib $output_objdir/$libname.def'
10260 old_archive_From_new_cmds
='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10261 enable_shared_with_static_runtimes
=yes
10265 if test yes = "$GCC"; then
10266 allow_undefined_flag
=' $wl-expect_unresolved $wl\*'
10267 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'
10269 allow_undefined_flag
=' -expect_unresolved \*'
10270 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'
10272 archive_cmds_need_lc
='no'
10273 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10274 hardcode_libdir_separator
=:
10277 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
10278 if test yes = "$GCC"; then
10279 allow_undefined_flag
=' $wl-expect_unresolved $wl\*'
10280 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'
10281 hardcode_libdir_flag_spec
='$wl-rpath $wl$libdir'
10283 allow_undefined_flag
=' -expect_unresolved \*'
10284 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'
10285 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~
10286 $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'
10288 # Both c and cxx compiler support -rpath directly
10289 hardcode_libdir_flag_spec
='-rpath $libdir'
10291 archive_cmds_need_lc
='no'
10292 hardcode_libdir_separator
=:
10296 no_undefined_flag
=' -z defs'
10297 if test yes = "$GCC"; then
10299 archive_cmds
='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10300 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10301 $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'
10303 case `$CC -V 2>&1` in
10306 archive_cmds
='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10307 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10308 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10312 archive_cmds
='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10313 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10314 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10318 hardcode_libdir_flag_spec
='-R$libdir'
10319 hardcode_shlibpath_var
=no
10321 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10323 # The compiler driver will combine and reorder linker options,
10324 # but understands '-z linker_flag'. GCC discards it without '$wl',
10325 # but is careful enough not to reorder.
10326 # Supported since Solaris 2.6 (maybe 2.5.1?)
10327 if test yes = "$GCC"; then
10328 whole_archive_flag_spec
='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10330 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10334 link_all_deplibs
=yes
10338 if test sequent
= "$host_vendor"; then
10339 # Use $CC to link under sequent, because it throws in some extra .o
10340 # files that make .init and .fini sections work.
10341 archive_cmds
='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10343 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10345 hardcode_libdir_flag_spec
='-L$libdir'
10346 hardcode_direct
=yes
10347 hardcode_minus_L
=yes
10348 hardcode_shlibpath_var
=no
10352 case $host_vendor in
10354 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10355 hardcode_direct
=yes # is this really true???
10358 ## LD is ld it makes a PLAMLIB
10359 ## CC just makes a GrossModule.
10360 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10361 reload_cmds
='$CC -r -o $output$reload_objs'
10365 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10366 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10369 runpath_var
='LD_RUN_PATH'
10370 hardcode_shlibpath_var
=no
10374 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10375 hardcode_shlibpath_var
=no
10376 export_dynamic_flag_spec
='-Bexport'
10380 if test -d /usr
/nec
; then
10381 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10382 hardcode_shlibpath_var
=no
10383 runpath_var
=LD_RUN_PATH
10384 hardcode_runpath_var
=yes
10389 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10390 no_undefined_flag
='$wl-z,text'
10391 archive_cmds_need_lc
=no
10392 hardcode_shlibpath_var
=no
10393 runpath_var
='LD_RUN_PATH'
10395 if test yes = "$GCC"; then
10396 archive_cmds
='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10397 archive_expsym_cmds
='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10399 archive_cmds
='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10400 archive_expsym_cmds
='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10404 sysv5
* | sco3.2v5
* | sco5v6
*)
10405 # Note: We CANNOT use -z defs as we might desire, because we do not
10406 # link with -lc, and that would cause any symbols used from libc to
10407 # always be unresolved, which means just about no library would
10408 # ever link correctly. If we're not using GNU ld we use -z text
10409 # though, which does catch some bad symbols but isn't as heavy-handed
10411 no_undefined_flag
='$wl-z,text'
10412 allow_undefined_flag
='$wl-z,nodefs'
10413 archive_cmds_need_lc
=no
10414 hardcode_shlibpath_var
=no
10415 hardcode_libdir_flag_spec
='$wl-R,$libdir'
10416 hardcode_libdir_separator
=':'
10417 link_all_deplibs
=yes
10418 export_dynamic_flag_spec
='$wl-Bexport'
10419 runpath_var
='LD_RUN_PATH'
10421 if test yes = "$GCC"; then
10422 archive_cmds
='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10423 archive_expsym_cmds
='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10425 archive_cmds
='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10426 archive_expsym_cmds
='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10431 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10432 hardcode_libdir_flag_spec
='-L$libdir'
10433 hardcode_shlibpath_var
=no
10441 if test sni
= "$host_vendor"; then
10443 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10444 export_dynamic_flag_spec
='$wl-Blargedynsym'
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10451 $as_echo "$ld_shlibs" >&6; }
10452 test no
= "$ld_shlibs" && can_build_shared
=no
10454 with_gnu_ld
=$with_gnu_ld
10471 # Do we need to explicitly link libc?
10473 case "x$archive_cmds_need_lc" in
10475 # Assume -lc should be added
10476 archive_cmds_need_lc
=yes
10478 if test yes,yes = "$GCC,$enable_shared"; then
10479 case $archive_cmds in
10481 # FIXME: we may have to deal with multi-command sequences.
10484 # Test whether the compiler implicitly links with -lc since on some
10485 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10486 # to ld, don't add -lc before -lgcc.
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10488 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10489 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10490 $as_echo_n "(cached) " >&6
10493 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10495 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10496 (eval $ac_compile) 2>&5
10498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10499 test $ac_status = 0; } 2>conftest.err
; then
10502 libobjs
=conftest.
$ac_objext
10504 wl
=$lt_prog_compiler_wl
10505 pic_flag
=$lt_prog_compiler_pic
10511 lt_save_allow_undefined_flag
=$allow_undefined_flag
10512 allow_undefined_flag
=
10513 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10514 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10517 test $ac_status = 0; }
10519 lt_cv_archive_cmds_need_lc
=no
10521 lt_cv_archive_cmds_need_lc
=yes
10523 allow_undefined_flag
=$lt_save_allow_undefined_flag
10525 cat conftest.err
1>&5
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10531 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10532 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10691 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10693 if test yes = "$GCC"; then
10695 darwin
*) lt_awk_arg
='/^libraries:/,/LR/' ;;
10696 *) lt_awk_arg
='/^libraries:/' ;;
10699 mingw
* | cegcc
*) lt_sed_strip_eq
='s|=\([A-Za-z]:\)|\1|g' ;;
10700 *) lt_sed_strip_eq
='s|=/|/|g' ;;
10702 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10703 case $lt_search_path_spec in
10705 # if the path contains ";" then we assume it to be the separator
10706 # otherwise default to the standard path separator (i.e. ":") - it is
10707 # assumed that no part of a normal pathname contains ";" but that should
10708 # okay in the real world where ";" in dirpaths is itself problematic.
10709 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10712 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10715 # Ok, now we have the path, separated by spaces, we can step through it
10716 # and add multilib dir if necessary...
10717 lt_tmp_lt_search_path_spec
=
10718 lt_multi_os_dir
=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10719 # ...but if some path component already ends with the multilib dir we assume
10720 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
10721 case "$lt_multi_os_dir; $lt_search_path_spec " in
10722 "/; "* |
"/.; "* |
"/./; "* |
*"$lt_multi_os_dir "* |
*"$lt_multi_os_dir/ "*)
10726 for lt_sys_path
in $lt_search_path_spec; do
10727 if test -d "$lt_sys_path$lt_multi_os_dir"; then
10728 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
10729 elif test -n "$lt_multi_os_dir"; then
10730 test -d "$lt_sys_path" && \
10731 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10734 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10735 BEGIN {RS = " "; FS = "/|\n";} {
10738 for (lt_i = NF; lt_i > 0; lt_i--) {
10739 if ($lt_i != "" && $lt_i != ".") {
10740 if ($lt_i == "..") {
10743 if (lt_count == 0) {
10744 lt_foo = "/" $lt_i lt_foo;
10751 if (lt_foo != "") { lt_freq[lt_foo]++; }
10752 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10754 # AWK program above erroneously prepends '/' to C:/dos/paths
10757 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10758 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
10760 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10762 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10764 library_names_spec
=
10765 libname_spec
='lib$name'
10769 postuninstall_cmds
=
10773 shlibpath_overrides_runpath
=unknown
10775 dynamic_linker
="$host_os ld.so"
10776 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10777 need_lib_prefix
=unknown
10778 hardcode_into_libs
=no
10780 # when you set need_version to no, make sure it does not cause -set_version
10781 # flags to be left without arguments
10782 need_version
=unknown
10788 version_type
=linux
# correct to gnu/linux during the next big refactor
10789 library_names_spec
='$libname$release$shared_ext$versuffix $libname.a'
10790 shlibpath_var
=LIBPATH
10792 # AIX 3 has no versioning support, so we append a major version to the name.
10793 soname_spec
='$libname$release$shared_ext$major'
10797 version_type
=linux
# correct to gnu/linux during the next big refactor
10800 hardcode_into_libs
=yes
10801 if test ia64
= "$host_cpu"; then
10802 # AIX 5 supports IA64
10803 library_names_spec
='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
10804 shlibpath_var
=LD_LIBRARY_PATH
10806 # With GCC up to 2.95.x, collect2 would create an import file
10807 # for dependence libraries. The import file would start with
10808 # the line '#! .'. This would cause the generated library to
10809 # depend on '.', always an invalid library. This was fixed in
10810 # development snapshots of GCC prior to 3.0.
10812 aix4 | aix4.
[01] | aix4.
[01].
*)
10813 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10815 echo '#endif'; } |
$CC -E - |
$GREP yes > /dev
/null
; then
10818 can_build_shared
=no
10822 # Using Import Files as archive members, it is possible to support
10823 # filename-based versioning of shared library archives on AIX. While
10824 # this would work for both with and without runtime linking, it will
10825 # prevent static linking of such archives. So we do filename-based
10826 # shared library versioning with .so extension only, which is used
10827 # when both runtime linking and shared linking is enabled.
10828 # Unfortunately, runtime linking may impact performance, so we do
10829 # not want this to be the default eventually. Also, we use the
10830 # versioned .so libs for executables only if there is the -brtl
10831 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
10832 # To allow for filename-based versioning support, we need to create
10833 # libNAME.so.V as an archive file, containing:
10834 # *) an Import File, referring to the versioned filename of the
10835 # archive as well as the shared archive member, telling the
10836 # bitwidth (32 or 64) of that shared object, and providing the
10837 # list of exported symbols of that shared object, eventually
10838 # decorated with the 'weak' keyword
10839 # *) the shared object with the F_LOADONLY flag set, to really avoid
10840 # it being seen by the linker.
10841 # At run time we better use the real file rather than another symlink,
10842 # but for link time we create the symlink libNAME.so -> libNAME.so.V
10844 case $with_aix_soname,$aix_use_runtimelinking in
10845 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
10846 # soname into executable. Probably we can add versioning support to
10847 # collect2, so additional links can be useful in future.
10848 aix
,yes) # traditional libtool
10849 dynamic_linker
='AIX unversionable lib.so'
10850 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10851 # instead of lib<name>.a to let people know that these are not
10852 # typical AIX shared libraries.
10853 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10855 aix
,no
) # traditional AIX only
10856 dynamic_linker
='AIX lib.a(lib.so.V)'
10857 # We preserve .a as extension for shared libraries through AIX4.2
10858 # and later when we are not doing run time linking.
10859 library_names_spec
='$libname$release.a $libname.a'
10860 soname_spec
='$libname$release$shared_ext$major'
10862 svr4
,*) # full svr4 only
10863 dynamic_linker
="AIX lib.so.V($shared_archive_member_spec.o)"
10864 library_names_spec
='$libname$release$shared_ext$major $libname$shared_ext'
10865 # We do not specify a path in Import Files, so LIBPATH fires.
10866 shlibpath_overrides_runpath
=yes
10868 *,yes) # both, prefer svr4
10869 dynamic_linker
="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
10870 library_names_spec
='$libname$release$shared_ext$major $libname$shared_ext'
10871 # unpreferred sharedlib libNAME.a needs extra handling
10872 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"'
10873 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"'
10874 # We do not specify a path in Import Files, so LIBPATH fires.
10875 shlibpath_overrides_runpath
=yes
10877 *,no
) # both, prefer aix
10878 dynamic_linker
="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
10879 library_names_spec
='$libname$release.a $libname.a'
10880 soname_spec
='$libname$release$shared_ext$major'
10881 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
10882 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)'
10883 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"'
10886 shlibpath_var
=LIBPATH
10893 # Since July 2007 AmigaOS4 officially supports .so libraries.
10894 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10895 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10898 library_names_spec
='$libname.ixlibrary $libname.a'
10899 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10900 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'
10906 library_names_spec
='$libname$shared_ext'
10907 dynamic_linker
="$host_os ld.so"
10908 shlibpath_var
=LIBRARY_PATH
10912 version_type
=linux
# correct to gnu/linux during the next big refactor
10914 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
10915 soname_spec
='$libname$release$shared_ext$major'
10916 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10917 shlibpath_var
=LD_LIBRARY_PATH
10918 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10919 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10920 # the default ld.so.conf also contains /usr/contrib/lib and
10921 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10922 # libtool to hard-code these into programs
10925 cygwin
* | mingw
* | pw32
* | cegcc
*)
10926 version_type
=windows
10931 case $GCC,$cc_basename in
10934 library_names_spec
='$libname.dll.a'
10935 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10936 postinstall_cmds
='base_file=`basename \$file`~
10937 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
10938 dldir=$destdir/`dirname \$dlpath`~
10939 test -d \$dldir || mkdir -p \$dldir~
10940 $install_prog $dir/$dlname \$dldir/$dlname~
10941 chmod a+x \$dldir/$dlname~
10942 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10943 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10945 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10946 dlpath=$dir/\$dldll~
10948 shlibpath_overrides_runpath
=yes
10952 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10953 soname_spec
='`echo $libname | sed -e 's
/^lib
/cyg
/'``echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
10955 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10958 # MinGW DLLs use traditional 'lib' prefix
10959 soname_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
10962 # pw32 DLLs use 'pw' prefix rather than 'lib'
10963 library_names_spec
='`echo $libname | sed -e 's
/^lib
/pw
/'``echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
10966 dynamic_linker
='Win32 ld.exe'
10971 libname_spec
='$name'
10972 soname_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext'
10973 library_names_spec
='$libname.dll.lib'
10977 sys_lib_search_path_spec
=
10980 for lt_path
in $LIB
10983 # Let DOS variable expansion print the short 8.3 style file name.
10984 lt_path
=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10985 sys_lib_search_path_spec
="$sys_lib_search_path_spec $lt_path"
10988 # Convert to MSYS style.
10989 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10992 # Convert to unix form, then to dos form, then back to unix form
10993 # but this time dos style (no spaces!) so that the unix form looks
10994 # like /cygdrive/c/PROGRA~1:/cygdr...
10995 sys_lib_search_path_spec
=`cygpath --path --unix "$LIB"`
10996 sys_lib_search_path_spec
=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10997 sys_lib_search_path_spec
=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11000 sys_lib_search_path_spec
=$LIB
11001 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
11002 # It is most probably a Windows format PATH.
11003 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11005 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11007 # FIXME: find the short name or the path components, as spaces are
11008 # common. (e.g. "Program Files" -> "PROGRA~1")
11012 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11013 postinstall_cmds
='base_file=`basename \$file`~
11014 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11015 dldir=$destdir/`dirname \$dlpath`~
11016 test -d \$dldir || mkdir -p \$dldir~
11017 $install_prog $dir/$dlname \$dldir/$dlname'
11018 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11019 dlpath=$dir/\$dldll~
11021 shlibpath_overrides_runpath
=yes
11022 dynamic_linker
='Win32 link.exe'
11026 # Assume MSVC wrapper
11027 library_names_spec
='$libname`echo $release | $SED -e 's
/[.
]/-/g
'`$versuffix$shared_ext $libname.lib'
11028 dynamic_linker
='Win32 ld.exe'
11031 # FIXME: first we should search . and the directory the executable is in
11035 darwin
* | rhapsody
*)
11036 dynamic_linker
="$host_os dyld"
11037 version_type
=darwin
11040 library_names_spec
='$libname$release$major$shared_ext $libname$shared_ext'
11041 soname_spec
='$libname$release$major$shared_ext'
11042 shlibpath_overrides_runpath
=yes
11043 shlibpath_var
=DYLD_LIBRARY_PATH
11044 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
11046 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
11047 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
11051 version_type
=linux
# correct to gnu/linux during the next big refactor
11054 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11055 soname_spec
='$libname$release$shared_ext$major'
11056 shlibpath_var
=LD_LIBRARY_PATH
11059 freebsd
* | dragonfly
*)
11060 # DragonFly does not have aout. When/if they implement a new
11061 # versioning mechanism, adjust this.
11062 if test -x /usr
/bin
/objformat
; then
11063 objformat
=`/usr/bin/objformat`
11066 freebsd
[23].
*) objformat
=aout
;;
11067 *) objformat
=elf
;;
11070 version_type
=freebsd-
$objformat
11071 case $version_type in
11073 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11074 soname_spec
='$libname$release$shared_ext$major'
11079 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11083 shlibpath_var
=LD_LIBRARY_PATH
11086 shlibpath_overrides_runpath
=yes
11088 freebsd3.
[01]* | freebsdelf3.
[01]*)
11089 shlibpath_overrides_runpath
=yes
11090 hardcode_into_libs
=yes
11092 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
11093 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
11094 shlibpath_overrides_runpath
=no
11095 hardcode_into_libs
=yes
11097 *) # from 4.6 on, and DragonFly
11098 shlibpath_overrides_runpath
=yes
11099 hardcode_into_libs
=yes
11105 version_type
=linux
# correct to gnu/linux during the next big refactor
11108 dynamic_linker
="$host_os runtime_loader"
11109 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11110 soname_spec
='$libname$release$shared_ext$major'
11111 shlibpath_var
=LIBRARY_PATH
11112 shlibpath_overrides_runpath
=no
11113 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11114 hardcode_into_libs
=yes
11117 hpux9
* | hpux10
* | hpux11
*)
11118 # Give a soname corresponding to the major version so that dld.sl refuses to
11119 # link against other versions.
11126 hardcode_into_libs
=yes
11127 dynamic_linker
="$host_os dld.so"
11128 shlibpath_var
=LD_LIBRARY_PATH
11129 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11130 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11131 soname_spec
='$libname$release$shared_ext$major'
11132 if test 32 = "$HPUX_IA64_MODE"; then
11133 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11134 sys_lib_dlsearch_path_spec
=/usr
/lib
/hpux32
11136 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
11137 sys_lib_dlsearch_path_spec
=/usr
/lib
/hpux64
11142 hardcode_into_libs
=yes
11143 dynamic_linker
="$host_os dld.sl"
11144 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
11145 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11146 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11147 soname_spec
='$libname$release$shared_ext$major'
11148 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11149 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11153 dynamic_linker
="$host_os dld.sl"
11154 shlibpath_var
=SHLIB_PATH
11155 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
11156 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11157 soname_spec
='$libname$release$shared_ext$major'
11160 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11161 postinstall_cmds
='chmod 555 $lib'
11162 # or fails outright, so override atomically:
11163 install_override_mode
=555
11167 version_type
=linux
# correct to gnu/linux during the next big refactor
11170 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11171 soname_spec
='$libname$release$shared_ext$major'
11172 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
11173 shlibpath_var
=LD_LIBRARY_PATH
11174 shlibpath_overrides_runpath
=no
11175 hardcode_into_libs
=yes
11178 irix5
* | irix6
* | nonstopux
*)
11180 nonstopux
*) version_type
=nonstopux
;;
11182 if test yes = "$lt_cv_prog_gnu_ld"; then
11183 version_type
=linux
# correct to gnu/linux during the next big refactor
11190 soname_spec
='$libname$release$shared_ext$major'
11191 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11193 irix5
* | nonstopux
*)
11194 libsuff
= shlibsuff
=
11197 case $LD in # libtool.m4 will add one of these switches to LD
11198 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
11199 libsuff
= shlibsuff
= libmagic
=32-bit;;
11200 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
11201 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
11202 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
11203 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
11204 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
11208 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
11209 shlibpath_overrides_runpath
=no
11210 sys_lib_search_path_spec
="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11211 sys_lib_dlsearch_path_spec
="/usr/lib$libsuff /lib$libsuff"
11212 hardcode_into_libs
=yes
11215 # No shared lib support for Linux oldld, aout, or coff.
11216 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
11221 version_type
=none
# Android doesn't support versioned libraries.
11224 library_names_spec
='$libname$release$shared_ext'
11225 soname_spec
='$libname$release$shared_ext'
11227 shlibpath_var
=LD_LIBRARY_PATH
11228 shlibpath_overrides_runpath
=yes
11230 # This implies no fast_install, which is unacceptable.
11231 # Some rework will be needed to allow for fast_install
11232 # before this can be enabled.
11233 hardcode_into_libs
=yes
11235 dynamic_linker
='Android linker'
11236 # Don't embed -rpath directories since the linker doesn't support them.
11237 hardcode_libdir_flag_spec
='-L$libdir'
11240 # This must be glibc/ELF.
11241 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu | gnu
*)
11242 version_type
=linux
# correct to gnu/linux during the next big refactor
11245 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11246 soname_spec
='$libname$release$shared_ext$major'
11247 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11248 shlibpath_var
=LD_LIBRARY_PATH
11249 shlibpath_overrides_runpath
=no
11251 # Some binutils ld are patched to set DT_RUNPATH
11252 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
11253 $as_echo_n "(cached) " >&6
11255 lt_cv_shlibpath_overrides_runpath
=no
11256 save_LDFLAGS
=$LDFLAGS
11257 save_libdir
=$libdir
11258 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11259 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11261 /* end confdefs.h. */
11271 if ac_fn_c_try_link
"$LINENO"; then :
11272 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
11273 lt_cv_shlibpath_overrides_runpath
=yes
11276 rm -f core conftest.err conftest.
$ac_objext \
11277 conftest
$ac_exeext conftest.
$ac_ext
11278 LDFLAGS
=$save_LDFLAGS
11279 libdir
=$save_libdir
11283 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
11285 # This implies no fast_install, which is unacceptable.
11286 # Some rework will be needed to allow for fast_install
11287 # before this can be enabled.
11288 hardcode_into_libs
=yes
11290 # Ideally, we could use ldconfig to report *all* directores which are
11291 # searched for libraries, however this is still not possible. Aside from not
11292 # being certain /sbin/ldconfig is available, command
11293 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11294 # even though it is searched at run-time. Try to do the best guess by
11295 # appending ld.so.conf contents (and includes) to the search path.
11296 if test -f /etc
/ld.so.conf
; then
11297 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' ' '`
11298 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
11301 # We used to test for /lib/ld.so.1 and disable shared libraries on
11302 # powerpc, because MkLinux only supported shared libraries with the
11303 # GNU dynamic linker. Since this was broken with cross compilers,
11304 # most powerpc-linux boxes support dynamic linking these days and
11305 # people can always --disable-shared, the test was removed, and we
11306 # assume the GNU/Linux dynamic linker is in use.
11307 dynamic_linker
='GNU/Linux ld.so'
11314 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11315 soname_spec
='${libname}${release}${shared_ext}$major'
11316 shlibpath_var
=LD_LIBRARY_PATH
11317 shlibpath_overrides_runpath
=no
11318 hardcode_into_libs
=yes
11319 dynamic_linker
='NetBSD ld.elf_so'
11326 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
11327 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11328 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11329 dynamic_linker
='NetBSD (a.out) ld.so'
11331 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11332 soname_spec
='$libname$release$shared_ext$major'
11333 dynamic_linker
='NetBSD ld.elf_so'
11335 shlibpath_var
=LD_LIBRARY_PATH
11336 shlibpath_overrides_runpath
=yes
11337 hardcode_into_libs
=yes
11341 version_type
=linux
# correct to gnu/linux during the next big refactor
11342 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11343 shlibpath_var
=LD_LIBRARY_PATH
11344 shlibpath_overrides_runpath
=yes
11351 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11352 soname_spec
='$libname$release$shared_ext$major'
11353 shlibpath_var
=LD_LIBRARY_PATH
11354 shlibpath_overrides_runpath
=no
11355 hardcode_into_libs
=yes
11356 dynamic_linker
='ldqnx.so'
11359 openbsd
* | bitrig
*)
11361 sys_lib_dlsearch_path_spec
=/usr
/lib
11363 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11368 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11369 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11370 shlibpath_var
=LD_LIBRARY_PATH
11371 shlibpath_overrides_runpath
=yes
11375 libname_spec
='$name'
11376 version_type
=windows
11380 # OS/2 can only load a DLL with a base name of 8 characters or less.
11381 soname_spec
='`test -n "$os2dllname" && libname="$os2dllname";
11382 v=$($ECHO $release$versuffix | tr -d .-);
11383 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11384 $ECHO $n$v`$shared_ext'
11385 library_names_spec
='${libname}_dll.$libext'
11386 dynamic_linker
='OS/2 ld.exe'
11387 shlibpath_var
=BEGINLIBPATH
11388 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
11389 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11390 postinstall_cmds
='base_file=`basename \$file`~
11391 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11392 dldir=$destdir/`dirname \$dlpath`~
11393 test -d \$dldir || mkdir -p \$dldir~
11394 $install_prog $dir/$dlname \$dldir/$dlname~
11395 chmod a+x \$dldir/$dlname~
11396 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11397 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11399 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11400 dlpath=$dir/\$dldll~
11404 osf3
* | osf4
* | osf5
*)
11408 soname_spec
='$libname$release$shared_ext$major'
11409 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11410 shlibpath_var
=LD_LIBRARY_PATH
11411 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11412 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11420 version_type
=linux
# correct to gnu/linux during the next big refactor
11423 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11424 soname_spec
='$libname$release$shared_ext$major'
11425 shlibpath_var
=LD_LIBRARY_PATH
11426 shlibpath_overrides_runpath
=yes
11427 hardcode_into_libs
=yes
11428 # ldd complains unless libraries are executable
11429 postinstall_cmds
='chmod +x $lib'
11434 library_names_spec
='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11435 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11436 shlibpath_var
=LD_LIBRARY_PATH
11437 shlibpath_overrides_runpath
=yes
11438 if test yes = "$with_gnu_ld"; then
11445 version_type
=linux
# correct to gnu/linux during the next big refactor
11446 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11447 soname_spec
='$libname$release$shared_ext$major'
11448 shlibpath_var
=LD_LIBRARY_PATH
11449 case $host_vendor in
11451 shlibpath_overrides_runpath
=no
11453 runpath_var
=LD_RUN_PATH
11461 shlibpath_overrides_runpath
=no
11462 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11468 if test -d /usr
/nec
; then
11469 version_type
=linux
# correct to gnu/linux during the next big refactor
11470 library_names_spec
='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11471 soname_spec
='$libname$shared_ext.$major'
11472 shlibpath_var
=LD_LIBRARY_PATH
11476 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11480 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11481 soname_spec
='$libname$release$shared_ext$major'
11482 shlibpath_var
=LD_LIBRARY_PATH
11483 shlibpath_overrides_runpath
=yes
11484 hardcode_into_libs
=yes
11485 if test yes = "$with_gnu_ld"; then
11486 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11488 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11491 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11495 sys_lib_dlsearch_path_spec
='/usr/lib'
11499 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11500 version_type
=linux
# correct to gnu/linux during the next big refactor
11503 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11504 shlibpath_var
=LD_LIBRARY_PATH
11505 shlibpath_overrides_runpath
=no
11506 hardcode_into_libs
=yes
11510 version_type
=linux
# correct to gnu/linux during the next big refactor
11511 library_names_spec
='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11512 soname_spec
='$libname$release$shared_ext$major'
11513 shlibpath_var
=LD_LIBRARY_PATH
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11521 $as_echo "$dynamic_linker" >&6; }
11522 test no
= "$dynamic_linker" && can_build_shared
=no
11524 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11525 if test yes = "$GCC"; then
11526 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11529 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
11530 sys_lib_search_path_spec
=$lt_cv_sys_lib_search_path_spec
11533 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
11534 sys_lib_dlsearch_path_spec
=$lt_cv_sys_lib_dlsearch_path_spec
11537 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
11538 configure_time_dlsearch_path
=$sys_lib_dlsearch_path_spec
11540 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
11541 func_munge_path_list sys_lib_dlsearch_path_spec
"$LT_SYS_LIBRARY_PATH"
11543 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
11544 configure_time_lt_sys_library_path
=$LT_SYS_LIBRARY_PATH
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11643 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11645 if test -n "$hardcode_libdir_flag_spec" ||
11646 test -n "$runpath_var" ||
11647 test yes = "$hardcode_automatic"; then
11649 # We can hardcode non-existent directories.
11650 if test no
!= "$hardcode_direct" &&
11651 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11652 # have to relink, otherwise we might link with an installed library
11653 # when we should be linking with a yet-to-be-installed one
11654 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
11655 test no
!= "$hardcode_minus_L"; then
11656 # Linking always hardcodes the temporary library directory.
11657 hardcode_action
=relink
11659 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11660 hardcode_action
=immediate
11663 # We cannot hardcode anything, or else we can only hardcode existing
11665 hardcode_action
=unsupported
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11668 $as_echo "$hardcode_action" >&6; }
11670 if test relink
= "$hardcode_action" ||
11671 test yes = "$inherit_rpath"; then
11672 # Fast installation is not supported
11673 enable_fast_install
=no
11674 elif test yes = "$shlibpath_overrides_runpath" ||
11675 test no
= "$enable_shared"; then
11676 # Fast installation is not necessary
11677 enable_fast_install
=needless
11685 if test yes != "$enable_dlopen"; then
11686 enable_dlopen
=unknown
11687 enable_dlopen_self
=unknown
11688 enable_dlopen_self_static
=unknown
11695 lt_cv_dlopen
=load_add_on
11697 lt_cv_dlopen_self
=yes
11700 mingw
* | pw32
* | cegcc
*)
11701 lt_cv_dlopen
=LoadLibrary
11706 lt_cv_dlopen
=dlopen
11711 # if libdl is installed we need to link against it
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11713 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11714 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11715 $as_echo_n "(cached) " >&6
11717 ac_check_lib_save_LIBS
=$LIBS
11719 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11720 /* end confdefs.h. */
11722 /* Override any GCC internal prototype to avoid an error.
11723 Use char because int might match the return type of a GCC
11724 builtin and then its argument prototype would still apply. */
11737 if ac_fn_c_try_link
"$LINENO"; then :
11738 ac_cv_lib_dl_dlopen
=yes
11740 ac_cv_lib_dl_dlopen
=no
11742 rm -f core conftest.err conftest.
$ac_objext \
11743 conftest
$ac_exeext conftest.
$ac_ext
11744 LIBS
=$ac_check_lib_save_LIBS
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11747 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11748 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11749 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-ldl
11754 lt_cv_dlopen_self
=yes
11761 # Don't try to run any link tests for TPF. We know it's impossible
11762 # because TPF is a cross-compiler, and we know how we open DSOs.
11763 lt_cv_dlopen
=dlopen
11765 lt_cv_dlopen_self
=no
11769 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11770 if test "x$ac_cv_func_shl_load" = xyes
; then :
11771 lt_cv_dlopen
=shl_load
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11774 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11775 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11776 $as_echo_n "(cached) " >&6
11778 ac_check_lib_save_LIBS
=$LIBS
11780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11781 /* end confdefs.h. */
11783 /* Override any GCC internal prototype to avoid an error.
11784 Use char because int might match the return type of a GCC
11785 builtin and then its argument prototype would still apply. */
11793 return shl_load ();
11798 if ac_fn_c_try_link
"$LINENO"; then :
11799 ac_cv_lib_dld_shl_load
=yes
11801 ac_cv_lib_dld_shl_load
=no
11803 rm -f core conftest.err conftest.
$ac_objext \
11804 conftest
$ac_exeext conftest.
$ac_ext
11805 LIBS
=$ac_check_lib_save_LIBS
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11808 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11809 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11810 lt_cv_dlopen
=shl_load lt_cv_dlopen_libs
=-ldld
11812 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11813 if test "x$ac_cv_func_dlopen" = xyes
; then :
11814 lt_cv_dlopen
=dlopen
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11817 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11818 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11819 $as_echo_n "(cached) " >&6
11821 ac_check_lib_save_LIBS
=$LIBS
11823 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11824 /* end confdefs.h. */
11826 /* Override any GCC internal prototype to avoid an error.
11827 Use char because int might match the return type of a GCC
11828 builtin and then its argument prototype would still apply. */
11841 if ac_fn_c_try_link
"$LINENO"; then :
11842 ac_cv_lib_dl_dlopen
=yes
11844 ac_cv_lib_dl_dlopen
=no
11846 rm -f core conftest.err conftest.
$ac_objext \
11847 conftest
$ac_exeext conftest.
$ac_ext
11848 LIBS
=$ac_check_lib_save_LIBS
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11851 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11852 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11853 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-ldl
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11856 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11857 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11858 $as_echo_n "(cached) " >&6
11860 ac_check_lib_save_LIBS
=$LIBS
11861 LIBS
="-lsvld $LIBS"
11862 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11863 /* end confdefs.h. */
11865 /* Override any GCC internal prototype to avoid an error.
11866 Use char because int might match the return type of a GCC
11867 builtin and then its argument prototype would still apply. */
11880 if ac_fn_c_try_link
"$LINENO"; then :
11881 ac_cv_lib_svld_dlopen
=yes
11883 ac_cv_lib_svld_dlopen
=no
11885 rm -f core conftest.err conftest.
$ac_objext \
11886 conftest
$ac_exeext conftest.
$ac_ext
11887 LIBS
=$ac_check_lib_save_LIBS
11889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11890 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11891 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11892 lt_cv_dlopen
=dlopen lt_cv_dlopen_libs
=-lsvld
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11895 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11896 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11897 $as_echo_n "(cached) " >&6
11899 ac_check_lib_save_LIBS
=$LIBS
11901 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11902 /* end confdefs.h. */
11904 /* Override any GCC internal prototype to avoid an error.
11905 Use char because int might match the return type of a GCC
11906 builtin and then its argument prototype would still apply. */
11914 return dld_link ();
11919 if ac_fn_c_try_link
"$LINENO"; then :
11920 ac_cv_lib_dld_dld_link
=yes
11922 ac_cv_lib_dld_dld_link
=no
11924 rm -f core conftest.err conftest.
$ac_objext \
11925 conftest
$ac_exeext conftest.
$ac_ext
11926 LIBS
=$ac_check_lib_save_LIBS
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11929 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11930 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11931 lt_cv_dlopen
=dld_link lt_cv_dlopen_libs
=-ldld
11952 if test no
= "$lt_cv_dlopen"; then
11958 case $lt_cv_dlopen in
11960 save_CPPFLAGS
=$CPPFLAGS
11961 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11963 save_LDFLAGS
=$LDFLAGS
11964 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11967 LIBS
="$lt_cv_dlopen_libs $LIBS"
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11970 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11971 if ${lt_cv_dlopen_self+:} false
; then :
11972 $as_echo_n "(cached) " >&6
11974 if test yes = "$cross_compiling"; then :
11975 lt_cv_dlopen_self
=cross
11977 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11978 lt_status
=$lt_dlunknown
11979 cat > conftest.
$ac_ext <<_LT_EOF
11980 #line $LINENO "configure"
11981 #include "confdefs.h"
11990 # define LT_DLGLOBAL RTLD_GLOBAL
11993 # define LT_DLGLOBAL DL_GLOBAL
11995 # define LT_DLGLOBAL 0
11999 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12000 find out it does not work in some platform. */
12001 #ifndef LT_DLLAZY_OR_NOW
12003 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12006 # define LT_DLLAZY_OR_NOW DL_LAZY
12009 # define LT_DLLAZY_OR_NOW RTLD_NOW
12012 # define LT_DLLAZY_OR_NOW DL_NOW
12014 # define LT_DLLAZY_OR_NOW 0
12021 /* When -fvisibility=hidden is used, assume the code has been annotated
12022 correspondingly for the symbols needed. */
12023 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12024 int fnord () __attribute__((visibility("default")));
12027 int fnord () { return 42; }
12030 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12031 int status = $lt_dlunknown;
12035 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12038 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12039 else puts (dlerror ());
12041 /* dlclose (self); */
12049 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12050 (eval $ac_link) 2>&5
12052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12053 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev
/null
; then
12054 (.
/conftest
; exit; ) >&5 2>/dev
/null
12056 case x
$lt_status in
12057 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
12058 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
12059 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
12062 # compilation failed
12063 lt_cv_dlopen_self
=no
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12071 $as_echo "$lt_cv_dlopen_self" >&6; }
12073 if test yes = "$lt_cv_dlopen_self"; then
12074 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12076 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12077 if ${lt_cv_dlopen_self_static+:} false
; then :
12078 $as_echo_n "(cached) " >&6
12080 if test yes = "$cross_compiling"; then :
12081 lt_cv_dlopen_self_static
=cross
12083 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12084 lt_status
=$lt_dlunknown
12085 cat > conftest.
$ac_ext <<_LT_EOF
12086 #line $LINENO "configure"
12087 #include "confdefs.h"
12096 # define LT_DLGLOBAL RTLD_GLOBAL
12099 # define LT_DLGLOBAL DL_GLOBAL
12101 # define LT_DLGLOBAL 0
12105 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12106 find out it does not work in some platform. */
12107 #ifndef LT_DLLAZY_OR_NOW
12109 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12112 # define LT_DLLAZY_OR_NOW DL_LAZY
12115 # define LT_DLLAZY_OR_NOW RTLD_NOW
12118 # define LT_DLLAZY_OR_NOW DL_NOW
12120 # define LT_DLLAZY_OR_NOW 0
12127 /* When -fvisibility=hidden is used, assume the code has been annotated
12128 correspondingly for the symbols needed. */
12129 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12130 int fnord () __attribute__((visibility("default")));
12133 int fnord () { return 42; }
12136 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12137 int status = $lt_dlunknown;
12141 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12144 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12145 else puts (dlerror ());
12147 /* dlclose (self); */
12155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12156 (eval $ac_link) 2>&5
12158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12159 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev
/null
; then
12160 (.
/conftest
; exit; ) >&5 2>/dev
/null
12162 case x
$lt_status in
12163 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
12164 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
12165 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
12168 # compilation failed
12169 lt_cv_dlopen_self_static
=no
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12177 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12180 CPPFLAGS
=$save_CPPFLAGS
12181 LDFLAGS
=$save_LDFLAGS
12186 case $lt_cv_dlopen_self in
12187 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
12188 *) enable_dlopen_self
=unknown
;;
12191 case $lt_cv_dlopen_self_static in
12192 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
12193 *) enable_dlopen_self_static
=unknown
;;
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12216 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12217 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
12218 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
12219 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12221 $as_echo "yes" >&6; }
12223 # FIXME - insert some real tests, host_os isn't really good enough
12226 if test -n "$STRIP"; then
12227 striplib
="$STRIP -x"
12228 old_striplib
="$STRIP -S"
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12230 $as_echo "yes" >&6; }
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12233 $as_echo "no" >&6; }
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12238 $as_echo "no" >&6; }
12254 # Report what library types will actually be built
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12256 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12258 $as_echo "$can_build_shared" >&6; }
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12261 $as_echo_n "checking whether to build shared libraries... " >&6; }
12262 test no
= "$can_build_shared" && enable_shared
=no
12264 # On AIX, shared libraries and static libraries use the same namespace, and
12265 # are all built from PIC.
12268 test yes = "$enable_shared" && enable_static
=no
12269 if test -n "$RANLIB"; then
12270 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12271 postinstall_cmds
='$RANLIB $lib'
12276 if test ia64
!= "$host_cpu"; then
12277 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12278 yes,aix
,yes) ;; # shared object as lib.so file only
12279 yes,svr4
,*) ;; # shared object as lib.so archive member only
12280 yes,*) enable_static
=no
;; # shared object in lib.a archive as well
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12286 $as_echo "$enable_shared" >&6; }
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12289 $as_echo_n "checking whether to build static libraries... " >&6; }
12290 # Make sure either enable_shared or enable_static is yes.
12291 test yes = "$enable_shared" || enable_static
=yes
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12293 $as_echo "$enable_static" >&6; }
12300 ac_cpp
='$CPP $CPPFLAGS'
12301 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12302 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12303 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12321 ac_config_commands
="$ac_config_commands libtool"
12326 # Only expand once:
12329 # By default we simply use the C compiler to build assembly code.
12331 test "${CCAS+set}" = set || CCAS
=$CC
12332 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
12336 depcc
="$CCAS" am_compiler_list
=
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12339 $as_echo_n "checking dependency style of $depcc... " >&6; }
12340 if ${am_cv_CCAS_dependencies_compiler_type+:} false
; then :
12341 $as_echo_n "(cached) " >&6
12343 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12344 # We make a subdir and do the tests there. Otherwise we can end up
12345 # making bogus files that we don't know about and never remove. For
12346 # instance it was reported that on HP-UX the gcc test will end up
12347 # making a dummy file named 'D' -- because '-MD' means "put the output
12349 rm -rf conftest.dir
12351 # Copy depcomp to subdir because otherwise we won't find it if we're
12352 # using a relative directory.
12353 cp "$am_depcomp" conftest.dir
12355 # We will build objects and dependencies in a subdirectory because
12356 # it helps to detect inapplicable dependency modes. For instance
12357 # both Tru64's cc and ICC support -MD to output dependencies as a
12358 # side effect of compilation, but ICC will put the dependencies in
12359 # the current directory while Tru64 will put them in the object
12363 am_cv_CCAS_dependencies_compiler_type
=none
12364 if test "$am_compiler_list" = ""; then
12365 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12367 am__universal
=false
12370 for depmode
in $am_compiler_list; do
12371 # Setup a source with many dependencies, because some compilers
12372 # like to wrap large dependency lists on column 80 (with \), and
12373 # we should not choose a depcomp mode which is confused by this.
12375 # We need to recreate these files for each test, as the compiler may
12376 # overwrite some of them when testing with obscure command lines.
12377 # This happens at least with the AIX C compiler.
12379 for i
in 1 2 3 4 5 6; do
12380 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
12381 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12382 # Solaris 10 /bin/sh.
12383 echo '/* dummy */' > sub
/conftst
$i.h
12385 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12387 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12388 # mode. It turns out that the SunPro C++ compiler does not properly
12389 # handle '-M -o', and we need to detect this. Also, some Intel
12390 # versions had trouble with output in subdirs.
12391 am__obj
=sub
/conftest.
${OBJEXT-o}
12392 am__minus_obj
="-o $am__obj"
12395 # This depmode causes a compiler race in universal mode.
12396 test "$am__universal" = false ||
continue
12399 # After this tag, mechanisms are not by side-effect, so they'll
12400 # only be used when explicitly requested.
12401 if test "x$enable_dependency_tracking" = xyes
; then
12407 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
12408 # This compiler won't grok '-c -o', but also, the minuso test has
12409 # not run yet. These depmodes are late enough in the game, and
12410 # so weak that their functioning should not be impacted.
12411 am__obj
=conftest.
${OBJEXT-o}
12416 if depmode
=$depmode \
12417 source=sub
/conftest.c object
=$am__obj \
12418 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
12419 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
12420 >/dev
/null
2>conftest.err
&&
12421 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
12422 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
12423 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
12424 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
12425 # icc doesn't choke on unknown options, it will just issue warnings
12426 # or remarks (even with -Werror). So we grep stderr for any message
12427 # that says an option was ignored or not supported.
12428 # When given -MP, icc 7.0 and 7.1 complain thusly:
12429 # icc: Command line warning: ignoring option '-M'; no argument required
12430 # The diagnosis changed in icc 8.0:
12431 # icc: Command line remark: option '-MP' not supported
12432 if (grep 'ignoring option' conftest.err ||
12433 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
12434 am_cv_CCAS_dependencies_compiler_type
=$depmode
12441 rm -rf conftest.dir
12443 am_cv_CCAS_dependencies_compiler_type
=none
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
12448 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
12449 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
12452 test "x$enable_dependency_tracking" != xno \
12453 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
12454 am__fastdepCCAS_TRUE
=
12455 am__fastdepCCAS_FALSE
='#'
12457 am__fastdepCCAS_TRUE
='#'
12458 am__fastdepCCAS_FALSE
=
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs author" >&5
12465 $as_echo_n "checking zfs author... " >&6; }
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_AUTHOR" >&5
12467 $as_echo "$ZFS_META_AUTHOR" >&6; }
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs license" >&5
12470 $as_echo_n "checking zfs license... " >&6; }
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_LICENSE" >&5
12472 $as_echo "$ZFS_META_LICENSE" >&6; }
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linux distribution" >&5
12477 $as_echo_n "checking linux distribution... " >&6; }
12478 if test -f /etc
/toss-release
; then
12480 elif test -f /etc
/fedora-release
; then
12482 elif test -f /etc
/redhat-release
; then
12484 elif test -f /etc
/gentoo-release
; then
12486 elif test -f /etc
/arch-release
; then
12488 elif test -f /etc
/SuSE-release
; then
12490 elif test -f /etc
/slackware-version
; then
12492 elif test -f /etc
/lunar.release
; then
12494 elif test -f /etc
/lsb-release
; then
12496 elif test -f /etc
/debian_version
; then
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VENDOR" >&5
12502 $as_echo "$VENDOR" >&6; }
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default package type" >&5
12506 $as_echo_n "checking default package type... " >&6; }
12508 toss
) DEFAULT_PACKAGE
=rpm
;;
12509 redhat
) DEFAULT_PACKAGE
=rpm
;;
12510 fedora
) DEFAULT_PACKAGE
=rpm
;;
12511 gentoo
) DEFAULT_PACKAGE
=tgz
;;
12512 arch
) DEFAULT_PACKAGE
=tgz
;;
12513 sles
) DEFAULT_PACKAGE
=rpm
;;
12514 slackware
) DEFAULT_PACKAGE
=tgz
;;
12515 lunar
) DEFAULT_PACKAGE
=tgz
;;
12516 ubuntu
) DEFAULT_PACKAGE
=deb
;;
12517 debian
) DEFAULT_PACKAGE
=deb
;;
12518 *) DEFAULT_PACKAGE
=rpm
;;
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_PACKAGE" >&5
12521 $as_echo "$DEFAULT_PACKAGE" >&6; }
12524 DEFAULT_INIT_DIR
=$sysconfdir/init.d
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init directory" >&5
12526 $as_echo_n "checking default init directory... " >&6; }
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_DIR" >&5
12528 $as_echo "$DEFAULT_INIT_DIR" >&6; }
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init script type" >&5
12532 $as_echo_n "checking default init script type... " >&6; }
12534 toss
) DEFAULT_INIT_SCRIPT
=redhat
;;
12535 redhat
) DEFAULT_INIT_SCRIPT
=redhat
;;
12536 fedora
) DEFAULT_INIT_SCRIPT
=fedora
;;
12537 gentoo
) DEFAULT_INIT_SCRIPT
=gentoo
;;
12538 arch
) DEFAULT_INIT_SCRIPT
=lsb
;;
12539 sles
) DEFAULT_INIT_SCRIPT
=lsb
;;
12540 slackware
) DEFAULT_INIT_SCRIPT
=lsb
;;
12541 lunar
) DEFAULT_INIT_SCRIPT
=lunar
;;
12542 ubuntu
) DEFAULT_INIT_SCRIPT
=lsb
;;
12543 debian
) DEFAULT_INIT_SCRIPT
=lsb
;;
12544 *) DEFAULT_INIT_SCRIPT
=lsb
;;
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_SCRIPT" >&5
12547 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init config direectory" >&5
12551 $as_echo_n "checking default init config direectory... " >&6; }
12553 gentoo
) DEFAULT_INITCONF_DIR
=/etc
/conf.d
;;
12554 toss
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12555 redhat
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12556 fedora
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12557 sles
) DEFAULT_INITCONF_DIR
=/etc
/sysconfig
;;
12558 ubuntu
) DEFAULT_INITCONF_DIR
=/etc
/default
;;
12559 debian
) DEFAULT_INITCONF_DIR
=/etc
/default
;;
12560 *) DEFAULT_INITCONF_DIR
=/etc
/default
;;
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INITCONF_DIR" >&5
12563 $as_echo "$DEFAULT_INITCONF_DIR" >&6; }
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether initramfs-tools is available" >&5
12567 $as_echo_n "checking whether initramfs-tools is available... " >&6; }
12568 if test -d /usr
/share
/initramfs-tools
; then
12569 DEFINE_INITRAMFS
='--define "_initramfs 1"'
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12571 $as_echo "yes" >&6; }
12573 DEFINE_INITRAMFS
=''
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12575 $as_echo "no" >&6; }
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPM is available" >&5
12584 $as_echo_n "checking whether $RPM is available... " >&6; }
12585 if tmp
=$
($RPM --version 2>/dev
/null
); then :
12587 RPM_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM ($RPM_VERSION)" >&5
12590 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM" >&5
12596 $as_echo "$HAVE_RPM" >&6; }
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPMBUILD is available" >&5
12601 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
12602 if tmp
=$
($RPMBUILD --version 2>/dev
/null
); then :
12604 RPMBUILD_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
12607 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD" >&5
12613 $as_echo "$HAVE_RPMBUILD" >&6; }
12617 RPM_DEFINE_COMMON
='--define "$(DEBUG_ZFS) 1" --define "$(DEBUG_DMU_TX) 1"'
12618 RPM_DEFINE_UTIL
='--define "_dracutdir $(dracutdir)" --define "_udevdir $(udevdir)" --define "_udevruledir $(udevruledir)" --define "_initconfdir $(DEFAULT_INITCONF_DIR)" $(DEFINE_INITRAMFS)'
12619 RPM_DEFINE_KMOD
='--define "kernels $(LINUX_VERSION)" --define "require_spldir $(SPL)" --define "require_splobj $(SPL_OBJ)" --define "ksrc $(LINUX)" --define "kobj $(LINUX_OBJ)"'
12622 SRPM_DEFINE_COMMON
='--define "build_src_rpm 1"'
12627 RPM_SPEC_DIR
="rpm/generic"
12629 # Check whether --with-spec was given.
12630 if test "${with_spec+set}" = set; then :
12631 withval
=$with_spec; RPM_SPEC_DIR
="rpm/$withval"
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spec files are available" >&5
12636 $as_echo_n "checking whether spec files are available... " >&6; }
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
12638 $as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
12660 DPKGBUILD
=dpkg-buildpackage
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKG is available" >&5
12663 $as_echo_n "checking whether $DPKG is available... " >&6; }
12664 if tmp
=$
($DPKG --version 2>/dev
/null
); then :
12666 DPKG_VERSION
=$
(echo $tmp |
$AWK '/Debian/ { print $7 }')
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
12669 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG" >&5
12675 $as_echo "$HAVE_DPKG" >&6; }
12679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKGBUILD is available" >&5
12680 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
12681 if tmp
=$
($DPKGBUILD --version 2>/dev
/null
); then :
12683 DPKGBUILD_VERSION
=$
(echo $tmp | \
12684 $AWK '/Debian/ { print $4 }' | cut
-f-4 -d'.')
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
12687 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD" >&5
12693 $as_echo "$HAVE_DPKGBUILD" >&6; }
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ALIEN is available" >&5
12709 $as_echo_n "checking whether $ALIEN is available... " >&6; }
12710 if tmp
=$
($ALIEN --version 2>/dev
/null
); then :
12712 ALIEN_VERSION
=$
(echo $tmp |
$AWK '{ print $3 }')
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
12715 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN" >&5
12721 $as_echo "$HAVE_ALIEN" >&6; }
12731 TARGET_ASM_DIR
=asm-generic
12736 # Check whether --with-config was given.
12737 if test "${with_config+set}" = set; then :
12738 withval
=$with_config; ZFS_CONFIG
="$withval"
12741 # Check whether --enable-linux-builtin was given.
12742 if test "${enable_linux_builtin+set}" = set; then :
12743 enableval
=$enable_linux_builtin;
12745 enable_linux_builtin
=no
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs config" >&5
12750 $as_echo_n "checking zfs config... " >&6; }
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_CONFIG" >&5
12752 $as_echo "$ZFS_CONFIG" >&6; };
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-unused-but-set-variable support" >&5
12758 $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
12760 saved_flags
="$CFLAGS"
12761 CFLAGS
="$CFLAGS -Wunused-but-set-variable"
12763 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12764 /* end confdefs.h. */
12774 if ac_fn_c_try_compile
"$LINENO"; then :
12776 NO_UNUSED_BUT_SET_VARIABLE
=-Wno-unused-but-set-variable
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12778 $as_echo "yes" >&6; }
12782 NO_UNUSED_BUT_SET_VARIABLE
=
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12784 $as_echo "no" >&6; }
12787 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12789 CFLAGS
="$saved_flags"
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-bool-compare support" >&5
12794 $as_echo_n "checking for -Wno-bool-compare support... " >&6; }
12796 saved_flags
="$CFLAGS"
12797 CFLAGS
="$CFLAGS -Wbool-compare"
12799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12800 /* end confdefs.h. */
12810 if ac_fn_c_try_compile
"$LINENO"; then :
12812 NO_BOOL_COMPARE
=-Wno-bool-compare
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12814 $as_echo "yes" >&6; }
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12820 $as_echo "no" >&6; }
12823 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12825 CFLAGS
="$saved_flags"
12830 case "$ZFS_CONFIG" in
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dkms.conf file" >&5
12834 $as_echo_n "checking for dkms.conf file... " >&6; }
12835 if test -e dkms.conf
; then :
12838 *** ZFS should not be manually built in the DKMS source tree.
12839 *** Remove all ZFS packages before compiling the ZoL sources.
12840 *** Running \"make install\" breaks ZFS packages." "$LINENO" 5
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
12845 $as_echo "not found" >&6; }
12851 # Check whether --with-mounthelperdir was given.
12852 if test "${with_mounthelperdir+set}" = set; then :
12853 withval
=$with_mounthelperdir; mounthelperdir
=$withval
12855 mounthelperdir
=/sbin
12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
12863 $as_echo_n "checking for udev directories... " >&6; }
12865 # Check whether --with-udevdir was given.
12866 if test "${with_udevdir+set}" = set; then :
12867 withval
=$with_udevdir; udevdir
=$withval
12873 if test "x$udevdir" = xcheck
; then :
12876 path2
=/usr
/lib
/udev
12879 if test -d "$path1"; then :
12883 if test -d "$path2"; then :
12894 # Check whether --with-udevruledir was given.
12895 if test "${with_udevruledir+set}" = set; then :
12896 withval
=$with_udevruledir; udevruledir
=$withval
12898 udevruledir
="${udevdir}/rules.d"
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
12905 $as_echo "$udevdir;$udevruledir" >&6; }
12910 ac_fn_c_check_header_mongrel
"$LINENO" "libaio.h" "ac_cv_header_libaio_h" "$ac_includes_default"
12911 if test "x$ac_cv_header_libaio_h" = xyes
; then :
12917 $as_echo "#define HAVE_LIBAIO 1" >>confdefs.h
12929 # Check whether --enable-systemd was given.
12930 if test "${enable_systemd+set}" = set; then :
12931 enableval
=$enable_systemd;
12938 # Check whether --with-systemdunitdir was given.
12939 if test "${with_systemdunitdir+set}" = set; then :
12940 withval
=$with_systemdunitdir; systemdunitdir
=$withval
12942 systemdunitdir
=/usr
/lib
/systemd
/system
12947 # Check whether --with-systemdpresetdir was given.
12948 if test "${with_systemdpresetdir+set}" = set; then :
12949 withval
=$with_systemdpresetdir; systemdpresetdir
=$withval
12951 systemdpresetdir
=/usr
/lib
/systemd
/system-preset
12956 # Check whether --with-systemdmodulesloaddir was given.
12957 if test "${with_systemdmodulesloaddir+set}" = set; then :
12958 withval
=$with_systemdmodulesloaddir; systemdmoduleloaddir
=$withval
12960 systemdmodulesloaddir
=/usr
/lib
/modules-load.d
12965 if test "x$enable_systemd" = xyes
; then :
12967 ZFS_INIT_SYSTEMD
=systemd
12968 ZFS_MODULE_LOAD
=modules-load.d
12969 modulesloaddir
=$systemdmodulesloaddir
12980 # Check whether --enable-sysvinit was given.
12981 if test "${enable_sysvinit+set}" = set; then :
12982 enableval
=$enable_sysvinit;
12984 enable_sysvinit
=yes
12988 if test "x$enable_sysvinit" = xyes
; then :
12989 ZFS_INIT_SYSV
=init.d
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
12996 $as_echo_n "checking for dracut directory... " >&6; }
12998 # Check whether --with-dracutdir was given.
12999 if test "${with_dracutdir+set}" = set; then :
13000 withval
=$with_dracutdir; dracutdir
=$withval
13006 if test "x$dracutdir" = xcheck
; then :
13008 path1
=/usr
/share
/dracut
13009 path2
=/usr
/lib
/dracut
13012 if test -d "$path1"; then :
13016 if test -d "$path2"; then :
13019 dracutdir
="$default"
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
13028 $as_echo "$dracutdir" >&6; }
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
13032 $as_echo_n "checking for target asm dir... " >&6; }
13033 TARGET_ARCH
=`echo ${target_cpu} | sed -e s/i.86/i386/`
13035 case $TARGET_ARCH in
13037 TARGET_ASM_DIR
=asm-
${TARGET_ARCH}
13040 TARGET_ASM_DIR
=asm-generic
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
13046 $as_echo "$TARGET_ASM_DIR" >&6; }
13051 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
13052 if test "x$ac_cv_header_zlib_h" = xyes
; then :
13055 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13056 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13058 *** zlib.h missing, zlib-devel package required
13059 See \`config.log' for more details" "$LINENO" 5; }
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
13065 $as_echo_n "checking for compress2 in -lz... " >&6; }
13066 if ${ac_cv_lib_z_compress2+:} false
; then :
13067 $as_echo_n "(cached) " >&6
13069 ac_check_lib_save_LIBS
=$LIBS
13071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13072 /* end confdefs.h. */
13074 /* Override any GCC internal prototype to avoid an error.
13075 Use char because int might match the return type of a GCC
13076 builtin and then its argument prototype would still apply. */
13084 return compress2 ();
13089 if ac_fn_c_try_link
"$LINENO"; then :
13090 ac_cv_lib_z_compress2
=yes
13092 ac_cv_lib_z_compress2
=no
13094 rm -f core conftest.err conftest.
$ac_objext \
13095 conftest
$ac_exeext conftest.
$ac_ext
13096 LIBS
=$ac_check_lib_save_LIBS
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
13099 $as_echo "$ac_cv_lib_z_compress2" >&6; }
13100 if test "x$ac_cv_lib_z_compress2" = xyes
; then :
13101 cat >>confdefs.h
<<_ACEOF
13102 #define HAVE_LIBZ 1
13108 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13109 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13111 *** compress2() missing, zlib-devel package required
13112 See \`config.log' for more details" "$LINENO" 5; }
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
13117 $as_echo_n "checking for uncompress in -lz... " >&6; }
13118 if ${ac_cv_lib_z_uncompress+:} false
; then :
13119 $as_echo_n "(cached) " >&6
13121 ac_check_lib_save_LIBS
=$LIBS
13123 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13124 /* end confdefs.h. */
13126 /* Override any GCC internal prototype to avoid an error.
13127 Use char because int might match the return type of a GCC
13128 builtin and then its argument prototype would still apply. */
13132 char uncompress ();
13136 return uncompress ();
13141 if ac_fn_c_try_link
"$LINENO"; then :
13142 ac_cv_lib_z_uncompress
=yes
13144 ac_cv_lib_z_uncompress
=no
13146 rm -f core conftest.err conftest.
$ac_objext \
13147 conftest
$ac_exeext conftest.
$ac_ext
13148 LIBS
=$ac_check_lib_save_LIBS
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
13151 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
13152 if test "x$ac_cv_lib_z_uncompress" = xyes
; then :
13153 cat >>confdefs.h
<<_ACEOF
13154 #define HAVE_LIBZ 1
13160 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13161 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13163 *** uncompress() missing, zlib-devel package required
13164 See \`config.log' for more details" "$LINENO" 5; }
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5
13169 $as_echo_n "checking for crc32 in -lz... " >&6; }
13170 if ${ac_cv_lib_z_crc32+:} false
; then :
13171 $as_echo_n "(cached) " >&6
13173 ac_check_lib_save_LIBS
=$LIBS
13175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13176 /* end confdefs.h. */
13178 /* Override any GCC internal prototype to avoid an error.
13179 Use char because int might match the return type of a GCC
13180 builtin and then its argument prototype would still apply. */
13193 if ac_fn_c_try_link
"$LINENO"; then :
13194 ac_cv_lib_z_crc32
=yes
13196 ac_cv_lib_z_crc32
=no
13198 rm -f core conftest.err conftest.
$ac_objext \
13199 conftest
$ac_exeext conftest.
$ac_ext
13200 LIBS
=$ac_check_lib_save_LIBS
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5
13203 $as_echo "$ac_cv_lib_z_crc32" >&6; }
13204 if test "x$ac_cv_lib_z_crc32" = xyes
; then :
13205 cat >>confdefs.h
<<_ACEOF
13206 #define HAVE_LIBZ 1
13212 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13215 *** crc32() missing, zlib-devel package required
13216 See \`config.log' for more details" "$LINENO" 5; }
13223 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
13229 ac_fn_c_check_header_mongrel
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
13230 if test "x$ac_cv_header_uuid_uuid_h" = xyes
; then :
13233 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13236 *** uuid/uuid.h missing, libuuid-devel package required
13237 See \`config.log' for more details" "$LINENO" 5; }
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
13243 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
13244 if ${ac_cv_lib_uuid_uuid_generate+:} false
; then :
13245 $as_echo_n "(cached) " >&6
13247 ac_check_lib_save_LIBS
=$LIBS
13248 LIBS
="-luuid $LIBS"
13249 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13250 /* end confdefs.h. */
13252 /* Override any GCC internal prototype to avoid an error.
13253 Use char because int might match the return type of a GCC
13254 builtin and then its argument prototype would still apply. */
13258 char uuid_generate ();
13262 return uuid_generate ();
13267 if ac_fn_c_try_link
"$LINENO"; then :
13268 ac_cv_lib_uuid_uuid_generate
=yes
13270 ac_cv_lib_uuid_uuid_generate
=no
13272 rm -f core conftest.err conftest.
$ac_objext \
13273 conftest
$ac_exeext conftest.
$ac_ext
13274 LIBS
=$ac_check_lib_save_LIBS
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
13277 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
13278 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
; then :
13279 cat >>confdefs.h
<<_ACEOF
13280 #define HAVE_LIBUUID 1
13283 LIBS
="-luuid $LIBS"
13286 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13287 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13289 *** uuid_generate() missing, libuuid-devel package required
13290 See \`config.log' for more details" "$LINENO" 5; }
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5
13295 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
13296 if ${ac_cv_lib_uuid_uuid_is_null+:} false
; then :
13297 $as_echo_n "(cached) " >&6
13299 ac_check_lib_save_LIBS
=$LIBS
13300 LIBS
="-luuid $LIBS"
13301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13302 /* end confdefs.h. */
13304 /* Override any GCC internal prototype to avoid an error.
13305 Use char because int might match the return type of a GCC
13306 builtin and then its argument prototype would still apply. */
13310 char uuid_is_null ();
13314 return uuid_is_null ();
13319 if ac_fn_c_try_link
"$LINENO"; then :
13320 ac_cv_lib_uuid_uuid_is_null
=yes
13322 ac_cv_lib_uuid_uuid_is_null
=no
13324 rm -f core conftest.err conftest.
$ac_objext \
13325 conftest
$ac_exeext conftest.
$ac_ext
13326 LIBS
=$ac_check_lib_save_LIBS
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5
13329 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
13330 if test "x$ac_cv_lib_uuid_uuid_is_null" = xyes
; then :
13331 cat >>confdefs.h
<<_ACEOF
13332 #define HAVE_LIBUUID 1
13335 LIBS
="-luuid $LIBS"
13338 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13341 *** uuid_is_null() missing, libuuid-devel package required
13342 See \`config.log' for more details" "$LINENO" 5; }
13349 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
13354 # Check whether --with-blkid was given.
13355 if test "${with_blkid+set}" = set; then :
13356 withval
=$with_blkid;
13363 if test "x$with_blkid" = xyes
; then :
13368 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
13373 if test "x$with_blkid" = xcheck
; then :
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
13376 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
13377 if ${ac_cv_lib_blkid_blkid_get_cache+:} false
; then :
13378 $as_echo_n "(cached) " >&6
13380 ac_check_lib_save_LIBS
=$LIBS
13381 LIBS
="-lblkid $LIBS"
13382 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13383 /* end confdefs.h. */
13385 /* Override any GCC internal prototype to avoid an error.
13386 Use char because int might match the return type of a GCC
13387 builtin and then its argument prototype would still apply. */
13391 char blkid_get_cache ();
13395 return blkid_get_cache ();
13400 if ac_fn_c_try_link
"$LINENO"; then :
13401 ac_cv_lib_blkid_blkid_get_cache
=yes
13403 ac_cv_lib_blkid_blkid_get_cache
=no
13405 rm -f core conftest.err conftest.
$ac_objext \
13406 conftest
$ac_exeext conftest.
$ac_ext
13407 LIBS
=$ac_check_lib_save_LIBS
13409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
13410 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
13411 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
; then :
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5
13414 $as_echo_n "checking for blkid zfs support... " >&6; }
13417 truncate
-s 64M
$ZFS_DEV
13418 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
13419 dd of
=$ZFS_DEV bs
=1k count
=8 \
13420 seek
=128 conv
=notrunc
&>/dev
/null \
13421 >/dev
/null
2>/dev
/null
13422 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
13423 dd of
=$ZFS_DEV bs
=1k count
=8 \
13424 seek
=132 conv
=notrunc
&>/dev
/null \
13425 >/dev
/null
2>/dev
/null
13426 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
13427 dd of
=$ZFS_DEV bs
=1k count
=8 \
13428 seek
=136 conv
=notrunc
&>/dev
/null \
13429 >/dev
/null
2>/dev
/null
13430 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
13431 dd of
=$ZFS_DEV bs
=1k count
=8 \
13432 seek
=140 conv
=notrunc
&>/dev
/null \
13433 >/dev
/null
2>/dev
/null
13438 if test "$cross_compiling" = yes; then :
13439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13441 as_fn_error $?
"cannot run test program while cross compiling
13442 See \`config.log' for more details" "$LINENO" 5; }
13444 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13445 /* end confdefs.h. */
13448 #include <stdlib.h>
13449 #include <blkid/blkid.h>
13458 if (blkid_get_cache(&cache, NULL) < 0)
13461 value = blkid_get_tag_value(cache, "TYPE",
13464 blkid_put_cache(cache);
13468 if (strcmp(value, "zfs_member")) {
13470 blkid_put_cache(cache);
13475 blkid_put_cache(cache);
13481 if ac_fn_c_try_run
"$LINENO"; then :
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13485 $as_echo "yes" >&6; }
13489 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13496 $as_echo "no" >&6; }
13497 if test "x$with_blkid" != xcheck
; then :
13498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13500 as_fn_error $?
"--with-blkid given but unavailable
13501 See \`config.log' for more details" "$LINENO" 5; }
13505 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13506 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13514 if test "x$with_blkid" != xcheck
; then :
13515 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13517 as_fn_error $?
"--with-blkid given but unavailable
13518 See \`config.log' for more details" "$LINENO" 5; }
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
13529 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
13531 saved_flags
="$CFLAGS"
13532 CFLAGS
="$CFLAGS -Wframe-larger-than=1024"
13534 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13535 /* end confdefs.h. */
13545 if ac_fn_c_try_compile
"$LINENO"; then :
13547 FRAME_LARGER_THAN
=-Wframe-larger-than=1024
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13549 $as_echo "yes" >&6; }
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13555 $as_echo "no" >&6; }
13558 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13560 CFLAGS
="$saved_flags"
13564 if test "x$runstatedir" = x
; then
13565 runstatedir
='${localstatedir}/run'
13569 for ac_func
in mlockall
13571 ac_fn_c_check_func
"$LINENO" "mlockall" "ac_cv_func_mlockall"
13572 if test "x$ac_cv_func_mlockall" = xyes
; then :
13573 cat >>confdefs.h
<<_ACEOF
13574 #define HAVE_MLOCKALL 1
13584 # Check whether --with-linux was given.
13585 if test "${with_linux+set}" = set; then :
13586 withval
=$with_linux; kernelsrc
="$withval"
13591 # Check whether --with-linux-obj was given.
13592 if test "${with_linux_obj+set}" = set; then :
13593 withval
=$with_linux_obj; kernelbuild
="$withval"
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
13598 $as_echo_n "checking kernel source directory... " >&6; }
13599 if test -z "$kernelsrc"; then :
13601 if test -e "/lib/modules/$(uname -r)/source"; then :
13603 headersdir
="/lib/modules/$(uname -r)/source"
13604 sourcelink
=$
(readlink
-f "$headersdir")
13606 elif test -e "/lib/modules/$(uname -r)/build"; then :
13608 headersdir
="/lib/modules/$(uname -r)/build"
13609 sourcelink
=$
(readlink
-f "$headersdir")
13613 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
13615 2>/dev
/null |
grep -v obj |
tail -1)
13619 if test -n "$sourcelink" && test -e ${sourcelink}; then :
13621 kernelsrc
=`readlink -f ${sourcelink}`
13625 kernelsrc
="Not found"
13631 if test "$kernelsrc" = "NONE"; then :
13639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
13640 $as_echo "$kernelsrc" >&6; }
13641 if test ! -d "$kernelsrc"; then :
13644 *** Please make sure the kernel devel package for your distribution
13645 *** is installed and then try again. If that fails, you can specify the
13646 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
13651 $as_echo_n "checking kernel build directory... " >&6; }
13652 if test -z "$kernelbuild"; then :
13654 if test -e "/lib/modules/$(uname -r)/build"; then :
13656 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
13658 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
13660 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
13662 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then :
13664 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
13666 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then :
13668 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
13672 kernelbuild
=${kernelsrc}
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
13678 $as_echo "$kernelbuild" >&6; }
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
13681 $as_echo_n "checking kernel source version... " >&6; }
13682 utsrelease1
=$kernelbuild/include
/linux
/version.h
13683 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
13684 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
13685 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then :
13687 utsrelease
=linux
/version.h
13689 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then :
13691 utsrelease
=linux
/utsrelease.h
13693 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then :
13695 utsrelease
=generated
/utsrelease.h
13699 if test "$utsrelease"; then :
13701 kernsrcver
=`(echo "#include <$utsrelease>";
13702 echo "kernsrcver=UTS_RELEASE") |
13703 cpp -I $kernelbuild/include |
13704 grep "^kernsrcver=" | cut -d \" -f 2`
13706 if test -z "$kernsrcver"; then :
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13709 $as_echo "Not found" >&6; }
13710 as_fn_error $?
"*** Cannot determine kernel version." "$LINENO" 5
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13717 $as_echo "Not found" >&6; }
13718 if test "x$enable_linux_builtin" != xyes
; then
13719 as_fn_error $?
"*** Cannot find UTS_RELEASE definition." "$LINENO" 5
13722 *** Cannot find UTS_RELEASE definition.
13723 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
13729 $as_echo "$kernsrcver" >&6; }
13732 LINUX_OBJ
=${kernelbuild}
13733 LINUX_VERSION
=${kernsrcver}
13740 modpost
=$LINUX/scripts
/Makefile.modpost
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
13742 $as_echo_n "checking kernel file name for module symbols... " >&6; }
13743 if test "x$enable_linux_builtin" != xyes
-a -f "$modpost"; then :
13745 if grep -q Modules.symvers
$modpost; then :
13747 LINUX_SYMBOLS
=Modules.symvers
13751 LINUX_SYMBOLS
=Module.symvers
13755 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
13758 *** Please make sure the kernel devel package for your distribution
13759 *** is installed. If you are building with a custom kernel, make sure the
13760 *** kernel is configured, built, and the '--with-linux=PATH' configure
13761 *** option refers to the location of the kernel source." "$LINENO" 5
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
13771 $as_echo "$LINUX_SYMBOLS" >&6; }
13777 # Check whether --with-spl was given.
13778 if test "${with_spl+set}" = set; then :
13779 withval
=$with_spl; splsrc
="$withval"
13784 # Check whether --with-spl-obj was given.
13785 if test "${with_spl_obj+set}" = set; then :
13786 withval
=$with_spl_obj; splbuild
="$withval"
13791 # Check whether --with-spl-timeout was given.
13792 if test "${with_spl_timeout+set}" = set; then :
13793 withval
=$with_spl_timeout; timeout
="$withval"
13799 splsrc0
="/var/lib/dkms/spl/${VERSION}/build"
13800 splsrc1
="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
13801 splsrc2
="/usr/local/src/spl-${VERSION}"
13802 splsrc3
="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
13803 splsrc4
="/usr/src/spl-${VERSION}"
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
13808 $as_echo_n "checking spl source directory... " >&6; }
13809 if test -z "${splsrc}"; then :
13811 if test -e "${splsrc0}/spl.release.in"; then :
13815 elif test -e "${splsrc1}/spl.release.in"; then :
13819 elif test -e "${splsrc2}/spl.release.in"; then :
13823 elif test -e "${splsrc3}/spl.release.in"; then :
13825 splsrc
=$
(readlink
-f "${splsrc3}")
13827 elif test -e "${splsrc4}/spl.release.in" ; then :
13831 elif test -e "${splsrc5}/spl.release.in"; then :
13833 splsrc
=$
(readlink
-f "${splsrc5}")
13835 elif test -e "${splsrc6}/spl.release.in" ; then :
13847 if test "$splsrc" = "NONE"; then :
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
13857 $as_echo "$splsrc" >&6; }
13858 if test ! -e "$splsrc/spl.release.in"; then :
13861 *** Please make sure the kmod spl devel package for your distribution
13862 *** is installed then try again. If that fails you can specify the
13863 *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
13868 $as_echo_n "checking spl build directory... " >&6; }
13870 if test -z "$splbuild"; then :
13872 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
13874 splbuild
="${splsrc}/${LINUX_VERSION}"
13876 elif test -e "${splsrc}/spl_config.h" ; then :
13878 splbuild
="${splsrc}"
13880 elif find -L "${splsrc}" -name spl_config.h
2> /dev
/null |
grep -wq spl_config.h
; then :
13882 splbuild
=$
(find -L "${splsrc}" -name spl_config.h |
sed 's,/spl_config.h,,')
13886 splbuild
="Not found"
13891 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
13898 timeout
=$
((timeout-1
))
13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
13904 $as_echo "$splbuild" >&6; }
13905 if ! test -e "$splbuild/spl_config.h"; then :
13908 *** Please make sure the kmod spl devel <kernel> package for your
13909 *** distribution is installed then try again. If that fails you
13910 *** can specify the location of the spl objects with the
13911 *** '--with-spl-obj=PATH' option." "$LINENO" 5
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
13916 $as_echo_n "checking spl source version... " >&6; }
13917 if test -r $splbuild/spl_config.h
&&
13918 fgrep
-q SPL_META_VERSION
$splbuild/spl_config.h
; then :
13921 splsrcver
=`(echo "#include <spl_config.h>";
13922 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
13924 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
13928 if test -z "$splsrcver"; then :
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
13931 $as_echo "Not found" >&6; }
13933 *** Cannot determine the version of the spl source.
13934 *** Please prepare the spl source before running this script" "$LINENO" 5
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
13939 $as_echo "$splsrcver" >&6; }
13942 SPL_OBJ
=${splbuild}
13943 SPL_VERSION
=${splsrcver}
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
13950 $as_echo_n "checking spl file name for module symbols... " >&6; }
13954 if test -r $SPL_OBJ/Module.symvers
; then :
13956 SPL_SYMBOLS
=Module.symvers
13958 elif test -r $SPL_OBJ/Modules.symvers
; then :
13960 SPL_SYMBOLS
=Modules.symvers
13962 elif test -r $SPL_OBJ/module
/Module.symvers
; then :
13964 SPL_SYMBOLS
=Module.symvers
13966 elif test -r $SPL_OBJ/module
/Modules.symvers
; then :
13968 SPL_SYMBOLS
=Modules.symvers
13972 if test $SPL_SYMBOLS != NONE
-o $timeout -le 0; then :
13979 timeout
=$
((timeout-1
))
13984 if test "$SPL_SYMBOLS" = NONE
; then :
13986 SPL_SYMBOLS
=$LINUX_SYMBOLS
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
13991 $as_echo "$SPL_SYMBOLS" >&6; }
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
13996 $as_echo_n "checking whether modules can be built... " >&6; }
13999 cat confdefs.h
- <<_ACEOF >conftest.c
14014 cat - <<_ACEOF >conftest.h
14019 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14020 echo "obj-m := conftest.o" >build
/Makefile
14022 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14023 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14025 (eval $ac_try) 2>&5
14027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14028 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14030 (eval $ac_try) 2>&5
14032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14033 test $ac_status = 0; }; }; then :
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14036 $as_echo "yes" >&6; }
14039 $as_echo "$as_me: failed program was:" >&5
14040 sed 's/^/| /' conftest.
$ac_ext >&5
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14043 $as_echo "no" >&6; }
14044 if test "x$enable_linux_builtin" != xyes
; then
14045 as_fn_error $?
"*** Unable to build an empty module." "$LINENO" 5
14048 *** Unable to build an empty module.
14049 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
14060 if test "x$cross_compiling" != xyes
; then :
14062 if test "$cross_compiling" = yes; then :
14063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14065 as_fn_error $?
"cannot run test program while cross compiling
14066 See \`config.log' for more details" "$LINENO" 5; }
14068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14069 /* end confdefs.h. */
14072 #include "$LINUX/include/linux/license.h"
14078 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
14085 if ac_fn_c_try_run
"$LINENO"; then :
14088 $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
14092 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14093 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
14102 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
14105 cat confdefs.h
- <<_ACEOF >conftest.c
14108 #include <linux/module.h>
14114 #ifndef CONFIG_DEBUG_LOCK_ALLOC
14115 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
14126 cat - <<_ACEOF >conftest.h
14131 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14132 echo "obj-m := conftest.o" >build
/Makefile
14134 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14135 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14136 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14137 (eval $ac_try) 2>&5
14139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14140 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14141 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14142 (eval $ac_try) 2>&5
14144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14145 test $ac_status = 0; }; }; then :
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14148 $as_echo "yes" >&6; }
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
14151 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
14152 tmp_flags
="$EXTRA_KCFLAGS"
14155 cat confdefs.h
- <<_ACEOF >conftest.c
14158 #include <linux/module.h>
14159 #include <linux/mutex.h>
14161 MODULE_LICENSE("$ZFS_META_LICENSE");
14171 mutex_unlock(&lock);
14181 cat - <<_ACEOF >conftest.h
14186 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14187 echo "obj-m := conftest.o" >build
/Makefile
14189 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14190 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14192 (eval $ac_try) 2>&5
14194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14195 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14197 (eval $ac_try) 2>&5
14199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14200 test $ac_status = 0; }; }; then :
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14203 $as_echo "no" >&6; }
14206 $as_echo "$as_me: failed program was:" >&5
14207 sed 's/^/| /' conftest.
$ac_ext >&5
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14210 $as_echo "yes" >&6; }
14212 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
14213 *** with the CDDL license and will prevent the module linking stage
14214 *** from succeeding. You must rebuild your kernel without this
14215 *** option enabled." "$LINENO" 5
14223 EXTRA_KCFLAGS
="$tmp_flags"
14227 $as_echo "$as_me: failed program was:" >&5
14228 sed 's/^/| /' conftest.
$ac_ext >&5
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14231 $as_echo "no" >&6; }
14244 tmp_flags
="$EXTRA_KCFLAGS"
14245 EXTRA_KCFLAGS
="-I\$(src)"
14247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
14248 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
14251 cat confdefs.h
- <<_ACEOF >conftest.c
14254 #include <linux/module.h>
14255 MODULE_LICENSE(ZFS_META_LICENSE);
14257 #define CREATE_TRACE_POINTS
14258 #include "conftest.h"
14264 trace_zfs_autoconf_event_one(1UL);
14265 trace_zfs_autoconf_event_two(2UL);
14275 cat - <<_ACEOF >conftest.h
14277 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
14278 #define _CONFTEST_H
14280 #undef TRACE_SYSTEM
14281 #define TRACE_SYSTEM zfs
14282 #include <linux/tracepoint.h>
14284 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
14285 TP_PROTO(unsigned long i),
14288 __field(unsigned long, i)
14293 TP_printk("i = %lu", __entry->i)
14296 #define DEFINE_AUTOCONF_EVENT(name) \
14297 DEFINE_EVENT(zfs_autoconf_event_class, name, \
14298 TP_PROTO(unsigned long i), \
14300 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
14301 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
14303 #endif /* _CONFTEST_H */
14305 #undef TRACE_INCLUDE_PATH
14306 #define TRACE_INCLUDE_PATH .
14307 #define TRACE_INCLUDE_FILE conftest
14308 #include <trace/define_trace.h>
14313 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14314 echo "obj-m := conftest.o" >build
/Makefile
14316 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14317 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14319 (eval $ac_try) 2>&5
14321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14322 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14324 (eval $ac_try) 2>&5
14326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14327 test $ac_status = 0; }; }; then :
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14330 $as_echo "yes" >&6; }
14332 $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
14336 $as_echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.
$ac_ext >&5
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14340 $as_echo "no" >&6; }
14348 EXTRA_KCFLAGS
="$tmp_flags"
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5
14352 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
14355 cat confdefs.h
- <<_ACEOF >conftest.c
14358 #include <linux/sched.h>
14364 current->bio_tail = (struct bio **) NULL;
14374 cat - <<_ACEOF >conftest.h
14379 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14380 echo "obj-m := conftest.o" >build
/Makefile
14382 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14383 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14384 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14385 (eval $ac_try) 2>&5
14387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14388 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14389 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14390 (eval $ac_try) 2>&5
14392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14393 test $ac_status = 0; }; }; then :
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14396 $as_echo "yes" >&6; }
14398 $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h
14402 $as_echo "$as_me: failed program was:" >&5
14403 sed 's/^/| /' conftest.
$ac_ext >&5
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14406 $as_echo "no" >&6; }
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5
14408 $as_echo_n "checking whether current->bio_list exists... " >&6; }
14411 cat confdefs.h
- <<_ACEOF >conftest.c
14414 #include <linux/sched.h>
14420 current->bio_list = (struct bio_list *) NULL;
14430 cat - <<_ACEOF >conftest.h
14435 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14436 echo "obj-m := conftest.o" >build
/Makefile
14438 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14439 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14441 (eval $ac_try) 2>&5
14443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14444 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14446 (eval $ac_try) 2>&5
14448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14449 test $ac_status = 0; }; }; then :
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14452 $as_echo "yes" >&6; }
14454 $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h
14458 $as_echo "$as_me: failed program was:" >&5
14459 sed 's/^/| /' conftest.
$ac_ext >&5
14461 as_fn_error $?
"no - Please file a bug report at
14462 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
14480 $as_echo_n "checking block device operation prototypes... " >&6; }
14481 tmp_flags
="$EXTRA_KCFLAGS"
14482 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14485 cat confdefs.h
- <<_ACEOF >conftest.c
14488 #include <linux/blkdev.h>
14490 int blk_open(struct block_device *bdev, fmode_t mode)
14492 int blk_ioctl(struct block_device *bdev, fmode_t mode,
14493 unsigned x, unsigned long y) { return 0; }
14494 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
14495 unsigned x, unsigned long y) { return 0; }
14497 static const struct block_device_operations
14498 bops __attribute__ ((unused)) = {
14501 .ioctl = blk_ioctl,
14502 .compat_ioctl = blk_compat_ioctl,
14518 cat - <<_ACEOF >conftest.h
14523 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14524 echo "obj-m := conftest.o" >build
/Makefile
14526 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14527 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14529 (eval $ac_try) 2>&5
14531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14532 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14534 (eval $ac_try) 2>&5
14536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14537 test $ac_status = 0; }; }; then :
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
14540 $as_echo "struct block_device" >&6; }
14542 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
14546 $as_echo "$as_me: failed program was:" >&5
14547 sed 's/^/| /' conftest.
$ac_ext >&5
14549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
14550 $as_echo "struct inode" >&6; }
14558 EXTRA_KCFLAGS
="$tmp_flags"
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
14562 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
14563 tmp_flags
="$EXTRA_KCFLAGS"
14564 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14567 cat confdefs.h
- <<_ACEOF >conftest.c
14570 #include <linux/blkdev.h>
14572 void blk_release(struct gendisk *g, fmode_t mode) { return; }
14574 static const struct block_device_operations
14575 bops __attribute__ ((unused)) = {
14577 .release = blk_release,
14579 .compat_ioctl = NULL,
14595 cat - <<_ACEOF >conftest.h
14600 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14601 echo "obj-m := conftest.o" >build
/Makefile
14603 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14604 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14606 (eval $ac_try) 2>&5
14608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14609 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14610 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14611 (eval $ac_try) 2>&5
14613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14614 test $ac_status = 0; }; }; then :
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
14617 $as_echo "void" >&6; }
14619 $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
14623 $as_echo "$as_me: failed program was:" >&5
14624 sed 's/^/| /' conftest.
$ac_ext >&5
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
14627 $as_echo "int" >&6; }
14635 EXTRA_KCFLAGS
="$tmp_flags"
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
14638 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
14641 cat confdefs.h
- <<_ACEOF >conftest.c
14644 #include <linux/types.h>
14650 fmode_t *ptr __attribute__ ((unused));
14660 cat - <<_ACEOF >conftest.h
14665 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14666 echo "obj-m := conftest.o" >build
/Makefile
14668 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14669 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14670 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14671 (eval $ac_try) 2>&5
14673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14674 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14676 (eval $ac_try) 2>&5
14678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14679 test $ac_status = 0; }; }; then :
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14682 $as_echo "yes" >&6; }
14684 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
14688 $as_echo "$as_me: failed program was:" >&5
14689 sed 's/^/| /' conftest.
$ac_ext >&5
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14692 $as_echo "no" >&6; }
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5
14703 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
14706 cat confdefs.h
- <<_ACEOF >conftest.c
14709 #include <linux/kobject.h>
14715 int val __attribute__ ((unused));
14716 val = KOBJ_NAME_LEN;
14726 cat - <<_ACEOF >conftest.h
14731 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14732 echo "obj-m := conftest.o" >build
/Makefile
14734 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14735 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14737 (eval $ac_try) 2>&5
14739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14740 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14742 (eval $ac_try) 2>&5
14744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14745 test $ac_status = 0; }; }; then :
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14748 $as_echo "yes" >&6; }
14750 $as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h
14754 $as_echo "$as_me: failed program was:" >&5
14755 sed 's/^/| /' conftest.
$ac_ext >&5
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14758 $as_echo "no" >&6; }
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
14769 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
14772 cat confdefs.h
- <<_ACEOF >conftest.c
14775 #include <linux/fs.h>
14781 struct block_device *bdev = NULL;
14782 (void) blkdev_get(bdev, 0, NULL);
14792 cat - <<_ACEOF >conftest.h
14797 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14798 echo "obj-m := conftest.o" >build
/Makefile
14800 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14801 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14803 (eval $ac_try) 2>&5
14805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14806 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14808 (eval $ac_try) 2>&5
14810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14811 test $ac_status = 0; }; }; then :
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14814 $as_echo "yes" >&6; }
14816 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
14820 $as_echo "$as_me: failed program was:" >&5
14821 sed 's/^/| /' conftest.
$ac_ext >&5
14823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14824 $as_echo "no" >&6; }
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
14834 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
14838 cat confdefs.h
- <<_ACEOF >conftest.c
14841 #include <linux/fs.h>
14847 blkdev_get_by_path(NULL, 0, NULL);
14857 cat - <<_ACEOF >conftest.h
14862 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14863 echo "obj-m := conftest.o" >build
/Makefile
14865 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14866 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14868 (eval $ac_try) 2>&5
14870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14871 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14873 (eval $ac_try) 2>&5
14875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14876 test $ac_status = 0; }; }; then :
14879 $as_echo "$as_me: failed program was:" >&5
14880 sed 's/^/| /' conftest.
$ac_ext >&5
14888 if test $rc -ne 0; then :
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14891 $as_echo "no" >&6; }
14894 if test "x$enable_linux_builtin" != xyes
; then
14896 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
14897 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
14899 if test $rc -ne 0; then
14901 for file in fs
/block_dev.c
; do
14902 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
14903 "$LINUX/$file" 2>/dev
/null
14905 if test $rc -eq 0; then
14910 if test $export -eq 0; then :
14920 if test $rc -ne 0; then :
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14923 $as_echo "no" >&6; }
14927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14928 $as_echo "yes" >&6; }
14930 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
14937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
14938 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
14942 cat confdefs.h
- <<_ACEOF >conftest.c
14945 #include <linux/fs.h>
14951 open_bdev_exclusive(NULL, 0, NULL);
14961 cat - <<_ACEOF >conftest.h
14966 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14967 echo "obj-m := conftest.o" >build
/Makefile
14969 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14970 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14972 (eval $ac_try) 2>&5
14974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14975 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14976 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14977 (eval $ac_try) 2>&5
14979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14980 test $ac_status = 0; }; }; then :
14983 $as_echo "$as_me: failed program was:" >&5
14984 sed 's/^/| /' conftest.
$ac_ext >&5
14992 if test $rc -ne 0; then :
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14995 $as_echo "no" >&6; }
14998 if test "x$enable_linux_builtin" != xyes
; then
15000 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
15001 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15003 if test $rc -ne 0; then
15005 for file in fs
/block_dev.c
; do
15006 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
15007 "$LINUX/$file" 2>/dev
/null
15009 if test $rc -eq 0; then
15014 if test $export -eq 0; then :
15024 if test $rc -ne 0; then :
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15027 $as_echo "no" >&6; }
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15032 $as_echo "yes" >&6; }
15034 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() is available" >&5
15042 $as_echo_n "checking whether lookup_bdev() is available... " >&6; }
15046 cat confdefs.h
- <<_ACEOF >conftest.c
15049 #include <linux/fs.h>
15065 cat - <<_ACEOF >conftest.h
15070 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15071 echo "obj-m := conftest.o" >build
/Makefile
15073 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15074 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15076 (eval $ac_try) 2>&5
15078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15079 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
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; }; }; then :
15087 $as_echo "$as_me: failed program was:" >&5
15088 sed 's/^/| /' conftest.
$ac_ext >&5
15096 if test $rc -ne 0; then :
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15099 $as_echo "no" >&6; }
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() is available and wants 2 args" >&5
15101 $as_echo_n "checking whether lookup_bdev() is available and wants 2 args... " >&6; }
15105 cat confdefs.h
- <<_ACEOF >conftest.c
15108 #include <linux/fs.h>
15114 lookup_bdev(NULL, 0);
15124 cat - <<_ACEOF >conftest.h
15129 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15130 echo "obj-m := conftest.o" >build
/Makefile
15132 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15133 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15135 (eval $ac_try) 2>&5
15137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15138 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15140 (eval $ac_try) 2>&5
15142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15143 test $ac_status = 0; }; }; then :
15146 $as_echo "$as_me: failed program was:" >&5
15147 sed 's/^/| /' conftest.
$ac_ext >&5
15155 if test $rc -ne 0; then :
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15158 $as_echo "no" >&6; }
15161 if test "x$enable_linux_builtin" != xyes
; then
15163 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15164 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15166 if test $rc -ne 0; then
15168 for file in fs
/block_dev.c
; do
15169 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15170 "$LINUX/$file" 2>/dev
/null
15172 if test $rc -eq 0; then
15177 if test $export -eq 0; then :
15187 if test $rc -ne 0; then :
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15190 $as_echo "no" >&6; }
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15195 $as_echo "yes" >&6; }
15197 $as_echo "#define HAVE_LOOKUP_BDEV_2ARGS 1" >>confdefs.h
15205 if test "x$enable_linux_builtin" != xyes
; then
15207 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15208 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15210 if test $rc -ne 0; then
15212 for file in fs
/block_dev.c
; do
15213 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15214 "$LINUX/$file" 2>/dev
/null
15216 if test $rc -eq 0; then
15221 if test $export -eq 0; then :
15231 if test $rc -ne 0; then :
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15234 $as_echo "no" >&6; }
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() is available and wants 2 args" >&5
15236 $as_echo_n "checking whether lookup_bdev() is available and wants 2 args... " >&6; }
15240 cat confdefs.h
- <<_ACEOF >conftest.c
15243 #include <linux/fs.h>
15249 lookup_bdev(NULL, 0);
15259 cat - <<_ACEOF >conftest.h
15264 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15265 echo "obj-m := conftest.o" >build
/Makefile
15267 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15268 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15269 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15270 (eval $ac_try) 2>&5
15272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15273 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15274 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15275 (eval $ac_try) 2>&5
15277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15278 test $ac_status = 0; }; }; then :
15281 $as_echo "$as_me: failed program was:" >&5
15282 sed 's/^/| /' conftest.
$ac_ext >&5
15290 if test $rc -ne 0; then :
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15293 $as_echo "no" >&6; }
15296 if test "x$enable_linux_builtin" != xyes
; then
15298 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
15299 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15301 if test $rc -ne 0; then
15303 for file in fs
/block_dev.c
; do
15304 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
15305 "$LINUX/$file" 2>/dev
/null
15307 if test $rc -eq 0; then
15312 if test $export -eq 0; then :
15322 if test $rc -ne 0; then :
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15325 $as_echo "no" >&6; }
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15330 $as_echo "yes" >&6; }
15332 $as_echo "#define HAVE_LOOKUP_BDEV_2ARGS 1" >>confdefs.h
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15342 $as_echo "yes" >&6; }
15344 $as_echo "#define HAVE_LOOKUP_BDEV 1" >>confdefs.h
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
15353 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
15356 cat confdefs.h
- <<_ACEOF >conftest.c
15359 #include <linux/buffer_head.h>
15365 struct block_device *bdev = NULL;
15366 invalidate_bdev(bdev);
15376 cat - <<_ACEOF >conftest.h
15381 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15382 echo "obj-m := conftest.o" >build
/Makefile
15384 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15385 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15387 (eval $ac_try) 2>&5
15389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15390 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15392 (eval $ac_try) 2>&5
15394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15395 test $ac_status = 0; }; }; then :
15397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15398 $as_echo "yes" >&6; }
15400 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
15404 $as_echo "$as_me: failed program was:" >&5
15405 sed 's/^/| /' conftest.
$ac_ext >&5
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15408 $as_echo "no" >&6; }
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
15419 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
15420 tmp_flags
="$EXTRA_KCFLAGS"
15421 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15424 cat confdefs.h
- <<_ACEOF >conftest.c
15427 #include <linux/blkdev.h>
15433 struct block_device *bdev = NULL;
15434 bdev_logical_block_size(bdev);
15444 cat - <<_ACEOF >conftest.h
15449 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15450 echo "obj-m := conftest.o" >build
/Makefile
15452 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15453 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15455 (eval $ac_try) 2>&5
15457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15458 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15459 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15460 (eval $ac_try) 2>&5
15462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15463 test $ac_status = 0; }; }; then :
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15466 $as_echo "yes" >&6; }
15468 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
15472 $as_echo "$as_me: failed program was:" >&5
15473 sed 's/^/| /' conftest.
$ac_ext >&5
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15476 $as_echo "no" >&6; }
15484 EXTRA_KCFLAGS
="$tmp_flags"
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
15488 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
15489 tmp_flags
="$EXTRA_KCFLAGS"
15490 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15493 cat confdefs.h
- <<_ACEOF >conftest.c
15496 #include <linux/blkdev.h>
15502 struct block_device *bdev = NULL;
15503 bdev_physical_block_size(bdev);
15513 cat - <<_ACEOF >conftest.h
15518 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15519 echo "obj-m := conftest.o" >build
/Makefile
15521 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15522 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15523 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15524 (eval $ac_try) 2>&5
15526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15527 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15529 (eval $ac_try) 2>&5
15531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15532 test $ac_status = 0; }; }; then :
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15535 $as_echo "yes" >&6; }
15537 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
15541 $as_echo "$as_me: failed program was:" >&5
15542 sed 's/^/| /' conftest.
$ac_ext >&5
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15545 $as_echo "no" >&6; }
15553 EXTRA_KCFLAGS
="$tmp_flags"
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
15557 $as_echo_n "checking whether bio has bi_iter... " >&6; }
15560 cat confdefs.h
- <<_ACEOF >conftest.c
15563 #include <linux/bio.h>
15570 bio.bi_iter.bi_sector = 0;
15580 cat - <<_ACEOF >conftest.h
15585 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15586 echo "obj-m := conftest.o" >build
/Makefile
15588 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15589 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15591 (eval $ac_try) 2>&5
15593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15594 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15596 (eval $ac_try) 2>&5
15598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15599 test $ac_status = 0; }; }; then :
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15602 $as_echo "yes" >&6; }
15604 $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
15608 $as_echo "$as_me: failed program was:" >&5
15609 sed 's/^/| /' conftest.
$ac_ext >&5
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15612 $as_echo "no" >&6; }
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
15623 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
15626 cat confdefs.h
- <<_ACEOF >conftest.c
15629 #include <linux/bio.h>
15635 int flags __attribute__ ((unused));
15636 flags = ((1 << BIO_RW_FAILFAST_DEV) |
15637 (1 << BIO_RW_FAILFAST_TRANSPORT) |
15638 (1 << BIO_RW_FAILFAST_DRIVER));
15648 cat - <<_ACEOF >conftest.h
15653 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15654 echo "obj-m := conftest.o" >build
/Makefile
15656 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15657 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15659 (eval $ac_try) 2>&5
15661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15662 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
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; }; }; then :
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15670 $as_echo "yes" >&6; }
15672 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
15676 $as_echo "$as_me: failed program was:" >&5
15677 sed 's/^/| /' conftest.
$ac_ext >&5
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15680 $as_echo "no" >&6; }
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
15691 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
15694 cat confdefs.h
- <<_ACEOF >conftest.c
15697 #include <linux/bio.h>
15703 int flags __attribute__ ((unused));
15704 flags = REQ_FAILFAST_MASK;
15714 cat - <<_ACEOF >conftest.h
15719 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15720 echo "obj-m := conftest.o" >build
/Makefile
15722 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15723 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15724 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15725 (eval $ac_try) 2>&5
15727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15728 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15729 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15730 (eval $ac_try) 2>&5
15732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15733 test $ac_status = 0; }; }; then :
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15736 $as_echo "yes" >&6; }
15738 $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h
15742 $as_echo "$as_me: failed program was:" >&5
15743 sed 's/^/| /' conftest.
$ac_ext >&5
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15746 $as_echo "no" >&6; }
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5
15757 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
15760 cat confdefs.h
- <<_ACEOF >conftest.c
15763 #include <linux/bio.h>
15765 void wanted_end_io(struct bio *bio) { return; }
15767 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
15782 cat - <<_ACEOF >conftest.h
15787 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15788 echo "obj-m := conftest.o" >build
/Makefile
15790 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15791 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15792 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15793 (eval $ac_try) 2>&5
15795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15796 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15797 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15798 (eval $ac_try) 2>&5
15800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15801 test $ac_status = 0; }; }; then :
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15804 $as_echo "yes" >&6; }
15806 $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h
15810 $as_echo "$as_me: failed program was:" >&5
15811 sed 's/^/| /' conftest.
$ac_ext >&5
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15814 $as_echo "no" >&6; }
15824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5
15825 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
15828 cat confdefs.h
- <<_ACEOF >conftest.c
15831 #include <linux/bio.h>
15837 int flags __attribute__ ((unused));
15838 flags = BIO_RW_BARRIER;
15848 cat - <<_ACEOF >conftest.h
15853 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15854 echo "obj-m := conftest.o" >build
/Makefile
15856 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15857 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15859 (eval $ac_try) 2>&5
15861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15862 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15864 (eval $ac_try) 2>&5
15866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15867 test $ac_status = 0; }; }; then :
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15870 $as_echo "yes" >&6; }
15872 $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h
15876 $as_echo "$as_me: failed program was:" >&5
15877 sed 's/^/| /' conftest.
$ac_ext >&5
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15880 $as_echo "no" >&6; }
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5
15891 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
15894 cat confdefs.h
- <<_ACEOF >conftest.c
15897 #include <linux/bio.h>
15903 int flags __attribute__ ((unused));
15904 flags = BIO_RW_DISCARD;
15914 cat - <<_ACEOF >conftest.h
15919 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15920 echo "obj-m := conftest.o" >build
/Makefile
15922 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15923 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15925 (eval $ac_try) 2>&5
15927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15928 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15930 (eval $ac_try) 2>&5
15932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15933 test $ac_status = 0; }; }; then :
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15936 $as_echo "yes" >&6; }
15938 $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h
15942 $as_echo "$as_me: failed program was:" >&5
15943 sed 's/^/| /' conftest.
$ac_ext >&5
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15946 $as_echo "no" >&6; }
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
15957 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
15958 tmp_flags
="$EXTRA_KCFLAGS"
15959 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15962 cat confdefs.h
- <<_ACEOF >conftest.c
15965 #include <linux/blkdev.h>
15971 struct request_queue *q = NULL;
15972 (void) blk_queue_flush(q, REQ_FLUSH);
15982 cat - <<_ACEOF >conftest.h
15987 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15988 echo "obj-m := conftest.o" >build
/Makefile
15990 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15991 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15993 (eval $ac_try) 2>&5
15995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15996 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15998 (eval $ac_try) 2>&5
16000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16001 test $ac_status = 0; }; }; then :
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16004 $as_echo "yes" >&6; }
16006 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
16010 $as_echo "$as_me: failed program was:" >&5
16011 sed 's/^/| /' conftest.
$ac_ext >&5
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16014 $as_echo "no" >&6; }
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
16024 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
16027 cat confdefs.h
- <<_ACEOF >conftest.c
16030 #include <linux/module.h>
16031 #include <linux/blkdev.h>
16033 MODULE_LICENSE("$ZFS_META_LICENSE");
16039 struct request_queue *q = NULL;
16040 (void) blk_queue_flush(q, REQ_FLUSH);
16050 cat - <<_ACEOF >conftest.h
16055 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16056 echo "obj-m := conftest.o" >build
/Makefile
16058 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16059 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16061 (eval $ac_try) 2>&5
16063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16064 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16065 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16066 (eval $ac_try) 2>&5
16068 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16069 test $ac_status = 0; }; }; then :
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16072 $as_echo "no" >&6; }
16075 $as_echo "$as_me: failed program was:" >&5
16076 sed 's/^/| /' conftest.
$ac_ext >&5
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16079 $as_echo "yes" >&6; }
16081 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
16090 EXTRA_KCFLAGS
="$tmp_flags"
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
16094 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
16095 tmp_flags
="$EXTRA_KCFLAGS"
16096 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16099 cat confdefs.h
- <<_ACEOF >conftest.c
16102 #include <linux/blkdev.h>
16108 struct request_queue *q = NULL;
16109 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
16119 cat - <<_ACEOF >conftest.h
16124 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16125 echo "obj-m := conftest.o" >build
/Makefile
16127 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16128 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16130 (eval $ac_try) 2>&5
16132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16133 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16134 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16135 (eval $ac_try) 2>&5
16137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16138 test $ac_status = 0; }; }; then :
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16141 $as_echo "yes" >&6; }
16143 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
16147 $as_echo "$as_me: failed program was:" >&5
16148 sed 's/^/| /' conftest.
$ac_ext >&5
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16151 $as_echo "no" >&6; }
16159 EXTRA_KCFLAGS
="$tmp_flags"
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
16163 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
16164 tmp_flags
="$EXTRA_KCFLAGS"
16165 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16168 cat confdefs.h
- <<_ACEOF >conftest.c
16171 #include <linux/blkdev.h>
16177 struct request_queue *q = NULL;
16178 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
16188 cat - <<_ACEOF >conftest.h
16193 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16194 echo "obj-m := conftest.o" >build
/Makefile
16196 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16197 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16198 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16199 (eval $ac_try) 2>&5
16201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16202 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16203 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16204 (eval $ac_try) 2>&5
16206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16207 test $ac_status = 0; }; }; then :
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16210 $as_echo "yes" >&6; }
16212 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
16216 $as_echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.
$ac_ext >&5
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16220 $as_echo "no" >&6; }
16228 EXTRA_KCFLAGS
="$tmp_flags"
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
16232 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
16233 tmp_flags
="$EXTRA_KCFLAGS"
16234 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
16237 cat confdefs.h
- <<_ACEOF >conftest.c
16240 #include <linux/blkdev.h>
16246 struct gendisk *disk = NULL;
16247 (void) get_disk_ro(disk);
16257 cat - <<_ACEOF >conftest.h
16262 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16263 echo "obj-m := conftest.o" >build
/Makefile
16265 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16266 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16268 (eval $ac_try) 2>&5
16270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16271 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16272 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16273 (eval $ac_try) 2>&5
16275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16276 test $ac_status = 0; }; }; then :
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16279 $as_echo "yes" >&6; }
16281 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
16285 $as_echo "$as_me: failed program was:" >&5
16286 sed 's/^/| /' conftest.
$ac_ext >&5
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16289 $as_echo "no" >&6; }
16297 EXTRA_KCFLAGS
="$tmp_flags"
16299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
16300 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
16304 cat confdefs.h
- <<_ACEOF >conftest.c
16307 #include <linux/genhd.h>
16313 get_gendisk(0, NULL);
16323 cat - <<_ACEOF >conftest.h
16328 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16329 echo "obj-m := conftest.o" >build
/Makefile
16331 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16332 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16333 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16334 (eval $ac_try) 2>&5
16336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16337 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16339 (eval $ac_try) 2>&5
16341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16342 test $ac_status = 0; }; }; then :
16345 $as_echo "$as_me: failed program was:" >&5
16346 sed 's/^/| /' conftest.
$ac_ext >&5
16354 if test $rc -ne 0; then :
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16357 $as_echo "no" >&6; }
16360 if test "x$enable_linux_builtin" != xyes
; then
16362 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
16363 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
16365 if test $rc -ne 0; then
16367 for file in block
/genhd.c
; do
16368 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
16369 "$LINUX/$file" 2>/dev
/null
16371 if test $rc -eq 0; then
16376 if test $export -eq 0; then :
16386 if test $rc -ne 0; then :
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16389 $as_echo "no" >&6; }
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16394 $as_echo "yes" >&6; }
16396 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
16405 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
16408 cat confdefs.h
- <<_ACEOF >conftest.c
16411 #include <linux/blkdev.h>
16417 struct queue_limits ql __attribute__ ((unused));
16419 ql.discard_granularity = 0;
16429 cat - <<_ACEOF >conftest.h
16434 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16435 echo "obj-m := conftest.o" >build
/Makefile
16437 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16438 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16440 (eval $ac_try) 2>&5
16442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16443 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16444 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16445 (eval $ac_try) 2>&5
16447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16448 test $ac_status = 0; }; }; then :
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16451 $as_echo "yes" >&6; }
16453 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
16457 $as_echo "$as_me: failed program was:" >&5
16458 sed 's/^/| /' conftest.
$ac_ext >&5
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16461 $as_echo "no" >&6; }
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5
16472 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
16475 cat confdefs.h
- <<_ACEOF >conftest.c
16478 #include <linux/fs.h>
16479 #include <linux/xattr.h>
16481 const struct xattr_handler xattr_test_handler = {
16487 const struct xattr_handler *xattr_handlers[] = {
16488 &xattr_test_handler,
16491 const struct super_block sb __attribute__ ((unused)) = {
16492 .s_xattr = xattr_handlers,
16508 cat - <<_ACEOF >conftest.h
16513 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16514 echo "obj-m := conftest.o" >build
/Makefile
16516 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16517 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16519 (eval $ac_try) 2>&5
16521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16522 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16523 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16524 (eval $ac_try) 2>&5
16526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16527 test $ac_status = 0; }; }; then :
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16530 $as_echo "yes" >&6; }
16532 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
16536 $as_echo "$as_me: failed program was:" >&5
16537 sed 's/^/| /' conftest.
$ac_ext >&5
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16540 $as_echo "no" >&6; }
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5
16551 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
16554 cat confdefs.h
- <<_ACEOF >conftest.c
16557 #include <linux/xattr.h>
16559 int get(const struct xattr_handler *handler,
16560 struct dentry *dentry, const char *name,
16561 void *buffer, size_t size) { return 0; }
16562 static const struct xattr_handler
16563 xops __attribute__ ((unused)) = {
16580 cat - <<_ACEOF >conftest.h
16585 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16586 echo "obj-m := conftest.o" >build
/Makefile
16588 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16589 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16591 (eval $ac_try) 2>&5
16593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16594 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16596 (eval $ac_try) 2>&5
16598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16599 test $ac_status = 0; }; }; then :
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16602 $as_echo "yes" >&6; }
16604 $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h
16608 $as_echo "$as_me: failed program was:" >&5
16609 sed 's/^/| /' conftest.
$ac_ext >&5
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16612 $as_echo "no" >&6; }
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
16614 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
16617 cat confdefs.h
- <<_ACEOF >conftest.c
16620 #include <linux/xattr.h>
16622 int get(struct dentry *dentry, const char *name,
16623 void *buffer, size_t size, int handler_flags)
16625 static const struct xattr_handler
16626 xops __attribute__ ((unused)) = {
16643 cat - <<_ACEOF >conftest.h
16648 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16649 echo "obj-m := conftest.o" >build
/Makefile
16651 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16652 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16654 (eval $ac_try) 2>&5
16656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16657 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16659 (eval $ac_try) 2>&5
16661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16662 test $ac_status = 0; }; }; then :
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16665 $as_echo "yes" >&6; }
16667 $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h
16671 $as_echo "$as_me: failed program was:" >&5
16672 sed 's/^/| /' conftest.
$ac_ext >&5
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16675 $as_echo "no" >&6; }
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5
16677 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
16680 cat confdefs.h
- <<_ACEOF >conftest.c
16683 #include <linux/xattr.h>
16685 int get(struct inode *ip, const char *name,
16686 void *buffer, size_t size) { return 0; }
16687 static const struct xattr_handler
16688 xops __attribute__ ((unused)) = {
16705 cat - <<_ACEOF >conftest.h
16710 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16711 echo "obj-m := conftest.o" >build
/Makefile
16713 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16714 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16716 (eval $ac_try) 2>&5
16718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16719 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16721 (eval $ac_try) 2>&5
16723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16724 test $ac_status = 0; }; }; then :
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16727 $as_echo "yes" >&6; }
16729 $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h
16733 $as_echo "$as_me: failed program was:" >&5
16734 sed 's/^/| /' conftest.
$ac_ext >&5
16736 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5
16761 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
16764 cat confdefs.h
- <<_ACEOF >conftest.c
16767 #include <linux/xattr.h>
16769 int set(const struct xattr_handler *handler,
16770 struct dentry *dentry, const char *name,
16771 const void *buffer, size_t size, int flags)
16773 static const struct xattr_handler
16774 xops __attribute__ ((unused)) = {
16791 cat - <<_ACEOF >conftest.h
16796 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16797 echo "obj-m := conftest.o" >build
/Makefile
16799 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16800 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16802 (eval $ac_try) 2>&5
16804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16805 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16807 (eval $ac_try) 2>&5
16809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16810 test $ac_status = 0; }; }; then :
16812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16813 $as_echo "yes" >&6; }
16815 $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h
16819 $as_echo "$as_me: failed program was:" >&5
16820 sed 's/^/| /' conftest.
$ac_ext >&5
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16823 $as_echo "no" >&6; }
16824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
16825 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
16828 cat confdefs.h
- <<_ACEOF >conftest.c
16831 #include <linux/xattr.h>
16833 int set(struct dentry *dentry, const char *name,
16834 const void *buffer, size_t size, int flags,
16835 int handler_flags) { return 0; }
16836 static const struct xattr_handler
16837 xops __attribute__ ((unused)) = {
16854 cat - <<_ACEOF >conftest.h
16859 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16860 echo "obj-m := conftest.o" >build
/Makefile
16862 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16863 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16865 (eval $ac_try) 2>&5
16867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16868 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16870 (eval $ac_try) 2>&5
16872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16873 test $ac_status = 0; }; }; then :
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16876 $as_echo "yes" >&6; }
16878 $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h
16882 $as_echo "$as_me: failed program was:" >&5
16883 sed 's/^/| /' conftest.
$ac_ext >&5
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16886 $as_echo "no" >&6; }
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5
16888 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
16891 cat confdefs.h
- <<_ACEOF >conftest.c
16894 #include <linux/xattr.h>
16896 int set(struct inode *ip, const char *name,
16897 const void *buffer, size_t size, int flags)
16899 static const struct xattr_handler
16900 xops __attribute__ ((unused)) = {
16917 cat - <<_ACEOF >conftest.h
16922 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16923 echo "obj-m := conftest.o" >build
/Makefile
16925 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16926 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16928 (eval $ac_try) 2>&5
16930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16931 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16933 (eval $ac_try) 2>&5
16935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16936 test $ac_status = 0; }; }; then :
16938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16939 $as_echo "yes" >&6; }
16941 $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h
16945 $as_echo "$as_me: failed program was:" >&5
16946 sed 's/^/| /' conftest.
$ac_ext >&5
16948 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5
16973 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
16976 cat confdefs.h
- <<_ACEOF >conftest.c
16979 #include <linux/xattr.h>
16981 bool list(struct dentry *dentry) { return 0; }
16982 static const struct xattr_handler
16983 xops __attribute__ ((unused)) = {
17000 cat - <<_ACEOF >conftest.h
17005 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17006 echo "obj-m := conftest.o" >build
/Makefile
17008 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17009 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17011 (eval $ac_try) 2>&5
17013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17014 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17016 (eval $ac_try) 2>&5
17018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17019 test $ac_status = 0; }; }; then :
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17022 $as_echo "yes" >&6; }
17024 $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h
17028 $as_echo "$as_me: failed program was:" >&5
17029 sed 's/^/| /' conftest.
$ac_ext >&5
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17032 $as_echo "no" >&6; }
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5
17034 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
17037 cat confdefs.h
- <<_ACEOF >conftest.c
17040 #include <linux/xattr.h>
17042 size_t list(const struct xattr_handler *handler,
17043 struct dentry *dentry, char *list, size_t list_size,
17044 const char *name, size_t name_len) { return 0; }
17045 static const struct xattr_handler
17046 xops __attribute__ ((unused)) = {
17063 cat - <<_ACEOF >conftest.h
17068 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17069 echo "obj-m := conftest.o" >build
/Makefile
17071 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17072 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17074 (eval $ac_try) 2>&5
17076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17077 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17079 (eval $ac_try) 2>&5
17081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17082 test $ac_status = 0; }; }; then :
17084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17085 $as_echo "yes" >&6; }
17087 $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h
17091 $as_echo "$as_me: failed program was:" >&5
17092 sed 's/^/| /' conftest.
$ac_ext >&5
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17095 $as_echo "no" >&6; }
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
17097 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
17100 cat confdefs.h
- <<_ACEOF >conftest.c
17103 #include <linux/xattr.h>
17105 size_t list(struct dentry *dentry,
17106 char *list, size_t list_size,
17107 const char *name, size_t name_len,
17108 int handler_flags) { return 0; }
17109 static const struct xattr_handler
17110 xops __attribute__ ((unused)) = {
17127 cat - <<_ACEOF >conftest.h
17132 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17133 echo "obj-m := conftest.o" >build
/Makefile
17135 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17136 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17138 (eval $ac_try) 2>&5
17140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17141 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17143 (eval $ac_try) 2>&5
17145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17146 test $ac_status = 0; }; }; then :
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17149 $as_echo "yes" >&6; }
17151 $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h
17155 $as_echo "$as_me: failed program was:" >&5
17156 sed 's/^/| /' conftest.
$ac_ext >&5
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17159 $as_echo "no" >&6; }
17160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5
17161 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
17164 cat confdefs.h
- <<_ACEOF >conftest.c
17167 #include <linux/xattr.h>
17169 size_t list(struct inode *ip, char *lst,
17170 size_t list_size, const char *name,
17171 size_t name_len) { return 0; }
17172 static const struct xattr_handler
17173 xops __attribute__ ((unused)) = {
17190 cat - <<_ACEOF >conftest.h
17195 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17196 echo "obj-m := conftest.o" >build
/Makefile
17198 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17199 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17201 (eval $ac_try) 2>&5
17203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17204 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17206 (eval $ac_try) 2>&5
17208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17209 test $ac_status = 0; }; }; then :
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17212 $as_echo "yes" >&6; }
17214 $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h
17218 $as_echo "$as_me: failed program was:" >&5
17219 sed 's/^/| /' conftest.
$ac_ext >&5
17221 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
17252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
17253 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
17256 cat confdefs.h
- <<_ACEOF >conftest.c
17259 #include <linux/fs.h>
17265 struct inode *ip = NULL;
17266 (void) inode_owner_or_capable(ip);
17276 cat - <<_ACEOF >conftest.h
17281 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17282 echo "obj-m := conftest.o" >build
/Makefile
17284 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17285 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17287 (eval $ac_try) 2>&5
17289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17290 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17291 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17292 (eval $ac_try) 2>&5
17294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17295 test $ac_status = 0; }; }; then :
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17298 $as_echo "yes" >&6; }
17300 $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
17304 $as_echo "$as_me: failed program was:" >&5
17305 sed 's/^/| /' conftest.
$ac_ext >&5
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17308 $as_echo "no" >&6; }
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
17310 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
17313 cat confdefs.h
- <<_ACEOF >conftest.c
17316 #include <linux/fs.h>
17317 #include <linux/sched.h>
17323 struct inode *ip = NULL;
17324 (void) is_owner_or_cap(ip);
17334 cat - <<_ACEOF >conftest.h
17339 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17340 echo "obj-m := conftest.o" >build
/Makefile
17342 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17343 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17345 (eval $ac_try) 2>&5
17347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17348 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17350 (eval $ac_try) 2>&5
17352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17353 test $ac_status = 0; }; }; then :
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17356 $as_echo "yes" >&6; }
17358 $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
17362 $as_echo "$as_me: failed program was:" >&5
17363 sed 's/^/| /' conftest.
$ac_ext >&5
17365 as_fn_error $?
"no - Please file a bug report at
17366 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
17384 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
17387 cat confdefs.h
- <<_ACEOF >conftest.c
17390 #include <linux/cred.h>
17391 #include <linux/fs.h>
17392 #include <linux/posix_acl_xattr.h>
17398 posix_acl_from_xattr(&init_user_ns, NULL, 0);
17408 cat - <<_ACEOF >conftest.h
17413 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17414 echo "obj-m := conftest.o" >build
/Makefile
17416 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17417 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17419 (eval $ac_try) 2>&5
17421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17422 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17424 (eval $ac_try) 2>&5
17426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17427 test $ac_status = 0; }; }; then :
17429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17430 $as_echo "yes" >&6; }
17432 $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
17436 $as_echo "$as_me: failed program was:" >&5
17437 sed 's/^/| /' conftest.
$ac_ext >&5
17439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17440 $as_echo "no" >&6; }
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
17451 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
17454 cat confdefs.h
- <<_ACEOF >conftest.c
17457 #include <linux/cred.h>
17458 #include <linux/fs.h>
17459 #include <linux/posix_acl.h>
17465 struct posix_acl* tmp = posix_acl_alloc(1, 0);
17466 posix_acl_release(tmp);
17476 cat - <<_ACEOF >conftest.h
17481 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17482 echo "obj-m := conftest.o" >build
/Makefile
17484 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17485 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17487 (eval $ac_try) 2>&5
17489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17490 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17492 (eval $ac_try) 2>&5
17494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17495 test $ac_status = 0; }; }; then :
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17498 $as_echo "yes" >&6; }
17500 $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
17504 $as_echo "$as_me: failed program was:" >&5
17505 sed 's/^/| /' conftest.
$ac_ext >&5
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17508 $as_echo "no" >&6; }
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
17518 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
17521 cat confdefs.h
- <<_ACEOF >conftest.c
17524 #include <linux/cred.h>
17525 #include <linux/fs.h>
17526 #include <linux/posix_acl.h>
17528 MODULE_LICENSE("$ZFS_META_LICENSE");
17534 struct posix_acl* tmp = posix_acl_alloc(1, 0);
17535 posix_acl_release(tmp);
17545 cat - <<_ACEOF >conftest.h
17550 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17551 echo "obj-m := conftest.o" >build
/Makefile
17553 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17554 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17556 (eval $ac_try) 2>&5
17558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17559 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17561 (eval $ac_try) 2>&5
17563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17564 test $ac_status = 0; }; }; then :
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17567 $as_echo "no" >&6; }
17570 $as_echo "$as_me: failed program was:" >&5
17571 sed 's/^/| /' conftest.
$ac_ext >&5
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17574 $as_echo "yes" >&6; }
17576 $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
17587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
17588 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
17591 cat confdefs.h
- <<_ACEOF >conftest.c
17594 #include <linux/fs.h>
17595 #include <linux/posix_acl.h>
17601 posix_acl_chmod(NULL, 0, 0)
17611 cat - <<_ACEOF >conftest.h
17616 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17617 echo "obj-m := conftest.o" >build
/Makefile
17619 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17620 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17622 (eval $ac_try) 2>&5
17624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17625 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17627 (eval $ac_try) 2>&5
17629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17630 test $ac_status = 0; }; }; then :
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17633 $as_echo "yes" >&6; }
17635 $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
17639 $as_echo "$as_me: failed program was:" >&5
17640 sed 's/^/| /' conftest.
$ac_ext >&5
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17643 $as_echo "no" >&6; }
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
17653 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
17656 cat confdefs.h
- <<_ACEOF >conftest.c
17659 #include <linux/fs.h>
17660 #include <linux/posix_acl.h>
17666 __posix_acl_chmod(NULL, 0, 0)
17676 cat - <<_ACEOF >conftest.h
17681 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17682 echo "obj-m := conftest.o" >build
/Makefile
17684 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17685 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17687 (eval $ac_try) 2>&5
17689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17690 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17692 (eval $ac_try) 2>&5
17694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17695 test $ac_status = 0; }; }; then :
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17698 $as_echo "yes" >&6; }
17700 $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
17704 $as_echo "$as_me: failed program was:" >&5
17705 sed 's/^/| /' conftest.
$ac_ext >&5
17707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17708 $as_echo "no" >&6; }
17718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode has i_acl and i_default_acl" >&5
17719 $as_echo_n "checking whether inode has i_acl and i_default_acl... " >&6; }
17722 cat confdefs.h
- <<_ACEOF >conftest.c
17725 #include <linux/fs.h>
17733 ino.i_default_acl = NULL;
17743 cat - <<_ACEOF >conftest.h
17748 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17749 echo "obj-m := conftest.o" >build
/Makefile
17751 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17752 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17754 (eval $ac_try) 2>&5
17756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17757 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17759 (eval $ac_try) 2>&5
17761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17762 test $ac_status = 0; }; }; then :
17764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17765 $as_echo "yes" >&6; }
17767 $as_echo "#define HAVE_POSIX_ACL_CACHING 1" >>confdefs.h
17771 $as_echo "$as_me: failed program was:" >&5
17772 sed 's/^/| /' conftest.
$ac_ext >&5
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17775 $as_echo "no" >&6; }
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
17786 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
17789 cat confdefs.h
- <<_ACEOF >conftest.c
17792 #include <linux/fs.h>
17793 #include <linux/posix_acl.h>
17800 posix_acl_equiv_mode(NULL,&tmp);
17810 cat - <<_ACEOF >conftest.h
17815 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17816 echo "obj-m := conftest.o" >build
/Makefile
17818 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17819 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17820 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17821 (eval $ac_try) 2>&5
17823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17824 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17826 (eval $ac_try) 2>&5
17828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17829 test $ac_status = 0; }; }; then :
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17832 $as_echo "yes" >&6; }
17834 $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
17838 $as_echo "$as_me: failed program was:" >&5
17839 sed 's/^/| /' conftest.
$ac_ext >&5
17841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17842 $as_echo "no" >&6; }
17852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5
17853 $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
17856 cat confdefs.h
- <<_ACEOF >conftest.c
17859 #include <linux/fs.h>
17860 #include <linux/posix_acl.h>
17866 struct user_namespace *user_ns = NULL;
17867 const struct posix_acl *acl = NULL;
17870 error = posix_acl_valid(user_ns, acl);
17880 cat - <<_ACEOF >conftest.h
17885 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17886 echo "obj-m := conftest.o" >build
/Makefile
17888 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17889 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17891 (eval $ac_try) 2>&5
17893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17894 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17895 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17896 (eval $ac_try) 2>&5
17898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17899 test $ac_status = 0; }; }; then :
17901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17902 $as_echo "yes" >&6; }
17904 $as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h
17908 $as_echo "$as_me: failed program was:" >&5
17909 sed 's/^/| /' conftest.
$ac_ext >&5
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17912 $as_echo "no" >&6; }
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
17923 $as_echo_n "checking whether iops->permission() exists... " >&6; }
17926 cat confdefs.h
- <<_ACEOF >conftest.c
17929 #include <linux/fs.h>
17931 int permission_fn(struct inode *inode, int mask) { return 0; }
17933 static const struct inode_operations
17934 iops __attribute__ ((unused)) = {
17935 .permission = permission_fn,
17951 cat - <<_ACEOF >conftest.h
17956 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17957 echo "obj-m := conftest.o" >build
/Makefile
17959 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17960 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17961 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17962 (eval $ac_try) 2>&5
17964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17965 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17967 (eval $ac_try) 2>&5
17969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17970 test $ac_status = 0; }; }; then :
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17973 $as_echo "yes" >&6; }
17975 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
17979 $as_echo "$as_me: failed program was:" >&5
17980 sed 's/^/| /' conftest.
$ac_ext >&5
17982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17983 $as_echo "no" >&6; }
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
17994 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
17997 cat confdefs.h
- <<_ACEOF >conftest.c
18000 #include <linux/fs.h>
18002 int permission_fn(struct inode *inode, int mask,
18003 struct nameidata *nd) { return 0; }
18005 static const struct inode_operations
18006 iops __attribute__ ((unused)) = {
18007 .permission = permission_fn,
18023 cat - <<_ACEOF >conftest.h
18028 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18029 echo "obj-m := conftest.o" >build
/Makefile
18031 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18032 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18034 (eval $ac_try) 2>&5
18036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18037 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18039 (eval $ac_try) 2>&5
18041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18042 test $ac_status = 0; }; }; then :
18044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18045 $as_echo "yes" >&6; }
18047 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
18050 $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
18054 $as_echo "$as_me: failed program was:" >&5
18055 sed 's/^/| /' conftest.
$ac_ext >&5
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18058 $as_echo "no" >&6; }
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
18069 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
18072 cat confdefs.h
- <<_ACEOF >conftest.c
18075 #include <linux/fs.h>
18077 int check_acl_fn(struct inode *inode, int mask) { return 0; }
18079 static const struct inode_operations
18080 iops __attribute__ ((unused)) = {
18081 .check_acl = check_acl_fn,
18097 cat - <<_ACEOF >conftest.h
18102 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18103 echo "obj-m := conftest.o" >build
/Makefile
18105 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18106 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18108 (eval $ac_try) 2>&5
18110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18111 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18113 (eval $ac_try) 2>&5
18115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18116 test $ac_status = 0; }; }; then :
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18119 $as_echo "yes" >&6; }
18121 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
18125 $as_echo "$as_me: failed program was:" >&5
18126 sed 's/^/| /' conftest.
$ac_ext >&5
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18129 $as_echo "no" >&6; }
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
18140 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
18143 cat confdefs.h
- <<_ACEOF >conftest.c
18146 #include <linux/fs.h>
18148 int check_acl_fn(struct inode *inode, int mask,
18149 unsigned int flags) { return 0; }
18151 static const struct inode_operations
18152 iops __attribute__ ((unused)) = {
18153 .check_acl = check_acl_fn,
18169 cat - <<_ACEOF >conftest.h
18174 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18175 echo "obj-m := conftest.o" >build
/Makefile
18177 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18178 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18180 (eval $ac_try) 2>&5
18182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18183 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18184 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18185 (eval $ac_try) 2>&5
18187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18188 test $ac_status = 0; }; }; then :
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18191 $as_echo "yes" >&6; }
18193 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
18196 $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
18200 $as_echo "$as_me: failed program was:" >&5
18201 sed 's/^/| /' conftest.
$ac_ext >&5
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18204 $as_echo "no" >&6; }
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
18215 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
18218 cat confdefs.h
- <<_ACEOF >conftest.c
18221 #include <linux/fs.h>
18223 struct posix_acl *get_acl_fn(struct inode *inode, int type)
18226 static const struct inode_operations
18227 iops __attribute__ ((unused)) = {
18228 .get_acl = get_acl_fn,
18244 cat - <<_ACEOF >conftest.h
18249 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18250 echo "obj-m := conftest.o" >build
/Makefile
18252 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18253 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18255 (eval $ac_try) 2>&5
18257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18258 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18260 (eval $ac_try) 2>&5
18262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18263 test $ac_status = 0; }; }; then :
18265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18266 $as_echo "yes" >&6; }
18268 $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
18272 $as_echo "$as_me: failed program was:" >&5
18273 sed 's/^/| /' conftest.
$ac_ext >&5
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18276 $as_echo "no" >&6; }
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_umask exists" >&5
18287 $as_echo_n "checking whether current_umask exists... " >&6; }
18290 cat confdefs.h
- <<_ACEOF >conftest.c
18293 #include <linux/fs.h>
18309 cat - <<_ACEOF >conftest.h
18314 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18315 echo "obj-m := conftest.o" >build
/Makefile
18317 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18318 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18319 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18320 (eval $ac_try) 2>&5
18322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18323 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18325 (eval $ac_try) 2>&5
18327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18328 test $ac_status = 0; }; }; then :
18330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18331 $as_echo "yes" >&6; }
18333 $as_echo "#define HAVE_CURRENT_UMASK 1" >>confdefs.h
18337 $as_echo "$as_me: failed program was:" >&5
18338 sed 's/^/| /' conftest.
$ac_ext >&5
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18341 $as_echo "no" >&6; }
18351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
18352 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
18356 cat confdefs.h
- <<_ACEOF >conftest.c
18359 #include <linux/fs.h>
18361 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
18362 static struct super_operations sops __attribute__ ((unused)) = {
18363 .show_options = show_options,
18379 cat - <<_ACEOF >conftest.h
18384 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18385 echo "obj-m := conftest.o" >build
/Makefile
18387 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18388 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18389 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18390 (eval $ac_try) 2>&5
18392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18393 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18394 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18395 (eval $ac_try) 2>&5
18397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18398 test $ac_status = 0; }; }; then :
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18401 $as_echo "yes" >&6; }
18403 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
18407 $as_echo "$as_me: failed program was:" >&5
18408 sed 's/^/| /' conftest.
$ac_ext >&5
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18411 $as_echo "no" >&6; }
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
18422 $as_echo_n "checking whether file_inode() is available... " >&6; }
18425 cat confdefs.h
- <<_ACEOF >conftest.c
18428 #include <linux/fs.h>
18434 struct file *f = NULL;
18445 cat - <<_ACEOF >conftest.h
18450 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18451 echo "obj-m := conftest.o" >build
/Makefile
18453 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18454 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18455 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18456 (eval $ac_try) 2>&5
18458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18459 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18460 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18461 (eval $ac_try) 2>&5
18463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18464 test $ac_status = 0; }; }; then :
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18467 $as_echo "yes" >&6; }
18469 $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
18473 $as_echo "$as_me: failed program was:" >&5
18474 sed 's/^/| /' conftest.
$ac_ext >&5
18476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18477 $as_echo "no" >&6; }
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
18488 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
18492 cat confdefs.h
- <<_ACEOF >conftest.c
18495 #include <linux/fs.h>
18497 int test_fsync(struct file *f, struct dentry *dentry, int x)
18500 static const struct file_operations
18501 fops __attribute__ ((unused)) = {
18502 .fsync = test_fsync,
18518 cat - <<_ACEOF >conftest.h
18523 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18524 echo "obj-m := conftest.o" >build
/Makefile
18526 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18527 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18529 (eval $ac_try) 2>&5
18531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18532 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18534 (eval $ac_try) 2>&5
18536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18537 test $ac_status = 0; }; }; then :
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
18540 $as_echo "dentry" >&6; }
18542 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
18546 $as_echo "$as_me: failed program was:" >&5
18547 sed 's/^/| /' conftest.
$ac_ext >&5
18560 cat confdefs.h
- <<_ACEOF >conftest.c
18563 #include <linux/fs.h>
18565 int test_fsync(struct file *f, int x) { return 0; }
18567 static const struct file_operations
18568 fops __attribute__ ((unused)) = {
18569 .fsync = test_fsync,
18585 cat - <<_ACEOF >conftest.h
18590 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18591 echo "obj-m := conftest.o" >build
/Makefile
18593 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18594 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18596 (eval $ac_try) 2>&5
18598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18599 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18600 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18601 (eval $ac_try) 2>&5
18603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18604 test $ac_status = 0; }; }; then :
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
18607 $as_echo "no dentry" >&6; }
18609 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
18613 $as_echo "$as_me: failed program was:" >&5
18614 sed 's/^/| /' conftest.
$ac_ext >&5
18627 cat confdefs.h
- <<_ACEOF >conftest.c
18630 #include <linux/fs.h>
18632 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
18635 static const struct file_operations
18636 fops __attribute__ ((unused)) = {
18637 .fsync = test_fsync,
18653 cat - <<_ACEOF >conftest.h
18658 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18659 echo "obj-m := conftest.o" >build
/Makefile
18661 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18662 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18664 (eval $ac_try) 2>&5
18666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18667 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18669 (eval $ac_try) 2>&5
18671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18672 test $ac_status = 0; }; }; then :
18674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
18675 $as_echo "range" >&6; }
18677 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
18681 $as_echo "$as_me: failed program was:" >&5
18682 sed 's/^/| /' conftest.
$ac_ext >&5
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
18695 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
18698 cat confdefs.h
- <<_ACEOF >conftest.c
18701 #include <linux/fs.h>
18702 void evict_inode (struct inode * t) { return; }
18703 static struct super_operations sops __attribute__ ((unused)) = {
18704 .evict_inode = evict_inode,
18720 cat - <<_ACEOF >conftest.h
18725 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18726 echo "obj-m := conftest.o" >build
/Makefile
18728 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18729 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18731 (eval $ac_try) 2>&5
18733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18734 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18736 (eval $ac_try) 2>&5
18738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18739 test $ac_status = 0; }; }; then :
18741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18742 $as_echo "yes" >&6; }
18744 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
18748 $as_echo "$as_me: failed program was:" >&5
18749 sed 's/^/| /' conftest.
$ac_ext >&5
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18752 $as_echo "no" >&6; }
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
18763 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
18766 cat confdefs.h
- <<_ACEOF >conftest.c
18769 #include <linux/fs.h>
18771 void dirty_inode(struct inode *a, int b) { return; }
18773 static const struct super_operations
18774 sops __attribute__ ((unused)) = {
18775 .dirty_inode = dirty_inode,
18791 cat - <<_ACEOF >conftest.h
18796 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18797 echo "obj-m := conftest.o" >build
/Makefile
18799 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18800 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18801 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18802 (eval $ac_try) 2>&5
18804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18805 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18806 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18807 (eval $ac_try) 2>&5
18809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18810 test $ac_status = 0; }; }; then :
18812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18813 $as_echo "yes" >&6; }
18815 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
18819 $as_echo "$as_me: failed program was:" >&5
18820 sed 's/^/| /' conftest.
$ac_ext >&5
18822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18823 $as_echo "no" >&6; }
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
18834 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
18837 cat confdefs.h
- <<_ACEOF >conftest.c
18840 #include <linux/fs.h>
18842 int nr_cached_objects(struct super_block *sb) { return 0; }
18844 static const struct super_operations
18845 sops __attribute__ ((unused)) = {
18846 .nr_cached_objects = nr_cached_objects,
18862 cat - <<_ACEOF >conftest.h
18867 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18868 echo "obj-m := conftest.o" >build
/Makefile
18870 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18871 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18873 (eval $ac_try) 2>&5
18875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18876 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18877 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18878 (eval $ac_try) 2>&5
18880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18881 test $ac_status = 0; }; }; then :
18883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18884 $as_echo "yes" >&6; }
18886 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
18890 $as_echo "$as_me: failed program was:" >&5
18891 sed 's/^/| /' conftest.
$ac_ext >&5
18893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18894 $as_echo "no" >&6; }
18904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
18905 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
18908 cat confdefs.h
- <<_ACEOF >conftest.c
18911 #include <linux/fs.h>
18913 void free_cached_objects(struct super_block *sb, int x)
18916 static const struct super_operations
18917 sops __attribute__ ((unused)) = {
18918 .free_cached_objects = free_cached_objects,
18934 cat - <<_ACEOF >conftest.h
18939 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18940 echo "obj-m := conftest.o" >build
/Makefile
18942 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18943 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18944 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18945 (eval $ac_try) 2>&5
18947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18948 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18950 (eval $ac_try) 2>&5
18952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18953 test $ac_status = 0; }; }; then :
18955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18956 $as_echo "yes" >&6; }
18958 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
18962 $as_echo "$as_me: failed program was:" >&5
18963 sed 's/^/| /' conftest.
$ac_ext >&5
18965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18966 $as_echo "no" >&6; }
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
18978 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
18981 cat confdefs.h
- <<_ACEOF >conftest.c
18984 #include <linux/fs.h>
18986 long test_fallocate(struct file *file, int mode,
18987 loff_t offset, loff_t len) { return 0; }
18989 static const struct file_operations
18990 fops __attribute__ ((unused)) = {
18991 .fallocate = test_fallocate,
19007 cat - <<_ACEOF >conftest.h
19012 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19013 echo "obj-m := conftest.o" >build
/Makefile
19015 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19016 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19018 (eval $ac_try) 2>&5
19020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19021 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19022 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19023 (eval $ac_try) 2>&5
19025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19026 test $ac_status = 0; }; }; then :
19028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19029 $as_echo "yes" >&6; }
19031 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
19035 $as_echo "$as_me: failed program was:" >&5
19036 sed 's/^/| /' conftest.
$ac_ext >&5
19038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19039 $as_echo "no" >&6; }
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
19050 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
19053 cat confdefs.h
- <<_ACEOF >conftest.c
19056 #include <linux/fs.h>
19058 long test_fallocate(struct inode *inode, int mode,
19059 loff_t offset, loff_t len) { return 0; }
19061 static const struct inode_operations
19062 fops __attribute__ ((unused)) = {
19063 .fallocate = test_fallocate,
19079 cat - <<_ACEOF >conftest.h
19084 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19085 echo "obj-m := conftest.o" >build
/Makefile
19087 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19088 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19090 (eval $ac_try) 2>&5
19092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19093 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19095 (eval $ac_try) 2>&5
19097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19098 test $ac_status = 0; }; }; then :
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19101 $as_echo "yes" >&6; }
19103 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
19107 $as_echo "$as_me: failed program was:" >&5
19108 sed 's/^/| /' conftest.
$ac_ext >&5
19110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19111 $as_echo "no" >&6; }
19122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
19123 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
19126 cat confdefs.h
- <<_ACEOF >conftest.c
19129 #include <linux/fs.h>
19131 int mkdir(struct inode *inode, struct dentry *dentry,
19132 umode_t umode) { return 0; }
19134 static const struct inode_operations
19135 iops __attribute__ ((unused)) = {
19152 cat - <<_ACEOF >conftest.h
19157 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19158 echo "obj-m := conftest.o" >build
/Makefile
19160 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19161 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19162 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19163 (eval $ac_try) 2>&5
19165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19166 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19167 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19168 (eval $ac_try) 2>&5
19170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19171 test $ac_status = 0; }; }; then :
19173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19174 $as_echo "yes" >&6; }
19176 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
19180 $as_echo "$as_me: failed program was:" >&5
19181 sed 's/^/| /' conftest.
$ac_ext >&5
19183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19184 $as_echo "no" >&6; }
19194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5
19195 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
19198 cat confdefs.h
- <<_ACEOF >conftest.c
19201 #include <linux/fs.h>
19203 struct dentry *inode_lookup(struct inode *inode,
19204 struct dentry *dentry, struct nameidata *nidata)
19207 static const struct inode_operations iops
19208 __attribute__ ((unused)) = {
19209 .lookup = inode_lookup,
19225 cat - <<_ACEOF >conftest.h
19230 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19231 echo "obj-m := conftest.o" >build
/Makefile
19233 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19234 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19235 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19236 (eval $ac_try) 2>&5
19238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19239 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19241 (eval $ac_try) 2>&5
19243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19244 test $ac_status = 0; }; }; then :
19246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19247 $as_echo "yes" >&6; }
19249 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
19253 $as_echo "$as_me: failed program was:" >&5
19254 sed 's/^/| /' conftest.
$ac_ext >&5
19256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19257 $as_echo "no" >&6; }
19267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5
19268 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
19271 cat confdefs.h
- <<_ACEOF >conftest.c
19274 #include <linux/fs.h>
19276 #ifdef HAVE_MKDIR_UMODE_T
19277 int inode_create(struct inode *inode ,struct dentry *dentry,
19278 umode_t umode, struct nameidata *nidata) { return 0; }
19280 int inode_create(struct inode *inode,struct dentry *dentry,
19281 int umode, struct nameidata * nidata) { return 0; }
19284 static const struct inode_operations
19285 iops __attribute__ ((unused)) = {
19286 .create = inode_create,
19302 cat - <<_ACEOF >conftest.h
19307 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19308 echo "obj-m := conftest.o" >build
/Makefile
19310 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19311 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19313 (eval $ac_try) 2>&5
19315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19316 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19317 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19318 (eval $ac_try) 2>&5
19320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19321 test $ac_status = 0; }; }; then :
19323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19324 $as_echo "yes" >&6; }
19326 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
19330 $as_echo "$as_me: failed program was:" >&5
19331 sed 's/^/| /' conftest.
$ac_ext >&5
19333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19334 $as_echo "no" >&6; }
19344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5
19345 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
19348 cat confdefs.h
- <<_ACEOF >conftest.c
19351 #include <linux/fs.h>
19352 const char *get_link(struct dentry *de, struct inode *ip,
19353 struct delayed_call *done) { return "symlink"; }
19354 static struct inode_operations
19355 iops __attribute__ ((unused)) = {
19356 .get_link = get_link,
19372 cat - <<_ACEOF >conftest.h
19377 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19378 echo "obj-m := conftest.o" >build
/Makefile
19380 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19381 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19382 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19383 (eval $ac_try) 2>&5
19385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19386 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19388 (eval $ac_try) 2>&5
19390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19391 test $ac_status = 0; }; }; then :
19393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19394 $as_echo "yes" >&6; }
19396 $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h
19400 $as_echo "$as_me: failed program was:" >&5
19401 sed 's/^/| /' conftest.
$ac_ext >&5
19403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19404 $as_echo "no" >&6; }
19405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5
19406 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
19409 cat confdefs.h
- <<_ACEOF >conftest.c
19412 #include <linux/fs.h>
19413 const char *get_link(struct dentry *de, struct
19414 inode *ip, void **cookie) { return "symlink"; }
19415 static struct inode_operations
19416 iops __attribute__ ((unused)) = {
19417 .get_link = get_link,
19433 cat - <<_ACEOF >conftest.h
19438 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19439 echo "obj-m := conftest.o" >build
/Makefile
19441 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19442 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19444 (eval $ac_try) 2>&5
19446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19447 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19449 (eval $ac_try) 2>&5
19451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19452 test $ac_status = 0; }; }; then :
19454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19455 $as_echo "yes" >&6; }
19457 $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h
19461 $as_echo "$as_me: failed program was:" >&5
19462 sed 's/^/| /' conftest.
$ac_ext >&5
19464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19465 $as_echo "no" >&6; }
19467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5
19468 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
19471 cat confdefs.h
- <<_ACEOF >conftest.c
19474 #include <linux/fs.h>
19475 const char *follow_link(struct dentry *de,
19476 void **cookie) { return "symlink"; }
19477 static struct inode_operations
19478 iops __attribute__ ((unused)) = {
19479 .follow_link = follow_link,
19495 cat - <<_ACEOF >conftest.h
19500 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19501 echo "obj-m := conftest.o" >build
/Makefile
19503 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19504 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19506 (eval $ac_try) 2>&5
19508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19509 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19510 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19511 (eval $ac_try) 2>&5
19513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19514 test $ac_status = 0; }; }; then :
19516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19517 $as_echo "yes" >&6; }
19519 $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h
19523 $as_echo "$as_me: failed program was:" >&5
19524 sed 's/^/| /' conftest.
$ac_ext >&5
19526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19527 $as_echo "no" >&6; }
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5
19529 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
19532 cat confdefs.h
- <<_ACEOF >conftest.c
19535 #include <linux/fs.h>
19536 void *follow_link(struct dentry *de, struct
19537 nameidata *nd) { return (void *)NULL; }
19538 static struct inode_operations
19539 iops __attribute__ ((unused)) = {
19540 .follow_link = follow_link,
19556 cat - <<_ACEOF >conftest.h
19561 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19562 echo "obj-m := conftest.o" >build
/Makefile
19564 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19565 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19566 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19567 (eval $ac_try) 2>&5
19569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19570 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19571 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19572 (eval $ac_try) 2>&5
19574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19575 test $ac_status = 0; }; }; then :
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19578 $as_echo "yes" >&6; }
19580 $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h
19584 $as_echo "$as_me: failed program was:" >&5
19585 sed 's/^/| /' conftest.
$ac_ext >&5
19587 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
19621 cat confdefs.h
- <<_ACEOF >conftest.c
19624 #if !defined(HAVE_GET_LINK_DELAYED)
19625 #error "Expecting get_link() delayed done"
19641 cat - <<_ACEOF >conftest.h
19646 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19647 echo "obj-m := conftest.o" >build
/Makefile
19649 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19650 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19652 (eval $ac_try) 2>&5
19654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19655 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19657 (eval $ac_try) 2>&5
19659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19660 test $ac_status = 0; }; }; then :
19663 $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h
19667 $as_echo "$as_me: failed program was:" >&5
19668 sed 's/^/| /' conftest.
$ac_ext >&5
19670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5
19671 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
19674 cat confdefs.h
- <<_ACEOF >conftest.c
19677 #include <linux/fs.h>
19678 void put_link(struct inode *ip, void *cookie)
19680 static struct inode_operations
19681 iops __attribute__ ((unused)) = {
19682 .put_link = put_link,
19698 cat - <<_ACEOF >conftest.h
19703 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19704 echo "obj-m := conftest.o" >build
/Makefile
19706 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19707 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19708 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19709 (eval $ac_try) 2>&5
19711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19712 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19714 (eval $ac_try) 2>&5
19716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19717 test $ac_status = 0; }; }; then :
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19720 $as_echo "yes" >&6; }
19722 $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h
19726 $as_echo "$as_me: failed program was:" >&5
19727 sed 's/^/| /' conftest.
$ac_ext >&5
19729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19730 $as_echo "no" >&6; }
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5
19732 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
19735 cat confdefs.h
- <<_ACEOF >conftest.c
19738 #include <linux/fs.h>
19739 void put_link(struct dentry *de, struct
19740 nameidata *nd, void *ptr) { return; }
19741 static struct inode_operations
19742 iops __attribute__ ((unused)) = {
19743 .put_link = put_link,
19759 cat - <<_ACEOF >conftest.h
19764 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19765 echo "obj-m := conftest.o" >build
/Makefile
19767 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19768 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19770 (eval $ac_try) 2>&5
19772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19773 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19775 (eval $ac_try) 2>&5
19777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19778 test $ac_status = 0; }; }; then :
19780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19781 $as_echo "yes" >&6; }
19783 $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h
19787 $as_echo "$as_me: failed program was:" >&5
19788 sed 's/^/| /' conftest.
$ac_ext >&5
19790 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
19815 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
19818 cat confdefs.h
- <<_ACEOF >conftest.c
19821 #include <linux/fs.h>
19822 void truncate_range(struct inode *inode, loff_t start,
19823 loff_t end) { return; }
19824 static struct inode_operations iops __attribute__ ((unused)) = {
19825 .truncate_range = truncate_range,
19841 cat - <<_ACEOF >conftest.h
19846 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19847 echo "obj-m := conftest.o" >build
/Makefile
19849 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19850 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19851 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19852 (eval $ac_try) 2>&5
19854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19855 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19857 (eval $ac_try) 2>&5
19859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19860 test $ac_status = 0; }; }; then :
19862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19863 $as_echo "yes" >&6; }
19865 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
19869 $as_echo "$as_me: failed program was:" >&5
19870 sed 's/^/| /' conftest.
$ac_ext >&5
19872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19873 $as_echo "no" >&6; }
19883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
19884 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
19887 cat confdefs.h
- <<_ACEOF >conftest.c
19890 #include <linux/dcache.h>
19891 struct vfsmount *d_automount(struct path *p) { return NULL; }
19892 struct dentry_operations dops __attribute__ ((unused)) = {
19893 .d_automount = d_automount,
19909 cat - <<_ACEOF >conftest.h
19914 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19915 echo "obj-m := conftest.o" >build
/Makefile
19917 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19918 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19920 (eval $ac_try) 2>&5
19922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19923 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19925 (eval $ac_try) 2>&5
19927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19928 test $ac_status = 0; }; }; then :
19930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19931 $as_echo "yes" >&6; }
19933 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
19937 $as_echo "$as_me: failed program was:" >&5
19938 sed 's/^/| /' conftest.
$ac_ext >&5
19940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19941 $as_echo "no" >&6; }
19951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
19952 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
19955 cat confdefs.h
- <<_ACEOF >conftest.c
19958 #include <linux/exportfs.h>
19959 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
19960 struct inode *parent) { return 0; }
19961 static struct export_operations eops __attribute__ ((unused))={
19962 .encode_fh = encode_fh,
19978 cat - <<_ACEOF >conftest.h
19983 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19984 echo "obj-m := conftest.o" >build
/Makefile
19986 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19987 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19988 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19989 (eval $ac_try) 2>&5
19991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19992 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19994 (eval $ac_try) 2>&5
19996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19997 test $ac_status = 0; }; }; then :
19999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20000 $as_echo "yes" >&6; }
20002 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
20006 $as_echo "$as_me: failed program was:" >&5
20007 sed 's/^/| /' conftest.
$ac_ext >&5
20009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20010 $as_echo "no" >&6; }
20020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
20021 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
20024 cat confdefs.h
- <<_ACEOF >conftest.c
20027 #include <linux/exportfs.h>
20028 int commit_metadata(struct inode *inode) { return 0; }
20029 static struct export_operations eops __attribute__ ((unused))={
20030 .commit_metadata = commit_metadata,
20046 cat - <<_ACEOF >conftest.h
20051 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20052 echo "obj-m := conftest.o" >build
/Makefile
20054 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20055 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20057 (eval $ac_try) 2>&5
20059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20060 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20062 (eval $ac_try) 2>&5
20064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20065 test $ac_status = 0; }; }; then :
20067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20068 $as_echo "yes" >&6; }
20070 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
20074 $as_echo "$as_me: failed program was:" >&5
20075 sed 's/^/| /' conftest.
$ac_ext >&5
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20078 $as_echo "no" >&6; }
20087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
20088 $as_echo_n "checking whether clear_inode() is available... " >&6; }
20092 cat confdefs.h
- <<_ACEOF >conftest.c
20095 #include <linux/fs.h>
20111 cat - <<_ACEOF >conftest.h
20116 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20117 echo "obj-m := conftest.o" >build
/Makefile
20119 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20120 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20121 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20122 (eval $ac_try) 2>&5
20124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20125 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20126 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20127 (eval $ac_try) 2>&5
20129 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20130 test $ac_status = 0; }; }; then :
20133 $as_echo "$as_me: failed program was:" >&5
20134 sed 's/^/| /' conftest.
$ac_ext >&5
20142 if test $rc -ne 0; then :
20144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20145 $as_echo "no" >&6; }
20148 if test "x$enable_linux_builtin" != xyes
; then
20150 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
20151 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
20153 if test $rc -ne 0; then
20155 for file in fs
/inode.c
; do
20156 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
20157 "$LINUX/$file" 2>/dev
/null
20159 if test $rc -eq 0; then
20164 if test $export -eq 0; then :
20174 if test $rc -ne 0; then :
20176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20177 $as_echo "no" >&6; }
20181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20182 $as_echo "yes" >&6; }
20184 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
20191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
20192 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
20196 cat confdefs.h
- <<_ACEOF >conftest.c
20199 #include <linux/fs.h>
20205 insert_inode_locked(NULL);
20215 cat - <<_ACEOF >conftest.h
20220 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20221 echo "obj-m := conftest.o" >build
/Makefile
20223 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20224 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20225 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20226 (eval $ac_try) 2>&5
20228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20229 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20230 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20231 (eval $ac_try) 2>&5
20233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20234 test $ac_status = 0; }; }; then :
20237 $as_echo "$as_me: failed program was:" >&5
20238 sed 's/^/| /' conftest.
$ac_ext >&5
20246 if test $rc -ne 0; then :
20248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20249 $as_echo "no" >&6; }
20252 if test "x$enable_linux_builtin" != xyes
; then
20254 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
20255 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
20257 if test $rc -ne 0; then
20259 for file in fs
/inode.c
; do
20260 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
20261 "$LINUX/$file" 2>/dev
/null
20263 if test $rc -eq 0; then
20268 if test $export -eq 0; then :
20278 if test $rc -ne 0; then :
20280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20281 $as_echo "no" >&6; }
20285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20286 $as_echo "yes" >&6; }
20288 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
20295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
20296 $as_echo_n "checking whether d_make_root() is available... " >&6; }
20300 cat confdefs.h
- <<_ACEOF >conftest.c
20303 #include <linux/dcache.h>
20319 cat - <<_ACEOF >conftest.h
20324 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20325 echo "obj-m := conftest.o" >build
/Makefile
20327 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20328 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20329 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20330 (eval $ac_try) 2>&5
20332 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20333 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20334 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20335 (eval $ac_try) 2>&5
20337 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20338 test $ac_status = 0; }; }; then :
20341 $as_echo "$as_me: failed program was:" >&5
20342 sed 's/^/| /' conftest.
$ac_ext >&5
20350 if test $rc -ne 0; then :
20352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20353 $as_echo "no" >&6; }
20356 if test "x$enable_linux_builtin" != xyes
; then
20358 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
20359 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
20361 if test $rc -ne 0; then
20363 for file in fs
/dcache.c
; do
20364 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
20365 "$LINUX/$file" 2>/dev
/null
20367 if test $rc -eq 0; then
20372 if test $export -eq 0; then :
20382 if test $rc -ne 0; then :
20384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20385 $as_echo "no" >&6; }
20389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20390 $as_echo "yes" >&6; }
20392 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
20399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
20400 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
20404 cat confdefs.h
- <<_ACEOF >conftest.c
20407 #include <linux/dcache.h>
20413 d_obtain_alias(NULL);
20423 cat - <<_ACEOF >conftest.h
20428 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20429 echo "obj-m := conftest.o" >build
/Makefile
20431 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20432 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20434 (eval $ac_try) 2>&5
20436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20437 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20438 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20439 (eval $ac_try) 2>&5
20441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20442 test $ac_status = 0; }; }; then :
20445 $as_echo "$as_me: failed program was:" >&5
20446 sed 's/^/| /' conftest.
$ac_ext >&5
20454 if test $rc -ne 0; then :
20456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20457 $as_echo "no" >&6; }
20460 if test "x$enable_linux_builtin" != xyes
; then
20462 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
20463 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
20465 if test $rc -ne 0; then
20467 for file in fs
/dcache.c
; do
20468 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
20469 "$LINUX/$file" 2>/dev
/null
20471 if test $rc -eq 0; then
20476 if test $export -eq 0; then :
20486 if test $rc -ne 0; then :
20488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20489 $as_echo "no" >&6; }
20493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20494 $as_echo "yes" >&6; }
20496 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
20503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
20504 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
20508 cat confdefs.h
- <<_ACEOF >conftest.c
20511 #include <linux/dcache.h>
20517 struct inode *ip = NULL;
20518 d_prune_aliases(ip);
20528 cat - <<_ACEOF >conftest.h
20533 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20534 echo "obj-m := conftest.o" >build
/Makefile
20536 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20537 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20539 (eval $ac_try) 2>&5
20541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20542 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20544 (eval $ac_try) 2>&5
20546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20547 test $ac_status = 0; }; }; then :
20550 $as_echo "$as_me: failed program was:" >&5
20551 sed 's/^/| /' conftest.
$ac_ext >&5
20559 if test $rc -ne 0; then :
20561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20562 $as_echo "no" >&6; }
20565 if test "x$enable_linux_builtin" != xyes
; then
20567 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
20568 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
20570 if test $rc -ne 0; then
20572 for file in fs
/dcache.c
; do
20573 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
20574 "$LINUX/$file" 2>/dev
/null
20576 if test $rc -eq 0; then
20581 if test $export -eq 0; then :
20591 if test $rc -ne 0; then :
20593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20594 $as_echo "no" >&6; }
20598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20599 $as_echo "yes" >&6; }
20601 $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
20608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
20609 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
20613 cat confdefs.h
- <<_ACEOF >conftest.c
20616 #include <linux/dcache.h>
20622 d_set_d_op(NULL, NULL);
20632 cat - <<_ACEOF >conftest.h
20637 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20638 echo "obj-m := conftest.o" >build
/Makefile
20640 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20641 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20643 (eval $ac_try) 2>&5
20645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20646 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20647 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20648 (eval $ac_try) 2>&5
20650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20651 test $ac_status = 0; }; }; then :
20654 $as_echo "$as_me: failed program was:" >&5
20655 sed 's/^/| /' conftest.
$ac_ext >&5
20663 if test $rc -ne 0; then :
20665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20666 $as_echo "no" >&6; }
20669 if test "x$enable_linux_builtin" != xyes
; then
20671 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
20672 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
20674 if test $rc -ne 0; then
20676 for file in fs
/dcache.c
; do
20677 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
20678 "$LINUX/$file" 2>/dev
/null
20680 if test $rc -eq 0; then
20685 if test $export -eq 0; then :
20695 if test $rc -ne 0; then :
20697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20698 $as_echo "no" >&6; }
20702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20703 $as_echo "yes" >&6; }
20705 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
20713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
20714 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
20717 cat confdefs.h
- <<_ACEOF >conftest.c
20720 #include <linux/dcache.h>
20722 int revalidate (struct dentry *dentry,
20723 struct nameidata *nidata) { return 0; }
20725 static const struct dentry_operations
20726 dops __attribute__ ((unused)) = {
20727 .d_revalidate = revalidate,
20743 cat - <<_ACEOF >conftest.h
20748 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20749 echo "obj-m := conftest.o" >build
/Makefile
20751 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20752 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20754 (eval $ac_try) 2>&5
20756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20757 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20759 (eval $ac_try) 2>&5
20761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20762 test $ac_status = 0; }; }; then :
20764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20765 $as_echo "yes" >&6; }
20767 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
20771 $as_echo "$as_me: failed program was:" >&5
20772 sed 's/^/| /' conftest.
$ac_ext >&5
20774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20775 $as_echo "no" >&6; }
20785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
20786 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
20789 cat confdefs.h
- <<_ACEOF >conftest.c
20792 #include <linux/dcache.h>
20794 const struct dentry_operations test_d_op = {
20795 .d_revalidate = NULL,
20802 struct dentry d __attribute__ ((unused));
20804 d.d_op = &test_d_op;
20814 cat - <<_ACEOF >conftest.h
20819 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20820 echo "obj-m := conftest.o" >build
/Makefile
20822 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20823 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20825 (eval $ac_try) 2>&5
20827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20828 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20830 (eval $ac_try) 2>&5
20832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20833 test $ac_status = 0; }; }; then :
20835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20836 $as_echo "yes" >&6; }
20838 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
20842 $as_echo "$as_me: failed program was:" >&5
20843 sed 's/^/| /' conftest.
$ac_ext >&5
20845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20846 $as_echo "no" >&6; }
20855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5
20856 $as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
20860 cat confdefs.h
- <<_ACEOF >conftest.c
20863 #include <linux/fs.h>
20869 check_disk_size_change(NULL, NULL);
20879 cat - <<_ACEOF >conftest.h
20884 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20885 echo "obj-m := conftest.o" >build
/Makefile
20887 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20888 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20890 (eval $ac_try) 2>&5
20892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20893 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20895 (eval $ac_try) 2>&5
20897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20898 test $ac_status = 0; }; }; then :
20901 $as_echo "$as_me: failed program was:" >&5
20902 sed 's/^/| /' conftest.
$ac_ext >&5
20910 if test $rc -ne 0; then :
20912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20913 $as_echo "no" >&6; }
20916 if test "x$enable_linux_builtin" != xyes
; then
20918 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
20919 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
20921 if test $rc -ne 0; then
20923 for file in fs
/block_dev.c
; do
20924 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
20925 "$LINUX/$file" 2>/dev
/null
20927 if test $rc -eq 0; then
20932 if test $export -eq 0; then :
20942 if test $rc -ne 0; then :
20944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20945 $as_echo "no" >&6; }
20949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20950 $as_echo "yes" >&6; }
20952 $as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h
20959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
20960 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
20964 cat confdefs.h
- <<_ACEOF >conftest.c
20967 #include <linux/mm.h>
20973 truncate_setsize(NULL, 0);
20983 cat - <<_ACEOF >conftest.h
20988 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20989 echo "obj-m := conftest.o" >build
/Makefile
20991 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20992 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20994 (eval $ac_try) 2>&5
20996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20997 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20998 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20999 (eval $ac_try) 2>&5
21001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21002 test $ac_status = 0; }; }; then :
21005 $as_echo "$as_me: failed program was:" >&5
21006 sed 's/^/| /' conftest.
$ac_ext >&5
21014 if test $rc -ne 0; then :
21016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21017 $as_echo "no" >&6; }
21020 if test "x$enable_linux_builtin" != xyes
; then
21022 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
21023 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21025 if test $rc -ne 0; then
21027 for file in mm
/truncate.c
; do
21028 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
21029 "$LINUX/$file" 2>/dev
/null
21031 if test $rc -eq 0; then
21036 if test $export -eq 0; then :
21046 if test $rc -ne 0; then :
21048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21049 $as_echo "no" >&6; }
21053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21054 $as_echo "yes" >&6; }
21056 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
21064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
21065 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
21068 cat confdefs.h
- <<_ACEOF >conftest.c
21071 #include <linux/security.h>
21077 struct inode *ip __attribute__ ((unused)) = NULL;
21078 struct inode *dip __attribute__ ((unused)) = NULL;
21079 const struct qstr *str __attribute__ ((unused)) = NULL;
21080 char *name __attribute__ ((unused)) = NULL;
21081 void *value __attribute__ ((unused)) = NULL;
21082 size_t len __attribute__ ((unused)) = 0;
21084 security_inode_init_security(ip, dip, str, &name, &value, &len);
21094 cat - <<_ACEOF >conftest.h
21099 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21100 echo "obj-m := conftest.o" >build
/Makefile
21102 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21103 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21105 (eval $ac_try) 2>&5
21107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21108 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21110 (eval $ac_try) 2>&5
21112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21113 test $ac_status = 0; }; }; then :
21115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21116 $as_echo "yes" >&6; }
21118 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
21122 $as_echo "$as_me: failed program was:" >&5
21123 sed 's/^/| /' conftest.
$ac_ext >&5
21125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21126 $as_echo "no" >&6; }
21136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
21137 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
21140 cat confdefs.h
- <<_ACEOF >conftest.c
21143 #include <linux/security.h>
21149 struct inode *ip __attribute__ ((unused)) = NULL;
21150 struct inode *dip __attribute__ ((unused)) = NULL;
21151 const struct qstr *str __attribute__ ((unused)) = NULL;
21152 initxattrs func __attribute__ ((unused)) = NULL;
21154 security_inode_init_security(ip, dip, str, func, NULL);
21164 cat - <<_ACEOF >conftest.h
21169 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21170 echo "obj-m := conftest.o" >build
/Makefile
21172 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21173 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21175 (eval $ac_try) 2>&5
21177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21178 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21180 (eval $ac_try) 2>&5
21182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21183 test $ac_status = 0; }; }; then :
21185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21186 $as_echo "yes" >&6; }
21188 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
21192 $as_echo "$as_me: failed program was:" >&5
21193 sed 's/^/| /' conftest.
$ac_ext >&5
21195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21196 $as_echo "no" >&6; }
21205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
21206 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
21210 cat confdefs.h
- <<_ACEOF >conftest.c
21213 #include <linux/fs.h>
21219 mount_nodev(NULL, 0, NULL, NULL);
21229 cat - <<_ACEOF >conftest.h
21234 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21235 echo "obj-m := conftest.o" >build
/Makefile
21237 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21238 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21240 (eval $ac_try) 2>&5
21242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21243 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
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; }; }; then :
21251 $as_echo "$as_me: failed program was:" >&5
21252 sed 's/^/| /' conftest.
$ac_ext >&5
21260 if test $rc -ne 0; then :
21262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21263 $as_echo "no" >&6; }
21266 if test "x$enable_linux_builtin" != xyes
; then
21268 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
21269 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21271 if test $rc -ne 0; then
21273 for file in fs
/super.c
; do
21274 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
21275 "$LINUX/$file" 2>/dev
/null
21277 if test $rc -eq 0; then
21282 if test $export -eq 0; then :
21292 if test $rc -ne 0; then :
21294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21295 $as_echo "no" >&6; }
21299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21300 $as_echo "yes" >&6; }
21302 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
21310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
21311 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
21314 cat confdefs.h
- <<_ACEOF >conftest.c
21317 #include <linux/fs.h>
21319 int shrink(struct shrinker *s, struct shrink_control *sc)
21322 static const struct super_block
21323 sb __attribute__ ((unused)) = {
21324 .s_shrink.shrink = shrink,
21325 .s_shrink.seeks = DEFAULT_SEEKS,
21326 .s_shrink.batch = 0,
21342 cat - <<_ACEOF >conftest.h
21347 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21348 echo "obj-m := conftest.o" >build
/Makefile
21350 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21351 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21353 (eval $ac_try) 2>&5
21355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21356 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21357 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21358 (eval $ac_try) 2>&5
21360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21361 test $ac_status = 0; }; }; then :
21363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21364 $as_echo "yes" >&6; }
21366 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
21371 $as_echo "$as_me: failed program was:" >&5
21372 sed 's/^/| /' conftest.
$ac_ext >&5
21374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21375 $as_echo "no" >&6; }
21385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
21386 $as_echo_n "checking whether shrink_control has nid... " >&6; }
21389 cat confdefs.h
- <<_ACEOF >conftest.c
21392 #include <linux/fs.h>
21398 struct shrink_control sc __attribute__ ((unused));
21399 unsigned long scnidsize __attribute__ ((unused)) =
21410 cat - <<_ACEOF >conftest.h
21415 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21416 echo "obj-m := conftest.o" >build
/Makefile
21418 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21419 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21421 (eval $ac_try) 2>&5
21423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21424 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21426 (eval $ac_try) 2>&5
21428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21429 test $ac_status = 0; }; }; then :
21431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21432 $as_echo "yes" >&6; }
21434 $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
21438 $as_echo "$as_me: failed program was:" >&5
21439 sed 's/^/| /' conftest.
$ac_ext >&5
21441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21442 $as_echo "no" >&6; }
21452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
21453 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
21456 cat confdefs.h
- <<_ACEOF >conftest.c
21459 #include <linux/fs.h>
21465 struct super_block sb __attribute__ ((unused));
21467 INIT_LIST_HEAD(&sb.s_instances);
21477 cat - <<_ACEOF >conftest.h
21482 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21483 echo "obj-m := conftest.o" >build
/Makefile
21485 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21486 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21487 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21488 (eval $ac_try) 2>&5
21490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21491 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21492 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21493 (eval $ac_try) 2>&5
21495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21496 test $ac_status = 0; }; }; then :
21498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21499 $as_echo "yes" >&6; }
21501 $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
21505 $as_echo "$as_me: failed program was:" >&5
21506 sed 's/^/| /' conftest.
$ac_ext >&5
21508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21509 $as_echo "no" >&6; }
21518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
21519 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
21522 cat confdefs.h
- <<_ACEOF >conftest.c
21525 #include <linux/fs.h>
21531 struct super_block sb __attribute__ ((unused));
21542 cat - <<_ACEOF >conftest.h
21547 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21548 echo "obj-m := conftest.o" >build
/Makefile
21550 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21551 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21552 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21553 (eval $ac_try) 2>&5
21555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21556 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21557 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21558 (eval $ac_try) 2>&5
21560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21561 test $ac_status = 0; }; }; then :
21563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21564 $as_echo "yes" >&6; }
21566 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
21570 $as_echo "$as_me: failed program was:" >&5
21571 sed 's/^/| /' conftest.
$ac_ext >&5
21573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21574 $as_echo "no" >&6; }
21584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
21585 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
21589 cat confdefs.h
- <<_ACEOF >conftest.c
21592 #include <linux/backing-dev.h>
21593 struct backing_dev_info bdi;
21599 char *name = "bdi";
21600 int error __attribute__((unused)) =
21601 bdi_setup_and_register(&bdi, name);
21611 cat - <<_ACEOF >conftest.h
21616 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21617 echo "obj-m := conftest.o" >build
/Makefile
21619 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21620 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21622 (eval $ac_try) 2>&5
21624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21625 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21627 (eval $ac_try) 2>&5
21629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21630 test $ac_status = 0; }; }; then :
21633 $as_echo "$as_me: failed program was:" >&5
21634 sed 's/^/| /' conftest.
$ac_ext >&5
21642 if test $rc -ne 0; then :
21644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21645 $as_echo "no" >&6; }
21646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
21647 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
21651 cat confdefs.h
- <<_ACEOF >conftest.c
21654 #include <linux/backing-dev.h>
21655 struct backing_dev_info bdi;
21661 char *name = "bdi";
21662 unsigned int cap = BDI_CAP_MAP_COPY;
21663 int error __attribute__((unused)) =
21664 bdi_setup_and_register(&bdi, name, cap);
21674 cat - <<_ACEOF >conftest.h
21679 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21680 echo "obj-m := conftest.o" >build
/Makefile
21682 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21683 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21685 (eval $ac_try) 2>&5
21687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21688 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21689 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21690 (eval $ac_try) 2>&5
21692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21693 test $ac_status = 0; }; }; then :
21696 $as_echo "$as_me: failed program was:" >&5
21697 sed 's/^/| /' conftest.
$ac_ext >&5
21705 if test $rc -ne 0; then :
21707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21708 $as_echo "no" >&6; }
21711 if test "x$enable_linux_builtin" != xyes
; then
21713 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
21714 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21716 if test $rc -ne 0; then
21718 for file in mm
/backing-dev.c
; do
21719 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
21720 "$LINUX/$file" 2>/dev
/null
21722 if test $rc -eq 0; then
21727 if test $export -eq 0; then :
21737 if test $rc -ne 0; then :
21739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21740 $as_echo "no" >&6; }
21744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21745 $as_echo "yes" >&6; }
21747 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
21755 if test "x$enable_linux_builtin" != xyes
; then
21757 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
21758 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21760 if test $rc -ne 0; then
21762 for file in mm
/backing-dev.c
; do
21763 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
21764 "$LINUX/$file" 2>/dev
/null
21766 if test $rc -eq 0; then
21771 if test $export -eq 0; then :
21781 if test $rc -ne 0; then :
21783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21784 $as_echo "no" >&6; }
21785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
21786 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
21790 cat confdefs.h
- <<_ACEOF >conftest.c
21793 #include <linux/backing-dev.h>
21794 struct backing_dev_info bdi;
21800 char *name = "bdi";
21801 unsigned int cap = BDI_CAP_MAP_COPY;
21802 int error __attribute__((unused)) =
21803 bdi_setup_and_register(&bdi, name, cap);
21813 cat - <<_ACEOF >conftest.h
21818 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21819 echo "obj-m := conftest.o" >build
/Makefile
21821 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21822 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21824 (eval $ac_try) 2>&5
21826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21827 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21829 (eval $ac_try) 2>&5
21831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21832 test $ac_status = 0; }; }; then :
21835 $as_echo "$as_me: failed program was:" >&5
21836 sed 's/^/| /' conftest.
$ac_ext >&5
21844 if test $rc -ne 0; then :
21846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21847 $as_echo "no" >&6; }
21850 if test "x$enable_linux_builtin" != xyes
; then
21852 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
21853 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
21855 if test $rc -ne 0; then
21857 for file in mm
/backing-dev.c
; do
21858 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
21859 "$LINUX/$file" 2>/dev
/null
21861 if test $rc -eq 0; then
21866 if test $export -eq 0; then :
21876 if test $rc -ne 0; then :
21878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21879 $as_echo "no" >&6; }
21883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21884 $as_echo "yes" >&6; }
21886 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
21895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21896 $as_echo "yes" >&6; }
21898 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
21906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
21907 $as_echo_n "checking whether set_nlink() is available... " >&6; }
21910 cat confdefs.h
- <<_ACEOF >conftest.c
21913 #include <linux/fs.h>
21920 unsigned int link = 0;
21921 (void) set_nlink(&node, link);
21931 cat - <<_ACEOF >conftest.h
21936 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21937 echo "obj-m := conftest.o" >build
/Makefile
21939 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21940 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21942 (eval $ac_try) 2>&5
21944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21945 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21947 (eval $ac_try) 2>&5
21949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21950 test $ac_status = 0; }; }; then :
21952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21953 $as_echo "yes" >&6; }
21955 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
21959 $as_echo "$as_me: failed program was:" >&5
21960 sed 's/^/| /' conftest.
$ac_ext >&5
21962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21963 $as_echo "no" >&6; }
21973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
21974 $as_echo_n "checking whether elevator_change() is available... " >&6; }
21975 tmp_flags
="$EXTRA_KCFLAGS"
21976 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
21979 cat confdefs.h
- <<_ACEOF >conftest.c
21982 #include <linux/blkdev.h>
21983 #include <linux/elevator.h>
21990 struct request_queue *q = NULL;
21991 char *elevator = NULL;
21992 ret = elevator_change(q, elevator);
22002 cat - <<_ACEOF >conftest.h
22007 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22008 echo "obj-m := conftest.o" >build
/Makefile
22010 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22011 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22012 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22013 (eval $ac_try) 2>&5
22015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22016 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22017 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22018 (eval $ac_try) 2>&5
22020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22021 test $ac_status = 0; }; }; then :
22023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22024 $as_echo "yes" >&6; }
22026 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
22030 $as_echo "$as_me: failed program was:" >&5
22031 sed 's/^/| /' conftest.
$ac_ext >&5
22033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22034 $as_echo "no" >&6; }
22042 EXTRA_KCFLAGS
="$tmp_flags"
22044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
22045 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
22048 cat confdefs.h
- <<_ACEOF >conftest.c
22051 #include <linux/fs.h>
22057 struct file_system_type *type = NULL;
22058 int (*test)(struct super_block *,void *) = NULL;
22059 int (*set)(struct super_block *,void *) = NULL;
22062 (void) sget(type, test, set, flags, data);
22072 cat - <<_ACEOF >conftest.h
22077 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22078 echo "obj-m := conftest.o" >build
/Makefile
22080 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22081 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22082 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22083 (eval $ac_try) 2>&5
22085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22086 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22088 (eval $ac_try) 2>&5
22090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22091 test $ac_status = 0; }; }; then :
22093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22094 $as_echo "yes" >&6; }
22096 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
22100 $as_echo "$as_me: failed program was:" >&5
22101 sed 's/^/| /' conftest.
$ac_ext >&5
22103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22104 $as_echo "no" >&6; }
22113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
22114 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
22118 cat confdefs.h
- <<_ACEOF >conftest.c
22121 #include <linux/fs.h>
22127 struct file *fp __attribute__ ((unused)) = NULL;
22128 struct inode *ip __attribute__ ((unused)) = NULL;
22129 loff_t offset __attribute__ ((unused)) = 0;
22130 loff_t maxsize __attribute__ ((unused)) = 0;
22132 lseek_execute(fp, ip, offset, maxsize);
22142 cat - <<_ACEOF >conftest.h
22147 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22148 echo "obj-m := conftest.o" >build
/Makefile
22150 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22151 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22153 (eval $ac_try) 2>&5
22155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22156 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22157 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22158 (eval $ac_try) 2>&5
22160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22161 test $ac_status = 0; }; }; then :
22164 $as_echo "$as_me: failed program was:" >&5
22165 sed 's/^/| /' conftest.
$ac_ext >&5
22173 if test $rc -ne 0; then :
22175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22176 $as_echo "no" >&6; }
22179 if test "x$enable_linux_builtin" != xyes
; then
22181 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
22182 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22184 if test $rc -ne 0; then
22186 for file in fs
/read_write.c
; do
22187 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
22188 "$LINUX/$file" 2>/dev
/null
22190 if test $rc -eq 0; then
22195 if test $export -eq 0; then :
22205 if test $rc -ne 0; then :
22207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22208 $as_echo "no" >&6; }
22212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22213 $as_echo "yes" >&6; }
22215 $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
22223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
22224 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
22227 cat confdefs.h
- <<_ACEOF >conftest.c
22230 #include <linux/fs.h>
22231 int iterate(struct file *filp, struct dir_context * context)
22234 static const struct file_operations fops
22235 __attribute__ ((unused)) = {
22236 .iterate = iterate,
22252 cat - <<_ACEOF >conftest.h
22257 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22258 echo "obj-m := conftest.o" >build
/Makefile
22260 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22261 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22263 (eval $ac_try) 2>&5
22265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22266 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22267 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22268 (eval $ac_try) 2>&5
22270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22271 test $ac_status = 0; }; }; then :
22273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22274 $as_echo "yes" >&6; }
22276 $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
22280 $as_echo "$as_me: failed program was:" >&5
22281 sed 's/^/| /' conftest.
$ac_ext >&5
22283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22284 $as_echo "no" >&6; }
22286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
22287 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
22290 cat confdefs.h
- <<_ACEOF >conftest.c
22293 #include <linux/fs.h>
22294 int readdir(struct file *filp, void *entry, filldir_t func)
22297 static const struct file_operations fops
22298 __attribute__ ((unused)) = {
22299 .readdir = readdir,
22315 cat - <<_ACEOF >conftest.h
22320 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22321 echo "obj-m := conftest.o" >build
/Makefile
22323 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22324 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22326 (eval $ac_try) 2>&5
22328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22329 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22331 (eval $ac_try) 2>&5
22333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22334 test $ac_status = 0; }; }; then :
22336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22337 $as_echo "yes" >&6; }
22339 $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
22343 $as_echo "$as_me: failed program was:" >&5
22344 sed 's/^/| /' conftest.
$ac_ext >&5
22346 as_fn_error $?
"no; file a bug report with ZFSOnLinux" "$LINENO" 5
22363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
22364 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
22367 cat confdefs.h
- <<_ACEOF >conftest.c
22370 #include <linux/fs.h>
22372 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
22374 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
22377 static const struct file_operations
22378 fops __attribute__ ((unused)) = {
22379 .read_iter = test_read,
22380 .write_iter = test_write,
22396 cat - <<_ACEOF >conftest.h
22401 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22402 echo "obj-m := conftest.o" >build
/Makefile
22404 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22405 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22406 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22407 (eval $ac_try) 2>&5
22409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22410 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22412 (eval $ac_try) 2>&5
22414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22415 test $ac_status = 0; }; }; then :
22417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22418 $as_echo "yes" >&6; }
22420 $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
22424 $as_echo "$as_me: failed program was:" >&5
22425 sed 's/^/| /' conftest.
$ac_ext >&5
22427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22428 $as_echo "no" >&6; }
22437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5
22438 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
22441 cat confdefs.h
- <<_ACEOF >conftest.c
22444 #include <linux/fs.h>
22451 struct kiocb *iocb = NULL;
22452 struct iov_iter *iov = NULL;
22453 generic_write_checks(iocb, iov);
22463 cat - <<_ACEOF >conftest.h
22468 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22469 echo "obj-m := conftest.o" >build
/Makefile
22471 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22472 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22473 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22474 (eval $ac_try) 2>&5
22476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22477 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22478 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22479 (eval $ac_try) 2>&5
22481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22482 test $ac_status = 0; }; }; then :
22484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22485 $as_echo "yes" >&6; }
22487 $as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h
22491 $as_echo "$as_me: failed program was:" >&5
22492 sed 's/^/| /' conftest.
$ac_ext >&5
22494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22495 $as_echo "no" >&6; }
22505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5
22506 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
22509 cat confdefs.h
- <<_ACEOF >conftest.c
22512 #include <linux/pagemap.h>
22519 kmap_atomic(&page);
22529 cat - <<_ACEOF >conftest.h
22534 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22535 echo "obj-m := conftest.o" >build
/Makefile
22537 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22538 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22539 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22540 (eval $ac_try) 2>&5
22542 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22543 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22545 (eval $ac_try) 2>&5
22547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22548 test $ac_status = 0; }; }; then :
22550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22551 $as_echo "yes" >&6; }
22553 $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h
22557 $as_echo "$as_me: failed program was:" >&5
22558 sed 's/^/| /' conftest.
$ac_ext >&5
22560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22561 $as_echo "no" >&6; }
22571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5
22572 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
22575 cat confdefs.h
- <<_ACEOF >conftest.c
22578 #include <linux/namei.h>
22584 struct path *p = NULL;
22585 follow_down_one(p);
22595 cat - <<_ACEOF >conftest.h
22600 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22601 echo "obj-m := conftest.o" >build
/Makefile
22603 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22604 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22605 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22606 (eval $ac_try) 2>&5
22608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22609 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22610 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22611 (eval $ac_try) 2>&5
22613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22614 test $ac_status = 0; }; }; then :
22616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22617 $as_echo "yes" >&6; }
22619 $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h
22623 $as_echo "$as_me: failed program was:" >&5
22624 sed 's/^/| /' conftest.
$ac_ext >&5
22626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22627 $as_echo "no" >&6; }
22637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5
22638 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
22641 cat confdefs.h
- <<_ACEOF >conftest.c
22644 #include <linux/blkdev.h>
22646 int make_request(struct request_queue *q, struct bio *bio)
22655 blk_queue_make_request(NULL, &make_request);
22665 cat - <<_ACEOF >conftest.h
22670 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22671 echo "obj-m := conftest.o" >build
/Makefile
22673 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22674 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22676 (eval $ac_try) 2>&5
22678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22679 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22681 (eval $ac_try) 2>&5
22683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22684 test $ac_status = 0; }; }; then :
22686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22687 $as_echo "yes" >&6; }
22689 $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h
22692 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h
22696 $as_echo "$as_me: failed program was:" >&5
22697 sed 's/^/| /' conftest.
$ac_ext >&5
22699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22700 $as_echo "no" >&6; }
22701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5
22702 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
22705 cat confdefs.h
- <<_ACEOF >conftest.c
22708 #include <linux/blkdev.h>
22710 void make_request(struct request_queue *q, struct bio *bio)
22719 blk_queue_make_request(NULL, &make_request);
22729 cat - <<_ACEOF >conftest.h
22734 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22735 echo "obj-m := conftest.o" >build
/Makefile
22737 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22738 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22739 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22740 (eval $ac_try) 2>&5
22742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22743 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22745 (eval $ac_try) 2>&5
22747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22748 test $ac_status = 0; }; }; then :
22750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22751 $as_echo "yes" >&6; }
22753 $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h
22757 $as_echo "$as_me: failed program was:" >&5
22758 sed 's/^/| /' conftest.
$ac_ext >&5
22760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22761 $as_echo "no" >&6; }
22762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5
22763 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
22766 cat confdefs.h
- <<_ACEOF >conftest.c
22769 #include <linux/blkdev.h>
22771 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
22773 return (BLK_QC_T_NONE);
22780 blk_queue_make_request(NULL, &make_request);
22790 cat - <<_ACEOF >conftest.h
22795 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22796 echo "obj-m := conftest.o" >build
/Makefile
22798 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22799 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22801 (eval $ac_try) 2>&5
22803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22804 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22806 (eval $ac_try) 2>&5
22808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22809 test $ac_status = 0; }; }; then :
22811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22812 $as_echo "yes" >&6; }
22814 $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h
22817 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h
22821 $as_echo "$as_me: failed program was:" >&5
22822 sed 's/^/| /' conftest.
$ac_ext >&5
22824 as_fn_error $?
"no - Please file a bug report at
22825 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
22849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic IO accounting symbols are avaliable" >&5
22850 $as_echo_n "checking whether generic IO accounting symbols are avaliable... " >&6; }
22854 cat confdefs.h
- <<_ACEOF >conftest.c
22857 #include <linux/bio.h>
22859 void (*generic_start_io_acct_f)(int, unsigned long,
22860 struct hd_struct *) = &generic_start_io_acct;
22861 void (*generic_end_io_acct_f)(int, struct hd_struct *,
22862 unsigned long) = &generic_end_io_acct;
22868 generic_start_io_acct(0, 0, NULL);
22869 generic_end_io_acct(0, NULL, 0);
22879 cat - <<_ACEOF >conftest.h
22884 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22885 echo "obj-m := conftest.o" >build
/Makefile
22887 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22888 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22889 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22890 (eval $ac_try) 2>&5
22892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22893 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22894 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22895 (eval $ac_try) 2>&5
22897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22898 test $ac_status = 0; }; }; then :
22901 $as_echo "$as_me: failed program was:" >&5
22902 sed 's/^/| /' conftest.
$ac_ext >&5
22910 if test $rc -ne 0; then :
22912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22913 $as_echo "no" >&6; }
22916 if test "x$enable_linux_builtin" != xyes
; then
22918 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
22919 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22921 if test $rc -ne 0; then
22923 for file in block
/bio.c
; do
22924 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
22925 "$LINUX/$file" 2>/dev
/null
22927 if test $rc -eq 0; then
22932 if test $export -eq 0; then :
22942 if test $rc -ne 0; then :
22944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22945 $as_echo "no" >&6; }
22949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22950 $as_echo "yes" >&6; }
22952 $as_echo "#define HAVE_GENERIC_IO_ACCT 1" >>confdefs.h
22960 if test "$LINUX_OBJ" != "$LINUX"; then :
22962 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
22968 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
22969 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
22970 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
22971 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
22978 # Check whether --with-linux was given.
22979 if test "${with_linux+set}" = set; then :
22980 withval
=$with_linux; kernelsrc
="$withval"
22985 # Check whether --with-linux-obj was given.
22986 if test "${with_linux_obj+set}" = set; then :
22987 withval
=$with_linux_obj; kernelbuild
="$withval"
22991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
22992 $as_echo_n "checking kernel source directory... " >&6; }
22993 if test -z "$kernelsrc"; then :
22995 if test -e "/lib/modules/$(uname -r)/source"; then :
22997 headersdir
="/lib/modules/$(uname -r)/source"
22998 sourcelink
=$
(readlink
-f "$headersdir")
23000 elif test -e "/lib/modules/$(uname -r)/build"; then :
23002 headersdir
="/lib/modules/$(uname -r)/build"
23003 sourcelink
=$
(readlink
-f "$headersdir")
23007 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
23009 2>/dev
/null |
grep -v obj |
tail -1)
23013 if test -n "$sourcelink" && test -e ${sourcelink}; then :
23015 kernelsrc
=`readlink -f ${sourcelink}`
23019 kernelsrc
="Not found"
23025 if test "$kernelsrc" = "NONE"; then :
23033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
23034 $as_echo "$kernelsrc" >&6; }
23035 if test ! -d "$kernelsrc"; then :
23038 *** Please make sure the kernel devel package for your distribution
23039 *** is installed and then try again. If that fails, you can specify the
23040 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
23044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
23045 $as_echo_n "checking kernel build directory... " >&6; }
23046 if test -z "$kernelbuild"; then :
23048 if test -e "/lib/modules/$(uname -r)/build"; then :
23050 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
23052 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
23054 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
23056 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then :
23058 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
23060 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then :
23062 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
23066 kernelbuild
=${kernelsrc}
23071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
23072 $as_echo "$kernelbuild" >&6; }
23074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
23075 $as_echo_n "checking kernel source version... " >&6; }
23076 utsrelease1
=$kernelbuild/include
/linux
/version.h
23077 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
23078 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
23079 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then :
23081 utsrelease
=linux
/version.h
23083 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then :
23085 utsrelease
=linux
/utsrelease.h
23087 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then :
23089 utsrelease
=generated
/utsrelease.h
23093 if test "$utsrelease"; then :
23095 kernsrcver
=`(echo "#include <$utsrelease>";
23096 echo "kernsrcver=UTS_RELEASE") |
23097 cpp -I $kernelbuild/include |
23098 grep "^kernsrcver=" | cut -d \" -f 2`
23100 if test -z "$kernsrcver"; then :
23102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
23103 $as_echo "Not found" >&6; }
23104 as_fn_error $?
"*** Cannot determine kernel version." "$LINENO" 5
23110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
23111 $as_echo "Not found" >&6; }
23112 if test "x$enable_linux_builtin" != xyes
; then
23113 as_fn_error $?
"*** Cannot find UTS_RELEASE definition." "$LINENO" 5
23116 *** Cannot find UTS_RELEASE definition.
23117 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
23122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
23123 $as_echo "$kernsrcver" >&6; }
23126 LINUX_OBJ
=${kernelbuild}
23127 LINUX_VERSION
=${kernsrcver}
23134 modpost
=$LINUX/scripts
/Makefile.modpost
23135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
23136 $as_echo_n "checking kernel file name for module symbols... " >&6; }
23137 if test "x$enable_linux_builtin" != xyes
-a -f "$modpost"; then :
23139 if grep -q Modules.symvers
$modpost; then :
23141 LINUX_SYMBOLS
=Modules.symvers
23145 LINUX_SYMBOLS
=Module.symvers
23149 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
23152 *** Please make sure the kernel devel package for your distribution
23153 *** is installed. If you are building with a custom kernel, make sure the
23154 *** kernel is configured, built, and the '--with-linux=PATH' configure
23155 *** option refers to the location of the kernel source." "$LINENO" 5
23164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
23165 $as_echo "$LINUX_SYMBOLS" >&6; }
23171 # Check whether --with-spl was given.
23172 if test "${with_spl+set}" = set; then :
23173 withval
=$with_spl; splsrc
="$withval"
23178 # Check whether --with-spl-obj was given.
23179 if test "${with_spl_obj+set}" = set; then :
23180 withval
=$with_spl_obj; splbuild
="$withval"
23185 # Check whether --with-spl-timeout was given.
23186 if test "${with_spl_timeout+set}" = set; then :
23187 withval
=$with_spl_timeout; timeout
="$withval"
23193 splsrc0
="/var/lib/dkms/spl/${VERSION}/build"
23194 splsrc1
="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
23195 splsrc2
="/usr/local/src/spl-${VERSION}"
23196 splsrc3
="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
23197 splsrc4
="/usr/src/spl-${VERSION}"
23201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
23202 $as_echo_n "checking spl source directory... " >&6; }
23203 if test -z "${splsrc}"; then :
23205 if test -e "${splsrc0}/spl.release.in"; then :
23209 elif test -e "${splsrc1}/spl.release.in"; then :
23213 elif test -e "${splsrc2}/spl.release.in"; then :
23217 elif test -e "${splsrc3}/spl.release.in"; then :
23219 splsrc
=$
(readlink
-f "${splsrc3}")
23221 elif test -e "${splsrc4}/spl.release.in" ; then :
23225 elif test -e "${splsrc5}/spl.release.in"; then :
23227 splsrc
=$
(readlink
-f "${splsrc5}")
23229 elif test -e "${splsrc6}/spl.release.in" ; then :
23241 if test "$splsrc" = "NONE"; then :
23250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
23251 $as_echo "$splsrc" >&6; }
23252 if test ! -e "$splsrc/spl.release.in"; then :
23255 *** Please make sure the kmod spl devel package for your distribution
23256 *** is installed then try again. If that fails you can specify the
23257 *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5
23261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
23262 $as_echo_n "checking spl build directory... " >&6; }
23264 if test -z "$splbuild"; then :
23266 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
23268 splbuild
="${splsrc}/${LINUX_VERSION}"
23270 elif test -e "${splsrc}/spl_config.h" ; then :
23272 splbuild
="${splsrc}"
23274 elif find -L "${splsrc}" -name spl_config.h
2> /dev
/null |
grep -wq spl_config.h
; then :
23276 splbuild
=$
(find -L "${splsrc}" -name spl_config.h |
sed 's,/spl_config.h,,')
23280 splbuild
="Not found"
23285 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
23292 timeout
=$
((timeout-1
))
23297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
23298 $as_echo "$splbuild" >&6; }
23299 if ! test -e "$splbuild/spl_config.h"; then :
23302 *** Please make sure the kmod spl devel <kernel> package for your
23303 *** distribution is installed then try again. If that fails you
23304 *** can specify the location of the spl objects with the
23305 *** '--with-spl-obj=PATH' option." "$LINENO" 5
23309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
23310 $as_echo_n "checking spl source version... " >&6; }
23311 if test -r $splbuild/spl_config.h
&&
23312 fgrep
-q SPL_META_VERSION
$splbuild/spl_config.h
; then :
23315 splsrcver
=`(echo "#include <spl_config.h>";
23316 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
23318 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
23322 if test -z "$splsrcver"; then :
23324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
23325 $as_echo "Not found" >&6; }
23327 *** Cannot determine the version of the spl source.
23328 *** Please prepare the spl source before running this script" "$LINENO" 5
23332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
23333 $as_echo "$splsrcver" >&6; }
23336 SPL_OBJ
=${splbuild}
23337 SPL_VERSION
=${splsrcver}
23343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
23344 $as_echo_n "checking spl file name for module symbols... " >&6; }
23348 if test -r $SPL_OBJ/Module.symvers
; then :
23350 SPL_SYMBOLS
=Module.symvers
23352 elif test -r $SPL_OBJ/Modules.symvers
; then :
23354 SPL_SYMBOLS
=Modules.symvers
23356 elif test -r $SPL_OBJ/module
/Module.symvers
; then :
23358 SPL_SYMBOLS
=Module.symvers
23360 elif test -r $SPL_OBJ/module
/Modules.symvers
; then :
23362 SPL_SYMBOLS
=Modules.symvers
23366 if test $SPL_SYMBOLS != NONE
-o $timeout -le 0; then :
23373 timeout
=$
((timeout-1
))
23378 if test "$SPL_SYMBOLS" = NONE
; then :
23380 SPL_SYMBOLS
=$LINUX_SYMBOLS
23384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
23385 $as_echo "$SPL_SYMBOLS" >&6; }
23389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
23390 $as_echo_n "checking whether modules can be built... " >&6; }
23393 cat confdefs.h
- <<_ACEOF >conftest.c
23408 cat - <<_ACEOF >conftest.h
23413 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23414 echo "obj-m := conftest.o" >build
/Makefile
23416 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23417 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23418 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23419 (eval $ac_try) 2>&5
23421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23422 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23424 (eval $ac_try) 2>&5
23426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23427 test $ac_status = 0; }; }; then :
23429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23430 $as_echo "yes" >&6; }
23433 $as_echo "$as_me: failed program was:" >&5
23434 sed 's/^/| /' conftest.
$ac_ext >&5
23436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23437 $as_echo "no" >&6; }
23438 if test "x$enable_linux_builtin" != xyes
; then
23439 as_fn_error $?
"*** Unable to build an empty module." "$LINENO" 5
23442 *** Unable to build an empty module.
23443 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
23454 if test "x$cross_compiling" != xyes
; then :
23456 if test "$cross_compiling" = yes; then :
23457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23458 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23459 as_fn_error $?
"cannot run test program while cross compiling
23460 See \`config.log' for more details" "$LINENO" 5; }
23462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23463 /* end confdefs.h. */
23466 #include "$LINUX/include/linux/license.h"
23472 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
23479 if ac_fn_c_try_run
"$LINENO"; then :
23482 $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
23486 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
23487 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
23495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
23496 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
23499 cat confdefs.h
- <<_ACEOF >conftest.c
23502 #include <linux/module.h>
23508 #ifndef CONFIG_DEBUG_LOCK_ALLOC
23509 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
23520 cat - <<_ACEOF >conftest.h
23525 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23526 echo "obj-m := conftest.o" >build
/Makefile
23528 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23529 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23531 (eval $ac_try) 2>&5
23533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23534 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23536 (eval $ac_try) 2>&5
23538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23539 test $ac_status = 0; }; }; then :
23541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23542 $as_echo "yes" >&6; }
23544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
23545 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
23546 tmp_flags
="$EXTRA_KCFLAGS"
23549 cat confdefs.h
- <<_ACEOF >conftest.c
23552 #include <linux/module.h>
23553 #include <linux/mutex.h>
23555 MODULE_LICENSE("$ZFS_META_LICENSE");
23565 mutex_unlock(&lock);
23575 cat - <<_ACEOF >conftest.h
23580 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23581 echo "obj-m := conftest.o" >build
/Makefile
23583 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23584 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23585 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23586 (eval $ac_try) 2>&5
23588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23589 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23591 (eval $ac_try) 2>&5
23593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23594 test $ac_status = 0; }; }; then :
23596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23597 $as_echo "no" >&6; }
23600 $as_echo "$as_me: failed program was:" >&5
23601 sed 's/^/| /' conftest.
$ac_ext >&5
23603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23604 $as_echo "yes" >&6; }
23606 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
23607 *** with the CDDL license and will prevent the module linking stage
23608 *** from succeeding. You must rebuild your kernel without this
23609 *** option enabled." "$LINENO" 5
23617 EXTRA_KCFLAGS
="$tmp_flags"
23621 $as_echo "$as_me: failed program was:" >&5
23622 sed 's/^/| /' conftest.
$ac_ext >&5
23624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23625 $as_echo "no" >&6; }
23638 tmp_flags
="$EXTRA_KCFLAGS"
23639 EXTRA_KCFLAGS
="-I\$(src)"
23641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
23642 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
23645 cat confdefs.h
- <<_ACEOF >conftest.c
23648 #include <linux/module.h>
23649 MODULE_LICENSE(ZFS_META_LICENSE);
23651 #define CREATE_TRACE_POINTS
23652 #include "conftest.h"
23658 trace_zfs_autoconf_event_one(1UL);
23659 trace_zfs_autoconf_event_two(2UL);
23669 cat - <<_ACEOF >conftest.h
23671 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
23672 #define _CONFTEST_H
23674 #undef TRACE_SYSTEM
23675 #define TRACE_SYSTEM zfs
23676 #include <linux/tracepoint.h>
23678 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
23679 TP_PROTO(unsigned long i),
23682 __field(unsigned long, i)
23687 TP_printk("i = %lu", __entry->i)
23690 #define DEFINE_AUTOCONF_EVENT(name) \
23691 DEFINE_EVENT(zfs_autoconf_event_class, name, \
23692 TP_PROTO(unsigned long i), \
23694 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
23695 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
23697 #endif /* _CONFTEST_H */
23699 #undef TRACE_INCLUDE_PATH
23700 #define TRACE_INCLUDE_PATH .
23701 #define TRACE_INCLUDE_FILE conftest
23702 #include <trace/define_trace.h>
23707 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23708 echo "obj-m := conftest.o" >build
/Makefile
23710 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23711 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23712 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23713 (eval $ac_try) 2>&5
23715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23716 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23717 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23718 (eval $ac_try) 2>&5
23720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23721 test $ac_status = 0; }; }; then :
23723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23724 $as_echo "yes" >&6; }
23726 $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
23730 $as_echo "$as_me: failed program was:" >&5
23731 sed 's/^/| /' conftest.
$ac_ext >&5
23733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23734 $as_echo "no" >&6; }
23742 EXTRA_KCFLAGS
="$tmp_flags"
23745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_tail exists" >&5
23746 $as_echo_n "checking whether current->bio_tail exists... " >&6; }
23749 cat confdefs.h
- <<_ACEOF >conftest.c
23752 #include <linux/sched.h>
23758 current->bio_tail = (struct bio **) NULL;
23768 cat - <<_ACEOF >conftest.h
23773 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23774 echo "obj-m := conftest.o" >build
/Makefile
23776 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23777 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23778 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23779 (eval $ac_try) 2>&5
23781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23782 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23784 (eval $ac_try) 2>&5
23786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23787 test $ac_status = 0; }; }; then :
23789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23790 $as_echo "yes" >&6; }
23792 $as_echo "#define HAVE_CURRENT_BIO_TAIL 1" >>confdefs.h
23796 $as_echo "$as_me: failed program was:" >&5
23797 sed 's/^/| /' conftest.
$ac_ext >&5
23799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23800 $as_echo "no" >&6; }
23801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current->bio_list exists" >&5
23802 $as_echo_n "checking whether current->bio_list exists... " >&6; }
23805 cat confdefs.h
- <<_ACEOF >conftest.c
23808 #include <linux/sched.h>
23814 current->bio_list = (struct bio_list *) NULL;
23824 cat - <<_ACEOF >conftest.h
23829 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23830 echo "obj-m := conftest.o" >build
/Makefile
23832 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23833 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23834 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23835 (eval $ac_try) 2>&5
23837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23838 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23840 (eval $ac_try) 2>&5
23842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23843 test $ac_status = 0; }; }; then :
23845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23846 $as_echo "yes" >&6; }
23848 $as_echo "#define HAVE_CURRENT_BIO_LIST 1" >>confdefs.h
23852 $as_echo "$as_me: failed program was:" >&5
23853 sed 's/^/| /' conftest.
$ac_ext >&5
23855 as_fn_error $?
"no - Please file a bug report at
23856 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
23873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
23874 $as_echo_n "checking block device operation prototypes... " >&6; }
23875 tmp_flags
="$EXTRA_KCFLAGS"
23876 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
23879 cat confdefs.h
- <<_ACEOF >conftest.c
23882 #include <linux/blkdev.h>
23884 int blk_open(struct block_device *bdev, fmode_t mode)
23886 int blk_ioctl(struct block_device *bdev, fmode_t mode,
23887 unsigned x, unsigned long y) { return 0; }
23888 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
23889 unsigned x, unsigned long y) { return 0; }
23891 static const struct block_device_operations
23892 bops __attribute__ ((unused)) = {
23895 .ioctl = blk_ioctl,
23896 .compat_ioctl = blk_compat_ioctl,
23912 cat - <<_ACEOF >conftest.h
23917 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23918 echo "obj-m := conftest.o" >build
/Makefile
23920 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23921 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23923 (eval $ac_try) 2>&5
23925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23926 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23928 (eval $ac_try) 2>&5
23930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23931 test $ac_status = 0; }; }; then :
23933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
23934 $as_echo "struct block_device" >&6; }
23936 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
23940 $as_echo "$as_me: failed program was:" >&5
23941 sed 's/^/| /' conftest.
$ac_ext >&5
23943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
23944 $as_echo "struct inode" >&6; }
23952 EXTRA_KCFLAGS
="$tmp_flags"
23955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
23956 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
23957 tmp_flags
="$EXTRA_KCFLAGS"
23958 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
23961 cat confdefs.h
- <<_ACEOF >conftest.c
23964 #include <linux/blkdev.h>
23966 void blk_release(struct gendisk *g, fmode_t mode) { return; }
23968 static const struct block_device_operations
23969 bops __attribute__ ((unused)) = {
23971 .release = blk_release,
23973 .compat_ioctl = NULL,
23989 cat - <<_ACEOF >conftest.h
23994 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23995 echo "obj-m := conftest.o" >build
/Makefile
23997 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23998 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24000 (eval $ac_try) 2>&5
24002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24003 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24005 (eval $ac_try) 2>&5
24007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24008 test $ac_status = 0; }; }; then :
24010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
24011 $as_echo "void" >&6; }
24013 $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
24017 $as_echo "$as_me: failed program was:" >&5
24018 sed 's/^/| /' conftest.
$ac_ext >&5
24020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
24021 $as_echo "int" >&6; }
24029 EXTRA_KCFLAGS
="$tmp_flags"
24031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
24032 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
24035 cat confdefs.h
- <<_ACEOF >conftest.c
24038 #include <linux/types.h>
24044 fmode_t *ptr __attribute__ ((unused));
24054 cat - <<_ACEOF >conftest.h
24059 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24060 echo "obj-m := conftest.o" >build
/Makefile
24062 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24063 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24065 (eval $ac_try) 2>&5
24067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24068 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24070 (eval $ac_try) 2>&5
24072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24073 test $ac_status = 0; }; }; then :
24075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24076 $as_echo "yes" >&6; }
24078 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
24082 $as_echo "$as_me: failed program was:" >&5
24083 sed 's/^/| /' conftest.
$ac_ext >&5
24085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24086 $as_echo "no" >&6; }
24096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5
24097 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
24100 cat confdefs.h
- <<_ACEOF >conftest.c
24103 #include <linux/kobject.h>
24109 int val __attribute__ ((unused));
24110 val = KOBJ_NAME_LEN;
24120 cat - <<_ACEOF >conftest.h
24125 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24126 echo "obj-m := conftest.o" >build
/Makefile
24128 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24129 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24130 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24131 (eval $ac_try) 2>&5
24133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24134 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24135 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24136 (eval $ac_try) 2>&5
24138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24139 test $ac_status = 0; }; }; then :
24141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24142 $as_echo "yes" >&6; }
24144 $as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h
24148 $as_echo "$as_me: failed program was:" >&5
24149 sed 's/^/| /' conftest.
$ac_ext >&5
24151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24152 $as_echo "no" >&6; }
24162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
24163 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
24166 cat confdefs.h
- <<_ACEOF >conftest.c
24169 #include <linux/fs.h>
24175 struct block_device *bdev = NULL;
24176 (void) blkdev_get(bdev, 0, NULL);
24186 cat - <<_ACEOF >conftest.h
24191 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24192 echo "obj-m := conftest.o" >build
/Makefile
24194 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24195 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24197 (eval $ac_try) 2>&5
24199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24200 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24201 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24202 (eval $ac_try) 2>&5
24204 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24205 test $ac_status = 0; }; }; then :
24207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24208 $as_echo "yes" >&6; }
24210 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
24214 $as_echo "$as_me: failed program was:" >&5
24215 sed 's/^/| /' conftest.
$ac_ext >&5
24217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24218 $as_echo "no" >&6; }
24227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
24228 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
24232 cat confdefs.h
- <<_ACEOF >conftest.c
24235 #include <linux/fs.h>
24241 blkdev_get_by_path(NULL, 0, NULL);
24251 cat - <<_ACEOF >conftest.h
24256 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24257 echo "obj-m := conftest.o" >build
/Makefile
24259 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24260 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24262 (eval $ac_try) 2>&5
24264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24265 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24267 (eval $ac_try) 2>&5
24269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24270 test $ac_status = 0; }; }; then :
24273 $as_echo "$as_me: failed program was:" >&5
24274 sed 's/^/| /' conftest.
$ac_ext >&5
24282 if test $rc -ne 0; then :
24284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24285 $as_echo "no" >&6; }
24288 if test "x$enable_linux_builtin" != xyes
; then
24290 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
24291 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
24293 if test $rc -ne 0; then
24295 for file in fs
/block_dev.c
; do
24296 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
24297 "$LINUX/$file" 2>/dev
/null
24299 if test $rc -eq 0; then
24304 if test $export -eq 0; then :
24314 if test $rc -ne 0; then :
24316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24317 $as_echo "no" >&6; }
24321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24322 $as_echo "yes" >&6; }
24324 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
24331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
24332 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
24336 cat confdefs.h
- <<_ACEOF >conftest.c
24339 #include <linux/fs.h>
24345 open_bdev_exclusive(NULL, 0, NULL);
24355 cat - <<_ACEOF >conftest.h
24360 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24361 echo "obj-m := conftest.o" >build
/Makefile
24363 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24364 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24365 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24366 (eval $ac_try) 2>&5
24368 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24369 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24370 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24371 (eval $ac_try) 2>&5
24373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24374 test $ac_status = 0; }; }; then :
24377 $as_echo "$as_me: failed program was:" >&5
24378 sed 's/^/| /' conftest.
$ac_ext >&5
24386 if test $rc -ne 0; then :
24388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24389 $as_echo "no" >&6; }
24392 if test "x$enable_linux_builtin" != xyes
; then
24394 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
24395 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
24397 if test $rc -ne 0; then
24399 for file in fs
/block_dev.c
; do
24400 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
24401 "$LINUX/$file" 2>/dev
/null
24403 if test $rc -eq 0; then
24408 if test $export -eq 0; then :
24418 if test $rc -ne 0; then :
24420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24421 $as_echo "no" >&6; }
24425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24426 $as_echo "yes" >&6; }
24428 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
24435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() is available" >&5
24436 $as_echo_n "checking whether lookup_bdev() is available... " >&6; }
24440 cat confdefs.h
- <<_ACEOF >conftest.c
24443 #include <linux/fs.h>
24459 cat - <<_ACEOF >conftest.h
24464 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24465 echo "obj-m := conftest.o" >build
/Makefile
24467 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24468 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24469 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24470 (eval $ac_try) 2>&5
24472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24473 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24474 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24475 (eval $ac_try) 2>&5
24477 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24478 test $ac_status = 0; }; }; then :
24481 $as_echo "$as_me: failed program was:" >&5
24482 sed 's/^/| /' conftest.
$ac_ext >&5
24490 if test $rc -ne 0; then :
24492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24493 $as_echo "no" >&6; }
24494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() is available and wants 2 args" >&5
24495 $as_echo_n "checking whether lookup_bdev() is available and wants 2 args... " >&6; }
24499 cat confdefs.h
- <<_ACEOF >conftest.c
24502 #include <linux/fs.h>
24508 lookup_bdev(NULL, 0);
24518 cat - <<_ACEOF >conftest.h
24523 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24524 echo "obj-m := conftest.o" >build
/Makefile
24526 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24527 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24529 (eval $ac_try) 2>&5
24531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24532 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24534 (eval $ac_try) 2>&5
24536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24537 test $ac_status = 0; }; }; then :
24540 $as_echo "$as_me: failed program was:" >&5
24541 sed 's/^/| /' conftest.
$ac_ext >&5
24549 if test $rc -ne 0; then :
24551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24552 $as_echo "no" >&6; }
24555 if test "x$enable_linux_builtin" != xyes
; then
24557 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
24558 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
24560 if test $rc -ne 0; then
24562 for file in fs
/block_dev.c
; do
24563 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
24564 "$LINUX/$file" 2>/dev
/null
24566 if test $rc -eq 0; then
24571 if test $export -eq 0; then :
24581 if test $rc -ne 0; then :
24583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24584 $as_echo "no" >&6; }
24588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24589 $as_echo "yes" >&6; }
24591 $as_echo "#define HAVE_LOOKUP_BDEV_2ARGS 1" >>confdefs.h
24599 if test "x$enable_linux_builtin" != xyes
; then
24601 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
24602 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
24604 if test $rc -ne 0; then
24606 for file in fs
/block_dev.c
; do
24607 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
24608 "$LINUX/$file" 2>/dev
/null
24610 if test $rc -eq 0; then
24615 if test $export -eq 0; then :
24625 if test $rc -ne 0; then :
24627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24628 $as_echo "no" >&6; }
24629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() is available and wants 2 args" >&5
24630 $as_echo_n "checking whether lookup_bdev() is available and wants 2 args... " >&6; }
24634 cat confdefs.h
- <<_ACEOF >conftest.c
24637 #include <linux/fs.h>
24643 lookup_bdev(NULL, 0);
24653 cat - <<_ACEOF >conftest.h
24658 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24659 echo "obj-m := conftest.o" >build
/Makefile
24661 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24662 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24663 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24664 (eval $ac_try) 2>&5
24666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24667 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24668 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24669 (eval $ac_try) 2>&5
24671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24672 test $ac_status = 0; }; }; then :
24675 $as_echo "$as_me: failed program was:" >&5
24676 sed 's/^/| /' conftest.
$ac_ext >&5
24684 if test $rc -ne 0; then :
24686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24687 $as_echo "no" >&6; }
24690 if test "x$enable_linux_builtin" != xyes
; then
24692 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
24693 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
24695 if test $rc -ne 0; then
24697 for file in fs
/block_dev.c
; do
24698 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
24699 "$LINUX/$file" 2>/dev
/null
24701 if test $rc -eq 0; then
24706 if test $export -eq 0; then :
24716 if test $rc -ne 0; then :
24718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24719 $as_echo "no" >&6; }
24723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24724 $as_echo "yes" >&6; }
24726 $as_echo "#define HAVE_LOOKUP_BDEV_2ARGS 1" >>confdefs.h
24735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24736 $as_echo "yes" >&6; }
24738 $as_echo "#define HAVE_LOOKUP_BDEV 1" >>confdefs.h
24746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
24747 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
24750 cat confdefs.h
- <<_ACEOF >conftest.c
24753 #include <linux/buffer_head.h>
24759 struct block_device *bdev = NULL;
24760 invalidate_bdev(bdev);
24770 cat - <<_ACEOF >conftest.h
24775 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24776 echo "obj-m := conftest.o" >build
/Makefile
24778 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24779 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24780 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24781 (eval $ac_try) 2>&5
24783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24784 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24785 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24786 (eval $ac_try) 2>&5
24788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24789 test $ac_status = 0; }; }; then :
24791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24792 $as_echo "yes" >&6; }
24794 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
24798 $as_echo "$as_me: failed program was:" >&5
24799 sed 's/^/| /' conftest.
$ac_ext >&5
24801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24802 $as_echo "no" >&6; }
24812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
24813 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
24814 tmp_flags
="$EXTRA_KCFLAGS"
24815 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
24818 cat confdefs.h
- <<_ACEOF >conftest.c
24821 #include <linux/blkdev.h>
24827 struct block_device *bdev = NULL;
24828 bdev_logical_block_size(bdev);
24838 cat - <<_ACEOF >conftest.h
24843 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24844 echo "obj-m := conftest.o" >build
/Makefile
24846 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24847 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24849 (eval $ac_try) 2>&5
24851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24852 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24854 (eval $ac_try) 2>&5
24856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24857 test $ac_status = 0; }; }; then :
24859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24860 $as_echo "yes" >&6; }
24862 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
24866 $as_echo "$as_me: failed program was:" >&5
24867 sed 's/^/| /' conftest.
$ac_ext >&5
24869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24870 $as_echo "no" >&6; }
24878 EXTRA_KCFLAGS
="$tmp_flags"
24881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
24882 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
24883 tmp_flags
="$EXTRA_KCFLAGS"
24884 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
24887 cat confdefs.h
- <<_ACEOF >conftest.c
24890 #include <linux/blkdev.h>
24896 struct block_device *bdev = NULL;
24897 bdev_physical_block_size(bdev);
24907 cat - <<_ACEOF >conftest.h
24912 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24913 echo "obj-m := conftest.o" >build
/Makefile
24915 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24916 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24918 (eval $ac_try) 2>&5
24920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24921 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24923 (eval $ac_try) 2>&5
24925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24926 test $ac_status = 0; }; }; then :
24928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24929 $as_echo "yes" >&6; }
24931 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
24935 $as_echo "$as_me: failed program was:" >&5
24936 sed 's/^/| /' conftest.
$ac_ext >&5
24938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24939 $as_echo "no" >&6; }
24947 EXTRA_KCFLAGS
="$tmp_flags"
24950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
24951 $as_echo_n "checking whether bio has bi_iter... " >&6; }
24954 cat confdefs.h
- <<_ACEOF >conftest.c
24957 #include <linux/bio.h>
24964 bio.bi_iter.bi_sector = 0;
24974 cat - <<_ACEOF >conftest.h
24979 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24980 echo "obj-m := conftest.o" >build
/Makefile
24982 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24983 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24984 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24985 (eval $ac_try) 2>&5
24987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24988 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24990 (eval $ac_try) 2>&5
24992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24993 test $ac_status = 0; }; }; then :
24995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24996 $as_echo "yes" >&6; }
24998 $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
25002 $as_echo "$as_me: failed program was:" >&5
25003 sed 's/^/| /' conftest.
$ac_ext >&5
25005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25006 $as_echo "no" >&6; }
25016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
25017 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
25020 cat confdefs.h
- <<_ACEOF >conftest.c
25023 #include <linux/bio.h>
25029 int flags __attribute__ ((unused));
25030 flags = ((1 << BIO_RW_FAILFAST_DEV) |
25031 (1 << BIO_RW_FAILFAST_TRANSPORT) |
25032 (1 << BIO_RW_FAILFAST_DRIVER));
25042 cat - <<_ACEOF >conftest.h
25047 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25048 echo "obj-m := conftest.o" >build
/Makefile
25050 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25051 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25053 (eval $ac_try) 2>&5
25055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25056 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25058 (eval $ac_try) 2>&5
25060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25061 test $ac_status = 0; }; }; then :
25063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25064 $as_echo "yes" >&6; }
25066 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
25070 $as_echo "$as_me: failed program was:" >&5
25071 sed 's/^/| /' conftest.
$ac_ext >&5
25073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25074 $as_echo "no" >&6; }
25084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
25085 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
25088 cat confdefs.h
- <<_ACEOF >conftest.c
25091 #include <linux/bio.h>
25097 int flags __attribute__ ((unused));
25098 flags = REQ_FAILFAST_MASK;
25108 cat - <<_ACEOF >conftest.h
25113 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25114 echo "obj-m := conftest.o" >build
/Makefile
25116 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25117 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25119 (eval $ac_try) 2>&5
25121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25122 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25124 (eval $ac_try) 2>&5
25126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25127 test $ac_status = 0; }; }; then :
25129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25130 $as_echo "yes" >&6; }
25132 $as_echo "#define HAVE_REQ_FAILFAST_MASK 1" >>confdefs.h
25136 $as_echo "$as_me: failed program was:" >&5
25137 sed 's/^/| /' conftest.
$ac_ext >&5
25139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25140 $as_echo "no" >&6; }
25150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 1 arg" >&5
25151 $as_echo_n "checking whether bio_end_io_t wants 1 arg... " >&6; }
25154 cat confdefs.h
- <<_ACEOF >conftest.c
25157 #include <linux/bio.h>
25159 void wanted_end_io(struct bio *bio) { return; }
25161 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
25176 cat - <<_ACEOF >conftest.h
25181 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25182 echo "obj-m := conftest.o" >build
/Makefile
25184 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25185 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25186 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25187 (eval $ac_try) 2>&5
25189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25190 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25192 (eval $ac_try) 2>&5
25194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25195 test $ac_status = 0; }; }; then :
25197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25198 $as_echo "yes" >&6; }
25200 $as_echo "#define HAVE_1ARG_BIO_END_IO_T 1" >>confdefs.h
25204 $as_echo "$as_me: failed program was:" >&5
25205 sed 's/^/| /' conftest.
$ac_ext >&5
25207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25208 $as_echo "no" >&6; }
25218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_BARRIER is defined" >&5
25219 $as_echo_n "checking whether BIO_RW_BARRIER is defined... " >&6; }
25222 cat confdefs.h
- <<_ACEOF >conftest.c
25225 #include <linux/bio.h>
25231 int flags __attribute__ ((unused));
25232 flags = BIO_RW_BARRIER;
25242 cat - <<_ACEOF >conftest.h
25247 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25248 echo "obj-m := conftest.o" >build
/Makefile
25250 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25251 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25252 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25253 (eval $ac_try) 2>&5
25255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25256 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25258 (eval $ac_try) 2>&5
25260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25261 test $ac_status = 0; }; }; then :
25263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25264 $as_echo "yes" >&6; }
25266 $as_echo "#define HAVE_BIO_RW_BARRIER 1" >>confdefs.h
25270 $as_echo "$as_me: failed program was:" >&5
25271 sed 's/^/| /' conftest.
$ac_ext >&5
25273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25274 $as_echo "no" >&6; }
25284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_DISCARD is defined" >&5
25285 $as_echo_n "checking whether BIO_RW_DISCARD is defined... " >&6; }
25288 cat confdefs.h
- <<_ACEOF >conftest.c
25291 #include <linux/bio.h>
25297 int flags __attribute__ ((unused));
25298 flags = BIO_RW_DISCARD;
25308 cat - <<_ACEOF >conftest.h
25313 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25314 echo "obj-m := conftest.o" >build
/Makefile
25316 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25317 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25319 (eval $ac_try) 2>&5
25321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25322 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25324 (eval $ac_try) 2>&5
25326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25327 test $ac_status = 0; }; }; then :
25329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25330 $as_echo "yes" >&6; }
25332 $as_echo "#define HAVE_BIO_RW_DISCARD 1" >>confdefs.h
25336 $as_echo "$as_me: failed program was:" >&5
25337 sed 's/^/| /' conftest.
$ac_ext >&5
25339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25340 $as_echo "no" >&6; }
25350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
25351 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
25352 tmp_flags
="$EXTRA_KCFLAGS"
25353 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
25356 cat confdefs.h
- <<_ACEOF >conftest.c
25359 #include <linux/blkdev.h>
25365 struct request_queue *q = NULL;
25366 (void) blk_queue_flush(q, REQ_FLUSH);
25376 cat - <<_ACEOF >conftest.h
25381 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25382 echo "obj-m := conftest.o" >build
/Makefile
25384 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25385 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25386 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25387 (eval $ac_try) 2>&5
25389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25390 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25391 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25392 (eval $ac_try) 2>&5
25394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25395 test $ac_status = 0; }; }; then :
25397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25398 $as_echo "yes" >&6; }
25400 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
25404 $as_echo "$as_me: failed program was:" >&5
25405 sed 's/^/| /' conftest.
$ac_ext >&5
25407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25408 $as_echo "no" >&6; }
25417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
25418 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
25421 cat confdefs.h
- <<_ACEOF >conftest.c
25424 #include <linux/module.h>
25425 #include <linux/blkdev.h>
25427 MODULE_LICENSE("$ZFS_META_LICENSE");
25433 struct request_queue *q = NULL;
25434 (void) blk_queue_flush(q, REQ_FLUSH);
25444 cat - <<_ACEOF >conftest.h
25449 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25450 echo "obj-m := conftest.o" >build
/Makefile
25452 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25453 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25454 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25455 (eval $ac_try) 2>&5
25457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25458 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25459 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25460 (eval $ac_try) 2>&5
25462 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25463 test $ac_status = 0; }; }; then :
25465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25466 $as_echo "no" >&6; }
25469 $as_echo "$as_me: failed program was:" >&5
25470 sed 's/^/| /' conftest.
$ac_ext >&5
25472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25473 $as_echo "yes" >&6; }
25475 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
25484 EXTRA_KCFLAGS
="$tmp_flags"
25487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
25488 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
25489 tmp_flags
="$EXTRA_KCFLAGS"
25490 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
25493 cat confdefs.h
- <<_ACEOF >conftest.c
25496 #include <linux/blkdev.h>
25502 struct request_queue *q = NULL;
25503 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
25513 cat - <<_ACEOF >conftest.h
25518 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25519 echo "obj-m := conftest.o" >build
/Makefile
25521 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25522 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25523 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25524 (eval $ac_try) 2>&5
25526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25527 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25529 (eval $ac_try) 2>&5
25531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25532 test $ac_status = 0; }; }; then :
25534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25535 $as_echo "yes" >&6; }
25537 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
25541 $as_echo "$as_me: failed program was:" >&5
25542 sed 's/^/| /' conftest.
$ac_ext >&5
25544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25545 $as_echo "no" >&6; }
25553 EXTRA_KCFLAGS
="$tmp_flags"
25556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
25557 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
25558 tmp_flags
="$EXTRA_KCFLAGS"
25559 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
25562 cat confdefs.h
- <<_ACEOF >conftest.c
25565 #include <linux/blkdev.h>
25571 struct request_queue *q = NULL;
25572 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
25582 cat - <<_ACEOF >conftest.h
25587 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25588 echo "obj-m := conftest.o" >build
/Makefile
25590 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25591 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25593 (eval $ac_try) 2>&5
25595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25596 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25598 (eval $ac_try) 2>&5
25600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25601 test $ac_status = 0; }; }; then :
25603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25604 $as_echo "yes" >&6; }
25606 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
25610 $as_echo "$as_me: failed program was:" >&5
25611 sed 's/^/| /' conftest.
$ac_ext >&5
25613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25614 $as_echo "no" >&6; }
25622 EXTRA_KCFLAGS
="$tmp_flags"
25625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
25626 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
25627 tmp_flags
="$EXTRA_KCFLAGS"
25628 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
25631 cat confdefs.h
- <<_ACEOF >conftest.c
25634 #include <linux/blkdev.h>
25640 struct gendisk *disk = NULL;
25641 (void) get_disk_ro(disk);
25651 cat - <<_ACEOF >conftest.h
25656 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25657 echo "obj-m := conftest.o" >build
/Makefile
25659 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25660 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25662 (eval $ac_try) 2>&5
25664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25665 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25666 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25667 (eval $ac_try) 2>&5
25669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25670 test $ac_status = 0; }; }; then :
25672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25673 $as_echo "yes" >&6; }
25675 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
25679 $as_echo "$as_me: failed program was:" >&5
25680 sed 's/^/| /' conftest.
$ac_ext >&5
25682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25683 $as_echo "no" >&6; }
25691 EXTRA_KCFLAGS
="$tmp_flags"
25693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
25694 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
25698 cat confdefs.h
- <<_ACEOF >conftest.c
25701 #include <linux/genhd.h>
25707 get_gendisk(0, NULL);
25717 cat - <<_ACEOF >conftest.h
25722 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25723 echo "obj-m := conftest.o" >build
/Makefile
25725 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25726 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25728 (eval $ac_try) 2>&5
25730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25731 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25732 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25733 (eval $ac_try) 2>&5
25735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25736 test $ac_status = 0; }; }; then :
25739 $as_echo "$as_me: failed program was:" >&5
25740 sed 's/^/| /' conftest.
$ac_ext >&5
25748 if test $rc -ne 0; then :
25750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25751 $as_echo "no" >&6; }
25754 if test "x$enable_linux_builtin" != xyes
; then
25756 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
25757 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
25759 if test $rc -ne 0; then
25761 for file in block
/genhd.c
; do
25762 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
25763 "$LINUX/$file" 2>/dev
/null
25765 if test $rc -eq 0; then
25770 if test $export -eq 0; then :
25780 if test $rc -ne 0; then :
25782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25783 $as_echo "no" >&6; }
25787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25788 $as_echo "yes" >&6; }
25790 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
25798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
25799 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
25802 cat confdefs.h
- <<_ACEOF >conftest.c
25805 #include <linux/blkdev.h>
25811 struct queue_limits ql __attribute__ ((unused));
25813 ql.discard_granularity = 0;
25823 cat - <<_ACEOF >conftest.h
25828 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25829 echo "obj-m := conftest.o" >build
/Makefile
25831 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25832 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25833 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25834 (eval $ac_try) 2>&5
25836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25837 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25838 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25839 (eval $ac_try) 2>&5
25841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25842 test $ac_status = 0; }; }; then :
25844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25845 $as_echo "yes" >&6; }
25847 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
25851 $as_echo "$as_me: failed program was:" >&5
25852 sed 's/^/| /' conftest.
$ac_ext >&5
25854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25855 $as_echo "no" >&6; }
25865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_handler" >&5
25866 $as_echo_n "checking whether super_block uses const struct xattr_handler... " >&6; }
25869 cat confdefs.h
- <<_ACEOF >conftest.c
25872 #include <linux/fs.h>
25873 #include <linux/xattr.h>
25875 const struct xattr_handler xattr_test_handler = {
25881 const struct xattr_handler *xattr_handlers[] = {
25882 &xattr_test_handler,
25885 const struct super_block sb __attribute__ ((unused)) = {
25886 .s_xattr = xattr_handlers,
25902 cat - <<_ACEOF >conftest.h
25907 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25908 echo "obj-m := conftest.o" >build
/Makefile
25910 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25911 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25913 (eval $ac_try) 2>&5
25915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25916 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25918 (eval $ac_try) 2>&5
25920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25921 test $ac_status = 0; }; }; then :
25923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25924 $as_echo "yes" >&6; }
25926 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
25930 $as_echo "$as_me: failed program was:" >&5
25931 sed 's/^/| /' conftest.
$ac_ext >&5
25933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25934 $as_echo "no" >&6; }
25944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants xattr_handler" >&5
25945 $as_echo_n "checking whether xattr_handler->get() wants xattr_handler... " >&6; }
25948 cat confdefs.h
- <<_ACEOF >conftest.c
25951 #include <linux/xattr.h>
25953 int get(const struct xattr_handler *handler,
25954 struct dentry *dentry, const char *name,
25955 void *buffer, size_t size) { return 0; }
25956 static const struct xattr_handler
25957 xops __attribute__ ((unused)) = {
25974 cat - <<_ACEOF >conftest.h
25979 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25980 echo "obj-m := conftest.o" >build
/Makefile
25982 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25983 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25984 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25985 (eval $ac_try) 2>&5
25987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25988 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25990 (eval $ac_try) 2>&5
25992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25993 test $ac_status = 0; }; }; then :
25995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25996 $as_echo "yes" >&6; }
25998 $as_echo "#define HAVE_XATTR_GET_HANDLER 1" >>confdefs.h
26002 $as_echo "$as_me: failed program was:" >&5
26003 sed 's/^/| /' conftest.
$ac_ext >&5
26005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26006 $as_echo "no" >&6; }
26007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
26008 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
26011 cat confdefs.h
- <<_ACEOF >conftest.c
26014 #include <linux/xattr.h>
26016 int get(struct dentry *dentry, const char *name,
26017 void *buffer, size_t size, int handler_flags)
26019 static const struct xattr_handler
26020 xops __attribute__ ((unused)) = {
26037 cat - <<_ACEOF >conftest.h
26042 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26043 echo "obj-m := conftest.o" >build
/Makefile
26045 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26046 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26048 (eval $ac_try) 2>&5
26050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26051 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26052 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26053 (eval $ac_try) 2>&5
26055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26056 test $ac_status = 0; }; }; then :
26058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26059 $as_echo "yes" >&6; }
26061 $as_echo "#define HAVE_XATTR_GET_DENTRY 1" >>confdefs.h
26065 $as_echo "$as_me: failed program was:" >&5
26066 sed 's/^/| /' conftest.
$ac_ext >&5
26068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26069 $as_echo "no" >&6; }
26070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants inode" >&5
26071 $as_echo_n "checking whether xattr_handler->get() wants inode... " >&6; }
26074 cat confdefs.h
- <<_ACEOF >conftest.c
26077 #include <linux/xattr.h>
26079 int get(struct inode *ip, const char *name,
26080 void *buffer, size_t size) { return 0; }
26081 static const struct xattr_handler
26082 xops __attribute__ ((unused)) = {
26099 cat - <<_ACEOF >conftest.h
26104 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26105 echo "obj-m := conftest.o" >build
/Makefile
26107 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26108 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26110 (eval $ac_try) 2>&5
26112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26113 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26115 (eval $ac_try) 2>&5
26117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26118 test $ac_status = 0; }; }; then :
26120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26121 $as_echo "yes" >&6; }
26123 $as_echo "#define HAVE_XATTR_GET_INODE 1" >>confdefs.h
26127 $as_echo "$as_me: failed program was:" >&5
26128 sed 's/^/| /' conftest.
$ac_ext >&5
26130 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
26154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants xattr_handler" >&5
26155 $as_echo_n "checking whether xattr_handler->set() wants xattr_handler... " >&6; }
26158 cat confdefs.h
- <<_ACEOF >conftest.c
26161 #include <linux/xattr.h>
26163 int set(const struct xattr_handler *handler,
26164 struct dentry *dentry, const char *name,
26165 const void *buffer, size_t size, int flags)
26167 static const struct xattr_handler
26168 xops __attribute__ ((unused)) = {
26185 cat - <<_ACEOF >conftest.h
26190 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26191 echo "obj-m := conftest.o" >build
/Makefile
26193 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26194 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26196 (eval $ac_try) 2>&5
26198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26199 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26201 (eval $ac_try) 2>&5
26203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26204 test $ac_status = 0; }; }; then :
26206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26207 $as_echo "yes" >&6; }
26209 $as_echo "#define HAVE_XATTR_SET_HANDLER 1" >>confdefs.h
26213 $as_echo "$as_me: failed program was:" >&5
26214 sed 's/^/| /' conftest.
$ac_ext >&5
26216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26217 $as_echo "no" >&6; }
26218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
26219 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
26222 cat confdefs.h
- <<_ACEOF >conftest.c
26225 #include <linux/xattr.h>
26227 int set(struct dentry *dentry, const char *name,
26228 const void *buffer, size_t size, int flags,
26229 int handler_flags) { return 0; }
26230 static const struct xattr_handler
26231 xops __attribute__ ((unused)) = {
26248 cat - <<_ACEOF >conftest.h
26253 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26254 echo "obj-m := conftest.o" >build
/Makefile
26256 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26257 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26259 (eval $ac_try) 2>&5
26261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26262 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26264 (eval $ac_try) 2>&5
26266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26267 test $ac_status = 0; }; }; then :
26269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26270 $as_echo "yes" >&6; }
26272 $as_echo "#define HAVE_XATTR_SET_DENTRY 1" >>confdefs.h
26276 $as_echo "$as_me: failed program was:" >&5
26277 sed 's/^/| /' conftest.
$ac_ext >&5
26279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26280 $as_echo "no" >&6; }
26281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants inode" >&5
26282 $as_echo_n "checking whether xattr_handler->set() wants inode... " >&6; }
26285 cat confdefs.h
- <<_ACEOF >conftest.c
26288 #include <linux/xattr.h>
26290 int set(struct inode *ip, const char *name,
26291 const void *buffer, size_t size, int flags)
26293 static const struct xattr_handler
26294 xops __attribute__ ((unused)) = {
26311 cat - <<_ACEOF >conftest.h
26316 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26317 echo "obj-m := conftest.o" >build
/Makefile
26319 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26320 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26321 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26322 (eval $ac_try) 2>&5
26324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26325 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26327 (eval $ac_try) 2>&5
26329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26330 test $ac_status = 0; }; }; then :
26332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26333 $as_echo "yes" >&6; }
26335 $as_echo "#define HAVE_XATTR_SET_INODE 1" >>confdefs.h
26339 $as_echo "$as_me: failed program was:" >&5
26340 sed 's/^/| /' conftest.
$ac_ext >&5
26342 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
26366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants simple" >&5
26367 $as_echo_n "checking whether xattr_handler->list() wants simple... " >&6; }
26370 cat confdefs.h
- <<_ACEOF >conftest.c
26373 #include <linux/xattr.h>
26375 bool list(struct dentry *dentry) { return 0; }
26376 static const struct xattr_handler
26377 xops __attribute__ ((unused)) = {
26394 cat - <<_ACEOF >conftest.h
26399 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26400 echo "obj-m := conftest.o" >build
/Makefile
26402 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26403 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26404 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26405 (eval $ac_try) 2>&5
26407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26408 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26410 (eval $ac_try) 2>&5
26412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26413 test $ac_status = 0; }; }; then :
26415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26416 $as_echo "yes" >&6; }
26418 $as_echo "#define HAVE_XATTR_LIST_SIMPLE 1" >>confdefs.h
26422 $as_echo "$as_me: failed program was:" >&5
26423 sed 's/^/| /' conftest.
$ac_ext >&5
26425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26426 $as_echo "no" >&6; }
26427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants xattr_handler" >&5
26428 $as_echo_n "checking whether xattr_handler->list() wants xattr_handler... " >&6; }
26431 cat confdefs.h
- <<_ACEOF >conftest.c
26434 #include <linux/xattr.h>
26436 size_t list(const struct xattr_handler *handler,
26437 struct dentry *dentry, char *list, size_t list_size,
26438 const char *name, size_t name_len) { return 0; }
26439 static const struct xattr_handler
26440 xops __attribute__ ((unused)) = {
26457 cat - <<_ACEOF >conftest.h
26462 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26463 echo "obj-m := conftest.o" >build
/Makefile
26465 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26466 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26468 (eval $ac_try) 2>&5
26470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26471 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26473 (eval $ac_try) 2>&5
26475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26476 test $ac_status = 0; }; }; then :
26478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26479 $as_echo "yes" >&6; }
26481 $as_echo "#define HAVE_XATTR_LIST_HANDLER 1" >>confdefs.h
26485 $as_echo "$as_me: failed program was:" >&5
26486 sed 's/^/| /' conftest.
$ac_ext >&5
26488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26489 $as_echo "no" >&6; }
26490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
26491 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
26494 cat confdefs.h
- <<_ACEOF >conftest.c
26497 #include <linux/xattr.h>
26499 size_t list(struct dentry *dentry,
26500 char *list, size_t list_size,
26501 const char *name, size_t name_len,
26502 int handler_flags) { return 0; }
26503 static const struct xattr_handler
26504 xops __attribute__ ((unused)) = {
26521 cat - <<_ACEOF >conftest.h
26526 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26527 echo "obj-m := conftest.o" >build
/Makefile
26529 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26530 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26532 (eval $ac_try) 2>&5
26534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26535 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26536 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26537 (eval $ac_try) 2>&5
26539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26540 test $ac_status = 0; }; }; then :
26542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26543 $as_echo "yes" >&6; }
26545 $as_echo "#define HAVE_XATTR_LIST_DENTRY 1" >>confdefs.h
26549 $as_echo "$as_me: failed program was:" >&5
26550 sed 's/^/| /' conftest.
$ac_ext >&5
26552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26553 $as_echo "no" >&6; }
26554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants inode" >&5
26555 $as_echo_n "checking whether xattr_handler->list() wants inode... " >&6; }
26558 cat confdefs.h
- <<_ACEOF >conftest.c
26561 #include <linux/xattr.h>
26563 size_t list(struct inode *ip, char *lst,
26564 size_t list_size, const char *name,
26565 size_t name_len) { return 0; }
26566 static const struct xattr_handler
26567 xops __attribute__ ((unused)) = {
26584 cat - <<_ACEOF >conftest.h
26589 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26590 echo "obj-m := conftest.o" >build
/Makefile
26592 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26593 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26594 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26595 (eval $ac_try) 2>&5
26597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26598 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26600 (eval $ac_try) 2>&5
26602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26603 test $ac_status = 0; }; }; then :
26605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26606 $as_echo "yes" >&6; }
26608 $as_echo "#define HAVE_XATTR_LIST_INODE 1" >>confdefs.h
26612 $as_echo "$as_me: failed program was:" >&5
26613 sed 's/^/| /' conftest.
$ac_ext >&5
26615 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
26646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
26647 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
26650 cat confdefs.h
- <<_ACEOF >conftest.c
26653 #include <linux/fs.h>
26659 struct inode *ip = NULL;
26660 (void) inode_owner_or_capable(ip);
26670 cat - <<_ACEOF >conftest.h
26675 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26676 echo "obj-m := conftest.o" >build
/Makefile
26678 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26679 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26681 (eval $ac_try) 2>&5
26683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26684 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26686 (eval $ac_try) 2>&5
26688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26689 test $ac_status = 0; }; }; then :
26691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26692 $as_echo "yes" >&6; }
26694 $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
26698 $as_echo "$as_me: failed program was:" >&5
26699 sed 's/^/| /' conftest.
$ac_ext >&5
26701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26702 $as_echo "no" >&6; }
26703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
26704 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
26707 cat confdefs.h
- <<_ACEOF >conftest.c
26710 #include <linux/fs.h>
26711 #include <linux/sched.h>
26717 struct inode *ip = NULL;
26718 (void) is_owner_or_cap(ip);
26728 cat - <<_ACEOF >conftest.h
26733 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26734 echo "obj-m := conftest.o" >build
/Makefile
26736 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26737 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26739 (eval $ac_try) 2>&5
26741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26742 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26743 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26744 (eval $ac_try) 2>&5
26746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26747 test $ac_status = 0; }; }; then :
26749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26750 $as_echo "yes" >&6; }
26752 $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
26756 $as_echo "$as_me: failed program was:" >&5
26757 sed 's/^/| /' conftest.
$ac_ext >&5
26759 as_fn_error $?
"no - Please file a bug report at
26760 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
26777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
26778 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
26781 cat confdefs.h
- <<_ACEOF >conftest.c
26784 #include <linux/cred.h>
26785 #include <linux/fs.h>
26786 #include <linux/posix_acl_xattr.h>
26792 posix_acl_from_xattr(&init_user_ns, NULL, 0);
26802 cat - <<_ACEOF >conftest.h
26807 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26808 echo "obj-m := conftest.o" >build
/Makefile
26810 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26811 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26813 (eval $ac_try) 2>&5
26815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26816 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26818 (eval $ac_try) 2>&5
26820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26821 test $ac_status = 0; }; }; then :
26823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26824 $as_echo "yes" >&6; }
26826 $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
26830 $as_echo "$as_me: failed program was:" >&5
26831 sed 's/^/| /' conftest.
$ac_ext >&5
26833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26834 $as_echo "no" >&6; }
26844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
26845 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
26848 cat confdefs.h
- <<_ACEOF >conftest.c
26851 #include <linux/cred.h>
26852 #include <linux/fs.h>
26853 #include <linux/posix_acl.h>
26859 struct posix_acl* tmp = posix_acl_alloc(1, 0);
26860 posix_acl_release(tmp);
26870 cat - <<_ACEOF >conftest.h
26875 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26876 echo "obj-m := conftest.o" >build
/Makefile
26878 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26879 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26880 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26881 (eval $ac_try) 2>&5
26883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26884 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26886 (eval $ac_try) 2>&5
26888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26889 test $ac_status = 0; }; }; then :
26891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26892 $as_echo "yes" >&6; }
26894 $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
26898 $as_echo "$as_me: failed program was:" >&5
26899 sed 's/^/| /' conftest.
$ac_ext >&5
26901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26902 $as_echo "no" >&6; }
26911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
26912 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
26915 cat confdefs.h
- <<_ACEOF >conftest.c
26918 #include <linux/cred.h>
26919 #include <linux/fs.h>
26920 #include <linux/posix_acl.h>
26922 MODULE_LICENSE("$ZFS_META_LICENSE");
26928 struct posix_acl* tmp = posix_acl_alloc(1, 0);
26929 posix_acl_release(tmp);
26939 cat - <<_ACEOF >conftest.h
26944 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26945 echo "obj-m := conftest.o" >build
/Makefile
26947 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26948 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26949 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26950 (eval $ac_try) 2>&5
26952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26953 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26955 (eval $ac_try) 2>&5
26957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26958 test $ac_status = 0; }; }; then :
26960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26961 $as_echo "no" >&6; }
26964 $as_echo "$as_me: failed program was:" >&5
26965 sed 's/^/| /' conftest.
$ac_ext >&5
26967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26968 $as_echo "yes" >&6; }
26970 $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
26981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
26982 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
26985 cat confdefs.h
- <<_ACEOF >conftest.c
26988 #include <linux/fs.h>
26989 #include <linux/posix_acl.h>
26995 posix_acl_chmod(NULL, 0, 0)
27005 cat - <<_ACEOF >conftest.h
27010 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27011 echo "obj-m := conftest.o" >build
/Makefile
27013 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27014 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27016 (eval $ac_try) 2>&5
27018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27019 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27021 (eval $ac_try) 2>&5
27023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27024 test $ac_status = 0; }; }; then :
27026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27027 $as_echo "yes" >&6; }
27029 $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
27033 $as_echo "$as_me: failed program was:" >&5
27034 sed 's/^/| /' conftest.
$ac_ext >&5
27036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27037 $as_echo "no" >&6; }
27046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
27047 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
27050 cat confdefs.h
- <<_ACEOF >conftest.c
27053 #include <linux/fs.h>
27054 #include <linux/posix_acl.h>
27060 __posix_acl_chmod(NULL, 0, 0)
27070 cat - <<_ACEOF >conftest.h
27075 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27076 echo "obj-m := conftest.o" >build
/Makefile
27078 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27079 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27081 (eval $ac_try) 2>&5
27083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27084 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27086 (eval $ac_try) 2>&5
27088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27089 test $ac_status = 0; }; }; then :
27091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27092 $as_echo "yes" >&6; }
27094 $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
27098 $as_echo "$as_me: failed program was:" >&5
27099 sed 's/^/| /' conftest.
$ac_ext >&5
27101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27102 $as_echo "no" >&6; }
27112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode has i_acl and i_default_acl" >&5
27113 $as_echo_n "checking whether inode has i_acl and i_default_acl... " >&6; }
27116 cat confdefs.h
- <<_ACEOF >conftest.c
27119 #include <linux/fs.h>
27127 ino.i_default_acl = NULL;
27137 cat - <<_ACEOF >conftest.h
27142 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27143 echo "obj-m := conftest.o" >build
/Makefile
27145 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27146 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27147 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27148 (eval $ac_try) 2>&5
27150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27151 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27153 (eval $ac_try) 2>&5
27155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27156 test $ac_status = 0; }; }; then :
27158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27159 $as_echo "yes" >&6; }
27161 $as_echo "#define HAVE_POSIX_ACL_CACHING 1" >>confdefs.h
27165 $as_echo "$as_me: failed program was:" >&5
27166 sed 's/^/| /' conftest.
$ac_ext >&5
27168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27169 $as_echo "no" >&6; }
27179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
27180 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
27183 cat confdefs.h
- <<_ACEOF >conftest.c
27186 #include <linux/fs.h>
27187 #include <linux/posix_acl.h>
27194 posix_acl_equiv_mode(NULL,&tmp);
27204 cat - <<_ACEOF >conftest.h
27209 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27210 echo "obj-m := conftest.o" >build
/Makefile
27212 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27213 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27214 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27215 (eval $ac_try) 2>&5
27217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27218 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27220 (eval $ac_try) 2>&5
27222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27223 test $ac_status = 0; }; }; then :
27225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27226 $as_echo "yes" >&6; }
27228 $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
27232 $as_echo "$as_me: failed program was:" >&5
27233 sed 's/^/| /' conftest.
$ac_ext >&5
27235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27236 $as_echo "no" >&6; }
27246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_valid() wants user namespace" >&5
27247 $as_echo_n "checking whether posix_acl_valid() wants user namespace... " >&6; }
27250 cat confdefs.h
- <<_ACEOF >conftest.c
27253 #include <linux/fs.h>
27254 #include <linux/posix_acl.h>
27260 struct user_namespace *user_ns = NULL;
27261 const struct posix_acl *acl = NULL;
27264 error = posix_acl_valid(user_ns, acl);
27274 cat - <<_ACEOF >conftest.h
27279 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27280 echo "obj-m := conftest.o" >build
/Makefile
27282 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27283 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27284 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27285 (eval $ac_try) 2>&5
27287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27288 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27290 (eval $ac_try) 2>&5
27292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27293 test $ac_status = 0; }; }; then :
27295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27296 $as_echo "yes" >&6; }
27298 $as_echo "#define HAVE_POSIX_ACL_VALID_WITH_NS 1" >>confdefs.h
27302 $as_echo "$as_me: failed program was:" >&5
27303 sed 's/^/| /' conftest.
$ac_ext >&5
27305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27306 $as_echo "no" >&6; }
27316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
27317 $as_echo_n "checking whether iops->permission() exists... " >&6; }
27320 cat confdefs.h
- <<_ACEOF >conftest.c
27323 #include <linux/fs.h>
27325 int permission_fn(struct inode *inode, int mask) { return 0; }
27327 static const struct inode_operations
27328 iops __attribute__ ((unused)) = {
27329 .permission = permission_fn,
27345 cat - <<_ACEOF >conftest.h
27350 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27351 echo "obj-m := conftest.o" >build
/Makefile
27353 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27354 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27356 (eval $ac_try) 2>&5
27358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27359 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27360 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27361 (eval $ac_try) 2>&5
27363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27364 test $ac_status = 0; }; }; then :
27366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27367 $as_echo "yes" >&6; }
27369 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
27373 $as_echo "$as_me: failed program was:" >&5
27374 sed 's/^/| /' conftest.
$ac_ext >&5
27376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27377 $as_echo "no" >&6; }
27387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
27388 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
27391 cat confdefs.h
- <<_ACEOF >conftest.c
27394 #include <linux/fs.h>
27396 int permission_fn(struct inode *inode, int mask,
27397 struct nameidata *nd) { return 0; }
27399 static const struct inode_operations
27400 iops __attribute__ ((unused)) = {
27401 .permission = permission_fn,
27417 cat - <<_ACEOF >conftest.h
27422 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27423 echo "obj-m := conftest.o" >build
/Makefile
27425 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27426 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27428 (eval $ac_try) 2>&5
27430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27431 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27433 (eval $ac_try) 2>&5
27435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27436 test $ac_status = 0; }; }; then :
27438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27439 $as_echo "yes" >&6; }
27441 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
27444 $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
27448 $as_echo "$as_me: failed program was:" >&5
27449 sed 's/^/| /' conftest.
$ac_ext >&5
27451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27452 $as_echo "no" >&6; }
27462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
27463 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
27466 cat confdefs.h
- <<_ACEOF >conftest.c
27469 #include <linux/fs.h>
27471 int check_acl_fn(struct inode *inode, int mask) { return 0; }
27473 static const struct inode_operations
27474 iops __attribute__ ((unused)) = {
27475 .check_acl = check_acl_fn,
27491 cat - <<_ACEOF >conftest.h
27496 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27497 echo "obj-m := conftest.o" >build
/Makefile
27499 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27500 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27502 (eval $ac_try) 2>&5
27504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27505 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27506 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27507 (eval $ac_try) 2>&5
27509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27510 test $ac_status = 0; }; }; then :
27512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27513 $as_echo "yes" >&6; }
27515 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
27519 $as_echo "$as_me: failed program was:" >&5
27520 sed 's/^/| /' conftest.
$ac_ext >&5
27522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27523 $as_echo "no" >&6; }
27533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
27534 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
27537 cat confdefs.h
- <<_ACEOF >conftest.c
27540 #include <linux/fs.h>
27542 int check_acl_fn(struct inode *inode, int mask,
27543 unsigned int flags) { return 0; }
27545 static const struct inode_operations
27546 iops __attribute__ ((unused)) = {
27547 .check_acl = check_acl_fn,
27563 cat - <<_ACEOF >conftest.h
27568 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27569 echo "obj-m := conftest.o" >build
/Makefile
27571 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27572 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27574 (eval $ac_try) 2>&5
27576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27577 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27578 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27579 (eval $ac_try) 2>&5
27581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27582 test $ac_status = 0; }; }; then :
27584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27585 $as_echo "yes" >&6; }
27587 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
27590 $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
27594 $as_echo "$as_me: failed program was:" >&5
27595 sed 's/^/| /' conftest.
$ac_ext >&5
27597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27598 $as_echo "no" >&6; }
27608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
27609 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
27612 cat confdefs.h
- <<_ACEOF >conftest.c
27615 #include <linux/fs.h>
27617 struct posix_acl *get_acl_fn(struct inode *inode, int type)
27620 static const struct inode_operations
27621 iops __attribute__ ((unused)) = {
27622 .get_acl = get_acl_fn,
27638 cat - <<_ACEOF >conftest.h
27643 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27644 echo "obj-m := conftest.o" >build
/Makefile
27646 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27647 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27649 (eval $ac_try) 2>&5
27651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27652 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27654 (eval $ac_try) 2>&5
27656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27657 test $ac_status = 0; }; }; then :
27659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27660 $as_echo "yes" >&6; }
27662 $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
27666 $as_echo "$as_me: failed program was:" >&5
27667 sed 's/^/| /' conftest.
$ac_ext >&5
27669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27670 $as_echo "no" >&6; }
27680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_umask exists" >&5
27681 $as_echo_n "checking whether current_umask exists... " >&6; }
27684 cat confdefs.h
- <<_ACEOF >conftest.c
27687 #include <linux/fs.h>
27703 cat - <<_ACEOF >conftest.h
27708 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27709 echo "obj-m := conftest.o" >build
/Makefile
27711 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27712 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27713 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27714 (eval $ac_try) 2>&5
27716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27717 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27718 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27719 (eval $ac_try) 2>&5
27721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27722 test $ac_status = 0; }; }; then :
27724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27725 $as_echo "yes" >&6; }
27727 $as_echo "#define HAVE_CURRENT_UMASK 1" >>confdefs.h
27731 $as_echo "$as_me: failed program was:" >&5
27732 sed 's/^/| /' conftest.
$ac_ext >&5
27734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27735 $as_echo "no" >&6; }
27745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
27746 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
27750 cat confdefs.h
- <<_ACEOF >conftest.c
27753 #include <linux/fs.h>
27755 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
27756 static struct super_operations sops __attribute__ ((unused)) = {
27757 .show_options = show_options,
27773 cat - <<_ACEOF >conftest.h
27778 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27779 echo "obj-m := conftest.o" >build
/Makefile
27781 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27782 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27783 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27784 (eval $ac_try) 2>&5
27786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27787 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27788 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27789 (eval $ac_try) 2>&5
27791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27792 test $ac_status = 0; }; }; then :
27794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27795 $as_echo "yes" >&6; }
27797 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
27801 $as_echo "$as_me: failed program was:" >&5
27802 sed 's/^/| /' conftest.
$ac_ext >&5
27804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27805 $as_echo "no" >&6; }
27815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
27816 $as_echo_n "checking whether file_inode() is available... " >&6; }
27819 cat confdefs.h
- <<_ACEOF >conftest.c
27822 #include <linux/fs.h>
27828 struct file *f = NULL;
27839 cat - <<_ACEOF >conftest.h
27844 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27845 echo "obj-m := conftest.o" >build
/Makefile
27847 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27848 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27849 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27850 (eval $ac_try) 2>&5
27852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27853 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27854 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27855 (eval $ac_try) 2>&5
27857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27858 test $ac_status = 0; }; }; then :
27860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27861 $as_echo "yes" >&6; }
27863 $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
27867 $as_echo "$as_me: failed program was:" >&5
27868 sed 's/^/| /' conftest.
$ac_ext >&5
27870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27871 $as_echo "no" >&6; }
27881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
27882 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
27886 cat confdefs.h
- <<_ACEOF >conftest.c
27889 #include <linux/fs.h>
27891 int test_fsync(struct file *f, struct dentry *dentry, int x)
27894 static const struct file_operations
27895 fops __attribute__ ((unused)) = {
27896 .fsync = test_fsync,
27912 cat - <<_ACEOF >conftest.h
27917 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27918 echo "obj-m := conftest.o" >build
/Makefile
27920 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27921 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27923 (eval $ac_try) 2>&5
27925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27926 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27927 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27928 (eval $ac_try) 2>&5
27930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27931 test $ac_status = 0; }; }; then :
27933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
27934 $as_echo "dentry" >&6; }
27936 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
27940 $as_echo "$as_me: failed program was:" >&5
27941 sed 's/^/| /' conftest.
$ac_ext >&5
27954 cat confdefs.h
- <<_ACEOF >conftest.c
27957 #include <linux/fs.h>
27959 int test_fsync(struct file *f, int x) { return 0; }
27961 static const struct file_operations
27962 fops __attribute__ ((unused)) = {
27963 .fsync = test_fsync,
27979 cat - <<_ACEOF >conftest.h
27984 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27985 echo "obj-m := conftest.o" >build
/Makefile
27987 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27988 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27990 (eval $ac_try) 2>&5
27992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27993 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27995 (eval $ac_try) 2>&5
27997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27998 test $ac_status = 0; }; }; then :
28000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
28001 $as_echo "no dentry" >&6; }
28003 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
28007 $as_echo "$as_me: failed program was:" >&5
28008 sed 's/^/| /' conftest.
$ac_ext >&5
28021 cat confdefs.h
- <<_ACEOF >conftest.c
28024 #include <linux/fs.h>
28026 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
28029 static const struct file_operations
28030 fops __attribute__ ((unused)) = {
28031 .fsync = test_fsync,
28047 cat - <<_ACEOF >conftest.h
28052 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28053 echo "obj-m := conftest.o" >build
/Makefile
28055 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28056 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28058 (eval $ac_try) 2>&5
28060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28061 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28063 (eval $ac_try) 2>&5
28065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28066 test $ac_status = 0; }; }; then :
28068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
28069 $as_echo "range" >&6; }
28071 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
28075 $as_echo "$as_me: failed program was:" >&5
28076 sed 's/^/| /' conftest.
$ac_ext >&5
28088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
28089 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
28092 cat confdefs.h
- <<_ACEOF >conftest.c
28095 #include <linux/fs.h>
28096 void evict_inode (struct inode * t) { return; }
28097 static struct super_operations sops __attribute__ ((unused)) = {
28098 .evict_inode = evict_inode,
28114 cat - <<_ACEOF >conftest.h
28119 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28120 echo "obj-m := conftest.o" >build
/Makefile
28122 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28123 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28125 (eval $ac_try) 2>&5
28127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28128 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28130 (eval $ac_try) 2>&5
28132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28133 test $ac_status = 0; }; }; then :
28135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28136 $as_echo "yes" >&6; }
28138 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
28142 $as_echo "$as_me: failed program was:" >&5
28143 sed 's/^/| /' conftest.
$ac_ext >&5
28145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28146 $as_echo "no" >&6; }
28156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
28157 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
28160 cat confdefs.h
- <<_ACEOF >conftest.c
28163 #include <linux/fs.h>
28165 void dirty_inode(struct inode *a, int b) { return; }
28167 static const struct super_operations
28168 sops __attribute__ ((unused)) = {
28169 .dirty_inode = dirty_inode,
28185 cat - <<_ACEOF >conftest.h
28190 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28191 echo "obj-m := conftest.o" >build
/Makefile
28193 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28194 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28196 (eval $ac_try) 2>&5
28198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28199 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28200 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28201 (eval $ac_try) 2>&5
28203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28204 test $ac_status = 0; }; }; then :
28206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28207 $as_echo "yes" >&6; }
28209 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
28213 $as_echo "$as_me: failed program was:" >&5
28214 sed 's/^/| /' conftest.
$ac_ext >&5
28216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28217 $as_echo "no" >&6; }
28227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
28228 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
28231 cat confdefs.h
- <<_ACEOF >conftest.c
28234 #include <linux/fs.h>
28236 int nr_cached_objects(struct super_block *sb) { return 0; }
28238 static const struct super_operations
28239 sops __attribute__ ((unused)) = {
28240 .nr_cached_objects = nr_cached_objects,
28256 cat - <<_ACEOF >conftest.h
28261 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28262 echo "obj-m := conftest.o" >build
/Makefile
28264 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28265 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28266 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28267 (eval $ac_try) 2>&5
28269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28270 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28271 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28272 (eval $ac_try) 2>&5
28274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28275 test $ac_status = 0; }; }; then :
28277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28278 $as_echo "yes" >&6; }
28280 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
28284 $as_echo "$as_me: failed program was:" >&5
28285 sed 's/^/| /' conftest.
$ac_ext >&5
28287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28288 $as_echo "no" >&6; }
28298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
28299 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
28302 cat confdefs.h
- <<_ACEOF >conftest.c
28305 #include <linux/fs.h>
28307 void free_cached_objects(struct super_block *sb, int x)
28310 static const struct super_operations
28311 sops __attribute__ ((unused)) = {
28312 .free_cached_objects = free_cached_objects,
28328 cat - <<_ACEOF >conftest.h
28333 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28334 echo "obj-m := conftest.o" >build
/Makefile
28336 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28337 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28338 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28339 (eval $ac_try) 2>&5
28341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28342 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28343 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28344 (eval $ac_try) 2>&5
28346 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28347 test $ac_status = 0; }; }; then :
28349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28350 $as_echo "yes" >&6; }
28352 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
28356 $as_echo "$as_me: failed program was:" >&5
28357 sed 's/^/| /' conftest.
$ac_ext >&5
28359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28360 $as_echo "no" >&6; }
28371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
28372 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
28375 cat confdefs.h
- <<_ACEOF >conftest.c
28378 #include <linux/fs.h>
28380 long test_fallocate(struct file *file, int mode,
28381 loff_t offset, loff_t len) { return 0; }
28383 static const struct file_operations
28384 fops __attribute__ ((unused)) = {
28385 .fallocate = test_fallocate,
28401 cat - <<_ACEOF >conftest.h
28406 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28407 echo "obj-m := conftest.o" >build
/Makefile
28409 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28410 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28412 (eval $ac_try) 2>&5
28414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28415 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28416 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28417 (eval $ac_try) 2>&5
28419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28420 test $ac_status = 0; }; }; then :
28422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28423 $as_echo "yes" >&6; }
28425 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
28429 $as_echo "$as_me: failed program was:" >&5
28430 sed 's/^/| /' conftest.
$ac_ext >&5
28432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28433 $as_echo "no" >&6; }
28443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
28444 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
28447 cat confdefs.h
- <<_ACEOF >conftest.c
28450 #include <linux/fs.h>
28452 long test_fallocate(struct inode *inode, int mode,
28453 loff_t offset, loff_t len) { return 0; }
28455 static const struct inode_operations
28456 fops __attribute__ ((unused)) = {
28457 .fallocate = test_fallocate,
28473 cat - <<_ACEOF >conftest.h
28478 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28479 echo "obj-m := conftest.o" >build
/Makefile
28481 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28482 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28483 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28484 (eval $ac_try) 2>&5
28486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28487 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28488 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28489 (eval $ac_try) 2>&5
28491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28492 test $ac_status = 0; }; }; then :
28494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28495 $as_echo "yes" >&6; }
28497 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
28501 $as_echo "$as_me: failed program was:" >&5
28502 sed 's/^/| /' conftest.
$ac_ext >&5
28504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28505 $as_echo "no" >&6; }
28516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
28517 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
28520 cat confdefs.h
- <<_ACEOF >conftest.c
28523 #include <linux/fs.h>
28525 int mkdir(struct inode *inode, struct dentry *dentry,
28526 umode_t umode) { return 0; }
28528 static const struct inode_operations
28529 iops __attribute__ ((unused)) = {
28546 cat - <<_ACEOF >conftest.h
28551 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28552 echo "obj-m := conftest.o" >build
/Makefile
28554 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28555 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28557 (eval $ac_try) 2>&5
28559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28560 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28561 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28562 (eval $ac_try) 2>&5
28564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28565 test $ac_status = 0; }; }; then :
28567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28568 $as_echo "yes" >&6; }
28570 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
28574 $as_echo "$as_me: failed program was:" >&5
28575 sed 's/^/| /' conftest.
$ac_ext >&5
28577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28578 $as_echo "no" >&6; }
28588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() passes nameidata" >&5
28589 $as_echo_n "checking whether iops->lookup() passes nameidata... " >&6; }
28592 cat confdefs.h
- <<_ACEOF >conftest.c
28595 #include <linux/fs.h>
28597 struct dentry *inode_lookup(struct inode *inode,
28598 struct dentry *dentry, struct nameidata *nidata)
28601 static const struct inode_operations iops
28602 __attribute__ ((unused)) = {
28603 .lookup = inode_lookup,
28619 cat - <<_ACEOF >conftest.h
28624 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28625 echo "obj-m := conftest.o" >build
/Makefile
28627 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28628 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28630 (eval $ac_try) 2>&5
28632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28633 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28635 (eval $ac_try) 2>&5
28637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28638 test $ac_status = 0; }; }; then :
28640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28641 $as_echo "yes" >&6; }
28643 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
28647 $as_echo "$as_me: failed program was:" >&5
28648 sed 's/^/| /' conftest.
$ac_ext >&5
28650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28651 $as_echo "no" >&6; }
28661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() passes nameidata" >&5
28662 $as_echo_n "checking whether iops->create() passes nameidata... " >&6; }
28665 cat confdefs.h
- <<_ACEOF >conftest.c
28668 #include <linux/fs.h>
28670 #ifdef HAVE_MKDIR_UMODE_T
28671 int inode_create(struct inode *inode ,struct dentry *dentry,
28672 umode_t umode, struct nameidata *nidata) { return 0; }
28674 int inode_create(struct inode *inode,struct dentry *dentry,
28675 int umode, struct nameidata * nidata) { return 0; }
28678 static const struct inode_operations
28679 iops __attribute__ ((unused)) = {
28680 .create = inode_create,
28696 cat - <<_ACEOF >conftest.h
28701 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28702 echo "obj-m := conftest.o" >build
/Makefile
28704 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28705 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28706 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28707 (eval $ac_try) 2>&5
28709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28710 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28711 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28712 (eval $ac_try) 2>&5
28714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28715 test $ac_status = 0; }; }; then :
28717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28718 $as_echo "yes" >&6; }
28720 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
28724 $as_echo "$as_me: failed program was:" >&5
28725 sed 's/^/| /' conftest.
$ac_ext >&5
28727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28728 $as_echo "no" >&6; }
28738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes delayed" >&5
28739 $as_echo_n "checking whether iops->get_link() passes delayed... " >&6; }
28742 cat confdefs.h
- <<_ACEOF >conftest.c
28745 #include <linux/fs.h>
28746 const char *get_link(struct dentry *de, struct inode *ip,
28747 struct delayed_call *done) { return "symlink"; }
28748 static struct inode_operations
28749 iops __attribute__ ((unused)) = {
28750 .get_link = get_link,
28766 cat - <<_ACEOF >conftest.h
28771 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28772 echo "obj-m := conftest.o" >build
/Makefile
28774 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28775 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28777 (eval $ac_try) 2>&5
28779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28780 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28782 (eval $ac_try) 2>&5
28784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28785 test $ac_status = 0; }; }; then :
28787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28788 $as_echo "yes" >&6; }
28790 $as_echo "#define HAVE_GET_LINK_DELAYED 1" >>confdefs.h
28794 $as_echo "$as_me: failed program was:" >&5
28795 sed 's/^/| /' conftest.
$ac_ext >&5
28797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28798 $as_echo "no" >&6; }
28799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_link() passes cookie" >&5
28800 $as_echo_n "checking whether iops->get_link() passes cookie... " >&6; }
28803 cat confdefs.h
- <<_ACEOF >conftest.c
28806 #include <linux/fs.h>
28807 const char *get_link(struct dentry *de, struct
28808 inode *ip, void **cookie) { return "symlink"; }
28809 static struct inode_operations
28810 iops __attribute__ ((unused)) = {
28811 .get_link = get_link,
28827 cat - <<_ACEOF >conftest.h
28832 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28833 echo "obj-m := conftest.o" >build
/Makefile
28835 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28836 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
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; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28843 (eval $ac_try) 2>&5
28845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28846 test $ac_status = 0; }; }; then :
28848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28849 $as_echo "yes" >&6; }
28851 $as_echo "#define HAVE_GET_LINK_COOKIE 1" >>confdefs.h
28855 $as_echo "$as_me: failed program was:" >&5
28856 sed 's/^/| /' conftest.
$ac_ext >&5
28858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28859 $as_echo "no" >&6; }
28861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes cookie" >&5
28862 $as_echo_n "checking whether iops->follow_link() passes cookie... " >&6; }
28865 cat confdefs.h
- <<_ACEOF >conftest.c
28868 #include <linux/fs.h>
28869 const char *follow_link(struct dentry *de,
28870 void **cookie) { return "symlink"; }
28871 static struct inode_operations
28872 iops __attribute__ ((unused)) = {
28873 .follow_link = follow_link,
28889 cat - <<_ACEOF >conftest.h
28894 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28895 echo "obj-m := conftest.o" >build
/Makefile
28897 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28898 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28899 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28900 (eval $ac_try) 2>&5
28902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28903 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28905 (eval $ac_try) 2>&5
28907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28908 test $ac_status = 0; }; }; then :
28910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28911 $as_echo "yes" >&6; }
28913 $as_echo "#define HAVE_FOLLOW_LINK_COOKIE 1" >>confdefs.h
28917 $as_echo "$as_me: failed program was:" >&5
28918 sed 's/^/| /' conftest.
$ac_ext >&5
28920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28921 $as_echo "no" >&6; }
28922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->follow_link() passes nameidata" >&5
28923 $as_echo_n "checking whether iops->follow_link() passes nameidata... " >&6; }
28926 cat confdefs.h
- <<_ACEOF >conftest.c
28929 #include <linux/fs.h>
28930 void *follow_link(struct dentry *de, struct
28931 nameidata *nd) { return (void *)NULL; }
28932 static struct inode_operations
28933 iops __attribute__ ((unused)) = {
28934 .follow_link = follow_link,
28950 cat - <<_ACEOF >conftest.h
28955 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28956 echo "obj-m := conftest.o" >build
/Makefile
28958 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28959 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28961 (eval $ac_try) 2>&5
28963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28964 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28965 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28966 (eval $ac_try) 2>&5
28968 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28969 test $ac_status = 0; }; }; then :
28971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28972 $as_echo "yes" >&6; }
28974 $as_echo "#define HAVE_FOLLOW_LINK_NAMEIDATA 1" >>confdefs.h
28978 $as_echo "$as_me: failed program was:" >&5
28979 sed 's/^/| /' conftest.
$ac_ext >&5
28981 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
29015 cat confdefs.h
- <<_ACEOF >conftest.c
29018 #if !defined(HAVE_GET_LINK_DELAYED)
29019 #error "Expecting get_link() delayed done"
29035 cat - <<_ACEOF >conftest.h
29040 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29041 echo "obj-m := conftest.o" >build
/Makefile
29043 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29044 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29045 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29046 (eval $ac_try) 2>&5
29048 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29049 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29051 (eval $ac_try) 2>&5
29053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29054 test $ac_status = 0; }; }; then :
29057 $as_echo "#define HAVE_PUT_LINK_DELAYED 1" >>confdefs.h
29061 $as_echo "$as_me: failed program was:" >&5
29062 sed 's/^/| /' conftest.
$ac_ext >&5
29064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes cookie" >&5
29065 $as_echo_n "checking whether iops->put_link() passes cookie... " >&6; }
29068 cat confdefs.h
- <<_ACEOF >conftest.c
29071 #include <linux/fs.h>
29072 void put_link(struct inode *ip, void *cookie)
29074 static struct inode_operations
29075 iops __attribute__ ((unused)) = {
29076 .put_link = put_link,
29092 cat - <<_ACEOF >conftest.h
29097 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29098 echo "obj-m := conftest.o" >build
/Makefile
29100 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29101 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29103 (eval $ac_try) 2>&5
29105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29106 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29108 (eval $ac_try) 2>&5
29110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29111 test $ac_status = 0; }; }; then :
29113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29114 $as_echo "yes" >&6; }
29116 $as_echo "#define HAVE_PUT_LINK_COOKIE 1" >>confdefs.h
29120 $as_echo "$as_me: failed program was:" >&5
29121 sed 's/^/| /' conftest.
$ac_ext >&5
29123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29124 $as_echo "no" >&6; }
29125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->put_link() passes nameidata" >&5
29126 $as_echo_n "checking whether iops->put_link() passes nameidata... " >&6; }
29129 cat confdefs.h
- <<_ACEOF >conftest.c
29132 #include <linux/fs.h>
29133 void put_link(struct dentry *de, struct
29134 nameidata *nd, void *ptr) { return; }
29135 static struct inode_operations
29136 iops __attribute__ ((unused)) = {
29137 .put_link = put_link,
29153 cat - <<_ACEOF >conftest.h
29158 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29159 echo "obj-m := conftest.o" >build
/Makefile
29161 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29162 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29164 (eval $ac_try) 2>&5
29166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29167 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29169 (eval $ac_try) 2>&5
29171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29172 test $ac_status = 0; }; }; then :
29174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29175 $as_echo "yes" >&6; }
29177 $as_echo "#define HAVE_PUT_LINK_NAMEIDATA 1" >>confdefs.h
29181 $as_echo "$as_me: failed program was:" >&5
29182 sed 's/^/| /' conftest.
$ac_ext >&5
29184 as_fn_error $?
"no; please file a bug report" "$LINENO" 5
29208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
29209 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
29212 cat confdefs.h
- <<_ACEOF >conftest.c
29215 #include <linux/fs.h>
29216 void truncate_range(struct inode *inode, loff_t start,
29217 loff_t end) { return; }
29218 static struct inode_operations iops __attribute__ ((unused)) = {
29219 .truncate_range = truncate_range,
29235 cat - <<_ACEOF >conftest.h
29240 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29241 echo "obj-m := conftest.o" >build
/Makefile
29243 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29244 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
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; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29250 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29251 (eval $ac_try) 2>&5
29253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29254 test $ac_status = 0; }; }; then :
29256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29257 $as_echo "yes" >&6; }
29259 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
29263 $as_echo "$as_me: failed program was:" >&5
29264 sed 's/^/| /' conftest.
$ac_ext >&5
29266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29267 $as_echo "no" >&6; }
29277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
29278 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
29281 cat confdefs.h
- <<_ACEOF >conftest.c
29284 #include <linux/dcache.h>
29285 struct vfsmount *d_automount(struct path *p) { return NULL; }
29286 struct dentry_operations dops __attribute__ ((unused)) = {
29287 .d_automount = d_automount,
29303 cat - <<_ACEOF >conftest.h
29308 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29309 echo "obj-m := conftest.o" >build
/Makefile
29311 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29312 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
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; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29319 (eval $ac_try) 2>&5
29321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29322 test $ac_status = 0; }; }; then :
29324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29325 $as_echo "yes" >&6; }
29327 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
29331 $as_echo "$as_me: failed program was:" >&5
29332 sed 's/^/| /' conftest.
$ac_ext >&5
29334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29335 $as_echo "no" >&6; }
29345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
29346 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
29349 cat confdefs.h
- <<_ACEOF >conftest.c
29352 #include <linux/exportfs.h>
29353 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
29354 struct inode *parent) { return 0; }
29355 static struct export_operations eops __attribute__ ((unused))={
29356 .encode_fh = encode_fh,
29372 cat - <<_ACEOF >conftest.h
29377 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29378 echo "obj-m := conftest.o" >build
/Makefile
29380 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29381 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
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; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29388 (eval $ac_try) 2>&5
29390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29391 test $ac_status = 0; }; }; then :
29393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29394 $as_echo "yes" >&6; }
29396 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
29400 $as_echo "$as_me: failed program was:" >&5
29401 sed 's/^/| /' conftest.
$ac_ext >&5
29403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29404 $as_echo "no" >&6; }
29414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
29415 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
29418 cat confdefs.h
- <<_ACEOF >conftest.c
29421 #include <linux/exportfs.h>
29422 int commit_metadata(struct inode *inode) { return 0; }
29423 static struct export_operations eops __attribute__ ((unused))={
29424 .commit_metadata = commit_metadata,
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_COMMIT_METADATA 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; }
29481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
29482 $as_echo_n "checking whether clear_inode() is available... " >&6; }
29486 cat confdefs.h
- <<_ACEOF >conftest.c
29489 #include <linux/fs.h>
29505 cat - <<_ACEOF >conftest.h
29510 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29511 echo "obj-m := conftest.o" >build
/Makefile
29513 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29514 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29516 (eval $ac_try) 2>&5
29518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29519 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29521 (eval $ac_try) 2>&5
29523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29524 test $ac_status = 0; }; }; then :
29527 $as_echo "$as_me: failed program was:" >&5
29528 sed 's/^/| /' conftest.
$ac_ext >&5
29536 if test $rc -ne 0; then :
29538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29539 $as_echo "no" >&6; }
29542 if test "x$enable_linux_builtin" != xyes
; then
29544 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
29545 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
29547 if test $rc -ne 0; then
29549 for file in fs
/inode.c
; do
29550 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
29551 "$LINUX/$file" 2>/dev
/null
29553 if test $rc -eq 0; then
29558 if test $export -eq 0; then :
29568 if test $rc -ne 0; then :
29570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29571 $as_echo "no" >&6; }
29575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29576 $as_echo "yes" >&6; }
29578 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
29585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
29586 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
29590 cat confdefs.h
- <<_ACEOF >conftest.c
29593 #include <linux/fs.h>
29599 insert_inode_locked(NULL);
29609 cat - <<_ACEOF >conftest.h
29614 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29615 echo "obj-m := conftest.o" >build
/Makefile
29617 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29618 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29619 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29620 (eval $ac_try) 2>&5
29622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29623 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29625 (eval $ac_try) 2>&5
29627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29628 test $ac_status = 0; }; }; then :
29631 $as_echo "$as_me: failed program was:" >&5
29632 sed 's/^/| /' conftest.
$ac_ext >&5
29640 if test $rc -ne 0; then :
29642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29643 $as_echo "no" >&6; }
29646 if test "x$enable_linux_builtin" != xyes
; then
29648 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
29649 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
29651 if test $rc -ne 0; then
29653 for file in fs
/inode.c
; do
29654 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
29655 "$LINUX/$file" 2>/dev
/null
29657 if test $rc -eq 0; then
29662 if test $export -eq 0; then :
29672 if test $rc -ne 0; then :
29674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29675 $as_echo "no" >&6; }
29679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29680 $as_echo "yes" >&6; }
29682 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
29689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
29690 $as_echo_n "checking whether d_make_root() is available... " >&6; }
29694 cat confdefs.h
- <<_ACEOF >conftest.c
29697 #include <linux/dcache.h>
29713 cat - <<_ACEOF >conftest.h
29718 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29719 echo "obj-m := conftest.o" >build
/Makefile
29721 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29722 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
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; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29728 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29729 (eval $ac_try) 2>&5
29731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29732 test $ac_status = 0; }; }; then :
29735 $as_echo "$as_me: failed program was:" >&5
29736 sed 's/^/| /' conftest.
$ac_ext >&5
29744 if test $rc -ne 0; then :
29746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29747 $as_echo "no" >&6; }
29750 if test "x$enable_linux_builtin" != xyes
; then
29752 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
29753 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
29755 if test $rc -ne 0; then
29757 for file in fs
/dcache.c
; do
29758 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
29759 "$LINUX/$file" 2>/dev
/null
29761 if test $rc -eq 0; then
29766 if test $export -eq 0; then :
29776 if test $rc -ne 0; then :
29778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29779 $as_echo "no" >&6; }
29783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29784 $as_echo "yes" >&6; }
29786 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
29793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
29794 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
29798 cat confdefs.h
- <<_ACEOF >conftest.c
29801 #include <linux/dcache.h>
29807 d_obtain_alias(NULL);
29817 cat - <<_ACEOF >conftest.h
29822 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29823 echo "obj-m := conftest.o" >build
/Makefile
29825 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29826 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29827 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29828 (eval $ac_try) 2>&5
29830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29831 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29832 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29833 (eval $ac_try) 2>&5
29835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29836 test $ac_status = 0; }; }; then :
29839 $as_echo "$as_me: failed program was:" >&5
29840 sed 's/^/| /' conftest.
$ac_ext >&5
29848 if test $rc -ne 0; then :
29850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29851 $as_echo "no" >&6; }
29854 if test "x$enable_linux_builtin" != xyes
; then
29856 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
29857 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
29859 if test $rc -ne 0; then
29861 for file in fs
/dcache.c
; do
29862 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
29863 "$LINUX/$file" 2>/dev
/null
29865 if test $rc -eq 0; then
29870 if test $export -eq 0; then :
29880 if test $rc -ne 0; then :
29882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29883 $as_echo "no" >&6; }
29887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29888 $as_echo "yes" >&6; }
29890 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
29897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
29898 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
29902 cat confdefs.h
- <<_ACEOF >conftest.c
29905 #include <linux/dcache.h>
29911 struct inode *ip = NULL;
29912 d_prune_aliases(ip);
29922 cat - <<_ACEOF >conftest.h
29927 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29928 echo "obj-m := conftest.o" >build
/Makefile
29930 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29931 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29933 (eval $ac_try) 2>&5
29935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29936 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29938 (eval $ac_try) 2>&5
29940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29941 test $ac_status = 0; }; }; then :
29944 $as_echo "$as_me: failed program was:" >&5
29945 sed 's/^/| /' conftest.
$ac_ext >&5
29953 if test $rc -ne 0; then :
29955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29956 $as_echo "no" >&6; }
29959 if test "x$enable_linux_builtin" != xyes
; then
29961 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
29962 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
29964 if test $rc -ne 0; then
29966 for file in fs
/dcache.c
; do
29967 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
29968 "$LINUX/$file" 2>/dev
/null
29970 if test $rc -eq 0; then
29975 if test $export -eq 0; then :
29985 if test $rc -ne 0; then :
29987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29988 $as_echo "no" >&6; }
29992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29993 $as_echo "yes" >&6; }
29995 $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
30002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
30003 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
30007 cat confdefs.h
- <<_ACEOF >conftest.c
30010 #include <linux/dcache.h>
30016 d_set_d_op(NULL, NULL);
30026 cat - <<_ACEOF >conftest.h
30031 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30032 echo "obj-m := conftest.o" >build
/Makefile
30034 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30035 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30036 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30037 (eval $ac_try) 2>&5
30039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30040 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30042 (eval $ac_try) 2>&5
30044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30045 test $ac_status = 0; }; }; then :
30048 $as_echo "$as_me: failed program was:" >&5
30049 sed 's/^/| /' conftest.
$ac_ext >&5
30057 if test $rc -ne 0; then :
30059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30060 $as_echo "no" >&6; }
30063 if test "x$enable_linux_builtin" != xyes
; then
30065 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
30066 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
30068 if test $rc -ne 0; then
30070 for file in fs
/dcache.c
; do
30071 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
30072 "$LINUX/$file" 2>/dev
/null
30074 if test $rc -eq 0; then
30079 if test $export -eq 0; then :
30089 if test $rc -ne 0; then :
30091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30092 $as_echo "no" >&6; }
30096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30097 $as_echo "yes" >&6; }
30099 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
30107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
30108 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
30111 cat confdefs.h
- <<_ACEOF >conftest.c
30114 #include <linux/dcache.h>
30116 int revalidate (struct dentry *dentry,
30117 struct nameidata *nidata) { return 0; }
30119 static const struct dentry_operations
30120 dops __attribute__ ((unused)) = {
30121 .d_revalidate = revalidate,
30137 cat - <<_ACEOF >conftest.h
30142 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30143 echo "obj-m := conftest.o" >build
/Makefile
30145 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30146 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30147 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30148 (eval $ac_try) 2>&5
30150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30151 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30152 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30153 (eval $ac_try) 2>&5
30155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30156 test $ac_status = 0; }; }; then :
30158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30159 $as_echo "yes" >&6; }
30161 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
30165 $as_echo "$as_me: failed program was:" >&5
30166 sed 's/^/| /' conftest.
$ac_ext >&5
30168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30169 $as_echo "no" >&6; }
30179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
30180 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
30183 cat confdefs.h
- <<_ACEOF >conftest.c
30186 #include <linux/dcache.h>
30188 const struct dentry_operations test_d_op = {
30189 .d_revalidate = NULL,
30196 struct dentry d __attribute__ ((unused));
30198 d.d_op = &test_d_op;
30208 cat - <<_ACEOF >conftest.h
30213 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30214 echo "obj-m := conftest.o" >build
/Makefile
30216 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30217 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30219 (eval $ac_try) 2>&5
30221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30222 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30224 (eval $ac_try) 2>&5
30226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30227 test $ac_status = 0; }; }; then :
30229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30230 $as_echo "yes" >&6; }
30232 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
30236 $as_echo "$as_me: failed program was:" >&5
30237 sed 's/^/| /' conftest.
$ac_ext >&5
30239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30240 $as_echo "no" >&6; }
30249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5
30250 $as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
30254 cat confdefs.h
- <<_ACEOF >conftest.c
30257 #include <linux/fs.h>
30263 check_disk_size_change(NULL, NULL);
30273 cat - <<_ACEOF >conftest.h
30278 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30279 echo "obj-m := conftest.o" >build
/Makefile
30281 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30282 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30284 (eval $ac_try) 2>&5
30286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30287 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30288 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30289 (eval $ac_try) 2>&5
30291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30292 test $ac_status = 0; }; }; then :
30295 $as_echo "$as_me: failed program was:" >&5
30296 sed 's/^/| /' conftest.
$ac_ext >&5
30304 if test $rc -ne 0; then :
30306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30307 $as_echo "no" >&6; }
30310 if test "x$enable_linux_builtin" != xyes
; then
30312 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
30313 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
30315 if test $rc -ne 0; then
30317 for file in fs
/block_dev.c
; do
30318 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
30319 "$LINUX/$file" 2>/dev
/null
30321 if test $rc -eq 0; then
30326 if test $export -eq 0; then :
30336 if test $rc -ne 0; then :
30338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30339 $as_echo "no" >&6; }
30343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30344 $as_echo "yes" >&6; }
30346 $as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h
30353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
30354 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
30358 cat confdefs.h
- <<_ACEOF >conftest.c
30361 #include <linux/mm.h>
30367 truncate_setsize(NULL, 0);
30377 cat - <<_ACEOF >conftest.h
30382 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30383 echo "obj-m := conftest.o" >build
/Makefile
30385 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30386 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30387 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30388 (eval $ac_try) 2>&5
30390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30391 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30393 (eval $ac_try) 2>&5
30395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30396 test $ac_status = 0; }; }; then :
30399 $as_echo "$as_me: failed program was:" >&5
30400 sed 's/^/| /' conftest.
$ac_ext >&5
30408 if test $rc -ne 0; then :
30410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30411 $as_echo "no" >&6; }
30414 if test "x$enable_linux_builtin" != xyes
; then
30416 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
30417 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
30419 if test $rc -ne 0; then
30421 for file in mm
/truncate.c
; do
30422 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
30423 "$LINUX/$file" 2>/dev
/null
30425 if test $rc -eq 0; then
30430 if test $export -eq 0; then :
30440 if test $rc -ne 0; then :
30442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30443 $as_echo "no" >&6; }
30447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30448 $as_echo "yes" >&6; }
30450 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
30458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
30459 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
30462 cat confdefs.h
- <<_ACEOF >conftest.c
30465 #include <linux/security.h>
30471 struct inode *ip __attribute__ ((unused)) = NULL;
30472 struct inode *dip __attribute__ ((unused)) = NULL;
30473 const struct qstr *str __attribute__ ((unused)) = NULL;
30474 char *name __attribute__ ((unused)) = NULL;
30475 void *value __attribute__ ((unused)) = NULL;
30476 size_t len __attribute__ ((unused)) = 0;
30478 security_inode_init_security(ip, dip, str, &name, &value, &len);
30488 cat - <<_ACEOF >conftest.h
30493 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30494 echo "obj-m := conftest.o" >build
/Makefile
30496 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30497 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30499 (eval $ac_try) 2>&5
30501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30502 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30504 (eval $ac_try) 2>&5
30506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30507 test $ac_status = 0; }; }; then :
30509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30510 $as_echo "yes" >&6; }
30512 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
30516 $as_echo "$as_me: failed program was:" >&5
30517 sed 's/^/| /' conftest.
$ac_ext >&5
30519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30520 $as_echo "no" >&6; }
30530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
30531 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
30534 cat confdefs.h
- <<_ACEOF >conftest.c
30537 #include <linux/security.h>
30543 struct inode *ip __attribute__ ((unused)) = NULL;
30544 struct inode *dip __attribute__ ((unused)) = NULL;
30545 const struct qstr *str __attribute__ ((unused)) = NULL;
30546 initxattrs func __attribute__ ((unused)) = NULL;
30548 security_inode_init_security(ip, dip, str, func, NULL);
30558 cat - <<_ACEOF >conftest.h
30563 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30564 echo "obj-m := conftest.o" >build
/Makefile
30566 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30567 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
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; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30574 (eval $ac_try) 2>&5
30576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30577 test $ac_status = 0; }; }; then :
30579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30580 $as_echo "yes" >&6; }
30582 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
30586 $as_echo "$as_me: failed program was:" >&5
30587 sed 's/^/| /' conftest.
$ac_ext >&5
30589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30590 $as_echo "no" >&6; }
30599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
30600 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
30604 cat confdefs.h
- <<_ACEOF >conftest.c
30607 #include <linux/fs.h>
30613 mount_nodev(NULL, 0, NULL, NULL);
30623 cat - <<_ACEOF >conftest.h
30628 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30629 echo "obj-m := conftest.o" >build
/Makefile
30631 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30632 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30634 (eval $ac_try) 2>&5
30636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30637 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30638 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30639 (eval $ac_try) 2>&5
30641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30642 test $ac_status = 0; }; }; then :
30645 $as_echo "$as_me: failed program was:" >&5
30646 sed 's/^/| /' conftest.
$ac_ext >&5
30654 if test $rc -ne 0; then :
30656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30657 $as_echo "no" >&6; }
30660 if test "x$enable_linux_builtin" != xyes
; then
30662 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
30663 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
30665 if test $rc -ne 0; then
30667 for file in fs
/super.c
; do
30668 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
30669 "$LINUX/$file" 2>/dev
/null
30671 if test $rc -eq 0; then
30676 if test $export -eq 0; then :
30686 if test $rc -ne 0; then :
30688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30689 $as_echo "no" >&6; }
30693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30694 $as_echo "yes" >&6; }
30696 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
30704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
30705 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
30708 cat confdefs.h
- <<_ACEOF >conftest.c
30711 #include <linux/fs.h>
30713 int shrink(struct shrinker *s, struct shrink_control *sc)
30716 static const struct super_block
30717 sb __attribute__ ((unused)) = {
30718 .s_shrink.shrink = shrink,
30719 .s_shrink.seeks = DEFAULT_SEEKS,
30720 .s_shrink.batch = 0,
30736 cat - <<_ACEOF >conftest.h
30741 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30742 echo "obj-m := conftest.o" >build
/Makefile
30744 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30745 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30747 (eval $ac_try) 2>&5
30749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30750 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30752 (eval $ac_try) 2>&5
30754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30755 test $ac_status = 0; }; }; then :
30757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30758 $as_echo "yes" >&6; }
30760 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
30765 $as_echo "$as_me: failed program was:" >&5
30766 sed 's/^/| /' conftest.
$ac_ext >&5
30768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30769 $as_echo "no" >&6; }
30779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
30780 $as_echo_n "checking whether shrink_control has nid... " >&6; }
30783 cat confdefs.h
- <<_ACEOF >conftest.c
30786 #include <linux/fs.h>
30792 struct shrink_control sc __attribute__ ((unused));
30793 unsigned long scnidsize __attribute__ ((unused)) =
30804 cat - <<_ACEOF >conftest.h
30809 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30810 echo "obj-m := conftest.o" >build
/Makefile
30812 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30813 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30814 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30815 (eval $ac_try) 2>&5
30817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30818 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30820 (eval $ac_try) 2>&5
30822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30823 test $ac_status = 0; }; }; then :
30825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30826 $as_echo "yes" >&6; }
30828 $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
30832 $as_echo "$as_me: failed program was:" >&5
30833 sed 's/^/| /' conftest.
$ac_ext >&5
30835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30836 $as_echo "no" >&6; }
30846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
30847 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
30850 cat confdefs.h
- <<_ACEOF >conftest.c
30853 #include <linux/fs.h>
30859 struct super_block sb __attribute__ ((unused));
30861 INIT_LIST_HEAD(&sb.s_instances);
30871 cat - <<_ACEOF >conftest.h
30876 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30877 echo "obj-m := conftest.o" >build
/Makefile
30879 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30880 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30882 (eval $ac_try) 2>&5
30884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30885 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30886 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30887 (eval $ac_try) 2>&5
30889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30890 test $ac_status = 0; }; }; then :
30892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30893 $as_echo "yes" >&6; }
30895 $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
30899 $as_echo "$as_me: failed program was:" >&5
30900 sed 's/^/| /' conftest.
$ac_ext >&5
30902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30903 $as_echo "no" >&6; }
30912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
30913 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
30916 cat confdefs.h
- <<_ACEOF >conftest.c
30919 #include <linux/fs.h>
30925 struct super_block sb __attribute__ ((unused));
30936 cat - <<_ACEOF >conftest.h
30941 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30942 echo "obj-m := conftest.o" >build
/Makefile
30944 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30945 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30946 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30947 (eval $ac_try) 2>&5
30949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30950 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30951 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30952 (eval $ac_try) 2>&5
30954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30955 test $ac_status = 0; }; }; then :
30957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30958 $as_echo "yes" >&6; }
30960 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
30964 $as_echo "$as_me: failed program was:" >&5
30965 sed 's/^/| /' conftest.
$ac_ext >&5
30967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30968 $as_echo "no" >&6; }
30978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
30979 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
30983 cat confdefs.h
- <<_ACEOF >conftest.c
30986 #include <linux/backing-dev.h>
30987 struct backing_dev_info bdi;
30993 char *name = "bdi";
30994 int error __attribute__((unused)) =
30995 bdi_setup_and_register(&bdi, name);
31005 cat - <<_ACEOF >conftest.h
31010 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31011 echo "obj-m := conftest.o" >build
/Makefile
31013 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31014 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31016 (eval $ac_try) 2>&5
31018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31019 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31021 (eval $ac_try) 2>&5
31023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31024 test $ac_status = 0; }; }; then :
31027 $as_echo "$as_me: failed program was:" >&5
31028 sed 's/^/| /' conftest.
$ac_ext >&5
31036 if test $rc -ne 0; then :
31038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31039 $as_echo "no" >&6; }
31040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
31041 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
31045 cat confdefs.h
- <<_ACEOF >conftest.c
31048 #include <linux/backing-dev.h>
31049 struct backing_dev_info bdi;
31055 char *name = "bdi";
31056 unsigned int cap = BDI_CAP_MAP_COPY;
31057 int error __attribute__((unused)) =
31058 bdi_setup_and_register(&bdi, name, cap);
31068 cat - <<_ACEOF >conftest.h
31073 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31074 echo "obj-m := conftest.o" >build
/Makefile
31076 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31077 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31078 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31079 (eval $ac_try) 2>&5
31081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31082 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31083 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31084 (eval $ac_try) 2>&5
31086 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31087 test $ac_status = 0; }; }; then :
31090 $as_echo "$as_me: failed program was:" >&5
31091 sed 's/^/| /' conftest.
$ac_ext >&5
31099 if test $rc -ne 0; then :
31101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31102 $as_echo "no" >&6; }
31105 if test "x$enable_linux_builtin" != xyes
; then
31107 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
31108 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
31110 if test $rc -ne 0; then
31112 for file in mm
/backing-dev.c
; do
31113 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
31114 "$LINUX/$file" 2>/dev
/null
31116 if test $rc -eq 0; then
31121 if test $export -eq 0; then :
31131 if test $rc -ne 0; then :
31133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31134 $as_echo "no" >&6; }
31138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31139 $as_echo "yes" >&6; }
31141 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
31149 if test "x$enable_linux_builtin" != xyes
; then
31151 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
31152 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
31154 if test $rc -ne 0; then
31156 for file in mm
/backing-dev.c
; do
31157 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
31158 "$LINUX/$file" 2>/dev
/null
31160 if test $rc -eq 0; then
31165 if test $export -eq 0; then :
31175 if test $rc -ne 0; then :
31177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31178 $as_echo "no" >&6; }
31179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
31180 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
31184 cat confdefs.h
- <<_ACEOF >conftest.c
31187 #include <linux/backing-dev.h>
31188 struct backing_dev_info bdi;
31194 char *name = "bdi";
31195 unsigned int cap = BDI_CAP_MAP_COPY;
31196 int error __attribute__((unused)) =
31197 bdi_setup_and_register(&bdi, name, cap);
31207 cat - <<_ACEOF >conftest.h
31212 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31213 echo "obj-m := conftest.o" >build
/Makefile
31215 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31216 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31218 (eval $ac_try) 2>&5
31220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31221 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31222 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31223 (eval $ac_try) 2>&5
31225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31226 test $ac_status = 0; }; }; then :
31229 $as_echo "$as_me: failed program was:" >&5
31230 sed 's/^/| /' conftest.
$ac_ext >&5
31238 if test $rc -ne 0; then :
31240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31241 $as_echo "no" >&6; }
31244 if test "x$enable_linux_builtin" != xyes
; then
31246 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
31247 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
31249 if test $rc -ne 0; then
31251 for file in mm
/backing-dev.c
; do
31252 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
31253 "$LINUX/$file" 2>/dev
/null
31255 if test $rc -eq 0; then
31260 if test $export -eq 0; then :
31270 if test $rc -ne 0; then :
31272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31273 $as_echo "no" >&6; }
31277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31278 $as_echo "yes" >&6; }
31280 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
31289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31290 $as_echo "yes" >&6; }
31292 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
31300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
31301 $as_echo_n "checking whether set_nlink() is available... " >&6; }
31304 cat confdefs.h
- <<_ACEOF >conftest.c
31307 #include <linux/fs.h>
31314 unsigned int link = 0;
31315 (void) set_nlink(&node, link);
31325 cat - <<_ACEOF >conftest.h
31330 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31331 echo "obj-m := conftest.o" >build
/Makefile
31333 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31334 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31335 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31336 (eval $ac_try) 2>&5
31338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31339 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31340 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31341 (eval $ac_try) 2>&5
31343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31344 test $ac_status = 0; }; }; then :
31346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31347 $as_echo "yes" >&6; }
31349 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
31353 $as_echo "$as_me: failed program was:" >&5
31354 sed 's/^/| /' conftest.
$ac_ext >&5
31356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31357 $as_echo "no" >&6; }
31367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
31368 $as_echo_n "checking whether elevator_change() is available... " >&6; }
31369 tmp_flags
="$EXTRA_KCFLAGS"
31370 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
31373 cat confdefs.h
- <<_ACEOF >conftest.c
31376 #include <linux/blkdev.h>
31377 #include <linux/elevator.h>
31384 struct request_queue *q = NULL;
31385 char *elevator = NULL;
31386 ret = elevator_change(q, elevator);
31396 cat - <<_ACEOF >conftest.h
31401 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31402 echo "obj-m := conftest.o" >build
/Makefile
31404 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31405 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31406 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31407 (eval $ac_try) 2>&5
31409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31410 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31411 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31412 (eval $ac_try) 2>&5
31414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31415 test $ac_status = 0; }; }; then :
31417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31418 $as_echo "yes" >&6; }
31420 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
31424 $as_echo "$as_me: failed program was:" >&5
31425 sed 's/^/| /' conftest.
$ac_ext >&5
31427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31428 $as_echo "no" >&6; }
31436 EXTRA_KCFLAGS
="$tmp_flags"
31438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
31439 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
31442 cat confdefs.h
- <<_ACEOF >conftest.c
31445 #include <linux/fs.h>
31451 struct file_system_type *type = NULL;
31452 int (*test)(struct super_block *,void *) = NULL;
31453 int (*set)(struct super_block *,void *) = NULL;
31456 (void) sget(type, test, set, flags, data);
31466 cat - <<_ACEOF >conftest.h
31471 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31472 echo "obj-m := conftest.o" >build
/Makefile
31474 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31475 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31476 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31477 (eval $ac_try) 2>&5
31479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31480 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31482 (eval $ac_try) 2>&5
31484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31485 test $ac_status = 0; }; }; then :
31487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31488 $as_echo "yes" >&6; }
31490 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
31494 $as_echo "$as_me: failed program was:" >&5
31495 sed 's/^/| /' conftest.
$ac_ext >&5
31497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31498 $as_echo "no" >&6; }
31507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
31508 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
31512 cat confdefs.h
- <<_ACEOF >conftest.c
31515 #include <linux/fs.h>
31521 struct file *fp __attribute__ ((unused)) = NULL;
31522 struct inode *ip __attribute__ ((unused)) = NULL;
31523 loff_t offset __attribute__ ((unused)) = 0;
31524 loff_t maxsize __attribute__ ((unused)) = 0;
31526 lseek_execute(fp, ip, offset, maxsize);
31536 cat - <<_ACEOF >conftest.h
31541 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31542 echo "obj-m := conftest.o" >build
/Makefile
31544 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31545 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31547 (eval $ac_try) 2>&5
31549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31550 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31552 (eval $ac_try) 2>&5
31554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31555 test $ac_status = 0; }; }; then :
31558 $as_echo "$as_me: failed program was:" >&5
31559 sed 's/^/| /' conftest.
$ac_ext >&5
31567 if test $rc -ne 0; then :
31569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31570 $as_echo "no" >&6; }
31573 if test "x$enable_linux_builtin" != xyes
; then
31575 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
31576 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
31578 if test $rc -ne 0; then
31580 for file in fs
/read_write.c
; do
31581 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
31582 "$LINUX/$file" 2>/dev
/null
31584 if test $rc -eq 0; then
31589 if test $export -eq 0; then :
31599 if test $rc -ne 0; then :
31601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31602 $as_echo "no" >&6; }
31606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31607 $as_echo "yes" >&6; }
31609 $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
31617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
31618 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
31621 cat confdefs.h
- <<_ACEOF >conftest.c
31624 #include <linux/fs.h>
31625 int iterate(struct file *filp, struct dir_context * context)
31628 static const struct file_operations fops
31629 __attribute__ ((unused)) = {
31630 .iterate = iterate,
31646 cat - <<_ACEOF >conftest.h
31651 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31652 echo "obj-m := conftest.o" >build
/Makefile
31654 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31655 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31656 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31657 (eval $ac_try) 2>&5
31659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31660 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31661 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31662 (eval $ac_try) 2>&5
31664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31665 test $ac_status = 0; }; }; then :
31667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31668 $as_echo "yes" >&6; }
31670 $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
31674 $as_echo "$as_me: failed program was:" >&5
31675 sed 's/^/| /' conftest.
$ac_ext >&5
31677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31678 $as_echo "no" >&6; }
31680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
31681 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
31684 cat confdefs.h
- <<_ACEOF >conftest.c
31687 #include <linux/fs.h>
31688 int readdir(struct file *filp, void *entry, filldir_t func)
31691 static const struct file_operations fops
31692 __attribute__ ((unused)) = {
31693 .readdir = readdir,
31709 cat - <<_ACEOF >conftest.h
31714 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31715 echo "obj-m := conftest.o" >build
/Makefile
31717 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31718 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31720 (eval $ac_try) 2>&5
31722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31723 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31724 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31725 (eval $ac_try) 2>&5
31727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31728 test $ac_status = 0; }; }; then :
31730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31731 $as_echo "yes" >&6; }
31733 $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
31737 $as_echo "$as_me: failed program was:" >&5
31738 sed 's/^/| /' conftest.
$ac_ext >&5
31740 as_fn_error $?
"no; file a bug report with ZFSOnLinux" "$LINENO" 5
31757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
31758 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
31761 cat confdefs.h
- <<_ACEOF >conftest.c
31764 #include <linux/fs.h>
31766 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
31768 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
31771 static const struct file_operations
31772 fops __attribute__ ((unused)) = {
31773 .read_iter = test_read,
31774 .write_iter = test_write,
31790 cat - <<_ACEOF >conftest.h
31795 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31796 echo "obj-m := conftest.o" >build
/Makefile
31798 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31799 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31801 (eval $ac_try) 2>&5
31803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31804 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31806 (eval $ac_try) 2>&5
31808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31809 test $ac_status = 0; }; }; then :
31811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31812 $as_echo "yes" >&6; }
31814 $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
31818 $as_echo "$as_me: failed program was:" >&5
31819 sed 's/^/| /' conftest.
$ac_ext >&5
31821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31822 $as_echo "no" >&6; }
31831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic_write_checks() takes kiocb" >&5
31832 $as_echo_n "checking whether generic_write_checks() takes kiocb... " >&6; }
31835 cat confdefs.h
- <<_ACEOF >conftest.c
31838 #include <linux/fs.h>
31845 struct kiocb *iocb = NULL;
31846 struct iov_iter *iov = NULL;
31847 generic_write_checks(iocb, iov);
31857 cat - <<_ACEOF >conftest.h
31862 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31863 echo "obj-m := conftest.o" >build
/Makefile
31865 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31866 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31868 (eval $ac_try) 2>&5
31870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31871 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31873 (eval $ac_try) 2>&5
31875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31876 test $ac_status = 0; }; }; then :
31878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31879 $as_echo "yes" >&6; }
31881 $as_echo "#define HAVE_GENERIC_WRITE_CHECKS_KIOCB 1" >>confdefs.h
31885 $as_echo "$as_me: failed program was:" >&5
31886 sed 's/^/| /' conftest.
$ac_ext >&5
31888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31889 $as_echo "no" >&6; }
31899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kmap_atomic wants 1 args" >&5
31900 $as_echo_n "checking whether kmap_atomic wants 1 args... " >&6; }
31903 cat confdefs.h
- <<_ACEOF >conftest.c
31906 #include <linux/pagemap.h>
31913 kmap_atomic(&page);
31923 cat - <<_ACEOF >conftest.h
31928 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31929 echo "obj-m := conftest.o" >build
/Makefile
31931 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31932 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31934 (eval $ac_try) 2>&5
31936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31937 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
31938 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
31939 (eval $ac_try) 2>&5
31941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31942 test $ac_status = 0; }; }; then :
31944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31945 $as_echo "yes" >&6; }
31947 $as_echo "#define HAVE_1ARG_KMAP_ATOMIC 1" >>confdefs.h
31951 $as_echo "$as_me: failed program was:" >&5
31952 sed 's/^/| /' conftest.
$ac_ext >&5
31954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31955 $as_echo "no" >&6; }
31965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether follow_down_one() is available" >&5
31966 $as_echo_n "checking whether follow_down_one() is available... " >&6; }
31969 cat confdefs.h
- <<_ACEOF >conftest.c
31972 #include <linux/namei.h>
31978 struct path *p = NULL;
31979 follow_down_one(p);
31989 cat - <<_ACEOF >conftest.h
31994 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
31995 echo "obj-m := conftest.o" >build
/Makefile
31997 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
31998 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
31999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32000 (eval $ac_try) 2>&5
32002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32003 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32005 (eval $ac_try) 2>&5
32007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32008 test $ac_status = 0; }; }; then :
32010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32011 $as_echo "yes" >&6; }
32013 $as_echo "#define HAVE_FOLLOW_DOWN_ONE 1" >>confdefs.h
32017 $as_echo "$as_me: failed program was:" >&5
32018 sed 's/^/| /' conftest.
$ac_ext >&5
32020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32021 $as_echo "no" >&6; }
32031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns int" >&5
32032 $as_echo_n "checking whether make_request_fn() returns int... " >&6; }
32035 cat confdefs.h
- <<_ACEOF >conftest.c
32038 #include <linux/blkdev.h>
32040 int make_request(struct request_queue *q, struct bio *bio)
32049 blk_queue_make_request(NULL, &make_request);
32059 cat - <<_ACEOF >conftest.h
32064 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32065 echo "obj-m := conftest.o" >build
/Makefile
32067 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32068 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32070 (eval $ac_try) 2>&5
32072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32073 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32074 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32075 (eval $ac_try) 2>&5
32077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32078 test $ac_status = 0; }; }; then :
32080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32081 $as_echo "yes" >&6; }
32083 $as_echo "#define MAKE_REQUEST_FN_RET int" >>confdefs.h
32086 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_INT 1" >>confdefs.h
32090 $as_echo "$as_me: failed program was:" >&5
32091 sed 's/^/| /' conftest.
$ac_ext >&5
32093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32094 $as_echo "no" >&6; }
32095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns void" >&5
32096 $as_echo_n "checking whether make_request_fn() returns void... " >&6; }
32099 cat confdefs.h
- <<_ACEOF >conftest.c
32102 #include <linux/blkdev.h>
32104 void make_request(struct request_queue *q, struct bio *bio)
32113 blk_queue_make_request(NULL, &make_request);
32123 cat - <<_ACEOF >conftest.h
32128 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32129 echo "obj-m := conftest.o" >build
/Makefile
32131 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32132 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32133 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32134 (eval $ac_try) 2>&5
32136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32137 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32138 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32139 (eval $ac_try) 2>&5
32141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32142 test $ac_status = 0; }; }; then :
32144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32145 $as_echo "yes" >&6; }
32147 $as_echo "#define MAKE_REQUEST_FN_RET void" >>confdefs.h
32151 $as_echo "$as_me: failed program was:" >&5
32152 sed 's/^/| /' conftest.
$ac_ext >&5
32154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32155 $as_echo "no" >&6; }
32156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether make_request_fn() returns blk_qc_t" >&5
32157 $as_echo_n "checking whether make_request_fn() returns blk_qc_t... " >&6; }
32160 cat confdefs.h
- <<_ACEOF >conftest.c
32163 #include <linux/blkdev.h>
32165 blk_qc_t make_request(struct request_queue *q, struct bio *bio)
32167 return (BLK_QC_T_NONE);
32174 blk_queue_make_request(NULL, &make_request);
32184 cat - <<_ACEOF >conftest.h
32189 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32190 echo "obj-m := conftest.o" >build
/Makefile
32192 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32193 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32194 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32195 (eval $ac_try) 2>&5
32197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32198 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32199 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32200 (eval $ac_try) 2>&5
32202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32203 test $ac_status = 0; }; }; then :
32205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32206 $as_echo "yes" >&6; }
32208 $as_echo "#define MAKE_REQUEST_FN_RET blk_qc_t" >>confdefs.h
32211 $as_echo "#define HAVE_MAKE_REQUEST_FN_RET_QC 1" >>confdefs.h
32215 $as_echo "$as_me: failed program was:" >&5
32216 sed 's/^/| /' conftest.
$ac_ext >&5
32218 as_fn_error $?
"no - Please file a bug report at
32219 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
32243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether generic IO accounting symbols are avaliable" >&5
32244 $as_echo_n "checking whether generic IO accounting symbols are avaliable... " >&6; }
32248 cat confdefs.h
- <<_ACEOF >conftest.c
32251 #include <linux/bio.h>
32253 void (*generic_start_io_acct_f)(int, unsigned long,
32254 struct hd_struct *) = &generic_start_io_acct;
32255 void (*generic_end_io_acct_f)(int, struct hd_struct *,
32256 unsigned long) = &generic_end_io_acct;
32262 generic_start_io_acct(0, 0, NULL);
32263 generic_end_io_acct(0, NULL, 0);
32273 cat - <<_ACEOF >conftest.h
32278 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
32279 echo "obj-m := conftest.o" >build
/Makefile
32281 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
32282 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
32283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32284 (eval $ac_try) 2>&5
32286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32287 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
32288 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
32289 (eval $ac_try) 2>&5
32291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
32292 test $ac_status = 0; }; }; then :
32295 $as_echo "$as_me: failed program was:" >&5
32296 sed 's/^/| /' conftest.
$ac_ext >&5
32304 if test $rc -ne 0; then :
32306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32307 $as_echo "no" >&6; }
32310 if test "x$enable_linux_builtin" != xyes
; then
32312 grep -q -E '[[:space:]]generic_start_io_acct[[:space:]]' \
32313 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
32315 if test $rc -ne 0; then
32317 for file in block
/bio.c
; do
32318 grep -q -E "EXPORT_SYMBOL.*(generic_start_io_acct)" \
32319 "$LINUX/$file" 2>/dev
/null
32321 if test $rc -eq 0; then
32326 if test $export -eq 0; then :
32336 if test $rc -ne 0; then :
32338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32339 $as_echo "no" >&6; }
32343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32344 $as_echo "yes" >&6; }
32346 $as_echo "#define HAVE_GENERIC_IO_ACCT 1" >>confdefs.h
32354 if test "$LINUX_OBJ" != "$LINUX"; then :
32356 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
32362 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
32363 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_BOOL_COMPARE"
32364 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
32365 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
32371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dkms.conf file" >&5
32372 $as_echo_n "checking for dkms.conf file... " >&6; }
32373 if test -e dkms.conf
; then :
32376 *** ZFS should not be manually built in the DKMS source tree.
32377 *** Remove all ZFS packages before compiling the ZoL sources.
32378 *** Running \"make install\" breaks ZFS packages." "$LINENO" 5
32382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
32383 $as_echo "not found" >&6; }
32389 # Check whether --with-mounthelperdir was given.
32390 if test "${with_mounthelperdir+set}" = set; then :
32391 withval
=$with_mounthelperdir; mounthelperdir
=$withval
32393 mounthelperdir
=/sbin
32400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
32401 $as_echo_n "checking for udev directories... " >&6; }
32403 # Check whether --with-udevdir was given.
32404 if test "${with_udevdir+set}" = set; then :
32405 withval
=$with_udevdir; udevdir
=$withval
32411 if test "x$udevdir" = xcheck
; then :
32414 path2
=/usr
/lib
/udev
32417 if test -d "$path1"; then :
32421 if test -d "$path2"; then :
32432 # Check whether --with-udevruledir was given.
32433 if test "${with_udevruledir+set}" = set; then :
32434 withval
=$with_udevruledir; udevruledir
=$withval
32436 udevruledir
="${udevdir}/rules.d"
32442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
32443 $as_echo "$udevdir;$udevruledir" >&6; }
32448 ac_fn_c_check_header_mongrel
"$LINENO" "libaio.h" "ac_cv_header_libaio_h" "$ac_includes_default"
32449 if test "x$ac_cv_header_libaio_h" = xyes
; then :
32455 $as_echo "#define HAVE_LIBAIO 1" >>confdefs.h
32467 # Check whether --enable-systemd was given.
32468 if test "${enable_systemd+set}" = set; then :
32469 enableval
=$enable_systemd;
32476 # Check whether --with-systemdunitdir was given.
32477 if test "${with_systemdunitdir+set}" = set; then :
32478 withval
=$with_systemdunitdir; systemdunitdir
=$withval
32480 systemdunitdir
=/usr
/lib
/systemd
/system
32485 # Check whether --with-systemdpresetdir was given.
32486 if test "${with_systemdpresetdir+set}" = set; then :
32487 withval
=$with_systemdpresetdir; systemdpresetdir
=$withval
32489 systemdpresetdir
=/usr
/lib
/systemd
/system-preset
32494 # Check whether --with-systemdmodulesloaddir was given.
32495 if test "${with_systemdmodulesloaddir+set}" = set; then :
32496 withval
=$with_systemdmodulesloaddir; systemdmoduleloaddir
=$withval
32498 systemdmodulesloaddir
=/usr
/lib
/modules-load.d
32503 if test "x$enable_systemd" = xyes
; then :
32505 ZFS_INIT_SYSTEMD
=systemd
32506 ZFS_MODULE_LOAD
=modules-load.d
32507 modulesloaddir
=$systemdmodulesloaddir
32518 # Check whether --enable-sysvinit was given.
32519 if test "${enable_sysvinit+set}" = set; then :
32520 enableval
=$enable_sysvinit;
32522 enable_sysvinit
=yes
32526 if test "x$enable_sysvinit" = xyes
; then :
32527 ZFS_INIT_SYSV
=init.d
32533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
32534 $as_echo_n "checking for dracut directory... " >&6; }
32536 # Check whether --with-dracutdir was given.
32537 if test "${with_dracutdir+set}" = set; then :
32538 withval
=$with_dracutdir; dracutdir
=$withval
32544 if test "x$dracutdir" = xcheck
; then :
32546 path1
=/usr
/share
/dracut
32547 path2
=/usr
/lib
/dracut
32550 if test -d "$path1"; then :
32554 if test -d "$path2"; then :
32557 dracutdir
="$default"
32565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
32566 $as_echo "$dracutdir" >&6; }
32569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
32570 $as_echo_n "checking for target asm dir... " >&6; }
32571 TARGET_ARCH
=`echo ${target_cpu} | sed -e s/i.86/i386/`
32573 case $TARGET_ARCH in
32575 TARGET_ASM_DIR
=asm-
${TARGET_ARCH}
32578 TARGET_ASM_DIR
=asm-generic
32583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
32584 $as_echo "$TARGET_ASM_DIR" >&6; }
32589 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
32590 if test "x$ac_cv_header_zlib_h" = xyes
; then :
32593 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32596 *** zlib.h missing, zlib-devel package required
32597 See \`config.log' for more details" "$LINENO" 5; }
32602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
32603 $as_echo_n "checking for compress2 in -lz... " >&6; }
32604 if ${ac_cv_lib_z_compress2+:} false
; then :
32605 $as_echo_n "(cached) " >&6
32607 ac_check_lib_save_LIBS
=$LIBS
32609 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32610 /* end confdefs.h. */
32612 /* Override any GCC internal prototype to avoid an error.
32613 Use char because int might match the return type of a GCC
32614 builtin and then its argument prototype would still apply. */
32622 return compress2 ();
32627 if ac_fn_c_try_link
"$LINENO"; then :
32628 ac_cv_lib_z_compress2
=yes
32630 ac_cv_lib_z_compress2
=no
32632 rm -f core conftest.err conftest.
$ac_objext \
32633 conftest
$ac_exeext conftest.
$ac_ext
32634 LIBS
=$ac_check_lib_save_LIBS
32636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
32637 $as_echo "$ac_cv_lib_z_compress2" >&6; }
32638 if test "x$ac_cv_lib_z_compress2" = xyes
; then :
32639 cat >>confdefs.h
<<_ACEOF
32640 #define HAVE_LIBZ 1
32646 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32649 *** compress2() missing, zlib-devel package required
32650 See \`config.log' for more details" "$LINENO" 5; }
32654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
32655 $as_echo_n "checking for uncompress in -lz... " >&6; }
32656 if ${ac_cv_lib_z_uncompress+:} false
; then :
32657 $as_echo_n "(cached) " >&6
32659 ac_check_lib_save_LIBS
=$LIBS
32661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32662 /* end confdefs.h. */
32664 /* Override any GCC internal prototype to avoid an error.
32665 Use char because int might match the return type of a GCC
32666 builtin and then its argument prototype would still apply. */
32670 char uncompress ();
32674 return uncompress ();
32679 if ac_fn_c_try_link
"$LINENO"; then :
32680 ac_cv_lib_z_uncompress
=yes
32682 ac_cv_lib_z_uncompress
=no
32684 rm -f core conftest.err conftest.
$ac_objext \
32685 conftest
$ac_exeext conftest.
$ac_ext
32686 LIBS
=$ac_check_lib_save_LIBS
32688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
32689 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
32690 if test "x$ac_cv_lib_z_uncompress" = xyes
; then :
32691 cat >>confdefs.h
<<_ACEOF
32692 #define HAVE_LIBZ 1
32698 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32699 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32701 *** uncompress() missing, zlib-devel package required
32702 See \`config.log' for more details" "$LINENO" 5; }
32706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5
32707 $as_echo_n "checking for crc32 in -lz... " >&6; }
32708 if ${ac_cv_lib_z_crc32+:} false
; then :
32709 $as_echo_n "(cached) " >&6
32711 ac_check_lib_save_LIBS
=$LIBS
32713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32714 /* end confdefs.h. */
32716 /* Override any GCC internal prototype to avoid an error.
32717 Use char because int might match the return type of a GCC
32718 builtin and then its argument prototype would still apply. */
32731 if ac_fn_c_try_link
"$LINENO"; then :
32732 ac_cv_lib_z_crc32
=yes
32734 ac_cv_lib_z_crc32
=no
32736 rm -f core conftest.err conftest.
$ac_objext \
32737 conftest
$ac_exeext conftest.
$ac_ext
32738 LIBS
=$ac_check_lib_save_LIBS
32740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5
32741 $as_echo "$ac_cv_lib_z_crc32" >&6; }
32742 if test "x$ac_cv_lib_z_crc32" = xyes
; then :
32743 cat >>confdefs.h
<<_ACEOF
32744 #define HAVE_LIBZ 1
32750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32753 *** crc32() missing, zlib-devel package required
32754 See \`config.log' for more details" "$LINENO" 5; }
32761 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
32767 ac_fn_c_check_header_mongrel
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
32768 if test "x$ac_cv_header_uuid_uuid_h" = xyes
; then :
32771 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32772 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32774 *** uuid/uuid.h missing, libuuid-devel package required
32775 See \`config.log' for more details" "$LINENO" 5; }
32780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
32781 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
32782 if ${ac_cv_lib_uuid_uuid_generate+:} false
; then :
32783 $as_echo_n "(cached) " >&6
32785 ac_check_lib_save_LIBS
=$LIBS
32786 LIBS
="-luuid $LIBS"
32787 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32788 /* end confdefs.h. */
32790 /* Override any GCC internal prototype to avoid an error.
32791 Use char because int might match the return type of a GCC
32792 builtin and then its argument prototype would still apply. */
32796 char uuid_generate ();
32800 return uuid_generate ();
32805 if ac_fn_c_try_link
"$LINENO"; then :
32806 ac_cv_lib_uuid_uuid_generate
=yes
32808 ac_cv_lib_uuid_uuid_generate
=no
32810 rm -f core conftest.err conftest.
$ac_objext \
32811 conftest
$ac_exeext conftest.
$ac_ext
32812 LIBS
=$ac_check_lib_save_LIBS
32814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
32815 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
32816 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
; then :
32817 cat >>confdefs.h
<<_ACEOF
32818 #define HAVE_LIBUUID 1
32821 LIBS
="-luuid $LIBS"
32824 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32827 *** uuid_generate() missing, libuuid-devel package required
32828 See \`config.log' for more details" "$LINENO" 5; }
32832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5
32833 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
32834 if ${ac_cv_lib_uuid_uuid_is_null+:} false
; then :
32835 $as_echo_n "(cached) " >&6
32837 ac_check_lib_save_LIBS
=$LIBS
32838 LIBS
="-luuid $LIBS"
32839 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32840 /* end confdefs.h. */
32842 /* Override any GCC internal prototype to avoid an error.
32843 Use char because int might match the return type of a GCC
32844 builtin and then its argument prototype would still apply. */
32848 char uuid_is_null ();
32852 return uuid_is_null ();
32857 if ac_fn_c_try_link
"$LINENO"; then :
32858 ac_cv_lib_uuid_uuid_is_null
=yes
32860 ac_cv_lib_uuid_uuid_is_null
=no
32862 rm -f core conftest.err conftest.
$ac_objext \
32863 conftest
$ac_exeext conftest.
$ac_ext
32864 LIBS
=$ac_check_lib_save_LIBS
32866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5
32867 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
32868 if test "x$ac_cv_lib_uuid_uuid_is_null" = xyes
; then :
32869 cat >>confdefs.h
<<_ACEOF
32870 #define HAVE_LIBUUID 1
32873 LIBS
="-luuid $LIBS"
32876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32879 *** uuid_is_null() missing, libuuid-devel package required
32880 See \`config.log' for more details" "$LINENO" 5; }
32887 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
32892 # Check whether --with-blkid was given.
32893 if test "${with_blkid+set}" = set; then :
32894 withval
=$with_blkid;
32901 if test "x$with_blkid" = xyes
; then :
32906 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
32911 if test "x$with_blkid" = xcheck
; then :
32913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
32914 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
32915 if ${ac_cv_lib_blkid_blkid_get_cache+:} false
; then :
32916 $as_echo_n "(cached) " >&6
32918 ac_check_lib_save_LIBS
=$LIBS
32919 LIBS
="-lblkid $LIBS"
32920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32921 /* end confdefs.h. */
32923 /* Override any GCC internal prototype to avoid an error.
32924 Use char because int might match the return type of a GCC
32925 builtin and then its argument prototype would still apply. */
32929 char blkid_get_cache ();
32933 return blkid_get_cache ();
32938 if ac_fn_c_try_link
"$LINENO"; then :
32939 ac_cv_lib_blkid_blkid_get_cache
=yes
32941 ac_cv_lib_blkid_blkid_get_cache
=no
32943 rm -f core conftest.err conftest.
$ac_objext \
32944 conftest
$ac_exeext conftest.
$ac_ext
32945 LIBS
=$ac_check_lib_save_LIBS
32947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
32948 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
32949 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
; then :
32951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5
32952 $as_echo_n "checking for blkid zfs support... " >&6; }
32955 truncate
-s 64M
$ZFS_DEV
32956 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
32957 dd of
=$ZFS_DEV bs
=1k count
=8 \
32958 seek
=128 conv
=notrunc
&>/dev
/null \
32959 >/dev
/null
2>/dev
/null
32960 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
32961 dd of
=$ZFS_DEV bs
=1k count
=8 \
32962 seek
=132 conv
=notrunc
&>/dev
/null \
32963 >/dev
/null
2>/dev
/null
32964 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
32965 dd of
=$ZFS_DEV bs
=1k count
=8 \
32966 seek
=136 conv
=notrunc
&>/dev
/null \
32967 >/dev
/null
2>/dev
/null
32968 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
32969 dd of
=$ZFS_DEV bs
=1k count
=8 \
32970 seek
=140 conv
=notrunc
&>/dev
/null \
32971 >/dev
/null
2>/dev
/null
32976 if test "$cross_compiling" = yes; then :
32977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32979 as_fn_error $?
"cannot run test program while cross compiling
32980 See \`config.log' for more details" "$LINENO" 5; }
32982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
32983 /* end confdefs.h. */
32986 #include <stdlib.h>
32987 #include <blkid/blkid.h>
32996 if (blkid_get_cache(&cache, NULL) < 0)
32999 value = blkid_get_tag_value(cache, "TYPE",
33002 blkid_put_cache(cache);
33006 if (strcmp(value, "zfs_member")) {
33008 blkid_put_cache(cache);
33013 blkid_put_cache(cache);
33019 if ac_fn_c_try_run
"$LINENO"; then :
33022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33023 $as_echo "yes" >&6; }
33027 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
33033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33034 $as_echo "no" >&6; }
33035 if test "x$with_blkid" != xcheck
; then :
33036 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33037 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33038 as_fn_error $?
"--with-blkid given but unavailable
33039 See \`config.log' for more details" "$LINENO" 5; }
33043 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
33044 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
33052 if test "x$with_blkid" != xcheck
; then :
33053 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33054 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33055 as_fn_error $?
"--with-blkid given but unavailable
33056 See \`config.log' for more details" "$LINENO" 5; }
33066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
33067 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
33069 saved_flags
="$CFLAGS"
33070 CFLAGS
="$CFLAGS -Wframe-larger-than=1024"
33072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
33073 /* end confdefs.h. */
33083 if ac_fn_c_try_compile
"$LINENO"; then :
33085 FRAME_LARGER_THAN
=-Wframe-larger-than=1024
33086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33087 $as_echo "yes" >&6; }
33092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33093 $as_echo "no" >&6; }
33096 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
33098 CFLAGS
="$saved_flags"
33102 if test "x$runstatedir" = x
; then
33103 runstatedir
='${localstatedir}/run'
33107 for ac_func
in mlockall
33109 ac_fn_c_check_func
"$LINENO" "mlockall" "ac_cv_func_mlockall"
33110 if test "x$ac_cv_func_mlockall" = xyes
; then :
33111 cat >>confdefs.h
<<_ACEOF
33112 #define HAVE_MLOCKALL 1
33121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
33122 $as_echo "Error!" >&6; }
33123 as_fn_error $?
"Bad value \"$ZFS_CONFIG\" for --with-config,
33124 user kernel|user|all|srpm" "$LINENO" 5 ;;
33127 if test "$ZFS_CONFIG" = user
-o "$ZFS_CONFIG" = all
; then
33129 CONFIG_USER_FALSE
='#'
33131 CONFIG_USER_TRUE
='#'
33135 if test "$ZFS_CONFIG" = kernel
-o "$ZFS_CONFIG" = all
&&
33136 test "x$enable_linux_builtin" != xyes
; then
33137 CONFIG_KERNEL_TRUE
=
33138 CONFIG_KERNEL_FALSE
='#'
33140 CONFIG_KERNEL_TRUE
='#'
33141 CONFIG_KERNEL_FALSE
=
33144 if test "x$user_libudev" = xyes
; then
33145 WANT_DEVNAME2DEVID_TRUE
=
33146 WANT_DEVNAME2DEVID_FALSE
='#'
33148 WANT_DEVNAME2DEVID_TRUE
='#'
33149 WANT_DEVNAME2DEVID_FALSE
=
33152 if test "x$user_libaio" = xyes
; then
33153 WANT_MMAP_LIBAIO_TRUE
=
33154 WANT_MMAP_LIBAIO_FALSE
='#'
33156 WANT_MMAP_LIBAIO_TRUE
='#'
33157 WANT_MMAP_LIBAIO_FALSE
=
33162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
33163 $as_echo_n "checking whether debugging is enabled... " >&6; }
33164 # Check whether --enable-debug was given.
33165 if test "${enable_debug+set}" = set; then :
33166 enableval
=$enable_debug;
33172 if test "x$enable_debug" = xyes
; then :
33174 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG -Werror"
33175 HOSTCFLAGS
="${HOSTCFLAGS} -DDEBUG -Werror"
33176 DEBUG_CFLAGS
="-DDEBUG -Werror"
33177 DEBUG_STACKFLAGS
="-fstack-check"
33178 DEBUG_ZFS
="_with_debug"
33180 $as_echo "#define ZFS_DEBUG 1" >>confdefs.h
33185 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DNDEBUG "
33186 HOSTCFLAGS
="${HOSTCFLAGS} -DNDEBUG "
33187 DEBUG_CFLAGS
="-DNDEBUG"
33188 DEBUG_STACKFLAGS
=""
33189 DEBUG_ZFS
="_without_debug"
33196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
33197 $as_echo "$enable_debug" >&6; }
33200 # Check whether --enable-debug-dmu-tx was given.
33201 if test "${enable_debug_dmu_tx+set}" = set; then :
33202 enableval
=$enable_debug_dmu_tx;
33204 enable_debug_dmu_tx
=no
33208 if test "x$enable_debug_dmu_tx" = xyes
; then :
33210 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG_DMU_TX"
33211 DEBUG_DMU_TX
="_with_debug_dmu_tx"
33213 $as_echo "#define DEBUG_DMU_TX 1" >>confdefs.h
33218 DEBUG_DMU_TX
="_without_debug_dmu_tx"
33223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dmu tx validation is enabled" >&5
33224 $as_echo_n "checking whether dmu tx validation is enabled... " >&6; }
33225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_dmu_tx" >&5
33226 $as_echo "$enable_debug_dmu_tx" >&6; }
33229 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"
33232 cat >confcache
<<\_ACEOF
33233 # This file is a shell script that caches the results of configure
33234 # tests run on this system so they can be shared between configure
33235 # scripts and configure runs, see configure's option --config-cache.
33236 # It is not useful on other systems. If it contains results you don't
33237 # want to keep, you may remove or edit it.
33239 # config.status only pays attention to the cache file if you give it
33240 # the --recheck option to rerun configure.
33242 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33243 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33244 # following values.
33248 # The following way of writing the cache mishandles newlines in values,
33249 # but we know of no workaround that is simple, portable, and efficient.
33250 # So, we kill variables containing newlines.
33251 # Ultrix sh set writes to stderr and can't be redirected directly,
33252 # and sets the high bit in the cache file unless we assign to the vars.
33254 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
33255 eval ac_val
=\$
$ac_var
33259 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
33260 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
33263 _ | IFS | as_nl
) ;; #(
33264 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
33265 *) { eval $ac_var=; unset $ac_var;} ;;
33271 case $as_nl`(ac_space=' '; set) 2>&1` in #(
33272 *${as_nl}ac_space
=\
*)
33273 # `set' does not quote correctly, so add quotes: double-quote
33274 # substitution turns \\\\ into \\, and sed turns \\ into \.
33277 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33280 # `set' quotes correctly as required by POSIX, so do not add quotes.
33281 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
33290 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33292 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33294 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
33295 if test -w "$cache_file"; then
33296 if test "x$cache_file" != "x/dev/null"; then
33297 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
33298 $as_echo "$as_me: updating cache $cache_file" >&6;}
33299 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
33300 cat confcache
>"$cache_file"
33302 case $cache_file in #(
33304 mv -f confcache
"$cache_file"$$
&&
33305 mv -f "$cache_file"$$
"$cache_file" ;; #(
33307 mv -f confcache
"$cache_file" ;;
33312 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
33313 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
33318 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
33319 # Let make expand exec_prefix.
33320 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
33322 DEFS
=-DHAVE_CONFIG_H
33327 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
33328 # 1. Remove the extension, and $U if already installed.
33329 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
33330 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
33331 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
33332 # will be set to the directory where LIBOBJS objects are built.
33333 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
33334 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
33336 LIBOBJS
=$ac_libobjs
33338 LTLIBOBJS
=$ac_ltlibobjs
33341 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
33342 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
33343 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
33346 $as_echo_n "checking that generated files are newer than configure... " >&6; }
33347 if test -n "$am_sleep_pid"; then
33348 # Hide warnings about reused PIDs.
33349 wait $am_sleep_pid 2>/dev
/null
33351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
33352 $as_echo "done" >&6; }
33353 if test -n "$EXEEXT"; then
33355 am__EXEEXT_FALSE
='#'
33357 am__EXEEXT_TRUE
='#'
33361 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
33362 as_fn_error $?
"conditional \"AMDEP\" was never defined.
33363 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33365 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
33366 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
33367 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33369 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
33370 as_fn_error $?
"conditional \"am__fastdepCCAS\" was never defined.
33371 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33373 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
33374 as_fn_error $?
"conditional \"CONFIG_USER\" was never defined.
33375 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33377 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
33378 as_fn_error $?
"conditional \"CONFIG_KERNEL\" was never defined.
33379 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33381 if test -z "${WANT_DEVNAME2DEVID_TRUE}" && test -z "${WANT_DEVNAME2DEVID_FALSE}"; then
33382 as_fn_error $?
"conditional \"WANT_DEVNAME2DEVID\" was never defined.
33383 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33385 if test -z "${WANT_MMAP_LIBAIO_TRUE}" && test -z "${WANT_MMAP_LIBAIO_FALSE}"; then
33386 as_fn_error $?
"conditional \"WANT_MMAP_LIBAIO\" was never defined.
33387 Usually this means the macro was only invoked conditionally." "$LINENO" 5
33390 : "${CONFIG_STATUS=./config.status}"
33392 ac_clean_files_save
=$ac_clean_files
33393 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
33394 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
33395 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
33397 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
33399 # Generated by $as_me.
33400 # Run this file to recreate the current configuration.
33401 # Compiler output produced by configure, useful for debugging
33402 # configure, is in config.log if it exists.
33405 ac_cs_recheck=false
33408 SHELL=\${CONFIG_SHELL-$SHELL}
33411 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
33412 ## -------------------- ##
33413 ## M4sh Initialization. ##
33414 ## -------------------- ##
33416 # Be more Bourne compatible
33417 DUALCASE
=1; export DUALCASE
# for MKS sh
33418 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
33421 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
33422 # is contrary to our usage. Disable this feature.
33423 alias -g '${1+"$@"}'='"$@"'
33424 setopt NO_GLOB_SUBST
33426 case `(set -o) 2>/dev/null` in #(
33438 # Printing a long string crashes Solaris 7 /usr/bin/printf.
33439 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
33440 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
33441 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
33442 # Prefer a ksh shell builtin over an external printf program on Solaris,
33443 # but without wasting forks for bash or zsh.
33444 if test -z "$BASH_VERSION$ZSH_VERSION" \
33445 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
33446 as_echo='print
-r --'
33447 as_echo_n='print
-rn --'
33448 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
33449 as_echo='printf %s
\n'
33450 as_echo_n='printf %s
'
33452 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
33453 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
33454 as_echo_n='/usr
/ucb
/echo -n'
33456 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
33457 as_echo_n_body='eval
33461 expr "X$arg" : "X\\(.*\\)$as_nl";
33462 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
33464 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
33466 export as_echo_n_body
33467 as_echo_n='sh
-c $as_echo_n_body as_echo
'
33469 export as_echo_body
33470 as_echo='sh
-c $as_echo_body as_echo
'
33473 # The user is always right.
33474 if test "${PATH_SEPARATOR+set}" != set; then
33476 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
33477 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
33484 # We need space, tab and new line, in precisely that order. Quoting is
33485 # there to prevent editors from complaining about space-tab.
33486 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
33487 # splitting by setting IFS to empty value.)
33490 # Find who we are. Look in the path if we contain no directory separator.
33493 *[\\/]* ) as_myself=$0 ;;
33494 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33495 for as_dir in $PATH
33498 test -z "$as_dir" && as_dir=.
33499 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33505 # We did not find ourselves, most probably we were run as `sh COMMAND'
33506 # in which case we are not to be found in the path.
33507 if test "x$as_myself" = x
; then
33510 if test ! -f "$as_myself"; then
33511 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
33515 # Unset variables that we do not need and which cause bugs (e.g. in
33516 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
33517 # suppresses any "Segmentation fault" message there. '((' could
33518 # trigger a bug in pdksh 5.2.14.
33519 for as_var
in BASH_ENV ENV MAIL MAILPATH
33520 do eval test x\
${$as_var+set} = xset \
33521 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
33534 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
33537 # as_fn_error STATUS ERROR [LINENO LOG_FD]
33538 # ----------------------------------------
33539 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
33540 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
33541 # script with STATUS, using 1 if that was 0.
33544 as_status
=$1; test $as_status -eq 0 && as_status
=1
33546 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
33547 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
33549 $as_echo "$as_me: error: $2" >&2
33550 as_fn_exit
$as_status
33554 # as_fn_set_status STATUS
33555 # -----------------------
33556 # Set $? to STATUS, without forking.
33557 as_fn_set_status
()
33560 } # as_fn_set_status
33562 # as_fn_exit STATUS
33563 # -----------------
33564 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
33568 as_fn_set_status
$1
33574 # Portably unset VAR.
33577 { eval $1=; unset $1;}
33579 as_unset
=as_fn_unset
33580 # as_fn_append VAR VALUE
33581 # ----------------------
33582 # Append the text in VALUE to the end of the definition contained in VAR. Take
33583 # advantage of any shell optimizations that allow amortized linear growth over
33584 # repeated appends, instead of the typical quadratic growth present in naive
33586 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
33587 eval 'as_fn_append ()
33598 # as_fn_arith ARG...
33599 # ------------------
33600 # Perform arithmetic evaluation on the ARGs, and store the result in the
33601 # global $as_val. Take advantage of shells that can avoid forks. The arguments
33602 # must be portable across $(()) and expr.
33603 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
33604 eval 'as_fn_arith ()
33611 as_val
=`expr "$@" || test $? -eq 1`
33616 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
33617 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
33623 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
33624 as_basename
=basename
33629 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
33635 as_me
=`$as_basename -- "$0" ||
33636 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33637 X"$0" : 'X\(//\)$' \| \
33638 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
33640 sed '/^.*\/\([^/][^/]*\)\/*$/{
33654 # Avoid depending upon Character Ranges.
33655 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
33656 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33657 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
33658 as_cr_digits
='0123456789'
33659 as_cr_alnum
=$as_cr_Letters$as_cr_digits
33661 ECHO_C
= ECHO_N
= ECHO_T
=
33662 case `echo -n x` in #(((((
33664 case `echo 'xy\c'` in
33665 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
33667 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
33674 rm -f conf$$ conf$$.exe conf$$.
file
33675 if test -d conf$$.dir
; then
33676 rm -f conf$$.dir
/conf$$.
file
33679 mkdir conf$$.dir
2>/dev
/null
33681 if (echo >conf$$.
file) 2>/dev
/null
; then
33682 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
33684 # ... but there are two gotchas:
33685 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
33686 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
33687 # In both cases, we have to default to `cp -pR'.
33688 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
33690 elif ln conf$$.
file conf$$
2>/dev
/null
; then
33698 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
33699 rmdir conf$$.dir
2>/dev
/null
33704 # Create "$as_dir" as a directory, including parents if necessary.
33709 -*) as_dir
=.
/$as_dir;;
33711 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
33715 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
33716 *) as_qdir
=$as_dir;;
33718 as_dirs
="'$as_qdir' $as_dirs"
33719 as_dir
=`$as_dirname -- "$as_dir" ||
33720 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33721 X"$as_dir" : 'X\(//\)[^/]' \| \
33722 X"$as_dir" : 'X\(//\)$' \| \
33723 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
33724 $as_echo X"$as_dir" |
33725 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
33729 /^X\(\/\/\)[^/].*/{
33742 test -d "$as_dir" && break
33744 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
33745 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
33749 if mkdir
-p .
2>/dev
/null
; then
33750 as_mkdir_p
='mkdir -p "$as_dir"'
33752 test -d .
/-p && rmdir .
/-p
33757 # as_fn_executable_p FILE
33758 # -----------------------
33759 # Test if FILE is an executable regular file.
33760 as_fn_executable_p
()
33762 test -f "$1" && test -x "$1"
33763 } # as_fn_executable_p
33764 as_test_x
='test -x'
33765 as_executable_p
=as_fn_executable_p
33767 # Sed expression to map a string onto a valid CPP name.
33768 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33770 # Sed expression to map a string onto a valid variable name.
33771 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33775 ## ----------------------------------- ##
33776 ## Main body of $CONFIG_STATUS script. ##
33777 ## ----------------------------------- ##
33779 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
33781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33782 # Save the log message, to keep $0 and so on meaningful, and to
33783 # report actual input values of CONFIG_FILES etc. instead of their
33784 # values after options handling.
33786 This file was extended by zfs $as_me 0.6.5.6, which was
33787 generated by GNU Autoconf 2.69. Invocation command line was
33789 CONFIG_FILES = $CONFIG_FILES
33790 CONFIG_HEADERS = $CONFIG_HEADERS
33791 CONFIG_LINKS = $CONFIG_LINKS
33792 CONFIG_COMMANDS = $CONFIG_COMMANDS
33795 on `(hostname || uname -n) 2>/dev/null | sed 1q`
33800 case $ac_config_files in *"
33801 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
33804 case $ac_config_headers in *"
33805 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
33809 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33810 # Files that config.status was made for.
33811 config_files="$ac_config_files"
33812 config_headers="$ac_config_headers"
33813 config_commands="$ac_config_commands"
33817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33819 \`$as_me' instantiates files and other configuration actions
33820 from templates according to the current configuration. Unless the files
33821 and actions are specified as TAGs, all are instantiated by default.
33823 Usage: $0 [OPTION]... [TAG]...
33825 -h, --help print this help, then exit
33826 -V, --version print version number and configuration settings, then exit
33827 --config print configuration, then exit
33828 -q, --quiet, --silent
33829 do not print progress messages
33830 -d, --debug don't remove temporary files
33831 --recheck update $as_me by reconfiguring in the same conditions
33832 --file=FILE[:TEMPLATE]
33833 instantiate the configuration file FILE
33834 --header=FILE[:TEMPLATE]
33835 instantiate the configuration header FILE
33837 Configuration files:
33840 Configuration headers:
33843 Configuration commands:
33846 Report bugs to the package provider."
33849 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33850 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
33852 zfs config.status 0.6.5.6
33853 configured by $0, generated by GNU Autoconf 2.69,
33854 with options \\"\$ac_cs_config\\"
33856 Copyright (C) 2012 Free Software Foundation, Inc.
33857 This config.status script is free software; the Free Software Foundation
33858 gives unlimited permission to copy, distribute and modify it."
33865 test -n "\$AWK" || AWK=awk
33868 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33869 # The default lists apply if the user does not specify any file.
33875 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
33876 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
33880 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
33892 # Handling of the options.
33893 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
33895 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
33896 $as_echo "$ac_cs_version"; exit ;;
33897 --config |
--confi |
--conf |
--con |
--co |
--c )
33898 $as_echo "$ac_cs_config"; exit ;;
33899 --debug |
--debu |
--deb |
--de |
--d |
-d )
33901 --file |
--fil |
--fi |
--f )
33904 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33905 '') as_fn_error $?
"missing file argument" ;;
33907 as_fn_append CONFIG_FILES
" '$ac_optarg'"
33908 ac_need_defaults
=false
;;
33909 --header |
--heade |
--head |
--hea )
33912 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
33914 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
33915 ac_need_defaults
=false
;;
33917 # Conflict between --help and --header
33918 as_fn_error $?
"ambiguous option: \`$1'
33919 Try \`$0 --help' for more information.";;
33920 --help |
--hel |
-h )
33921 $as_echo "$ac_cs_usage"; exit ;;
33922 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
33923 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
33926 # This is an error.
33927 -*) as_fn_error $?
"unrecognized option: \`$1'
33928 Try \`$0 --help' for more information." ;;
33930 *) as_fn_append ac_config_targets
" $1"
33931 ac_need_defaults
=false
;;
33937 ac_configure_extra_args
=
33939 if $ac_cs_silent; then
33941 ac_configure_extra_args
="$ac_configure_extra_args --silent"
33945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33946 if \$ac_cs_recheck; then
33947 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33949 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
33950 CONFIG_SHELL='$SHELL'
33951 export CONFIG_SHELL
33956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
33960 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33961 ## Running $as_me. ##
33967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
33971 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
33974 # The HP-UX ksh and POSIX shell print the target directory to stdout
33975 # if CDPATH is set.
33976 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
33978 sed_quote_subst='$sed_quote_subst'
33979 double_quote_subst='$double_quote_subst'
33980 delay_variable_subst='$delay_variable_subst'
33981 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
33982 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
33983 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
33984 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
33985 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
33986 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
33987 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
33988 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
33989 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
33990 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
33991 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
33992 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
33993 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
33994 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
33995 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
33996 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
33997 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
33998 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
33999 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
34000 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
34001 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
34002 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
34003 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
34004 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
34005 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
34006 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
34007 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
34008 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
34009 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
34010 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
34011 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
34012 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
34013 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
34014 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
34015 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
34016 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
34017 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
34018 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
34019 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
34020 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
34021 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
34022 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
34023 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
34024 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
34025 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
34026 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
34027 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34028 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34029 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
34030 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
34031 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
34032 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
34033 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
34034 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
34035 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
34036 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
34037 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
34038 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
34039 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"`'
34040 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
34041 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
34042 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
34043 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
34044 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
34045 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
34046 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
34047 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
34048 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
34049 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
34050 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
34051 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
34052 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
34053 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
34054 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
34055 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
34056 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
34057 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
34058 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
34059 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
34060 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34061 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
34062 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
34063 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
34064 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
34065 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
34066 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
34067 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
34068 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
34069 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34070 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
34071 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
34072 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
34073 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
34074 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
34075 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
34076 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
34077 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
34078 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
34079 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
34080 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
34081 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
34082 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
34083 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
34084 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
34085 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
34086 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
34087 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
34088 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
34089 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
34090 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
34091 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
34092 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
34093 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
34094 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
34095 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
34096 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
34097 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
34098 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
34099 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
34100 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
34101 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
34102 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
34103 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
34104 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
34105 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
34106 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
34107 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
34108 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
34109 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
34110 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
34111 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
34112 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
34113 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
34114 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
34115 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
34118 LTCFLAGS='$LTCFLAGS'
34119 compiler='$compiler_DEFAULT'
34121 # A function that is used when there is no print builtin or printf.
34122 func_fallback_echo ()
34124 eval 'cat <<_LTECHO_EOF
34129 # Quote evaled strings.
34144 deplibs_check_method \
34149 sharedlib_from_linklib_cmd \
34152 archiver_list_spec \
34158 lt_cv_sys_global_symbol_pipe \
34159 lt_cv_sys_global_symbol_to_cdecl \
34160 lt_cv_sys_global_symbol_to_import \
34161 lt_cv_sys_global_symbol_to_c_name_address \
34162 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
34163 lt_cv_nm_interface \
34164 nm_file_list_spec \
34165 lt_cv_truncate_bin \
34166 lt_prog_compiler_no_builtin_flag \
34167 lt_prog_compiler_pic \
34168 lt_prog_compiler_wl \
34169 lt_prog_compiler_static \
34170 lt_cv_prog_compiler_c_o \
34179 export_dynamic_flag_spec \
34180 whole_archive_flag_spec \
34181 compiler_needs_object \
34183 allow_undefined_flag \
34184 no_undefined_flag \
34185 hardcode_libdir_flag_spec \
34186 hardcode_libdir_separator \
34190 variables_saved_for_relink \
34192 library_names_spec \
34194 install_override_mode \
34198 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34199 *[\\\\\\\`\\"\\\$]*)
34200 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
34203 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34208 # Double-quote double-evaled strings.
34209 for var in reload_cmds \
34210 old_postinstall_cmds \
34211 old_postuninstall_cmds \
34213 extract_expsyms_cmds \
34214 old_archive_from_new_cmds \
34215 old_archive_from_expsyms_cmds \
34217 archive_expsym_cmds \
34219 module_expsym_cmds \
34220 export_symbols_cmds \
34224 postuninstall_cmds \
34226 sys_lib_search_path_spec \
34227 configure_time_dlsearch_path \
34228 configure_time_lt_sys_library_path; do
34229 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
34230 *[\\\\\\\`\\"\\\$]*)
34231 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
34234 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
34239 ac_aux_dir='$ac_aux_dir'
34241 # See if we are running on zsh, and set the options that allow our
34242 # commands through without removal of \ escapes INIT.
34243 if test -n "\${ZSH_VERSION+set}"; then
34244 setopt NO_GLOB_SUBST
34258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
34260 # Handling of arguments.
34261 for ac_config_target
in $ac_config_targets
34263 case $ac_config_target in
34264 "zfs_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS zfs_config.h" ;;
34265 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
34266 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
34267 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
34268 "udev/Makefile") CONFIG_FILES
="$CONFIG_FILES udev/Makefile" ;;
34269 "udev/rules.d/Makefile") CONFIG_FILES
="$CONFIG_FILES udev/rules.d/Makefile" ;;
34270 "etc/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/Makefile" ;;
34271 "etc/init.d/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/init.d/Makefile" ;;
34272 "etc/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/zfs/Makefile" ;;
34273 "etc/systemd/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/systemd/Makefile" ;;
34274 "etc/systemd/system/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/systemd/system/Makefile" ;;
34275 "etc/modules-load.d/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/modules-load.d/Makefile" ;;
34276 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
34277 "man/man1/Makefile") CONFIG_FILES
="$CONFIG_FILES man/man1/Makefile" ;;
34278 "man/man5/Makefile") CONFIG_FILES
="$CONFIG_FILES man/man5/Makefile" ;;
34279 "man/man8/Makefile") CONFIG_FILES
="$CONFIG_FILES man/man8/Makefile" ;;
34280 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
34281 "lib/libspl/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/Makefile" ;;
34282 "lib/libspl/asm-generic/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
34283 "lib/libspl/asm-i386/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
34284 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
34285 "lib/libspl/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/Makefile" ;;
34286 "lib/libspl/include/ia32/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
34287 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
34288 "lib/libspl/include/rpc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
34289 "lib/libspl/include/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
34290 "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
34291 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
34292 "lib/libspl/include/util/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
34293 "lib/libavl/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libavl/Makefile" ;;
34294 "lib/libefi/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libefi/Makefile" ;;
34295 "lib/libnvpair/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libnvpair/Makefile" ;;
34296 "lib/libunicode/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libunicode/Makefile" ;;
34297 "lib/libuutil/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libuutil/Makefile" ;;
34298 "lib/libzpool/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libzpool/Makefile" ;;
34299 "lib/libzfs/libzfs.pc") CONFIG_FILES
="$CONFIG_FILES lib/libzfs/libzfs.pc" ;;
34300 "lib/libzfs/libzfs_core.pc") CONFIG_FILES
="$CONFIG_FILES lib/libzfs/libzfs_core.pc" ;;
34301 "lib/libzfs/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libzfs/Makefile" ;;
34302 "lib/libzfs_core/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libzfs_core/Makefile" ;;
34303 "lib/libshare/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libshare/Makefile" ;;
34304 "cmd/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/Makefile" ;;
34305 "cmd/zdb/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zdb/Makefile" ;;
34306 "cmd/zhack/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zhack/Makefile" ;;
34307 "cmd/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zfs/Makefile" ;;
34308 "cmd/zinject/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zinject/Makefile" ;;
34309 "cmd/zpool/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpool/Makefile" ;;
34310 "cmd/zstreamdump/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zstreamdump/Makefile" ;;
34311 "cmd/ztest/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/ztest/Makefile" ;;
34312 "cmd/zpios/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpios/Makefile" ;;
34313 "cmd/mount_zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
34314 "cmd/fsck_zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/fsck_zfs/Makefile" ;;
34315 "cmd/zvol_id/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
34316 "cmd/vdev_id/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/vdev_id/Makefile" ;;
34317 "cmd/arcstat/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/arcstat/Makefile" ;;
34318 "cmd/dbufstat/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/dbufstat/Makefile" ;;
34319 "cmd/arc_summary/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/arc_summary/Makefile" ;;
34320 "cmd/zed/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zed/Makefile" ;;
34321 "contrib/Makefile") CONFIG_FILES
="$CONFIG_FILES contrib/Makefile" ;;
34322 "contrib/bash_completion.d/Makefile") CONFIG_FILES
="$CONFIG_FILES contrib/bash_completion.d/Makefile" ;;
34323 "contrib/dracut/Makefile") CONFIG_FILES
="$CONFIG_FILES contrib/dracut/Makefile" ;;
34324 "contrib/dracut/90zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES contrib/dracut/90zfs/Makefile" ;;
34325 "contrib/initramfs/Makefile") CONFIG_FILES
="$CONFIG_FILES contrib/initramfs/Makefile" ;;
34326 "module/Makefile") CONFIG_FILES
="$CONFIG_FILES module/Makefile" ;;
34327 "module/avl/Makefile") CONFIG_FILES
="$CONFIG_FILES module/avl/Makefile" ;;
34328 "module/nvpair/Makefile") CONFIG_FILES
="$CONFIG_FILES module/nvpair/Makefile" ;;
34329 "module/unicode/Makefile") CONFIG_FILES
="$CONFIG_FILES module/unicode/Makefile" ;;
34330 "module/zcommon/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zcommon/Makefile" ;;
34331 "module/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zfs/Makefile" ;;
34332 "module/zpios/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zpios/Makefile" ;;
34333 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
34334 "include/linux/Makefile") CONFIG_FILES
="$CONFIG_FILES include/linux/Makefile" ;;
34335 "include/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/Makefile" ;;
34336 "include/sys/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fs/Makefile" ;;
34337 "include/sys/fm/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/Makefile" ;;
34338 "include/sys/fm/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
34339 "scripts/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/Makefile" ;;
34340 "scripts/zpios-profile/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
34341 "scripts/zpios-test/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
34342 "scripts/zpool-config/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
34343 "scripts/common.sh") CONFIG_FILES
="$CONFIG_FILES scripts/common.sh" ;;
34344 "rpm/Makefile") CONFIG_FILES
="$CONFIG_FILES rpm/Makefile" ;;
34345 "rpm/redhat/Makefile") CONFIG_FILES
="$CONFIG_FILES rpm/redhat/Makefile" ;;
34346 "rpm/redhat/zfs.spec") CONFIG_FILES
="$CONFIG_FILES rpm/redhat/zfs.spec" ;;
34347 "rpm/redhat/zfs-kmod.spec") CONFIG_FILES
="$CONFIG_FILES rpm/redhat/zfs-kmod.spec" ;;
34348 "rpm/redhat/zfs-dkms.spec") CONFIG_FILES
="$CONFIG_FILES rpm/redhat/zfs-dkms.spec" ;;
34349 "rpm/generic/Makefile") CONFIG_FILES
="$CONFIG_FILES rpm/generic/Makefile" ;;
34350 "rpm/generic/zfs.spec") CONFIG_FILES
="$CONFIG_FILES rpm/generic/zfs.spec" ;;
34351 "rpm/generic/zfs-kmod.spec") CONFIG_FILES
="$CONFIG_FILES rpm/generic/zfs-kmod.spec" ;;
34352 "rpm/generic/zfs-dkms.spec") CONFIG_FILES
="$CONFIG_FILES rpm/generic/zfs-dkms.spec" ;;
34353 "zfs-script-config.sh") CONFIG_FILES
="$CONFIG_FILES zfs-script-config.sh" ;;
34354 "zfs.release") CONFIG_FILES
="$CONFIG_FILES zfs.release" ;;
34356 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
34361 # If the user did not use the arguments to specify the items to instantiate,
34362 # then the envvar interface is used. Set only those that are not.
34363 # We use the long form for the default assignment because of an extremely
34364 # bizarre bug on SunOS 4.1.3.
34365 if $ac_need_defaults; then
34366 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
34367 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
34368 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
34371 # Have a temporary directory for convenience. Make it in the build tree
34372 # simply because there is no reason against having it here, and in addition,
34373 # creating and moving files from /tmp can sometimes cause problems.
34374 # Hook for its removal unless debugging.
34375 # Note that there is a small window in which the directory will not be cleaned:
34376 # after its creation but before its name has been assigned to `$tmp'.
34380 trap 'exit_status=$?
34381 : "${ac_tmp:=$tmp}"
34382 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
34384 trap 'as_fn_exit 1' 1 2 13 15
34386 # Create a (secure) tmp directory for tmp files.
34389 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
34393 tmp
=.
/conf$$
-$RANDOM
34394 (umask 077 && mkdir
"$tmp")
34395 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
34398 # Set up the scripts for CONFIG_FILES section.
34399 # No need to generate them if there are no CONFIG_FILES.
34400 # This happens for instance with `./config.status config.h'.
34401 if test -n "$CONFIG_FILES"; then
34404 ac_cr
=`echo X | tr X '\015'`
34405 # On cygwin, bash can eat \r inside `` if the user requested igncr.
34406 # But we know of no other shell where ac_cr would be empty at this
34407 # point, so we can use a bashism as a fallback.
34408 if test "x$ac_cr" = x
; then
34409 eval ac_cr
=\$
\'\\r
\'
34411 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
34412 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
34415 ac_cs_awk_cr
=$ac_cr
34418 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
34423 echo "cat >conf$$subs.awk <<_ACEOF" &&
34424 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
34426 } >conf$$subs.sh ||
34427 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
34428 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
34430 for ac_last_try in false false false false false :; do
34431 . ./conf$$subs.sh ||
34432 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
34434 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
34435 if test $ac_delim_n = $ac_delim_num; then
34437 elif $ac_last_try; then
34438 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
34440 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
34443 rm -f conf$$subs.sh
34445 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34446 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
34450 s/^/S["/; s
/!.
*/"]=/
34460 s/\(.\{148\}\)..*/\1/
34462 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
34467 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
34474 s/\(.\{148\}\)..*/\1/
34476 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
34480 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
34485 ' <conf$$subs.awk | sed '
34490 ' >>$CONFIG_STATUS || ac_write_fail=1
34491 rm -f conf$$subs.awk
34492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34494 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
34495 for (key in S) S_is_set[key] = 1
34501 nfields = split(line, field, "@
")
34503 len = length(field[1])
34504 for (i = 2; i < nfields; i++) {
34506 keylen = length(key)
34507 if (S_is_set[key]) {
34509 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
34510 len += length(value) + length(field[++i])
34521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34522 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
34523 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
34526 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
34527 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
34530 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
34531 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
34532 # trailing colons and then remove the whole line if VPATH becomes empty
34533 # (actually we leave an empty line to preserve line numbers).
34534 if test "x
$srcdir" = x.; then
34535 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
34553 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
34554 fi # test -n "$CONFIG_FILES"
34556 # Set up the scripts for CONFIG_HEADERS section.
34557 # No need to generate them if there are no CONFIG_HEADERS.
34558 # This happens for instance with `./config.status Makefile'.
34559 if test -n "$CONFIG_HEADERS"; then
34560 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
34564 # Transform confdefs.h into an awk script `defines.awk', embedded as
34565 # here-document in config.status, that substitutes the proper values into
34566 # config.h.in to produce config.h.
34568 # Create a delimiter string that does not exist in confdefs.h, to ease
34569 # handling of long lines.
34571 for ac_last_try in false false :; do
34572 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
34573 if test -z "$ac_tt"; then
34575 elif $ac_last_try; then
34576 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
34578 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
34582 # For the awk script, D is an array of macro values keyed by name,
34583 # likewise P contains macro parameters if any. Preserve backslash
34584 # newline sequences.
34586 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
34588 s/.\{148\}/&'"$ac_delim"'/g
34591 s/^[ ]*#[ ]*define[ ][ ]*/ /
34598 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
34600 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
34604 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
34605 D["\
1"]=" \
3\\\\\\n
"\\/p
34607 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
34612 s/.\{148\}/&'"$ac_delim"'/g
34617 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
34620 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
34622 ' <confdefs.h | sed '
34623 s/'"$ac_delim"'/"\\\
34624 "/g' >>$CONFIG_STATUS || ac_write_fail=1
34626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34627 for (key in D) D_is_set[key] = 1
34630 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
34632 split(line, arg, " ")
34633 if (arg[1] == "#") {
34637 defundef
= substr
(arg
[1], 2)
34640 split(mac1
, mac2
, "(") #)
34642 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
34643 if (D_is_set
[macro
]) {
34644 # Preserve the white space surrounding the "#".
34645 print prefix
"define", macro P
[macro
] D
[macro
]
34648 # Replace #undef with comments. This is necessary, for example,
34649 # in the case of _POSIX_SOURCE, which is predefined and required
34650 # on some systems where configure will not decide to define it.
34651 if (defundef
== "undef") {
34652 print
"/*", prefix defundef
, macro
, "*/"
34660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
34661 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
34662 fi # test -n "$CONFIG_HEADERS"
34665 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
34670 :[FHLC
]) ac_mode
=$ac_tag; continue;;
34672 case $ac_mode$ac_tag in
34674 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
34675 :[FH
]-) ac_tag
=-:-;;
34676 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
34693 -) ac_f
="$ac_tmp/stdin";;
34694 *) # Look for the file first in the build tree, then in the source tree
34695 # (if the path is not absolute). The absolute path cannot be DOS-style,
34696 # because $ac_f cannot contain `:'.
34700 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
34702 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
34704 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
34705 as_fn_append ac_file_inputs
" '$ac_f'"
34708 # Let's still pretend it is `configure' which instantiates (i.e., don't
34709 # use $as_me), people would be surprised to read:
34710 # /* config.h. Generated by config.status. */
34711 configure_input
='Generated from '`
34712 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
34714 if test x
"$ac_file" != x-
; then
34715 configure_input
="$ac_file. $configure_input"
34716 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
34717 $as_echo "$as_me: creating $ac_file" >&6;}
34719 # Neutralize special characters interpreted by sed in replacement strings.
34720 case $configure_input in #(
34721 *\
&* |
*\|
* |
*\\* )
34722 ac_sed_conf_input
=`$as_echo "$configure_input" |
34723 sed 's/[\\\\&|]/\\\\&/g'`;; #(
34724 *) ac_sed_conf_input
=$configure_input;;
34728 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
34729 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
34734 ac_dir
=`$as_dirname -- "$ac_file" ||
34735 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34736 X"$ac_file" : 'X\(//\)[^/]' \| \
34737 X"$ac_file" : 'X\(//\)$' \| \
34738 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
34739 $as_echo X"$ac_file" |
34740 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34744 /^X\(\/\/\)[^/].*/{
34757 as_dir
="$ac_dir"; as_fn_mkdir_p
34761 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
34763 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
34764 # A ".." for each directory in $ac_dir_suffix.
34765 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
34766 case $ac_top_builddir_sub in
34767 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
34768 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
34771 ac_abs_top_builddir
=$ac_pwd
34772 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
34773 # for backward compatibility:
34774 ac_top_builddir
=$ac_top_build_prefix
34777 .
) # We are building in place.
34779 ac_top_srcdir
=$ac_top_builddir_sub
34780 ac_abs_top_srcdir
=$ac_pwd ;;
34781 [\\/]* | ?
:[\\/]* ) # Absolute name.
34782 ac_srcdir
=$srcdir$ac_dir_suffix;
34783 ac_top_srcdir
=$srcdir
34784 ac_abs_top_srcdir
=$srcdir ;;
34785 *) # Relative name.
34786 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
34787 ac_top_srcdir
=$ac_top_build_prefix$srcdir
34788 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
34790 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
34800 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
34801 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
34803 ac_MKDIR_P
=$MKDIR_P
34805 [\\/$
]* | ?
:[\\/]* ) ;;
34806 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
34810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
34811 # If the template does not know about datarootdir, expand it.
34812 # FIXME: This hack should be removed a few years after 2.60.
34813 ac_datarootdir_hack
=; ac_datarootdir_seen
=
34824 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
34825 *datarootdir
*) ac_datarootdir_seen
=yes;;
34826 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
34827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
34828 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
34830 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34831 ac_datarootdir_hack='
34832 s&@datadir@&$datadir&g
34833 s&@docdir@&$docdir&g
34834 s&@infodir@&$infodir&g
34835 s&@localedir@&$localedir&g
34836 s&@mandir@&$mandir&g
34837 s&\\\${datarootdir}&$datarootdir&g' ;;
34841 # Neutralize VPATH when `$srcdir' = `.'.
34842 # Shell code in configure.ac might set extrasub.
34843 # FIXME: do we really want to maintain this feature?
34844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
34845 ac_sed_extra="$ac_vpsub
34848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
34850 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
34851 s|@configure_input@|
$ac_sed_conf_input|
;t t
34852 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
34853 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
34854 s
&@srcdir@
&$ac_srcdir&;t t
34855 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
34856 s
&@top_srcdir@
&$ac_top_srcdir&;t t
34857 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
34858 s
&@builddir@
&$ac_builddir&;t t
34859 s
&@abs_builddir@
&$ac_abs_builddir&;t t
34860 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
34861 s
&@INSTALL@
&$ac_INSTALL&;t t
34862 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
34863 $ac_datarootdir_hack
34865 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
34866 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
34868 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
34869 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
34870 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
34871 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
34872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
34873 which seems to be undefined. Please make sure it is defined" >&5
34874 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
34875 which seems to be undefined. Please make sure it is defined" >&2;}
34877 rm -f "$ac_tmp/stdin"
34879 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
34880 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
34882 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34888 if test x"$ac_file" != x-; then
34890 $as_echo "/* $configure_input */" \
34891 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
34892 } >"$ac_tmp/config.h" \
34893 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34894 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
34895 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
34896 $as_echo "$as_me: $ac_file is unchanged" >&6;}
34899 mv "$ac_tmp/config.h" "$ac_file" \
34900 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
34903 $as_echo "/* $configure_input */" \
34904 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
34905 || as_fn_error $? "could not create -" "$LINENO" 5
34907 # Compute "$ac_file"'s index
in $config_headers.
34910 for _am_header
in $config_headers :; do
34911 case $_am_header in
34912 $_am_arg |
$_am_arg:* )
34915 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
34918 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
34919 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34920 X"$_am_arg" : 'X\(//\)[^/]' \| \
34921 X"$_am_arg" : 'X\(//\)$' \| \
34922 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
34923 $as_echo X"$_am_arg" |
34924 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34928 /^X\(\/\/\)[^/].*/{
34940 s/.*/./; q'`/stamp-h
$_am_stamp_count
34943 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
34944 $as_echo "$as_me: executing $ac_file commands" >&6;}
34949 case $ac_file$ac_mode in
34951 (mv zfs_config.h zfs_config.h.tmp
&&
34952 awk -f ${ac_srcdir}/config
/config.
awk zfs_config.h.tmp
>zfs_config.h
&&
34953 rm zfs_config.h.tmp
) ||
exit 1 ;;
34954 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
34955 # Older Autoconf quotes --file arguments for eval, but not when files
34956 # are listed without --file. Let's play safe and only enable the eval
34957 # if we detect the quoting.
34958 case $CONFIG_FILES in
34959 *\'*) eval set x
"$CONFIG_FILES" ;;
34960 *) set x
$CONFIG_FILES ;;
34965 # Strip MF so we end up with the name of the file.
34966 mf
=`echo "$mf" | sed -e 's/:.*$//'`
34967 # Check whether this is an Automake generated Makefile or not.
34968 # We used to match only the files named 'Makefile.in', but
34969 # some people rename them; so instead we look at the file content.
34970 # Grep'ing the first line is not enough: some people post-process
34971 # each Makefile.in and add a new line on top of each file to say so.
34972 # Grep'ing the whole file is not good either: AIX grep has a line
34973 # limit of 2048, but all sed's we know have understand at least 4000.
34974 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
34975 dirpart
=`$as_dirname -- "$mf" ||
34976 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34977 X"$mf" : 'X\(//\)[^/]' \| \
34978 X"$mf" : 'X\(//\)$' \| \
34979 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
34981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
34985 /^X\(\/\/\)[^/].*/{
35001 # Extract the definition of DEPDIR, am__include, and am__quote
35002 # from the Makefile without running 'make'.
35003 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
35004 test -z "$DEPDIR" && continue
35005 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
35006 test -z "$am__include" && continue
35007 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
35008 # Find all dependency output files, they are included files with
35009 # $(DEPDIR) in their names. We invoke sed twice because it is the
35010 # simplest approach to changing $(DEPDIR) to its actual value in the
35012 for file in `sed -n "
35013 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
35014 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
35015 # Make sure the directory exists.
35016 test -f "$dirpart/$file" && continue
35017 fdir
=`$as_dirname -- "$file" ||
35018 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35019 X"$file" : 'X\(//\)[^/]' \| \
35020 X"$file" : 'X\(//\)$' \| \
35021 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
35022 $as_echo X"$file" |
35023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35027 /^X\(\/\/\)[^/].*/{
35040 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
35041 # echo "creating $dirpart/$file"
35042 echo '# dummy' > "$dirpart/$file"
35049 # See if we are running on zsh, and set the options that allow our
35050 # commands through without removal of \ escapes.
35051 if test -n "${ZSH_VERSION+set}"; then
35052 setopt NO_GLOB_SUBST
35056 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
35059 cat <<_LT_EOF >> "$cfgfile"
35061 # Generated automatically by $as_me ($PACKAGE) $VERSION
35062 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
35063 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
35065 # Provide generalized library-building support services.
35066 # Written by Gordon Matzigkeit, 1996
35068 # Copyright (C) 2014 Free Software Foundation, Inc.
35069 # This is free software; see the source for copying conditions. There is NO
35070 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
35072 # GNU Libtool is free software; you can redistribute it and/or modify
35073 # it under the terms of the GNU General Public License as published by
35074 # the Free Software Foundation; either version 2 of of the License, or
35075 # (at your option) any later version.
35077 # As a special exception to the GNU General Public License, if you
35078 # distribute this file as part of a program or library that is built
35079 # using GNU Libtool, you may include this file under the same
35080 # distribution terms that you use for the rest of that program.
35082 # GNU Libtool is distributed in the hope that it will be useful, but
35083 # WITHOUT ANY WARRANTY; without even the implied warranty of
35084 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
35085 # GNU General Public License for more details.
35087 # You should have received a copy of the GNU General Public License
35088 # along with this program. If not, see <http://www.gnu.org/licenses/>.
35091 # The names of the tagged configurations supported by this script.
35094 # Configured defaults for sys_lib_dlsearch_path munging.
35095 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
35097 # ### BEGIN LIBTOOL CONFIG
35099 # Which release of libtool.m4 was used?
35100 macro_version=$macro_version
35101 macro_revision=$macro_revision
35103 # Whether or not to build shared libraries.
35104 build_libtool_libs=$enable_shared
35106 # Whether or not to build static libraries.
35107 build_old_libs=$enable_static
35109 # What type of objects to build.
35112 # Whether or not to optimize for fast installation.
35113 fast_install=$enable_fast_install
35115 # Shared archive member basename,for filename based shared library versioning on AIX.
35116 shared_archive_member_spec=$shared_archive_member_spec
35118 # Shell to use when invoking shell scripts.
35121 # An echo program that protects backslashes.
35124 # The PATH separator for the build system.
35125 PATH_SEPARATOR=$lt_PATH_SEPARATOR
35128 host_alias=$host_alias
35132 # The build system.
35133 build_alias=$build_alias
35137 # A sed program that does not truncate output.
35140 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
35141 Xsed="\$SED -e 1s/^X//"
35143 # A grep program that handles long lines.
35149 # A literal string matcher.
35152 # A BSD- or MS-compatible name lister.
35155 # Whether we need soft or hard links.
35158 # What is the maximum length of a command?
35159 max_cmd_len=$max_cmd_len
35161 # Object file suffix (normally "o").
35164 # Executable file suffix (normally "").
35167 # whether the shell understands "unset".
35170 # turn spaces into newlines.
35173 # turn newlines into spaces.
35176 # convert \$build file names to \$host format.
35177 to_host_file_cmd=$lt_cv_to_host_file_cmd
35179 # convert \$build files to toolchain format.
35180 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
35182 # An object symbol dumper.
35183 OBJDUMP=$lt_OBJDUMP
35185 # Method to check whether dependent libraries are shared objects.
35186 deplibs_check_method=$lt_deplibs_check_method
35188 # Command to use when deplibs_check_method = "file_magic".
35189 file_magic_cmd=$lt_file_magic_cmd
35191 # How to find potential files when deplibs_check_method = "file_magic".
35192 file_magic_glob=$lt_file_magic_glob
35194 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
35195 want_nocaseglob=$lt_want_nocaseglob
35197 # DLL creation program.
35198 DLLTOOL=$lt_DLLTOOL
35200 # Command to associate shared and link libraries.
35201 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
35206 # Flags to create an archive.
35207 AR_FLAGS=$lt_AR_FLAGS
35209 # How to feed a file listing to the archiver.
35210 archiver_list_spec=$lt_archiver_list_spec
35212 # A symbol stripping program.
35215 # Commands used to install an old-style archive.
35217 old_postinstall_cmds=$lt_old_postinstall_cmds
35218 old_postuninstall_cmds=$lt_old_postuninstall_cmds
35220 # Whether to use a lock for old archive extraction.
35221 lock_old_archive_extraction=$lock_old_archive_extraction
35226 # LTCC compiler flags.
35227 LTCFLAGS=$lt_CFLAGS
35229 # Take the output of nm and produce a listing of raw symbols and C names.
35230 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
35232 # Transform the output of nm in a proper C declaration.
35233 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
35235 # Transform the output of nm into a list of symbols to manually relocate.
35236 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
35238 # Transform the output of nm in a C name address pair.
35239 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
35241 # Transform the output of nm in a C name address pair when lib prefix is needed.
35242 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
35244 # The name lister interface.
35245 nm_interface=$lt_lt_cv_nm_interface
35247 # Specify filename containing input files for \$NM.
35248 nm_file_list_spec=$lt_nm_file_list_spec
35250 # The root where to search for dependent libraries,and where our libraries should be installed.
35251 lt_sysroot=$lt_sysroot
35253 # Command to truncate a binary pipe.
35254 lt_truncate_bin=$lt_lt_cv_truncate_bin
35256 # The name of the directory that contains temporary libtool files.
35259 # Used to examine libraries when file_magic_cmd begins with "file".
35260 MAGIC_CMD=$MAGIC_CMD
35262 # Must we lock files when doing compilation?
35263 need_locks=$lt_need_locks
35266 MANIFEST_TOOL=$lt_MANIFEST_TOOL
35268 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
35269 DSYMUTIL=$lt_DSYMUTIL
35271 # Tool to change global to local symbols on Mac OS X.
35274 # Tool to manipulate fat objects and archives on Mac OS X.
35277 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
35280 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
35281 OTOOL64=$lt_OTOOL64
35283 # Old archive suffix (normally "a").
35286 # Shared library suffix (normally ".so").
35287 shrext_cmds=$lt_shrext_cmds
35289 # The commands to extract the exported symbol list from a shared archive.
35290 extract_expsyms_cmds=$lt_extract_expsyms_cmds
35292 # Variables whose values should be saved in libtool wrapper scripts and
35293 # restored at link time.
35294 variables_saved_for_relink=$lt_variables_saved_for_relink
35296 # Do we need the "lib" prefix for modules?
35297 need_lib_prefix=$need_lib_prefix
35299 # Do we need a version for libraries?
35300 need_version=$need_version
35302 # Library versioning type.
35303 version_type=$version_type
35305 # Shared library runtime path variable.
35306 runpath_var=$runpath_var
35308 # Shared library path variable.
35309 shlibpath_var=$shlibpath_var
35311 # Is shlibpath searched before the hard-coded library search path?
35312 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
35314 # Format of library name prefix.
35315 libname_spec=$lt_libname_spec
35317 # List of archive names. First name is the real one, the rest are links.
35318 # The last name is the one that the linker finds with -lNAME
35319 library_names_spec=$lt_library_names_spec
35321 # The coded name of the library, if different from the real name.
35322 soname_spec=$lt_soname_spec
35324 # Permission mode override for installation of shared libraries.
35325 install_override_mode=$lt_install_override_mode
35327 # Command to use after installation of a shared archive.
35328 postinstall_cmds=$lt_postinstall_cmds
35330 # Command to use after uninstallation of a shared archive.
35331 postuninstall_cmds=$lt_postuninstall_cmds
35333 # Commands used to finish a libtool library installation in a directory.
35334 finish_cmds=$lt_finish_cmds
35336 # As "finish_cmds", except a single script fragment to be evaled but
35338 finish_eval=$lt_finish_eval
35340 # Whether we should hardcode library paths into libraries.
35341 hardcode_into_libs=$hardcode_into_libs
35343 # Compile-time system search path for libraries.
35344 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
35346 # Detected run-time system search path for libraries.
35347 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
35349 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
35350 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
35352 # Whether dlopen is supported.
35353 dlopen_support=$enable_dlopen
35355 # Whether dlopen of programs is supported.
35356 dlopen_self=$enable_dlopen_self
35358 # Whether dlopen of statically linked programs is supported.
35359 dlopen_self_static=$enable_dlopen_self_static
35361 # Commands to strip libraries.
35362 old_striplib=$lt_old_striplib
35363 striplib=$lt_striplib
35366 # The linker used to build libraries.
35369 # How to create reloadable object files.
35370 reload_flag=$lt_reload_flag
35371 reload_cmds=$lt_reload_cmds
35373 # Commands used to build an old-style archive.
35374 old_archive_cmds=$lt_old_archive_cmds
35376 # A language specific compiler.
35379 # Is the compiler the GNU compiler?
35382 # Compiler flag to turn off builtin functions.
35383 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
35385 # Additional compiler flags for building library objects.
35386 pic_flag=$lt_lt_prog_compiler_pic
35388 # How to pass a linker flag through the compiler.
35389 wl=$lt_lt_prog_compiler_wl
35391 # Compiler flag to prevent dynamic linking.
35392 link_static_flag=$lt_lt_prog_compiler_static
35394 # Does compiler simultaneously support -c and -o options?
35395 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
35397 # Whether or not to add -lc for building shared libraries.
35398 build_libtool_need_lc=$archive_cmds_need_lc
35400 # Whether or not to disallow shared libs when runtime libs are static.
35401 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
35403 # Compiler flag to allow reflexive dlopens.
35404 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
35406 # Compiler flag to generate shared objects directly from archives.
35407 whole_archive_flag_spec=$lt_whole_archive_flag_spec
35409 # Whether the compiler copes with passing no objects directly.
35410 compiler_needs_object=$lt_compiler_needs_object
35412 # Create an old-style archive from a shared archive.
35413 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
35415 # Create a temporary old-style archive to link instead of a shared archive.
35416 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
35418 # Commands used to build a shared archive.
35419 archive_cmds=$lt_archive_cmds
35420 archive_expsym_cmds=$lt_archive_expsym_cmds
35422 # Commands used to build a loadable module if different from building
35423 # a shared archive.
35424 module_cmds=$lt_module_cmds
35425 module_expsym_cmds=$lt_module_expsym_cmds
35427 # Whether we are building with GNU ld or not.
35428 with_gnu_ld=$lt_with_gnu_ld
35430 # Flag that allows shared libraries with undefined symbols to be built.
35431 allow_undefined_flag=$lt_allow_undefined_flag
35433 # Flag that enforces no undefined symbols.
35434 no_undefined_flag=$lt_no_undefined_flag
35436 # Flag to hardcode \$libdir into a binary during linking.
35437 # This must work even if \$libdir does not exist
35438 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
35440 # Whether we need a single "-rpath" flag with a separated argument.
35441 hardcode_libdir_separator=$lt_hardcode_libdir_separator
35443 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
35444 # DIR into the resulting binary.
35445 hardcode_direct=$hardcode_direct
35447 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
35448 # DIR into the resulting binary and the resulting library dependency is
35449 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
35450 # library is relocated.
35451 hardcode_direct_absolute=$hardcode_direct_absolute
35453 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
35454 # into the resulting binary.
35455 hardcode_minus_L=$hardcode_minus_L
35457 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
35458 # into the resulting binary.
35459 hardcode_shlibpath_var=$hardcode_shlibpath_var
35461 # Set to "yes" if building a shared library automatically hardcodes DIR
35462 # into the library and all subsequent libraries and executables linked
35464 hardcode_automatic=$hardcode_automatic
35466 # Set to yes if linker adds runtime paths of dependent libraries
35467 # to runtime path list.
35468 inherit_rpath=$inherit_rpath
35470 # Whether libtool must link a program against all its dependency libraries.
35471 link_all_deplibs=$link_all_deplibs
35473 # Set to "yes" if exported symbols are required.
35474 always_export_symbols=$always_export_symbols
35476 # The commands to list exported symbols.
35477 export_symbols_cmds=$lt_export_symbols_cmds
35479 # Symbols that should not be listed in the preloaded symbols.
35480 exclude_expsyms=$lt_exclude_expsyms
35482 # Symbols that must always be exported.
35483 include_expsyms=$lt_include_expsyms
35485 # Commands necessary for linking programs (against libraries) with templates.
35486 prelink_cmds=$lt_prelink_cmds
35488 # Commands necessary for finishing linking programs.
35489 postlink_cmds=$lt_postlink_cmds
35491 # Specify filename containing input files.
35492 file_list_spec=$lt_file_list_spec
35494 # How to hardcode a shared library path into an executable.
35495 hardcode_action=$hardcode_action
35497 # ### END LIBTOOL CONFIG
35501 cat <<'_LT_EOF' >> "$cfgfile"
35503 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
35505 # func_munge_path_list VARIABLE PATH
35506 # -----------------------------------
35507 # VARIABLE is name of variable containing _space_ separated list of
35508 # directories to be munged by the contents of PATH, which is string
35511 # string "DIR[ DIR]" will be prepended to VARIABLE
35513 # string "DIR[ DIR]" will be appended to VARIABLE
35514 # "DIRP[:DIRP]::[DIRA:]DIRA"
35515 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
35516 # "DIRA[ DIRA]" will be appended to VARIABLE
35518 # VARIABLE will be replaced by "DIR[ DIR]"
35519 func_munge_path_list ()
35525 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
35528 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
35531 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
35532 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
35535 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
35541 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
35542 func_cc_basename ()
35544 for cc_temp in $*""; do
35546 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
35547 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
35552 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
35556 # ### END FUNCTIONS SHARED WITH CONFIGURE
35562 cat <<\_LT_EOF
>> "$cfgfile"
35563 # AIX sometimes has problems with the GCC collect2 program. For some
35564 # reason, if we set the COLLECT_NAMES environment variable, the problems
35565 # vanish in a puff of smoke.
35566 if test set != "${COLLECT_NAMES+set}"; then
35568 export COLLECT_NAMES
35575 ltmain
=$ac_aux_dir/ltmain.sh
35578 # We use sed instead of cat because bash on DJGPP gets confused if
35579 # if finds mixed CR/LF and LF-only lines. Since sed operates in
35580 # text mode, it properly converts lines to CR/LF. This bash problem
35581 # is reportedly fixed, but why not run on old versions too?
35582 sed '$q' "$ltmain" >> "$cfgfile" \
35583 ||
(rm -f "$cfgfile"; exit 1)
35585 mv -f "$cfgfile" "$ofile" ||
35586 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
35597 ac_clean_files
=$ac_clean_files_save
35599 test $ac_write_fail = 0 ||
35600 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
35603 # configure is writing to config.log, and then calls config.status.
35604 # config.status does its own redirection, appending to config.log.
35605 # Unfortunately, on DOS this fails, as config.log is still kept open
35606 # by configure, so config.status won't be able to write to it; its
35607 # output is simply discarded. So we exec the FD to /dev/null,
35608 # effectively closing config.log, so it can be properly (re)opened and
35609 # appended to by config.status. When coming back to configure, we
35610 # need to make the FD available again.
35611 if test "$no_create" != yes; then
35613 ac_config_status_args
=
35614 test "$silent" = yes &&
35615 ac_config_status_args
="$ac_config_status_args --quiet"
35617 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
35619 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
35620 # would make configure fail if this is the last instruction.
35621 $ac_cs_success || as_fn_exit
1
35623 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
35624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
35625 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}