2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for zfs 0.6.4.2.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x
; then
138 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required
="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
183 test \$(( 1 + 1 )) = 2 || exit 1"
184 if (eval "$as_required") 2>/dev
/null
; then :
189 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
192 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
194 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
197 test -z "$as_dir" && as_dir
=.
201 for as_base
in sh bash ksh sh5
; do
202 # Try only shells that exist, to save several forks.
203 as_shell
=$as_dir/$as_base
204 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 CONFIG_SHELL
=$as_shell as_have_required
=yes
207 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
215 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
217 CONFIG_SHELL
=$SHELL as_have_required
=yes
222 if test "x$CONFIG_SHELL" != x
; then :
223 # We cannot yet assume a decent shell, so we have to provide a
224 # neutralization value for shells without unset; and this also
225 # works around shells that cannot unset nonexistent variables.
226 # Preserve -v and -x to the replacement shell.
229 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
232 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
237 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 if test x
$as_have_required = xno
; then :
241 $as_echo "$0: This script requires a shell more modern than all"
242 $as_echo "$0: the shells that I found on your system."
243 if test x
${ZSH_VERSION+set} = xset
; then
244 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
245 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
247 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
248 $0: including any error possibly output before this
249 $0: message. Then install a modern shell, or manually run
250 $0: the script under such a shell if you do have one."
256 SHELL
=${CONFIG_SHELL-/bin/sh}
258 # Unset more variables known to interfere with behavior of common tools.
259 CLICOLOR_FORCE
= GREP_OPTIONS
=
260 unset CLICOLOR_FORCE GREP_OPTIONS
262 ## --------------------- ##
263 ## M4sh Shell Functions. ##
264 ## --------------------- ##
267 # Portably unset VAR.
270 { eval $1=; unset $1;}
274 # as_fn_set_status STATUS
275 # -----------------------
276 # Set $? to STATUS, without forking.
284 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
294 # Create "$as_dir" as a directory, including parents if necessary.
299 -*) as_dir
=.
/$as_dir;;
301 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
305 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
308 as_dirs
="'$as_qdir' $as_dirs"
309 as_dir
=`$as_dirname -- "$as_dir" ||
310 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
311 X"$as_dir" : 'X\(//\)[^/]' \| \
312 X"$as_dir" : 'X\(//\)$' \| \
313 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
314 $as_echo X"$as_dir" |
315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
332 test -d "$as_dir" && break
334 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
335 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
339 # as_fn_append VAR VALUE
340 # ----------------------
341 # Append the text in VALUE to the end of the definition contained in VAR. Take
342 # advantage of any shell optimizations that allow amortized linear growth over
343 # repeated appends, instead of the typical quadratic growth present in naive
345 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
346 eval 'as_fn_append ()
359 # Perform arithmetic evaluation on the ARGs, and store the result in the
360 # global $as_val. Take advantage of shells that can avoid forks. The arguments
361 # must be portable across $(()) and expr.
362 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
370 as_val
=`expr "$@" || test $? -eq 1`
375 # as_fn_error STATUS ERROR [LINENO LOG_FD]
376 # ----------------------------------------
377 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
378 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
379 # script with STATUS, using 1 if that was 0.
382 as_status
=$1; test $as_status -eq 0 && as_status
=1
384 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
385 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
387 $as_echo "$as_me: error: $2" >&2
388 as_fn_exit
$as_status
391 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
392 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
398 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
404 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
410 as_me
=`$as_basename -- "$0" ||
411 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
412 X"$0" : 'X\(//\)$' \| \
413 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
415 sed '/^.*\/\([^/][^/]*\)\/*$/{
429 # Avoid depending upon Character Ranges.
430 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
431 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
432 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
433 as_cr_digits
='0123456789'
434 as_cr_alnum
=$as_cr_Letters$as_cr_digits
437 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
438 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
439 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
440 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
441 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
453 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
457 chmod +x
"$as_me.lineno" ||
458 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
460 # Don't try to exec as it changes $[0], causing all sort of problems
461 # (the dirname of $[0] is not the place where we might find the
462 # original and so on. Autoconf is especially sensitive to this).
464 # Exit status is that of the last command.
468 ECHO_C
= ECHO_N
= ECHO_T
=
469 case `echo -n x` in #(((((
471 case `echo 'xy\c'` in
472 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
474 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
481 rm -f conf$$ conf$$.exe conf$$.
file
482 if test -d conf$$.dir
; then
483 rm -f conf$$.dir
/conf$$.
file
486 mkdir conf$$.dir
2>/dev
/null
488 if (echo >conf$$.
file) 2>/dev
/null
; then
489 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
491 # ... but there are two gotchas:
492 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
493 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
494 # In both cases, we have to default to `cp -p'.
495 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
497 elif ln conf$$.
file conf$$
2>/dev
/null
; then
505 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
506 rmdir conf$$.dir
2>/dev
/null
508 if mkdir
-p .
2>/dev
/null
; then
509 as_mkdir_p
='mkdir -p "$as_dir"'
511 test -d .
/-p && rmdir .
/-p
515 if test -x / >/dev
/null
2>&1; then
518 if ls -dL / >/dev
/null
2>&1; then
525 if test -d "$1"; then
531 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
532 ???[sx]*):;;*)false;;esac;fi
536 as_executable_p
=$as_test_x
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
544 SHELL
=${CONFIG_SHELL-/bin/sh}
547 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
551 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
552 # so uname gets run too.
553 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
558 ac_default_prefix
=/usr
/local
560 ac_config_libobj_dir
=.
567 # Identity of this package.
569 PACKAGE_TARNAME
='zfs'
570 PACKAGE_VERSION
='0.6.4.2'
571 PACKAGE_STRING
='zfs 0.6.4.2'
575 # Factoring default headers for most tests.
576 ac_includes_default
="\
578 #ifdef HAVE_SYS_TYPES_H
579 # include <sys/types.h>
581 #ifdef HAVE_SYS_STAT_H
582 # include <sys/stat.h>
588 # ifdef HAVE_STDLIB_H
593 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
598 #ifdef HAVE_STRINGS_H
599 # include <strings.h>
601 #ifdef HAVE_INTTYPES_H
602 # include <inttypes.h>
611 ac_subst_vars
='am__EXEEXT_FALSE
648 NO_UNUSED_BUT_SET_VARIABLE
679 am__fastdepCCAS_FALSE
730 INSTALL_STRIP_PROGRAM
750 MAINTAINER_MODE_FALSE
803 program_transform_name
816 enable_option_checking
817 enable_maintainer_mode
819 enable_dependency_tracking
840 with_systemdpresetdir
841 with_systemdmodulesloaddir
848 ac_precious_vars
='build_alias
861 # Initialize some variables set by options.
863 ac_init_version
=false
864 ac_unrecognized_opts
=
866 # The variables have the same names as the options, with
867 # dashes changed to underlines.
875 program_transform_name
=s
,x
,x
,
883 # Installation directory options.
884 # These are left unexpanded so users can "make install exec_prefix=/foo"
885 # and all the variables that are supposed to be based on exec_prefix
886 # by default will actually change.
887 # Use braces instead of parens because sh, perl, etc. also accept them.
888 # (The list follows the same order as the GNU Coding Standards.)
889 bindir
='${exec_prefix}/bin'
890 sbindir
='${exec_prefix}/sbin'
891 libexecdir
='${exec_prefix}/libexec'
892 datarootdir
='${prefix}/share'
893 datadir
='${datarootdir}'
894 sysconfdir
='${prefix}/etc'
895 sharedstatedir
='${prefix}/com'
896 localstatedir
='${prefix}/var'
897 includedir
='${prefix}/include'
898 oldincludedir
='/usr/include'
899 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
900 infodir
='${datarootdir}/info'
905 libdir
='${exec_prefix}/lib'
906 localedir
='${datarootdir}/locale'
907 mandir
='${datarootdir}/man'
913 # If the previous option needs an argument, assign it.
914 if test -n "$ac_prev"; then
915 eval $ac_prev=\
$ac_option
921 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
926 # Accept the important Cygnus configure options, so we can diagnose typos.
928 case $ac_dashdash$ac_option in
932 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
934 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
937 -build |
--build |
--buil |
--bui |
--bu)
938 ac_prev
=build_alias
;;
939 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
940 build_alias
=$ac_optarg ;;
942 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
943 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
944 ac_prev
=cache_file
;;
945 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
946 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
947 cache_file
=$ac_optarg ;;
950 cache_file
=config.cache
;;
952 -datadir |
--datadir |
--datadi |
--datad)
954 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
955 datadir
=$ac_optarg ;;
957 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
958 |
--dataroo |
--dataro |
--datar)
959 ac_prev
=datarootdir
;;
960 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
961 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
962 datarootdir
=$ac_optarg ;;
964 -disable-* |
--disable-*)
965 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
966 # Reject names that are not valid shell variable names.
967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
968 as_fn_error $?
"invalid feature name: $ac_useropt"
969 ac_useropt_orig
=$ac_useropt
970 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
971 case $ac_user_opts in
975 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
976 ac_unrecognized_sep
=', ';;
978 eval enable_
$ac_useropt=no
;;
980 -docdir |
--docdir |
--docdi |
--doc |
--do)
982 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
985 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
987 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
990 -enable-* |
--enable-*)
991 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
992 # Reject names that are not valid shell variable names.
993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
994 as_fn_error $?
"invalid feature name: $ac_useropt"
995 ac_useropt_orig
=$ac_useropt
996 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
997 case $ac_user_opts in
1001 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1002 ac_unrecognized_sep
=', ';;
1004 eval enable_
$ac_useropt=\
$ac_optarg ;;
1006 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1007 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1008 |
--exec |
--exe |
--ex)
1009 ac_prev
=exec_prefix
;;
1010 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1011 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1012 |
--exec=* |
--exe=* |
--ex=*)
1013 exec_prefix
=$ac_optarg ;;
1015 -gas |
--gas |
--ga |
--g)
1016 # Obsolete; use --with-gas.
1019 -help |
--help |
--hel |
--he |
-h)
1020 ac_init_help
=long
;;
1021 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1022 ac_init_help
=recursive
;;
1023 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1024 ac_init_help
=short
;;
1026 -host |
--host |
--hos |
--ho)
1027 ac_prev
=host_alias
;;
1028 -host=* |
--host=* |
--hos=* |
--ho=*)
1029 host_alias
=$ac_optarg ;;
1031 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1033 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1035 htmldir
=$ac_optarg ;;
1037 -includedir |
--includedir |
--includedi |
--included |
--include \
1038 |
--includ |
--inclu |
--incl |
--inc)
1039 ac_prev
=includedir
;;
1040 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1041 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1042 includedir
=$ac_optarg ;;
1044 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1046 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1047 infodir
=$ac_optarg ;;
1049 -libdir |
--libdir |
--libdi |
--libd)
1051 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1052 libdir
=$ac_optarg ;;
1054 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1055 |
--libexe |
--libex |
--libe)
1056 ac_prev
=libexecdir
;;
1057 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1058 |
--libexe=* |
--libex=* |
--libe=*)
1059 libexecdir
=$ac_optarg ;;
1061 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1062 ac_prev
=localedir
;;
1063 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1064 localedir
=$ac_optarg ;;
1066 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1067 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1068 ac_prev
=localstatedir
;;
1069 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1070 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1071 localstatedir
=$ac_optarg ;;
1073 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1075 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1076 mandir
=$ac_optarg ;;
1078 -nfp |
--nfp |
--nf)
1079 # Obsolete; use --without-fp.
1082 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1083 |
--no-cr |
--no-c |
-n)
1086 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1087 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1090 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1091 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1092 |
--oldin |
--oldi |
--old |
--ol |
--o)
1093 ac_prev
=oldincludedir
;;
1094 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1095 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1096 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1097 oldincludedir
=$ac_optarg ;;
1099 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1101 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1102 prefix
=$ac_optarg ;;
1104 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1105 |
--program-pre |
--program-pr |
--program-p)
1106 ac_prev
=program_prefix
;;
1107 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1108 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1109 program_prefix
=$ac_optarg ;;
1111 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1112 |
--program-suf |
--program-su |
--program-s)
1113 ac_prev
=program_suffix
;;
1114 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1115 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1116 program_suffix
=$ac_optarg ;;
1118 -program-transform-name |
--program-transform-name \
1119 |
--program-transform-nam |
--program-transform-na \
1120 |
--program-transform-n |
--program-transform- \
1121 |
--program-transform |
--program-transfor \
1122 |
--program-transfo |
--program-transf \
1123 |
--program-trans |
--program-tran \
1124 |
--progr-tra |
--program-tr |
--program-t)
1125 ac_prev
=program_transform_name
;;
1126 -program-transform-name=* |
--program-transform-name=* \
1127 |
--program-transform-nam=* |
--program-transform-na=* \
1128 |
--program-transform-n=* |
--program-transform-=* \
1129 |
--program-transform=* |
--program-transfor=* \
1130 |
--program-transfo=* |
--program-transf=* \
1131 |
--program-trans=* |
--program-tran=* \
1132 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1133 program_transform_name
=$ac_optarg ;;
1135 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1137 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1138 pdfdir
=$ac_optarg ;;
1140 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1142 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1145 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1146 |
-silent |
--silent |
--silen |
--sile |
--sil)
1149 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1151 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1153 sbindir
=$ac_optarg ;;
1155 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1156 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1157 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1159 ac_prev
=sharedstatedir
;;
1160 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1161 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1162 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1164 sharedstatedir
=$ac_optarg ;;
1166 -site |
--site |
--sit)
1168 -site=* |
--site=* |
--sit=*)
1171 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1173 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1174 srcdir
=$ac_optarg ;;
1176 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1177 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1178 ac_prev
=sysconfdir
;;
1179 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1180 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1181 sysconfdir
=$ac_optarg ;;
1183 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1184 ac_prev
=target_alias
;;
1185 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1186 target_alias
=$ac_optarg ;;
1188 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1191 -version |
--version |
--versio |
--versi |
--vers |
-V)
1192 ac_init_version
=: ;;
1195 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1198 as_fn_error $?
"invalid package name: $ac_useropt"
1199 ac_useropt_orig
=$ac_useropt
1200 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1205 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1206 ac_unrecognized_sep
=', ';;
1208 eval with_
$ac_useropt=\
$ac_optarg ;;
1210 -without-* |
--without-*)
1211 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1214 as_fn_error $?
"invalid package name: $ac_useropt"
1215 ac_useropt_orig
=$ac_useropt
1216 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1217 case $ac_user_opts in
1221 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1222 ac_unrecognized_sep
=', ';;
1224 eval with_
$ac_useropt=no
;;
1227 # Obsolete; use --with-x.
1230 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1231 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1232 ac_prev
=x_includes
;;
1233 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1234 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1235 x_includes
=$ac_optarg ;;
1237 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1238 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1239 ac_prev
=x_libraries
;;
1240 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1241 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1242 x_libraries
=$ac_optarg ;;
1244 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1245 Try \`$0 --help' for more information"
1249 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1250 # Reject names that are not valid shell variable names.
1251 case $ac_envvar in #(
1252 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1253 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1255 eval $ac_envvar=\
$ac_optarg
1256 export $ac_envvar ;;
1259 # FIXME: should be removed in autoconf 3.0.
1260 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1261 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1262 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1263 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1269 if test -n "$ac_prev"; then
1270 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1271 as_fn_error $?
"missing argument to $ac_option"
1274 if test -n "$ac_unrecognized_opts"; then
1275 case $enable_option_checking in
1277 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1278 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1282 # Check all directory arguments for consistency.
1283 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1284 datadir sysconfdir sharedstatedir localstatedir includedir \
1285 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1286 libdir localedir mandir
1288 eval ac_val
=\$
$ac_var
1289 # Remove trailing slashes.
1292 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1293 eval $ac_var=\
$ac_val;;
1295 # Be sure to have absolute directory names.
1297 [\\/$
]* | ?
:[\\/]* ) continue;;
1298 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1300 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1303 # There might be people who depend on the old broken behavior: `$host'
1304 # used to hold the argument of --host etc.
1305 # FIXME: To remove some day.
1308 target
=$target_alias
1310 # FIXME: To remove some day.
1311 if test "x$host_alias" != x
; then
1312 if test "x$build_alias" = x
; then
1313 cross_compiling
=maybe
1314 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1315 If a cross compiler is detected then cross compile mode will be used" >&2
1316 elif test "x$build_alias" != "x$host_alias"; then
1322 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1324 test "$silent" = yes && exec 6>/dev
/null
1327 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1328 ac_ls_di
=`ls -di .` &&
1329 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1330 as_fn_error $?
"working directory cannot be determined"
1331 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1332 as_fn_error $?
"pwd does not report name of working directory"
1335 # Find the source files, if location was not specified.
1336 if test -z "$srcdir"; then
1337 ac_srcdir_defaulted
=yes
1338 # Try the directory containing this script, then the parent directory.
1339 ac_confdir
=`$as_dirname -- "$as_myself" ||
1340 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1341 X"$as_myself" : 'X\(//\)[^/]' \| \
1342 X"$as_myself" : 'X\(//\)$' \| \
1343 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1344 $as_echo X"$as_myself" |
1345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1363 if test ! -r "$srcdir/$ac_unique_file"; then
1367 ac_srcdir_defaulted
=no
1369 if test ! -r "$srcdir/$ac_unique_file"; then
1370 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1371 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1373 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1375 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1377 # When building in place, set srcdir=.
1378 if test "$ac_abs_confdir" = "$ac_pwd"; then
1381 # Remove unnecessary trailing slashes from srcdir.
1382 # Double slashes in file names in object file debugging info
1383 # mess up M-x gdb in Emacs.
1385 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387 for ac_var
in $ac_precious_vars; do
1388 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1389 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1390 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1391 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1395 # Report the --help message.
1397 if test "$ac_init_help" = "long"; then
1398 # Omit some internal or obsolete options to make the list less imposing.
1399 # This message is too long to be a string in the A/UX 3.1 sh.
1401 \`configure' configures zfs 0.6.4.2 to adapt to many kinds of systems.
1403 Usage: $0 [OPTION]... [VAR=VALUE]...
1405 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1406 VAR=VALUE. See below for descriptions of some of the useful variables.
1408 Defaults for the options are specified in brackets.
1411 -h, --help display this help and exit
1412 --help=short display options specific to this package
1413 --help=recursive display the short help of all the included packages
1414 -V, --version display version information and exit
1415 -q, --quiet, --silent do not print \`checking ...' messages
1416 --cache-file=FILE cache test results in FILE [disabled]
1417 -C, --config-cache alias for \`--cache-file=config.cache'
1418 -n, --no-create do not create output files
1419 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1421 Installation directories:
1422 --prefix=PREFIX install architecture-independent files in PREFIX
1423 [$ac_default_prefix]
1424 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1427 By default, \`make install' will install all the files in
1428 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1429 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1430 for instance \`--prefix=\$HOME'.
1432 For better control, use the options below.
1434 Fine tuning of the installation directories:
1435 --bindir=DIR user executables [EPREFIX/bin]
1436 --sbindir=DIR system admin executables [EPREFIX/sbin]
1437 --libexecdir=DIR program executables [EPREFIX/libexec]
1438 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1439 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1440 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1441 --libdir=DIR object code libraries [EPREFIX/lib]
1442 --includedir=DIR C header files [PREFIX/include]
1443 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1444 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1445 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1446 --infodir=DIR info documentation [DATAROOTDIR/info]
1447 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1448 --mandir=DIR man documentation [DATAROOTDIR/man]
1449 --docdir=DIR documentation root [DATAROOTDIR/doc/zfs]
1450 --htmldir=DIR html documentation [DOCDIR]
1451 --dvidir=DIR dvi documentation [DOCDIR]
1452 --pdfdir=DIR pdf documentation [DOCDIR]
1453 --psdir=DIR ps documentation [DOCDIR]
1459 --program-prefix=PREFIX prepend PREFIX to installed program names
1460 --program-suffix=SUFFIX append SUFFIX to installed program names
1461 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1464 --build=BUILD configure
for building on BUILD
[guessed
]
1465 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1466 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1470 if test -n "$ac_init_help"; then
1471 case $ac_init_help in
1472 short | recursive
) echo "Configuration of zfs 0.6.4.2:";;
1477 --disable-option-checking ignore unrecognized
--enable/--with options
1478 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1479 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1480 --enable-maintainer-mode enable make rules and dependencies not useful
1481 (and sometimes confusing
) to the casual installer
1482 --enable-silent-rules less verbose build output
(undo
: `make V=1')
1483 --disable-silent-rules verbose build output (undo: `make V
=0')
1484 --disable-dependency-tracking speeds up one-time build
1485 --enable-dependency-tracking do not reject slow dependency extractors
1486 --enable-shared[=PKGS] build shared libraries [default=yes]
1487 --enable-static[=PKGS] build static libraries [default=yes]
1488 --enable-fast-install[=PKGS]
1489 optimize for fast installation [default=yes]
1490 --disable-libtool-lock avoid locking (might break parallel builds)
1491 --enable-linux-builtin Configure for builtin in-tree kernel modules
1493 --enable-systemd install systemd unit/preset files [[default: yes]]
1494 --enable-sysvinit install SysV init scripts [default: yes]
1495 --enable-debug Enable generic debug support [default=no]
1496 --enable-debug-dmu-tx Enable dmu tx validation [default=no]
1499 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1500 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1501 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1503 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1504 --with-sysroot=DIR Search for dependent libraries within DIR
1505 (or the compiler's sysroot
if not specified
).
1506 --with-spec=SPEC Spec files
'generic|redhat'
1507 --with-config=CONFIG Config
file 'kernel|user|all|srpm'
1508 --with-linux=PATH Path to kernel
source
1509 --with-linux-obj=PATH Path to kernel build objects
1510 --with-spl=PATH Path to spl
source
1511 --with-spl-obj=PATH Path to spl build objects
1512 --with-spl-timeout=SECS Wait SECS
for SPL header and symver
file [default
=0]
1513 --with-mounthelperdir=DIR
1514 install mount.zfs
in dir
[[/sbin
]]
1515 --with-udevdir=DIR
install udev helpers
[default
=check
]
1516 --with-udevruledir=DIR
install udev rules
[[UDEVDIR
/rules.d
]]
1517 --with-systemdunitdir=DIR
1518 install systemd unit files
in dir
1519 [[/usr
/lib
/systemd
/system
]]
1520 --with-systemdpresetdir=DIR
1521 install systemd preset files
in dir
1522 [[/usr
/lib
/systemd
/system-preset
]]
1523 --with-systemdmodulesloaddir=DIR
1524 install systemd module load files into dir
1525 [[/usr
/lib
/modules-load.d
]]
1526 --with-dracutdir=DIR
install dracut helpers
[default
=check
]
1527 --with-blkid support blkid caching
[default
=check
]
1529 Some influential environment variables
:
1530 CC C compiler
command
1531 CFLAGS C compiler flags
1532 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1533 nonstandard directory
<lib dir
>
1534 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1535 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1536 you have headers
in a nonstandard directory
<include dir
>
1538 CCAS assembler compiler
command (defaults to CC
)
1539 CCASFLAGS assembler compiler flags
(defaults to CFLAGS
)
1541 Use these variables to override the choices made by
`configure' or to help
1542 it to find libraries and programs with nonstandard names/locations.
1544 Report bugs to the package provider.
1549 if test "$ac_init_help" = "recursive"; then
1550 # If there are subdirs, report their specific --help.
1551 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1552 test -d "$ac_dir" ||
1553 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1558 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1560 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1561 # A ".." for each directory in $ac_dir_suffix.
1562 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1563 case $ac_top_builddir_sub in
1564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1568 ac_abs_top_builddir=$ac_pwd
1569 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1570 # for backward compatibility:
1571 ac_top_builddir=$ac_top_build_prefix
1574 .) # We are building in place.
1576 ac_top_srcdir=$ac_top_builddir_sub
1577 ac_abs_top_srcdir=$ac_pwd ;;
1578 [\\/]* | ?:[\\/]* ) # Absolute name.
1579 ac_srcdir=$srcdir$ac_dir_suffix;
1580 ac_top_srcdir=$srcdir
1581 ac_abs_top_srcdir=$srcdir ;;
1583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1584 ac_top_srcdir=$ac_top_build_prefix$srcdir
1585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1587 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1589 cd "$ac_dir" || { ac_status=$?; continue; }
1590 # Check for guested configure.
1591 if test -f "$ac_srcdir/configure.gnu"; then
1593 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1594 elif test -f "$ac_srcdir/configure"; then
1596 $SHELL "$ac_srcdir/configure" --help=recursive
1598 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1600 cd "$ac_pwd" || { ac_status=$?; break; }
1604 test -n "$ac_init_help" && exit $ac_status
1605 if $ac_init_version; then
1607 zfs configure 0.6.4.2
1608 generated by GNU Autoconf 2.68
1610 Copyright (C) 2010 Free Software Foundation, Inc.
1611 This configure script is free software; the Free Software Foundation
1612 gives unlimited permission to copy, distribute and modify it.
1617 ## ------------------------ ##
1618 ## Autoconf initialization. ##
1619 ## ------------------------ ##
1621 # ac_fn_c_try_compile LINENO
1622 # --------------------------
1623 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1624 ac_fn_c_try_compile ()
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 rm -f conftest.$ac_objext
1628 if { { ac_try="$ac_compile"
1630 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1631 *) ac_try_echo
=$ac_try;;
1633 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634 $as_echo "$ac_try_echo"; } >&5
1635 (eval "$ac_compile") 2>conftest.err
1637 if test -s conftest.err
; then
1638 grep -v '^ *+' conftest.err
>conftest.er1
1639 cat conftest.er1
>&5
1640 mv -f conftest.er1 conftest.err
1642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643 test $ac_status = 0; } && {
1644 test -z "$ac_c_werror_flag" ||
1645 test ! -s conftest.err
1646 } && test -s conftest.
$ac_objext; then :
1649 $as_echo "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.
$ac_ext >&5
1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655 as_fn_set_status
$ac_retval
1657 } # ac_fn_c_try_compile
1659 # ac_fn_c_try_link LINENO
1660 # -----------------------
1661 # Try to link conftest.$ac_ext, and return whether this succeeded.
1664 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1665 rm -f conftest.
$ac_objext conftest
$ac_exeext
1666 if { { ac_try
="$ac_link"
1668 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1669 *) ac_try_echo=$ac_try;;
1671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672 $as_echo "$ac_try_echo"; } >&5
1673 (eval "$ac_link") 2>conftest.err
1675 if test -s conftest.err; then
1676 grep -v '^ *+' conftest.err >conftest.er1
1677 cat conftest.er1 >&5
1678 mv -f conftest.er1 conftest.err
1680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1681 test $ac_status = 0; } && {
1682 test -z "$ac_c_werror_flag" ||
1683 test ! -s conftest.err
1684 } && test -s conftest$ac_exeext && {
1685 test "$cross_compiling" = yes ||
1686 $as_test_x conftest$ac_exeext
1690 $as_echo "$as_me: failed program was:" >&5
1691 sed 's/^/| /' conftest.$ac_ext >&5
1695 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1696 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1697 # interfere with the next link command; also delete a directory that is
1698 # left behind by Apple's compiler. We do this before executing the actions.
1699 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701 as_fn_set_status $ac_retval
1703 } # ac_fn_c_try_link
1705 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1706 # -------------------------------------------------------
1707 # Tests whether HEADER exists and can be compiled using the include files in
1708 # INCLUDES, setting the cache variable VAR accordingly.
1709 ac_fn_c_check_header_compile ()
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1713 $as_echo_n "checking for $2... " >&6; }
1714 if eval \${$3+:} false; then :
1715 $as_echo_n "(cached) " >&6
1717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1718 /* end confdefs.h. */
1722 if ac_fn_c_try_compile "$LINENO"; then :
1727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1731 $as_echo "$ac_res" >&6; }
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734 } # ac_fn_c_check_header_compile
1736 # ac_fn_c_try_cpp LINENO
1737 # ----------------------
1738 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1742 if { { ac_try="$ac_cpp conftest.$ac_ext"
1744 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1745 *) ac_try_echo
=$ac_try;;
1747 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1748 $as_echo "$ac_try_echo"; } >&5
1749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1751 if test -s conftest.err
; then
1752 grep -v '^ *+' conftest.err
>conftest.er1
1753 cat conftest.er1
>&5
1754 mv -f conftest.er1 conftest.err
1756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1757 test $ac_status = 0; } > conftest.i
&& {
1758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1759 test ! -s conftest.err
1763 $as_echo "$as_me: failed program was:" >&5
1764 sed 's/^/| /' conftest.
$ac_ext >&5
1768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1769 as_fn_set_status
$ac_retval
1773 # ac_fn_c_try_run LINENO
1774 # ----------------------
1775 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1776 # that executables *can* be run.
1779 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1780 if { { ac_try
="$ac_link"
1782 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1783 *) ac_try_echo=$ac_try;;
1785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1786 $as_echo "$ac_try_echo"; } >&5
1787 (eval "$ac_link") 2>&5
1789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1791 { { case "(($ac_try" in
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_try") 2>&5
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; }; }; then :
1803 $as_echo "$as_me: program exited with status $ac_status" >&5
1804 $as_echo "$as_me: failed program was:" >&5
1805 sed 's/^/| /' conftest.
$ac_ext >&5
1807 ac_retval
=$ac_status
1809 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811 as_fn_set_status
$ac_retval
1815 # ac_fn_c_check_func LINENO FUNC VAR
1816 # ----------------------------------
1817 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1818 ac_fn_c_check_func
()
1820 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1822 $as_echo_n "checking for $2... " >&6; }
1823 if eval \
${$3+:} false
; then :
1824 $as_echo_n "(cached) " >&6
1826 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h. */
1828 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1829 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1830 #define $2 innocuous_$2
1832 /* System header to define __stub macros and hopefully few prototypes,
1833 which can conflict with char $2 (); below.
1834 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1835 <limits.h> exists even on freestanding compilers. */
1838 # include <limits.h>
1840 # include <assert.h>
1845 /* Override any GCC internal prototype to avoid an error.
1846 Use char because int might match the return type of a GCC
1847 builtin and then its argument prototype would still apply. */
1852 /* The GNU C library defines this for functions which it implements
1853 to always fail with ENOSYS. Some functions are actually named
1854 something starting with __ and the normal name is an alias. */
1855 #if defined __stub_$2 || defined __stub___$2
1867 if ac_fn_c_try_link
"$LINENO"; then :
1872 rm -f core conftest.err conftest.
$ac_objext \
1873 conftest
$ac_exeext conftest.
$ac_ext
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1877 $as_echo "$ac_res" >&6; }
1878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1880 } # ac_fn_c_check_func
1882 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1883 # -------------------------------------------------------
1884 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1885 # the include files in INCLUDES and setting the cache variable VAR
1887 ac_fn_c_check_header_mongrel
()
1889 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1890 if eval \
${$3+:} false
; then :
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1892 $as_echo_n "checking for $2... " >&6; }
1893 if eval \
${$3+:} false
; then :
1894 $as_echo_n "(cached) " >&6
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1898 $as_echo "$ac_res" >&6; }
1900 # Is the header compilable?
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1902 $as_echo_n "checking $2 usability... " >&6; }
1903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1904 /* end confdefs.h. */
1908 if ac_fn_c_try_compile
"$LINENO"; then :
1909 ac_header_compiler
=yes
1911 ac_header_compiler
=no
1913 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1915 $as_echo "$ac_header_compiler" >&6; }
1917 # Is the header present?
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1919 $as_echo_n "checking $2 presence... " >&6; }
1920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1921 /* end confdefs.h. */
1924 if ac_fn_c_try_cpp
"$LINENO"; then :
1925 ac_header_preproc
=yes
1927 ac_header_preproc
=no
1929 rm -f conftest.err conftest.i conftest.
$ac_ext
1930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1931 $as_echo "$ac_header_preproc" >&6; }
1933 # So? What about this header?
1934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1937 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1939 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1942 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1943 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1945 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1947 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1949 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1951 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1955 $as_echo_n "checking for $2... " >&6; }
1956 if eval \
${$3+:} false
; then :
1957 $as_echo_n "(cached) " >&6
1959 eval "$3=\$ac_header_compiler"
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1963 $as_echo "$ac_res" >&6; }
1965 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1967 } # ac_fn_c_check_header_mongrel
1968 cat >config.log
<<_ACEOF
1969 This file contains any messages produced by compilers while
1970 running configure, to aid debugging if configure makes a mistake.
1972 It was created by zfs $as_me 0.6.4.2, which was
1973 generated by GNU Autoconf 2.68. Invocation command line was
1985 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1986 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1987 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1988 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1989 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1991 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1992 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1994 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1995 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1996 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1997 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1998 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1999 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2000 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2004 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2008 test -z "$as_dir" && as_dir
=.
2009 $as_echo "PATH: $as_dir"
2025 # Keep a trace of the command line.
2026 # Strip out --no-create and --no-recursion so they do not pile up.
2027 # Strip out --silent because we don't want to record it for future runs.
2028 # Also quote any args containing shell meta-characters.
2029 # Make two passes to allow for proper duplicate-argument suppression.
2033 ac_must_keep_next
=false
2039 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2040 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2041 |
-silent |
--silent |
--silen |
--sile |
--sil)
2044 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2047 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2049 as_fn_append ac_configure_args1
" '$ac_arg'"
2050 if test $ac_must_keep_next = true
; then
2051 ac_must_keep_next
=false
# Got value, back to normal.
2054 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2055 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2056 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2057 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2058 case "$ac_configure_args0 " in
2059 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2062 -* ) ac_must_keep_next
=true
;;
2065 as_fn_append ac_configure_args
" '$ac_arg'"
2070 { ac_configure_args0
=; unset ac_configure_args0
;}
2071 { ac_configure_args1
=; unset ac_configure_args1
;}
2073 # When interrupted or exit'd, cleanup temporary files, and complete
2074 # config.log. We remove comments because anyway the quotes in there
2075 # would cause problems or look ugly.
2076 # WARNING: Use '\'' to represent an apostrophe within the trap.
2077 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2078 trap 'exit_status=$?
2079 # Save into config.log some information that might help in debugging.
2083 $as_echo "## ---------------- ##
2084 ## Cache variables. ##
2085 ## ---------------- ##"
2087 # The following way of writing the cache mishandles newlines in values,
2089 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2090 eval ac_val=\$$ac_var
2094 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2095 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2098 _ | IFS | as_nl) ;; #(
2099 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2100 *) { eval $ac_var=; unset $ac_var;} ;;
2105 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2106 *${as_nl}ac_space=\ *)
2108 "s/'\''/'\''\\\\'\'''\''/g;
2109 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2112 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2119 $as_echo "## ----------------- ##
2120 ## Output variables. ##
2121 ## ----------------- ##"
2123 for ac_var in $ac_subst_vars
2125 eval ac_val=\$$ac_var
2127 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2129 $as_echo "$ac_var='\''$ac_val'\''"
2133 if test -n "$ac_subst_files"; then
2134 $as_echo "## ------------------- ##
2135 ## File substitutions. ##
2136 ## ------------------- ##"
2138 for ac_var
in $ac_subst_files
2140 eval ac_val
=\$
$ac_var
2142 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2144 $as_echo "$ac_var='\''$ac_val'\''"
2149 if test -s confdefs.h; then
2150 $as_echo "## ----------- ##
2157 test "$ac_signal" != 0 &&
2158 $as_echo "$as_me: caught signal $ac_signal"
2159 $as_echo "$as_me: exit $exit_status"
2161 rm -f core *.core core.conftest.* &&
2162 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2165 for ac_signal
in 1 2 13 15; do
2166 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2170 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2171 rm -f -r conftest
* confdefs.h
2173 $as_echo "/* confdefs.h */" > confdefs.h
2175 # Predefined preprocessor variables.
2177 cat >>confdefs.h
<<_ACEOF
2178 #define PACKAGE_NAME "$PACKAGE_NAME"
2181 cat >>confdefs.h
<<_ACEOF
2182 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2185 cat >>confdefs.h
<<_ACEOF
2186 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2189 cat >>confdefs.h
<<_ACEOF
2190 #define PACKAGE_STRING "$PACKAGE_STRING"
2193 cat >>confdefs.h
<<_ACEOF
2194 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2197 cat >>confdefs.h
<<_ACEOF
2198 #define PACKAGE_URL "$PACKAGE_URL"
2202 # Let the site file select an alternate cache file if it wants to.
2203 # Prefer an explicitly selected file to automatically selected ones.
2206 if test -n "$CONFIG_SITE"; then
2207 # We do not want a PATH search for config.site.
2208 case $CONFIG_SITE in #((
2209 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2210 */*) ac_site_file1
=$CONFIG_SITE;;
2211 *) ac_site_file1
=.
/$CONFIG_SITE;;
2213 elif test "x$prefix" != xNONE
; then
2214 ac_site_file1
=$prefix/share
/config.site
2215 ac_site_file2
=$prefix/etc
/config.site
2217 ac_site_file1
=$ac_default_prefix/share
/config.site
2218 ac_site_file2
=$ac_default_prefix/etc
/config.site
2220 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2222 test "x$ac_site_file" = xNONE
&& continue
2223 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2225 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2226 sed 's/^/| /' "$ac_site_file" >&5
2228 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2230 as_fn_error $?
"failed to load site script $ac_site_file
2231 See \`config.log' for more details" "$LINENO" 5; }
2235 if test -r "$cache_file"; then
2236 # Some versions of bash will fail to source /dev/null (special files
2237 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2238 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2240 $as_echo "$as_me: loading cache $cache_file" >&6;}
2242 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2243 *) .
"./$cache_file";;
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2248 $as_echo "$as_me: creating cache $cache_file" >&6;}
2252 # Check that the precious variables saved in the cache have kept the same
2254 ac_cache_corrupted
=false
2255 for ac_var
in $ac_precious_vars; do
2256 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2257 eval ac_new_set
=\
$ac_env_${ac_var}_set
2258 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2259 eval ac_new_val
=\
$ac_env_${ac_var}_value
2260 case $ac_old_set,$ac_new_set in
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2263 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2264 ac_cache_corrupted
=: ;;
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2267 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2268 ac_cache_corrupted
=: ;;
2271 if test "x$ac_old_val" != "x$ac_new_val"; then
2272 # differences in whitespace do not lead to failure.
2273 ac_old_val_w
=`echo x $ac_old_val`
2274 ac_new_val_w
=`echo x $ac_new_val`
2275 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2277 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2278 ac_cache_corrupted
=:
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2281 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2282 eval $ac_var=\
$ac_old_val
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2285 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2287 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2290 # Pass precious variables to config.status.
2291 if test "$ac_new_set" = set; then
2293 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2294 *) ac_arg
=$ac_var=$ac_new_val ;;
2296 case " $ac_configure_args " in
2297 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2298 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2302 if $ac_cache_corrupted; then
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2306 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2307 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2309 ## -------------------- ##
2310 ## Main body of script. ##
2311 ## -------------------- ##
2314 ac_cpp
='$CPP $CPPFLAGS'
2315 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2316 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2317 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2321 ac_cpp
='$CPP $CPPFLAGS'
2322 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2323 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2324 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2330 for ac_prog
in gawk mawk nawk
awk
2332 # Extract the first word of "$ac_prog", so it can be a program name with args.
2333 set dummy
$ac_prog; ac_word
=$2
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2335 $as_echo_n "checking for $ac_word... " >&6; }
2336 if ${ac_cv_prog_AWK+:} false
; then :
2337 $as_echo_n "(cached) " >&6
2339 if test -n "$AWK"; then
2340 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2342 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2346 test -z "$as_dir" && as_dir
=.
2347 for ac_exec_ext
in '' $ac_executable_extensions; do
2348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2349 ac_cv_prog_AWK
="$ac_prog"
2350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2360 if test -n "$AWK"; then
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2362 $as_echo "$AWK" >&6; }
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2365 $as_echo "no" >&6; }
2369 test -n "$AWK" && break
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking metadata" >&5
2373 $as_echo_n "checking metadata... " >&6; }
2376 _zfs_ac_meta_type
="none"
2377 if test -f "$META"; then
2378 _zfs_ac_meta_type
="META file"
2380 ZFS_META_NAME
=`$AWK -F ':[ \t]+' '$1 ~ /^ *(Name|Project|Package)$/ { print $2; exit }' $META`;
2381 if test -n "$ZFS_META_NAME"; then
2383 cat >>confdefs.h
<<_ACEOF
2384 #define ZFS_META_NAME "$ZFS_META_NAME"
2390 ZFS_META_VERSION
=`$AWK -F ':[ \t]+' '$1 ~ /^ *Version$/ { print $2; exit }' $META`;
2391 if test -n "$ZFS_META_VERSION"; then
2393 cat >>confdefs.h
<<_ACEOF
2394 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2400 ZFS_META_RELEASE
=`$AWK -F ':[ \t]+' '$1 ~ /^ *Release$/ { print $2; exit }' $META`;
2401 if test ! -f ".nogitrelease" && git rev-parse
--git-dir > /dev
/null
2>&1; then
2402 _match
="${ZFS_META_NAME}-${ZFS_META_VERSION}"
2403 _alias
=$
(git describe
--match=${_match} 2>/dev
/null
)
2404 _release
=$
(echo ${_alias}|cut
-f3- -d'-'|
sed 's/-/_/g')
2405 if test -n "${_release}"; then
2406 ZFS_META_RELEASE
=${_release}
2407 _zfs_ac_meta_type
="git describe"
2411 if test -n "$ZFS_META_RELEASE"; then
2413 cat >>confdefs.h
<<_ACEOF
2414 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2419 RELEASE
="$ZFS_META_RELEASE"
2423 ZFS_META_LICENSE
=`$AWK -F ':[ \t]+' '$1 ~ /^ *License$/ { print $2; exit }' $META`;
2424 if test -n "$ZFS_META_LICENSE"; then
2426 cat >>confdefs.h
<<_ACEOF
2427 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2433 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2434 ZFS_META_ALIAS
="$ZFS_META_NAME-$ZFS_META_VERSION"
2435 test -n "$ZFS_META_RELEASE" &&
2436 ZFS_META_ALIAS
="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2438 cat >>confdefs.h
<<_ACEOF
2439 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2445 ZFS_META_DATA
=`$AWK -F ':[ \t]+' '$1 ~ /^ *Date$/ { print $2; exit }' $META`;
2446 if test -n "$ZFS_META_DATA"; then
2448 cat >>confdefs.h
<<_ACEOF
2449 #define ZFS_META_DATA "$ZFS_META_DATA"
2455 ZFS_META_AUTHOR
=`$AWK -F ':[ \t]+' '$1 ~ /^ *Author$/ { print $2; exit }' $META`;
2456 if test -n "$ZFS_META_AUTHOR"; then
2458 cat >>confdefs.h
<<_ACEOF
2459 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2466 ZFS_META_LT_CURRENT
=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Current$/ { print $2; exit }' $META`;
2467 ZFS_META_LT_REVISION
=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Revision$/ { print $2; exit }' $META`;
2468 ZFS_META_LT_AGE
=`$AWK -F ':[ \t]+' '$1 ~ /^ *LT_Age$/ { print $2; exit }' $META`;
2469 if test -n "$ZFS_META_LT_CURRENT" \
2470 -o -n "$ZFS_META_LT_REVISION" \
2471 -o -n "$ZFS_META_LT_AGE"; then
2472 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT
="0"
2473 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION
="0"
2474 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE
="0"
2476 cat >>confdefs.h
<<_ACEOF
2477 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2481 cat >>confdefs.h
<<_ACEOF
2482 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2486 cat >>confdefs.h
<<_ACEOF
2487 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_zfs_ac_meta_type" >&5
2497 $as_echo "$_zfs_ac_meta_type" >&6; }
2501 for ac_dir
in config
"$srcdir"/config
; do
2502 if test -f "$ac_dir/install-sh"; then
2504 ac_install_sh
="$ac_aux_dir/install-sh -c"
2506 elif test -f "$ac_dir/install.sh"; then
2508 ac_install_sh
="$ac_aux_dir/install.sh -c"
2510 elif test -f "$ac_dir/shtool"; then
2512 ac_install_sh
="$ac_aux_dir/shtool install -c"
2516 if test -z "$ac_aux_dir"; then
2517 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2520 # These three variables are undocumented and unsupported,
2521 # and are intended to be withdrawn in a future Autoconf release.
2522 # They can cause serious problems if a builder's source tree is in a directory
2523 # whose full name contains unusual characters.
2524 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2525 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2526 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2530 # Make sure we can run config.sub.
2531 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2532 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2535 $as_echo_n "checking build system type... " >&6; }
2536 if ${ac_cv_build+:} false
; then :
2537 $as_echo_n "(cached) " >&6
2539 ac_build_alias
=$build_alias
2540 test "x$ac_build_alias" = x
&&
2541 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2542 test "x$ac_build_alias" = x
&&
2543 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2544 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2545 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2549 $as_echo "$ac_cv_build" >&6; }
2550 case $ac_cv_build in
2552 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2555 ac_save_IFS
=$IFS; IFS
='-'
2561 # Remember, the first character of IFS is used to create $*,
2562 # except with old shells:
2565 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2569 $as_echo_n "checking host system type... " >&6; }
2570 if ${ac_cv_host+:} false
; then :
2571 $as_echo_n "(cached) " >&6
2573 if test "x$host_alias" = x
; then
2574 ac_cv_host
=$ac_cv_build
2576 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2577 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2582 $as_echo "$ac_cv_host" >&6; }
2585 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2588 ac_save_IFS
=$IFS; IFS
='-'
2594 # Remember, the first character of IFS is used to create $*,
2595 # except with old shells:
2598 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2602 $as_echo_n "checking target system type... " >&6; }
2603 if ${ac_cv_target+:} false
; then :
2604 $as_echo_n "(cached) " >&6
2606 if test "x$target_alias" = x
; then
2607 ac_cv_target
=$ac_cv_host
2609 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2610 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2615 $as_echo "$ac_cv_target" >&6; }
2616 case $ac_cv_target in
2618 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2620 target
=$ac_cv_target
2621 ac_save_IFS
=$IFS; IFS
='-'
2627 # Remember, the first character of IFS is used to create $*,
2628 # except with old shells:
2631 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2634 # The aliases save the names the user supplied, while $host etc.
2635 # will get canonicalized.
2636 test -n "$target_alias" &&
2637 test "$program_prefix$program_suffix$program_transform_name" = \
2639 program_prefix
=${target_alias}-
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2643 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2644 # Check whether --enable-maintainer-mode was given.
2645 if test "${enable_maintainer_mode+set}" = set; then :
2646 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2648 USE_MAINTAINER_MODE
=no
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2652 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2653 if test $USE_MAINTAINER_MODE = yes; then
2654 MAINTAINER_MODE_TRUE
=
2655 MAINTAINER_MODE_FALSE
='#'
2657 MAINTAINER_MODE_TRUE
='#'
2658 MAINTAINER_MODE_FALSE
=
2661 MAINT
=$MAINTAINER_MODE_TRUE
2664 # Check whether --enable-silent-rules was given.
2665 if test "${enable_silent_rules+set}" = set; then :
2666 enableval
=$enable_silent_rules;
2669 case $enable_silent_rules in
2670 yes) AM_DEFAULT_VERBOSITY
=0;;
2671 no
) AM_DEFAULT_VERBOSITY
=1;;
2672 *) AM_DEFAULT_VERBOSITY
=0;;
2674 am_make
=${MAKE-make}
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2676 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2677 if ${am_cv_make_support_nested_variables+:} false
; then :
2678 $as_echo_n "(cached) " >&6
2680 if $as_echo 'TRUE=$(BAR$(V))
2686 .PHONY: am__doit' |
$am_make -f - >/dev
/null
2>&1; then
2687 am_cv_make_support_nested_variables
=yes
2689 am_cv_make_support_nested_variables
=no
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2693 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2694 if test $am_cv_make_support_nested_variables = yes; then
2696 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
2698 AM_V
=$AM_DEFAULT_VERBOSITY
2699 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
2703 am__api_version='1.11'
2705 # Find a good install program. We prefer a C program (faster),
2706 # so one script is as good as another. But avoid the broken or
2707 # incompatible versions:
2708 # SysV /etc/install, /usr/sbin/install
2709 # SunOS /usr/etc/install
2710 # IRIX /sbin/install
2712 # AmigaOS /C/install, which installs bootblocks on floppy discs
2713 # AIX 4 /usr/bin/installbsd, which doesn't work without a
-g flag
2714 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2715 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2716 # OS/2's system install, which has a completely different semantic
2717 # ./install, which can be erroneously created by make from ./install.sh.
2718 # Reject install programs that cannot install multiple files.
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2720 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2721 if test -z "$INSTALL"; then
2722 if ${ac_cv_path_install+:} false
; then :
2723 $as_echo_n "(cached) " >&6
2725 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2729 test -z "$as_dir" && as_dir
=.
2730 # Account for people who put trailing slashes in PATH elements.
2731 case $as_dir/ in #((
2732 .
/ | .
// |
/[cC
]/* | \
2733 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2734 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2737 # OSF1 and SCO ODT 3.0 have their own names for install.
2738 # Don't use installbsd from OSF since it installs stuff as root
2740 for ac_prog
in ginstall scoinst
install; do
2741 for ac_exec_ext
in '' $ac_executable_extensions; do
2742 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2743 if test $ac_prog = install &&
2744 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2745 # AIX install. It has an incompatible calling convention.
2747 elif test $ac_prog = install &&
2748 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2749 # program-specific install script used by HP pwplus--don't use.
2752 rm -rf conftest.one conftest.two conftest.dir
2753 echo one
> conftest.one
2754 echo two
> conftest.two
2756 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2757 test -s conftest.one
&& test -s conftest.two
&&
2758 test -s conftest.dir
/conftest.one
&&
2759 test -s conftest.dir
/conftest.two
2761 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2774 rm -rf conftest.one conftest.two conftest.dir
2777 if test "${ac_cv_path_install+set}" = set; then
2778 INSTALL
=$ac_cv_path_install
2780 # As a last resort, use the slow shell script. Don't cache a
2781 # value for INSTALL within a source directory, because that will
2782 # break other packages using the cache if that directory is
2783 # removed, or if the value is a relative name.
2784 INSTALL
=$ac_install_sh
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2788 $as_echo "$INSTALL" >&6; }
2790 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2791 # It thinks the first close brace ends the variable substitution.
2792 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2794 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2796 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2799 $as_echo_n "checking whether build environment is sane... " >&6; }
2802 echo timestamp
> conftest.
file
2803 # Reject unsafe characters in $srcdir or the absolute working directory
2804 # name. Accept space and tab only in the latter.
2808 *[\\\"\
#\$\&\'\`$am_lf]*)
2809 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5;;
2812 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2813 as_fn_error $?
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2816 # Do `set' in a subshell so we don't clobber the current shell's
2817 # arguments. Must try -L first in case configure is actually a
2818 # symlink; some systems play weird games with the mod time of symlinks
2819 # (eg FreeBSD returns the mod time of the symlink's containing
2822 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2823 if test "$*" = "X"; then
2825 set X
`ls -t "$srcdir/configure" conftest.file`
2828 if test "$*" != "X $srcdir/configure conftest.file" \
2829 && test "$*" != "X conftest.file $srcdir/configure"; then
2831 # If neither matched, then we have a broken ls. This can happen
2832 # if, for instance, CONFIG_SHELL is bash and it inherits a
2833 # broken ls alias from the environment. This has actually
2834 # happened. Such a system could not be considered "sane".
2835 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2836 alias in your environment" "$LINENO" 5
2839 test "$2" = conftest.
file
2845 as_fn_error $?
"newly created file is older than distributed files!
2846 Check your system clock" "$LINENO" 5
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2849 $as_echo "yes" >&6; }
2850 test "$program_prefix" != NONE
&&
2851 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2852 # Use a double $ so make ignores it.
2853 test "$program_suffix" != NONE
&&
2854 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2855 # Double any \ or $.
2856 # By default was `s,x,x', remove it if useless.
2857 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2858 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2860 # expand $ac_aux_dir to an absolute path
2861 am_aux_dir
=`cd $ac_aux_dir && pwd`
2863 if test x
"${MISSING+set}" != xset
; then
2866 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2868 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2871 # Use eval to expand $SHELL
2872 if eval "$MISSING --run true"; then
2873 am_missing_run
="$MISSING --run "
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2877 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2880 if test x
"${install_sh}" != xset
; then
2883 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2885 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2889 # Installed binaries are usually stripped using `strip' when the user
2890 # run `make install-strip'. However `strip' might not be the right
2891 # tool to use in cross-compilation environments, therefore Automake
2892 # will honor the `STRIP' environment variable to overrule this program.
2893 if test "$cross_compiling" != no
; then
2894 if test -n "$ac_tool_prefix"; then
2895 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2896 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898 $as_echo_n "checking for $ac_word... " >&6; }
2899 if ${ac_cv_prog_STRIP+:} false
; then :
2900 $as_echo_n "(cached) " >&6
2902 if test -n "$STRIP"; then
2903 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2905 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2909 test -z "$as_dir" && as_dir
=.
2910 for ac_exec_ext
in '' $ac_executable_extensions; do
2911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2912 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2922 STRIP
=$ac_cv_prog_STRIP
2923 if test -n "$STRIP"; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2925 $as_echo "$STRIP" >&6; }
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 $as_echo "no" >&6; }
2933 if test -z "$ac_cv_prog_STRIP"; then
2935 # Extract the first word of "strip", so it can be a program name with args.
2936 set dummy strip
; ac_word
=$2
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938 $as_echo_n "checking for $ac_word... " >&6; }
2939 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
2940 $as_echo_n "(cached) " >&6
2942 if test -n "$ac_ct_STRIP"; then
2943 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2945 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2949 test -z "$as_dir" && as_dir
=.
2950 for ac_exec_ext
in '' $ac_executable_extensions; do
2951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2952 ac_cv_prog_ac_ct_STRIP
="strip"
2953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2962 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2963 if test -n "$ac_ct_STRIP"; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2965 $as_echo "$ac_ct_STRIP" >&6; }
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968 $as_echo "no" >&6; }
2971 if test "x$ac_ct_STRIP" = x
; then
2974 case $cross_compiling:$ac_tool_warned in
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2978 ac_tool_warned
=yes ;;
2983 STRIP
="$ac_cv_prog_STRIP"
2987 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2990 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2991 if test -z "$MKDIR_P"; then
2992 if ${ac_cv_path_mkdir+:} false
; then :
2993 $as_echo_n "(cached) " >&6
2995 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2996 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2999 test -z "$as_dir" && as_dir
=.
3000 for ac_prog
in mkdir gmkdir
; do
3001 for ac_exec_ext
in '' $ac_executable_extensions; do
3002 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3003 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3004 'mkdir (GNU coreutils) '* | \
3005 'mkdir (coreutils) '* | \
3006 'mkdir (fileutils) '4.1*)
3007 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3017 test -d .
/--version && rmdir .
/--version
3018 if test "${ac_cv_path_mkdir+set}" = set; then
3019 MKDIR_P
="$ac_cv_path_mkdir -p"
3021 # As a last resort, use the slow shell script. Don't cache a
3022 # value for MKDIR_P within a source directory, because that will
3023 # break other packages using the cache if that directory is
3024 # removed, or if the value is a relative name.
3025 MKDIR_P
="$ac_install_sh -d"
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3029 $as_echo "$MKDIR_P" >&6; }
3033 [\\/$
]* | ?
:[\\/]*) ;;
3034 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3038 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3040 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3041 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
3042 $as_echo_n "(cached) " >&6
3044 cat >conftest.
make <<\_ACEOF
3047 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3049 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3050 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3052 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3054 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3058 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3060 $as_echo "yes" >&6; }
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3064 $as_echo "no" >&6; }
3065 SET_MAKE
="MAKE=${MAKE-make}"
3068 rm -rf .tst
2>/dev
/null
3069 mkdir .tst
2>/dev
/null
3070 if test -d .tst
; then
3075 rmdir .tst
2>/dev
/null
3077 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3078 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3079 # is not polluted with repeated "-I."
3080 am__isrc
=' -I$(srcdir)'
3081 # test to see if srcdir already configured
3082 if test -f $srcdir/config.status
; then
3083 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3087 # test whether we have cygpath
3088 if test -z "$CYGPATH_W"; then
3089 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3090 CYGPATH_W
='cygpath -w'
3097 # Define the identity of the package.
3102 cat >>confdefs.h
<<_ACEOF
3103 #define PACKAGE "$PACKAGE"
3107 cat >>confdefs.h
<<_ACEOF
3108 #define VERSION "$VERSION"
3111 # Some tools Automake needs.
3113 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3116 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3119 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3122 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3125 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3127 # We need awk for the "check" target. The system "awk" is bad on
3129 # Always define AMTAR for backward compatibility. Yes, it's still used
3130 # in the wild :-( We should find a proper way to deprecate it ...
3133 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
3139 ac_config_headers
="$ac_config_headers zfs_config.h"
3144 ac_cpp
='$CPP $CPPFLAGS'
3145 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3146 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3147 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3148 if test -n "$ac_tool_prefix"; then
3149 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3150 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3152 $as_echo_n "checking for $ac_word... " >&6; }
3153 if ${ac_cv_prog_CC+:} false
; then :
3154 $as_echo_n "(cached) " >&6
3156 if test -n "$CC"; then
3157 ac_cv_prog_CC
="$CC" # Let the user override the test.
3159 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3163 test -z "$as_dir" && as_dir
=.
3164 for ac_exec_ext
in '' $ac_executable_extensions; do
3165 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3166 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 if test -n "$CC"; then
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3179 $as_echo "$CC" >&6; }
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3182 $as_echo "no" >&6; }
3187 if test -z "$ac_cv_prog_CC"; then
3189 # Extract the first word of "gcc", so it can be a program name with args.
3190 set dummy gcc
; ac_word
=$2
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3192 $as_echo_n "checking for $ac_word... " >&6; }
3193 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3194 $as_echo_n "(cached) " >&6
3196 if test -n "$ac_ct_CC"; then
3197 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3199 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3203 test -z "$as_dir" && as_dir
=.
3204 for ac_exec_ext
in '' $ac_executable_extensions; do
3205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3206 ac_cv_prog_ac_ct_CC
="gcc"
3207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3216 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3217 if test -n "$ac_ct_CC"; then
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3219 $as_echo "$ac_ct_CC" >&6; }
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222 $as_echo "no" >&6; }
3225 if test "x$ac_ct_CC" = x
; then
3228 case $cross_compiling:$ac_tool_warned in
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3231 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3232 ac_tool_warned
=yes ;;
3240 if test -z "$CC"; then
3241 if test -n "$ac_tool_prefix"; then
3242 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3243 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3245 $as_echo_n "checking for $ac_word... " >&6; }
3246 if ${ac_cv_prog_CC+:} false
; then :
3247 $as_echo_n "(cached) " >&6
3249 if test -n "$CC"; then
3250 ac_cv_prog_CC
="$CC" # Let the user override the test.
3252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3256 test -z "$as_dir" && as_dir
=.
3257 for ac_exec_ext
in '' $ac_executable_extensions; do
3258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3259 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3270 if test -n "$CC"; then
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3272 $as_echo "$CC" >&6; }
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3275 $as_echo "no" >&6; }
3281 if test -z "$CC"; then
3282 # Extract the first word of "cc", so it can be a program name with args.
3283 set dummy cc
; 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.
3293 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3297 test -z "$as_dir" && as_dir
=.
3298 for ac_exec_ext
in '' $ac_executable_extensions; do
3299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3300 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3301 ac_prog_rejected
=yes
3305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3312 if test $ac_prog_rejected = yes; then
3313 # We found a bogon in the path, so make sure we never use it.
3314 set dummy
$ac_cv_prog_CC
3316 if test $# != 0; then
3317 # We chose a different compiler from the bogus one.
3318 # However, it has the same basename, so the bogon will be chosen
3319 # first if we set CC to just the basename; use the full file name.
3321 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3327 if test -n "$CC"; then
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3329 $as_echo "$CC" >&6; }
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3332 $as_echo "no" >&6; }
3337 if test -z "$CC"; then
3338 if test -n "$ac_tool_prefix"; then
3339 for ac_prog
in cl.exe
3341 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3342 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3344 $as_echo_n "checking for $ac_word... " >&6; }
3345 if ${ac_cv_prog_CC+:} false
; then :
3346 $as_echo_n "(cached) " >&6
3348 if test -n "$CC"; then
3349 ac_cv_prog_CC
="$CC" # Let the user override the test.
3351 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3355 test -z "$as_dir" && as_dir
=.
3356 for ac_exec_ext
in '' $ac_executable_extensions; do
3357 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3358 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3369 if test -n "$CC"; then
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3371 $as_echo "$CC" >&6; }
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3374 $as_echo "no" >&6; }
3378 test -n "$CC" && break
3381 if test -z "$CC"; then
3383 for ac_prog
in cl.exe
3385 # Extract the first word of "$ac_prog", so it can be a program name with args.
3386 set dummy
$ac_prog; ac_word
=$2
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3388 $as_echo_n "checking for $ac_word... " >&6; }
3389 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3390 $as_echo_n "(cached) " >&6
3392 if test -n "$ac_ct_CC"; then
3393 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3395 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3399 test -z "$as_dir" && as_dir
=.
3400 for ac_exec_ext
in '' $ac_executable_extensions; do
3401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3402 ac_cv_prog_ac_ct_CC
="$ac_prog"
3403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3412 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3413 if test -n "$ac_ct_CC"; then
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3415 $as_echo "$ac_ct_CC" >&6; }
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3418 $as_echo "no" >&6; }
3422 test -n "$ac_ct_CC" && break
3425 if test "x$ac_ct_CC" = x
; then
3428 case $cross_compiling:$ac_tool_warned in
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3431 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3432 ac_tool_warned
=yes ;;
3441 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3443 as_fn_error $?
"no acceptable C compiler found in \$PATH
3444 See \`config.log' for more details" "$LINENO" 5; }
3446 # Provide some information about the compiler.
3447 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3450 for ac_option
in --version -v -V -qversion; do
3451 { { ac_try
="$ac_compiler $ac_option >&5"
3453 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3457 $as_echo "$ac_try_echo"; } >&5
3458 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3460 if test -s conftest.err; then
3462 ... rest of stderr output deleted ...
3463 10q' conftest.err >conftest.er1
3464 cat conftest.er1 >&5
3466 rm -f conftest.er1 conftest.err
3467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468 test $ac_status = 0; }
3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472 /* end confdefs.h. */
3482 ac_clean_files_save=$ac_clean_files
3483 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3484 # Try to create an executable without -o first, disregard a.out.
3485 # It will help us diagnose broken compilers, and finding out an intuition
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3488 $as_echo_n "checking whether the C compiler works... " >&6; }
3489 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3491 # The possible output files:
3492 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3495 for ac_file in $ac_files
3498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3499 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3504 if { { ac_try="$ac_link_default"
3506 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3507 *) ac_try_echo
=$ac_try;;
3509 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3510 $as_echo "$ac_try_echo"; } >&5
3511 (eval "$ac_link_default") 2>&5
3513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3514 test $ac_status = 0; }; then :
3515 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3516 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3517 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3518 # so that the user can short-circuit this test for compilers unknown to
3520 for ac_file
in $ac_files ''
3522 test -f "$ac_file" ||
continue
3524 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3527 # We found the default executable, but exeext='' is most
3531 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3533 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3535 # We set ac_cv_exeext here because the later test for it is not
3536 # safe: cross compilers may not add the suffix if given an `-o'
3537 # argument, so we may need to know it at that point already.
3538 # Even if this section looks crufty: it has the advantage of
3545 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3550 if test -z "$ac_file"; then :
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3553 $as_echo "$as_me: failed program was:" >&5
3554 sed 's/^/| /' conftest.
$ac_ext >&5
3556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3557 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3558 as_fn_error
77 "C compiler cannot create executables
3559 See \`config.log' for more details" "$LINENO" 5; }
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3562 $as_echo "yes" >&6; }
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3565 $as_echo_n "checking for C compiler default output file name... " >&6; }
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3567 $as_echo "$ac_file" >&6; }
3568 ac_exeext
=$ac_cv_exeext
3570 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3571 ac_clean_files
=$ac_clean_files_save
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3573 $as_echo_n "checking for suffix of executables... " >&6; }
3574 if { { ac_try
="$ac_link"
3576 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3580 $as_echo "$ac_try_echo"; } >&5
3581 (eval "$ac_link") 2>&5
3583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3584 test $ac_status = 0; }; then :
3585 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3586 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3587 # work properly (i.e., refer to `conftest.exe'), while it won't with
3589 for ac_file
in conftest.exe conftest conftest.
*; do
3590 test -f "$ac_file" ||
continue
3592 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3593 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3601 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3602 See \`config.log' for more details" "$LINENO" 5; }
3604 rm -f conftest conftest
$ac_cv_exeext
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3606 $as_echo "$ac_cv_exeext" >&6; }
3608 rm -f conftest.
$ac_ext
3609 EXEEXT
=$ac_cv_exeext
3611 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3612 /* end confdefs.h. */
3617 FILE *f = fopen ("conftest.out", "w");
3618 return ferror (f) || fclose (f) != 0;
3624 ac_clean_files
="$ac_clean_files conftest.out"
3625 # Check that the compiler produces executables we can run. If not, either
3626 # the compiler is broken, or we cross compile.
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3628 $as_echo_n "checking whether we are cross compiling... " >&6; }
3629 if test "$cross_compiling" != yes; then
3630 { { ac_try
="$ac_link"
3632 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3633 *) ac_try_echo=$ac_try;;
3635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3636 $as_echo "$ac_try_echo"; } >&5
3637 (eval "$ac_link") 2>&5
3639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3640 test $ac_status = 0; }
3641 if { ac_try='./conftest$ac_cv_exeext'
3642 { { case "(($ac_try" in
3643 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3644 *) ac_try_echo
=$ac_try;;
3646 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3647 $as_echo "$ac_try_echo"; } >&5
3648 (eval "$ac_try") 2>&5
3650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3651 test $ac_status = 0; }; }; then
3654 if test "$cross_compiling" = maybe
; then
3657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3659 as_fn_error $?
"cannot run C compiled programs.
3660 If you meant to cross compile, use \`--host'.
3661 See \`config.log' for more details" "$LINENO" 5; }
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3666 $as_echo "$cross_compiling" >&6; }
3668 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3669 ac_clean_files
=$ac_clean_files_save
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3671 $as_echo_n "checking for suffix of object files... " >&6; }
3672 if ${ac_cv_objext+:} false
; then :
3673 $as_echo_n "(cached) " >&6
3675 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3676 /* end confdefs.h. */
3686 rm -f conftest.o conftest.obj
3687 if { { ac_try
="$ac_compile"
3689 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3690 *) ac_try_echo=$ac_try;;
3692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3693 $as_echo "$ac_try_echo"; } >&5
3694 (eval "$ac_compile") 2>&5
3696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3697 test $ac_status = 0; }; then :
3698 for ac_file in conftest.o conftest.obj conftest.*; do
3699 test -f "$ac_file" || continue;
3701 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3702 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3707 $as_echo "$as_me: failed program was:" >&5
3708 sed 's/^/| /' conftest.$ac_ext >&5
3710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3712 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3713 See \
`config.log' for more details" "$LINENO" 5; }
3715 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3718 $as_echo "$ac_cv_objext" >&6; }
3719 OBJEXT=$ac_cv_objext
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3722 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3723 if ${ac_cv_c_compiler_gnu+:} false; then :
3724 $as_echo_n "(cached) " >&6
3726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3727 /* end confdefs.h. */
3740 if ac_fn_c_try_compile "$LINENO"; then :
3745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3746 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3750 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3751 if test $ac_compiler_gnu = yes; then
3756 ac_test_CFLAGS=${CFLAGS+set}
3757 ac_save_CFLAGS=$CFLAGS
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3759 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3760 if ${ac_cv_prog_cc_g+:} false; then :
3761 $as_echo_n "(cached) " >&6
3763 ac_save_c_werror_flag=$ac_c_werror_flag
3764 ac_c_werror_flag=yes
3767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3768 /* end confdefs.h. */
3778 if ac_fn_c_try_compile "$LINENO"; then :
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h. */
3793 if ac_fn_c_try_compile "$LINENO"; then :
3796 ac_c_werror_flag=$ac_save_c_werror_flag
3798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3799 /* end confdefs.h. */
3809 if ac_fn_c_try_compile "$LINENO"; then :
3812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3817 ac_c_werror_flag=$ac_save_c_werror_flag
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3820 $as_echo "$ac_cv_prog_cc_g" >&6; }
3821 if test "$ac_test_CFLAGS" = set; then
3822 CFLAGS=$ac_save_CFLAGS
3823 elif test $ac_cv_prog_cc_g = yes; then
3824 if test "$GCC" = yes; then
3830 if test "$GCC" = yes; then
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3837 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3838 if ${ac_cv_prog_cc_c89+:} false; then :
3839 $as_echo_n "(cached) " >&6
3841 ac_cv_prog_cc_c89=no
3843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3844 /* end confdefs.h. */
3847 #include <sys/types.h>
3848 #include <sys/stat.h>
3849 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3850 struct buf { int x; };
3851 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3852 static char *e (p, i)
3858 static char *f (char * (*g) (char **, int), char **p, ...)
3863 s = g (p, va_arg (v,int));
3868 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3869 function prototypes and stuff, but not '\xHH' hex character constants.
3870 These don't provoke an error unfortunately, instead are silently treated
3871 as 'x'. The following induces an error, until -std is added to get
3872 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3873 array size at least. It's necessary to write '\x00'==0 to get something
3874 that's true only with -std. */
3875 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3877 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3878 inside strings and character constants. */
3880 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3882 int test (int i, double x);
3883 struct s1 {int (*f) (int a);};
3884 struct s2 {int (*f) (double a);};
3885 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3891 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3896 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3897 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3899 CC="$ac_save_CC $ac_arg"
3900 if ac_fn_c_try_compile "$LINENO"; then :
3901 ac_cv_prog_cc_c89=$ac_arg
3903 rm -f core conftest.err conftest.$ac_objext
3904 test "x$ac_cv_prog_cc_c89" != "xno" && break
3906 rm -f conftest.$ac_ext
3911 case "x$ac_cv_prog_cc_c89" in
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3914 $as_echo "none needed" >&6; } ;;
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3917 $as_echo "unsupported" >&6; } ;;
3919 CC="$CC $ac_cv_prog_cc_c89"
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3921 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3923 if test "x$ac_cv_prog_cc_c89" != xno; then :
3928 ac_cpp='$CPP $CPPFLAGS'
3929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3932 DEPDIR="${am__leading_dot}deps"
3934 ac_config_commands="$ac_config_commands depfiles"
3937 am_make=${MAKE-make}
3938 cat > confinc << 'END'
3940 @echo this is the am__doit target
3943 # If we don't find an include directive, just comment out the code.
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3945 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3949 # First try GNU make style include.
3950 echo "include confinc" > confmf
3951 # Ignore all kinds of additional output from `make'.
3952 case `$am_make -s -f confmf 2> /dev/null` in #(
3953 *the\ am__doit\ target*)
3959 # Now try BSD make style include.
3960 if test "$am__include" = "#"; then
3961 echo '.include
"confinc"' > confmf
3962 case `$am_make -s -f confmf 2> /dev/null` in #(
3963 *the\ am__doit\ target*)
3964 am__include=.include
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3973 $as_echo "$_am_result" >&6; }
3974 rm -f confinc confmf
3976 # Check whether --enable-dependency-tracking was given.
3977 if test "${enable_dependency_tracking+set}" = set; then :
3978 enableval=$enable_dependency_tracking;
3981 if test "x$enable_dependency_tracking" != xno; then
3982 am_depcomp="$ac_aux_dir/depcomp"
3986 if test "x$enable_dependency_tracking" != xno
; then
3996 depcc
="$CC" am_compiler_list
=
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3999 $as_echo_n "checking dependency style of $depcc... " >&6; }
4000 if ${am_cv_CC_dependencies_compiler_type+:} false
; then :
4001 $as_echo_n "(cached) " >&6
4003 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4004 # We make a subdir and do the tests there. Otherwise we can end up
4005 # making bogus files that we don't know about and never remove. For
4006 # instance it was reported that on HP-UX the gcc test will end up
4007 # making a dummy file named `D' -- because `-MD' means `put the output
4011 # Copy depcomp to subdir because otherwise we won't find it if we're
4012 # using a relative directory.
4013 cp "$am_depcomp" conftest.dir
4015 # We will build objects and dependencies in a subdirectory because
4016 # it helps to detect inapplicable dependency modes. For instance
4017 # both Tru64's cc and ICC support -MD to output dependencies as a
4018 # side effect of compilation, but ICC will put the dependencies in
4019 # the current directory while Tru64 will put them in the object
4023 am_cv_CC_dependencies_compiler_type
=none
4024 if test "$am_compiler_list" = ""; then
4025 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4028 case " $depcc " in #(
4029 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4032 for depmode
in $am_compiler_list; do
4033 # Setup a source with many dependencies, because some compilers
4034 # like to wrap large dependency lists on column 80 (with \), and
4035 # we should not choose a depcomp mode which is confused by this.
4037 # We need to recreate these files for each test, as the compiler may
4038 # overwrite some of them when testing with obscure command lines.
4039 # This happens at least with the AIX C compiler.
4041 for i
in 1 2 3 4 5 6; do
4042 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4043 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4044 # Solaris 8's {/usr,}/bin/sh.
4045 touch sub
/conftst
$i.h
4047 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4049 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4050 # mode. It turns out that the SunPro C++ compiler does not properly
4051 # handle `-M -o', and we need to detect this. Also, some Intel
4052 # versions had trouble with output in subdirs
4053 am__obj
=sub
/conftest.
${OBJEXT-o}
4054 am__minus_obj
="-o $am__obj"
4057 # This depmode causes a compiler race in universal mode.
4058 test "$am__universal" = false ||
continue
4061 # after this tag, mechanisms are not by side-effect, so they'll
4062 # only be used when explicitly requested
4063 if test "x$enable_dependency_tracking" = xyes
; then
4069 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
4070 # This compiler won't grok `-c -o', but also, the minuso test has
4071 # not run yet. These depmodes are late enough in the game, and
4072 # so weak that their functioning should not be impacted.
4073 am__obj
=conftest.
${OBJEXT-o}
4078 if depmode
=$depmode \
4079 source=sub
/conftest.c object
=$am__obj \
4080 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4081 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4082 >/dev
/null
2>conftest.err
&&
4083 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4084 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4085 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4086 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4087 # icc doesn't choke on unknown options, it will just issue warnings
4088 # or remarks (even with -Werror). So we grep stderr for any message
4089 # that says an option was ignored or not supported.
4090 # When given -MP, icc 7.0 and 7.1 complain thusly:
4091 # icc: Command line warning: ignoring option '-M'; no argument required
4092 # The diagnosis changed in icc 8.0:
4093 # icc: Command line remark: option '-MP' not supported
4094 if (grep 'ignoring option' conftest.err ||
4095 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4096 am_cv_CC_dependencies_compiler_type
=$depmode
4105 am_cv_CC_dependencies_compiler_type
=none
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4110 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4111 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4114 test "x$enable_dependency_tracking" != xno \
4115 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4117 am__fastdepCC_FALSE
='#'
4119 am__fastdepCC_TRUE
='#'
4120 am__fastdepCC_FALSE
=
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4127 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4132 macro_version
='2.4.2'
4133 macro_revision
='1.3337'
4147 ltmain
="$ac_aux_dir/ltmain.sh"
4149 # Backslashify metacharacters that are still active within
4150 # double-quoted strings.
4151 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
4153 # Same as above, but do not quote variable references.
4154 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
4156 # Sed substitution to delay expansion of an escaped shell variable in a
4157 # double_quote_subst'ed string.
4158 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
4160 # Sed substitution to delay expansion of an escaped single quote.
4161 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
4163 # Sed substitution to avoid accidental globbing in evaled expressions
4164 no_glob_subst
='s/\*/\\\*/g'
4166 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4167 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4168 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4171 $as_echo_n "checking how to print strings... " >&6; }
4172 # Test print first, because it will be a builtin if present.
4173 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4174 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4176 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4179 # Use this function as a fallback that always works.
4180 func_fallback_echo ()
4182 eval 'cat <<_LTECHO_EOF
4186 ECHO='func_fallback_echo
'
4189 # func_echo_all arg...
4190 # Invoke $ECHO with all args, space-separated.
4197 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4198 $as_echo "printf" >&6; } ;;
4199 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4200 $as_echo "print -r" >&6; } ;;
4201 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4202 $as_echo "cat" >&6; } ;;
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4219 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4220 if ${ac_cv_path_SED+:} false; then :
4221 $as_echo_n "(cached) " >&6
4223 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4224 for ac_i in 1 2 3 4 5 6 7; do
4225 ac_script="$ac_script$as_nl$ac_script"
4227 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4228 { ac_script=; unset ac_script;}
4229 if test -z "$SED"; then
4230 ac_path_SED_found=false
4231 # Loop through the user's path and
test for each of PROGNAME-LIST
4232 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4236 test -z "$as_dir" && as_dir
=.
4237 for ac_prog
in sed gsed
; do
4238 for ac_exec_ext
in '' $ac_executable_extensions; do
4239 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4240 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
4241 # Check for GNU ac_path_SED and select it if it is found.
4242 # Check for GNU $ac_path_SED
4243 case `"$ac_path_SED" --version 2>&1` in
4245 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4248 $as_echo_n 0123456789 >"conftest.in"
4251 cat "conftest.in" "conftest.in" >"conftest.tmp"
4252 mv "conftest.tmp" "conftest.in"
4253 cp "conftest.in" "conftest.nl"
4254 $as_echo '' >> "conftest.nl"
4255 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4256 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4257 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4258 if test $ac_count -gt ${ac_path_SED_max-0}; then
4259 # Best one so far, save it but keep looking for a better one
4260 ac_cv_path_SED
="$ac_path_SED"
4261 ac_path_SED_max
=$ac_count
4263 # 10*(2^10) chars as input seems more than enough
4264 test $ac_count -gt 10 && break
4266 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4269 $ac_path_SED_found && break 3
4274 if test -z "$ac_cv_path_SED"; then
4275 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4283 $as_echo "$ac_cv_path_SED" >&6; }
4284 SED
="$ac_cv_path_SED"
4287 test -z "$SED" && SED
=sed
4288 Xsed
="$SED -e 1s/^X//"
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4301 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4302 if ${ac_cv_path_GREP+:} false
; then :
4303 $as_echo_n "(cached) " >&6
4305 if test -z "$GREP"; then
4306 ac_path_GREP_found
=false
4307 # Loop through the user's path and test for each of PROGNAME-LIST
4308 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4309 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4312 test -z "$as_dir" && as_dir
=.
4313 for ac_prog
in grep ggrep
; do
4314 for ac_exec_ext
in '' $ac_executable_extensions; do
4315 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4316 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4317 # Check for GNU ac_path_GREP and select it if it is found.
4318 # Check for GNU $ac_path_GREP
4319 case `"$ac_path_GREP" --version 2>&1` in
4321 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4324 $as_echo_n 0123456789 >"conftest.in"
4327 cat "conftest.in" "conftest.in" >"conftest.tmp"
4328 mv "conftest.tmp" "conftest.in"
4329 cp "conftest.in" "conftest.nl"
4330 $as_echo 'GREP' >> "conftest.nl"
4331 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4332 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4333 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4334 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4335 # Best one so far, save it but keep looking for a better one
4336 ac_cv_path_GREP
="$ac_path_GREP"
4337 ac_path_GREP_max
=$ac_count
4339 # 10*(2^10) chars as input seems more than enough
4340 test $ac_count -gt 10 && break
4342 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4345 $ac_path_GREP_found && break 3
4350 if test -z "$ac_cv_path_GREP"; then
4351 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4354 ac_cv_path_GREP
=$GREP
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4359 $as_echo "$ac_cv_path_GREP" >&6; }
4360 GREP
="$ac_cv_path_GREP"
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4364 $as_echo_n "checking for egrep... " >&6; }
4365 if ${ac_cv_path_EGREP+:} false
; then :
4366 $as_echo_n "(cached) " >&6
4368 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4369 then ac_cv_path_EGREP
="$GREP -E"
4371 if test -z "$EGREP"; then
4372 ac_path_EGREP_found
=false
4373 # Loop through the user's path and test for each of PROGNAME-LIST
4374 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4375 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4378 test -z "$as_dir" && as_dir
=.
4379 for ac_prog
in egrep; do
4380 for ac_exec_ext
in '' $ac_executable_extensions; do
4381 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4382 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4383 # Check for GNU ac_path_EGREP and select it if it is found.
4384 # Check for GNU $ac_path_EGREP
4385 case `"$ac_path_EGREP" --version 2>&1` in
4387 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4390 $as_echo_n 0123456789 >"conftest.in"
4393 cat "conftest.in" "conftest.in" >"conftest.tmp"
4394 mv "conftest.tmp" "conftest.in"
4395 cp "conftest.in" "conftest.nl"
4396 $as_echo 'EGREP' >> "conftest.nl"
4397 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4398 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4399 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4400 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4401 # Best one so far, save it but keep looking for a better one
4402 ac_cv_path_EGREP
="$ac_path_EGREP"
4403 ac_path_EGREP_max
=$ac_count
4405 # 10*(2^10) chars as input seems more than enough
4406 test $ac_count -gt 10 && break
4408 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4411 $ac_path_EGREP_found && break 3
4416 if test -z "$ac_cv_path_EGREP"; then
4417 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4420 ac_cv_path_EGREP
=$EGREP
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4426 $as_echo "$ac_cv_path_EGREP" >&6; }
4427 EGREP
="$ac_cv_path_EGREP"
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4431 $as_echo_n "checking for fgrep... " >&6; }
4432 if ${ac_cv_path_FGREP+:} false
; then :
4433 $as_echo_n "(cached) " >&6
4435 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
4436 then ac_cv_path_FGREP
="$GREP -F"
4438 if test -z "$FGREP"; then
4439 ac_path_FGREP_found
=false
4440 # Loop through the user's path and test for each of PROGNAME-LIST
4441 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4442 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4445 test -z "$as_dir" && as_dir
=.
4446 for ac_prog
in fgrep
; do
4447 for ac_exec_ext
in '' $ac_executable_extensions; do
4448 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
4449 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
4450 # Check for GNU ac_path_FGREP and select it if it is found.
4451 # Check for GNU $ac_path_FGREP
4452 case `"$ac_path_FGREP" --version 2>&1` in
4454 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
4457 $as_echo_n 0123456789 >"conftest.in"
4460 cat "conftest.in" "conftest.in" >"conftest.tmp"
4461 mv "conftest.tmp" "conftest.in"
4462 cp "conftest.in" "conftest.nl"
4463 $as_echo 'FGREP' >> "conftest.nl"
4464 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4465 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4466 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4467 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4468 # Best one so far, save it but keep looking for a better one
4469 ac_cv_path_FGREP
="$ac_path_FGREP"
4470 ac_path_FGREP_max
=$ac_count
4472 # 10*(2^10) chars as input seems more than enough
4473 test $ac_count -gt 10 && break
4475 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4478 $ac_path_FGREP_found && break 3
4483 if test -z "$ac_cv_path_FGREP"; then
4484 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4487 ac_cv_path_FGREP
=$FGREP
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4493 $as_echo "$ac_cv_path_FGREP" >&6; }
4494 FGREP
="$ac_cv_path_FGREP"
4497 test -z "$GREP" && GREP
=grep
4517 # Check whether --with-gnu-ld was given.
4518 if test "${with_gnu_ld+set}" = set; then :
4519 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
4525 if test "$GCC" = yes; then
4526 # Check if gcc -print-prog-name=ld gives a path.
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4528 $as_echo_n "checking for ld used by $CC... " >&6; }
4531 # gcc leaves a trailing carriage return which upsets mingw
4532 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4534 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4537 # Accept absolute paths.
4539 re_direlt
='/[^/][^/]*/\.\./'
4540 # Canonicalize the pathname of ld
4541 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4542 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
4543 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4545 test -z "$LD" && LD
="$ac_prog"
4548 # If it fails, then pretend we aren't using GCC.
4552 # If it is relative, then search for the first ld in PATH.
4556 elif test "$with_gnu_ld" = yes; then
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4558 $as_echo_n "checking for GNU ld... " >&6; }
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4561 $as_echo_n "checking for non-GNU ld... " >&6; }
4563 if ${lt_cv_path_LD+:} false
; then :
4564 $as_echo_n "(cached) " >&6
4566 if test -z "$LD"; then
4567 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4568 for ac_dir
in $PATH; do
4570 test -z "$ac_dir" && ac_dir
=.
4571 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4572 lt_cv_path_LD
="$ac_dir/$ac_prog"
4573 # Check to see if the program is GNU ld. I'd rather use --version,
4574 # but apparently some variants of GNU ld only accept -v.
4575 # Break only if it was the GNU/non-GNU ld that we prefer.
4576 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4577 *GNU
* |
*'with BFD'*)
4578 test "$with_gnu_ld" != no
&& break
4581 test "$with_gnu_ld" != yes && break
4588 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
4593 if test -n "$LD"; then
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4595 $as_echo "$LD" >&6; }
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4598 $as_echo "no" >&6; }
4600 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4602 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4603 if ${lt_cv_prog_gnu_ld+:} false
; then :
4604 $as_echo_n "(cached) " >&6
4606 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4607 case `$LD -v 2>&1 </dev/null` in
4608 *GNU
* |
*'with BFD'*)
4609 lt_cv_prog_gnu_ld
=yes
4612 lt_cv_prog_gnu_ld
=no
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4617 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4618 with_gnu_ld
=$lt_cv_prog_gnu_ld
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4629 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4630 if ${lt_cv_path_NM+:} false
; then :
4631 $as_echo_n "(cached) " >&6
4633 if test -n "$NM"; then
4634 # Let the user override the test.
4637 lt_nm_to_check
="${ac_tool_prefix}nm"
4638 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4639 lt_nm_to_check
="$lt_nm_to_check nm"
4641 for lt_tmp_nm
in $lt_nm_to_check; do
4642 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4643 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
4645 test -z "$ac_dir" && ac_dir
=.
4646 tmp_nm
="$ac_dir/$lt_tmp_nm"
4647 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
4648 # Check to see if the nm accepts a BSD-compat flag.
4649 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4650 # nm: unknown option "B" ignored
4651 # Tru64's nm complains that /dev/null is an invalid object file
4652 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4653 */dev
/null
* |
*'Invalid file or object type'*)
4654 lt_cv_path_NM
="$tmp_nm -B"
4658 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4660 lt_cv_path_NM
="$tmp_nm -p"
4664 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4665 continue # so that we can try to find one that supports BSD flags
4674 : ${lt_cv_path_NM=no}
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4678 $as_echo "$lt_cv_path_NM" >&6; }
4679 if test "$lt_cv_path_NM" != "no"; then
4682 # Didn't find any BSD compatible name lister, look for dumpbin.
4683 if test -n "$DUMPBIN"; then :
4684 # Let the user override the test.
4686 if test -n "$ac_tool_prefix"; then
4687 for ac_prog
in dumpbin
"link -dump"
4689 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4690 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4692 $as_echo_n "checking for $ac_word... " >&6; }
4693 if ${ac_cv_prog_DUMPBIN+:} false
; then :
4694 $as_echo_n "(cached) " >&6
4696 if test -n "$DUMPBIN"; then
4697 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
4699 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4703 test -z "$as_dir" && as_dir
=.
4704 for ac_exec_ext
in '' $ac_executable_extensions; do
4705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4706 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
4707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4716 DUMPBIN
=$ac_cv_prog_DUMPBIN
4717 if test -n "$DUMPBIN"; then
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4719 $as_echo "$DUMPBIN" >&6; }
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4722 $as_echo "no" >&6; }
4726 test -n "$DUMPBIN" && break
4729 if test -z "$DUMPBIN"; then
4730 ac_ct_DUMPBIN
=$DUMPBIN
4731 for ac_prog
in dumpbin
"link -dump"
4733 # Extract the first word of "$ac_prog", so it can be a program name with args.
4734 set dummy
$ac_prog; ac_word
=$2
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4736 $as_echo_n "checking for $ac_word... " >&6; }
4737 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
4738 $as_echo_n "(cached) " >&6
4740 if test -n "$ac_ct_DUMPBIN"; then
4741 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
4743 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4747 test -z "$as_dir" && as_dir
=.
4748 for ac_exec_ext
in '' $ac_executable_extensions; do
4749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4750 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
4751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4760 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
4761 if test -n "$ac_ct_DUMPBIN"; then
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4763 $as_echo "$ac_ct_DUMPBIN" >&6; }
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4766 $as_echo "no" >&6; }
4770 test -n "$ac_ct_DUMPBIN" && break
4773 if test "x$ac_ct_DUMPBIN" = x
; then
4776 case $cross_compiling:$ac_tool_warned in
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4779 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4780 ac_tool_warned
=yes ;;
4782 DUMPBIN
=$ac_ct_DUMPBIN
4786 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4788 DUMPBIN
="$DUMPBIN -symbols"
4796 if test "$DUMPBIN" != ":"; then
4800 test -z "$NM" && NM
=nm
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4808 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4809 if ${lt_cv_nm_interface+:} false
; then :
4810 $as_echo_n "(cached) " >&6
4812 lt_cv_nm_interface
="BSD nm"
4813 echo "int some_variable = 0;" > conftest.
$ac_ext
4814 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4815 (eval "$ac_compile" 2>conftest.err
)
4816 cat conftest.err
>&5
4817 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4818 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
4819 cat conftest.err
>&5
4820 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4821 cat conftest.out
>&5
4822 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
4823 lt_cv_nm_interface
="MS dumpbin"
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4828 $as_echo "$lt_cv_nm_interface" >&6; }
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4831 $as_echo_n "checking whether ln -s works... " >&6; }
4833 if test "$LN_S" = "ln -s"; then
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4835 $as_echo "yes" >&6; }
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4838 $as_echo "no, using $LN_S" >&6; }
4841 # find the maximum length of command line arguments
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4843 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4844 if ${lt_cv_sys_max_cmd_len+:} false
; then :
4845 $as_echo_n "(cached) " >&6
4852 # On DJGPP, this test can blow up pretty badly due to problems in libc
4853 # (any single argument exceeding 2000 bytes causes a buffer overrun
4854 # during glob expansion). Even if it were fixed, the result of this
4855 # check would be larger than it should be.
4856 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
4860 # Under GNU Hurd, this test is not required because there is
4861 # no limit to the length of command line arguments.
4862 # Libtool will interpret -1 as no limit whatsoever
4863 lt_cv_sys_max_cmd_len
=-1;
4866 cygwin
* | mingw
* | cegcc
*)
4867 # On Win9x/ME, this test blows up -- it succeeds, but takes
4868 # about 5 minutes as the teststring grows exponentially.
4869 # Worse, since 9x/ME are not pre-emptively multitasking,
4870 # you end up with a "frozen" computer, even though with patience
4871 # the test eventually succeeds (with a max line length of 256k).
4872 # Instead, let's just punt: use the minimum linelength reported by
4873 # all of the supported platforms: 8192 (on NT/2K/XP).
4874 lt_cv_sys_max_cmd_len
=8192;
4878 # On MiNT this can take a long time and run out of memory.
4879 lt_cv_sys_max_cmd_len
=8192;
4883 # On AmigaOS with pdksh, this test takes hours, literally.
4884 # So we just punt and use a minimum line length of 8192.
4885 lt_cv_sys_max_cmd_len
=8192;
4888 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
4889 # This has been around since 386BSD, at least. Likely further.
4890 if test -x /sbin
/sysctl
; then
4891 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
4892 elif test -x /usr
/sbin
/sysctl
; then
4893 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
4895 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
4897 # And add a safety zone
4898 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4899 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4903 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4904 lt_cv_sys_max_cmd_len
=196608
4908 # The test takes a long time on OS/2.
4909 lt_cv_sys_max_cmd_len
=8192
4913 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4914 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4915 # nice to cause kernel panics so lets avoid the loop below.
4916 # First set a reasonable default.
4917 lt_cv_sys_max_cmd_len
=16384
4919 if test -x /sbin
/sysconfig
; then
4920 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4921 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
4926 lt_cv_sys_max_cmd_len
=102400
4928 sysv5
* | sco5v6
* | sysv4.2uw2
*)
4929 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4930 if test -n "$kargmax"; then
4931 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
4933 lt_cv_sys_max_cmd_len
=32768
4937 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
4938 if test -n "$lt_cv_sys_max_cmd_len"; then
4939 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4940 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4942 # Make teststring a little bigger before we do anything with it.
4943 # a 1K string should be a reasonable start.
4944 for i
in 1 2 3 4 5 6 7 8 ; do
4945 teststring
=$teststring$teststring
4947 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
4948 # If test is not a shell built-in, we'll probably end up computing a
4949 # maximum length that is only half of the actual maximum length, but
4951 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4952 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
4953 test $i != 17 # 1/2 MB should be enough
4956 teststring
=$teststring$teststring
4958 # Only check the string length outside the loop.
4959 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
4961 # Add a significant safety factor because C++ compilers can tack on
4962 # massive amounts of additional arguments before passing them to the
4963 # linker. It appears as though 1/2 is a usable value.
4964 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
4971 if test -n $lt_cv_sys_max_cmd_len ; then
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4973 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4976 $as_echo "none" >&6; }
4978 max_cmd_len
=$lt_cv_sys_max_cmd_len
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4990 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4991 # Try some XSI features
4994 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4996 && eval 'test $(( 1 + 1 )) -eq 2 \
4997 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
5000 $as_echo "$xsi_shell" >&6; }
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
5004 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
5006 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
5008 && lt_shell_append=yes
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
5010 $as_echo "$lt_shell_append" >&6; }
5013 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5023 # test EBCDIC or ASCII
5024 case `echo X|tr X '\101'` in
5025 A) # ASCII based system
5026 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5027 lt_SP2NL='tr \040 \012'
5028 lt_NL2SP='tr \015\012 \040\040'
5030 *) # EBCDIC based system
5031 lt_SP2NL='tr \100 \n'
5032 lt_NL2SP='tr \r\n \100\100'
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to
$host format
" >&5
5045 $as_echo_n "checking how to convert
$build file names to
$host format...
" >&6; }
5046 if ${lt_cv_to_host_file_cmd+:} false; then :
5047 $as_echo_n "(cached
) " >&6
5052 *-*-mingw* ) # actually msys
5053 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5056 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5058 * ) # otherwise, assume *nix
5059 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5065 *-*-mingw* ) # actually msys
5066 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5069 lt_cv_to_host_file_cmd=func_convert_file_noop
5071 * ) # otherwise, assume *nix
5072 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5076 * ) # unhandled hosts (and "normal
" native builds)
5077 lt_cv_to_host_file_cmd=func_convert_file_noop
5083 to_host_file_cmd=$lt_cv_to_host_file_cmd
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_host_file_cmd" >&5
5085 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert
$build file names to toolchain format
" >&5
5092 $as_echo_n "checking how to convert
$build file names to toolchain format...
" >&6; }
5093 if ${lt_cv_to_tool_file_cmd+:} false; then :
5094 $as_echo_n "(cached
) " >&6
5096 #assume ordinary cross tools, or native build.
5097 lt_cv_to_tool_file_cmd=func_convert_file_noop
5101 *-*-mingw* ) # actually msys
5102 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5110 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_to_tool_file_cmd" >&5
5112 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
5119 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5120 if ${lt_cv_ld_reload_flag+:} false; then :
5121 $as_echo_n "(cached
) " >&6
5123 lt_cv_ld_reload_flag='-r'
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
5126 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5127 reload_flag=$lt_cv_ld_reload_flag
5128 case $reload_flag in
5130 *) reload_flag=" $reload_flag" ;;
5132 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5134 cygwin* | mingw* | pw32* | cegcc*)
5135 if test "$GCC" != yes; then
5140 if test "$GCC" = yes; then
5141 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5143 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5156 if test -n "$ac_tool_prefix"; then
5157 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5158 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5160 $as_echo_n "checking
for $ac_word...
" >&6; }
5161 if ${ac_cv_prog_OBJDUMP+:} false; then :
5162 $as_echo_n "(cached
) " >&6
5164 if test -n "$OBJDUMP"; then
5165 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 test -z "$as_dir" && as_dir=.
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5174 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5175 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5184 OBJDUMP=$ac_cv_prog_OBJDUMP
5185 if test -n "$OBJDUMP"; then
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
5187 $as_echo "$OBJDUMP" >&6; }
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5190 $as_echo "no
" >&6; }
5195 if test -z "$ac_cv_prog_OBJDUMP"; then
5196 ac_ct_OBJDUMP=$OBJDUMP
5197 # Extract the first word of "objdump
", so it can be a program name with args.
5198 set dummy objdump; ac_word=$2
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5200 $as_echo_n "checking
for $ac_word...
" >&6; }
5201 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5202 $as_echo_n "(cached
) " >&6
5204 if test -n "$ac_ct_OBJDUMP"; then
5205 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 test -z "$as_dir" && as_dir=.
5212 for ac_exec_ext in '' $ac_executable_extensions; do
5213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5214 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5215 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5224 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5225 if test -n "$ac_ct_OBJDUMP"; then
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
5227 $as_echo "$ac_ct_OBJDUMP" >&6; }
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5230 $as_echo "no
" >&6; }
5233 if test "x
$ac_ct_OBJDUMP" = x; then
5236 case $cross_compiling:$ac_tool_warned in
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5239 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5240 ac_tool_warned=yes ;;
5242 OBJDUMP=$ac_ct_OBJDUMP
5245 OBJDUMP="$ac_cv_prog_OBJDUMP"
5248 test -z "$OBJDUMP" && OBJDUMP=objdump
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
5259 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5260 if ${lt_cv_deplibs_check_method+:} false; then :
5261 $as_echo_n "(cached
) " >&6
5263 lt_cv_file_magic_cmd='$MAGIC_CMD'
5264 lt_cv_file_magic_test_file=
5265 lt_cv_deplibs_check_method='unknown'
5266 # Need to set the preceding variable on all platforms that support
5267 # interlibrary dependencies.
5268 # 'none' -- dependencies not supported.
5269 # `unknown' -- same as none, but documents that we really don't know.
5270 # 'pass_all' -- all dependencies passed with no checks.
5271 # 'test_compile' -- check by making test program.
5272 # 'file_magic [[regex]]' -- check by looking for files in library path
5273 # which responds to the $file_magic_cmd with a given extended regex.
5274 # If you have `file' or equivalent on your system and you're not sure
5275 # whether `pass_all' will *always* work, you probably want this one.
5279 lt_cv_deplibs_check_method=pass_all
5283 lt_cv_deplibs_check_method=pass_all
5287 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5288 lt_cv_file_magic_cmd='/usr/bin/file -L'
5289 lt_cv_file_magic_test_file=/shlib/libc.so
5293 # func_win32_libid is a shell function defined in ltmain.sh
5294 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5295 lt_cv_file_magic_cmd='func_win32_libid'
5299 # Base MSYS/MinGW do not provide the 'file' command needed by
5300 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5301 # unless we find 'file', for example because we are cross-compiling.
5302 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5303 if ( test "$lt_cv_nm_interface" = "BSD nm
" && file / ) >/dev/null 2>&1; then
5304 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5305 lt_cv_file_magic_cmd='func_win32_libid'
5307 # Keep this pattern in sync with the one in func_win32_libid.
5308 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5309 lt_cv_file_magic_cmd='$OBJDUMP -f'
5314 # use the weaker test based on 'objdump'. See mingw*.
5315 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5316 lt_cv_file_magic_cmd='$OBJDUMP -f'
5319 darwin* | rhapsody*)
5320 lt_cv_deplibs_check_method=pass_all
5323 freebsd* | dragonfly*)
5324 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5327 # Not sure whether the presence of OpenBSD here was a mistake.
5328 # Let's accept both of them until this is cleared up.
5329 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5330 lt_cv_file_magic_cmd=/usr/bin/file
5331 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5335 lt_cv_deplibs_check_method=pass_all
5340 lt_cv_deplibs_check_method=pass_all
5344 lt_cv_deplibs_check_method=pass_all
5347 hpux10.20* | hpux11*)
5348 lt_cv_file_magic_cmd=/usr/bin/file
5351 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5352 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5355 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]'
5356 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5359 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5360 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5366 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5367 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5370 irix5* | irix6* | nonstopux*)
5372 *-32|*"-32 ") libmagic=32-bit;;
5373 *-n32|*"-n32 ") libmagic=N32;;
5374 *-64|*"-64 ") libmagic=64-bit;;
5375 *) libmagic=never-match;;
5377 lt_cv_deplibs_check_method=pass_all
5380 # This must be glibc/ELF.
5381 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5382 lt_cv_deplibs_check_method=pass_all
5385 netbsd* | netbsdelf*-gnu)
5386 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5387 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5389 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5394 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5395 lt_cv_file_magic_cmd=/usr/bin/file
5396 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5400 lt_cv_deplibs_check_method=pass_all
5404 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
5405 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5407 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5411 osf3* | osf4* | osf5*)
5412 lt_cv_deplibs_check_method=pass_all
5416 lt_cv_deplibs_check_method=pass_all
5420 lt_cv_deplibs_check_method=pass_all
5423 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5424 lt_cv_deplibs_check_method=pass_all
5428 case $host_vendor in
5430 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]'
5431 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5434 lt_cv_deplibs_check_method=pass_all
5437 lt_cv_file_magic_cmd='/bin/file'
5438 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5441 lt_cv_file_magic_cmd='/bin/file'
5442 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5443 lt_cv_file_magic_test_file=/lib/libc.so
5446 lt_cv_deplibs_check_method=pass_all
5449 lt_cv_deplibs_check_method=pass_all
5455 lt_cv_deplibs_check_method=pass_all
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
5461 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5465 if test "$build" = "$host"; then
5468 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5471 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s
/\
(..\
)/s\
/[\
1]\
/[\
1]\
/g
;/g
"`
5477 file_magic_cmd=$lt_cv_file_magic_cmd
5478 deplibs_check_method=$lt_cv_deplibs_check_method
5479 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5502 if test -n "$ac_tool_prefix"; then
5503 # Extract the first word of "${ac_tool_prefix}dlltool
", so it can be a program name with args.
5504 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5506 $as_echo_n "checking
for $ac_word...
" >&6; }
5507 if ${ac_cv_prog_DLLTOOL+:} false; then :
5508 $as_echo_n "(cached
) " >&6
5510 if test -n "$DLLTOOL"; then
5511 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5517 test -z "$as_dir" && as_dir=.
5518 for ac_exec_ext in '' $ac_executable_extensions; do
5519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5520 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool
"
5521 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5530 DLLTOOL=$ac_cv_prog_DLLTOOL
5531 if test -n "$DLLTOOL"; then
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
5533 $as_echo "$DLLTOOL" >&6; }
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5536 $as_echo "no
" >&6; }
5541 if test -z "$ac_cv_prog_DLLTOOL"; then
5542 ac_ct_DLLTOOL=$DLLTOOL
5543 # Extract the first word of "dlltool
", so it can be a program name with args.
5544 set dummy dlltool; ac_word=$2
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5546 $as_echo_n "checking
for $ac_word...
" >&6; }
5547 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5548 $as_echo_n "(cached
) " >&6
5550 if test -n "$ac_ct_DLLTOOL"; then
5551 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5557 test -z "$as_dir" && as_dir=.
5558 for ac_exec_ext in '' $ac_executable_extensions; do
5559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5560 ac_cv_prog_ac_ct_DLLTOOL="dlltool
"
5561 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5570 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5571 if test -n "$ac_ct_DLLTOOL"; then
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DLLTOOL" >&5
5573 $as_echo "$ac_ct_DLLTOOL" >&6; }
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5576 $as_echo "no
" >&6; }
5579 if test "x
$ac_ct_DLLTOOL" = x; then
5582 case $cross_compiling:$ac_tool_warned in
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5585 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5586 ac_tool_warned=yes ;;
5588 DLLTOOL=$ac_ct_DLLTOOL
5591 DLLTOOL="$ac_cv_prog_DLLTOOL"
5594 test -z "$DLLTOOL" && DLLTOOL=dlltool
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries
" >&5
5606 $as_echo_n "checking how to associate runtime and link libraries...
" >&6; }
5607 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5608 $as_echo_n "(cached
) " >&6
5610 lt_cv_sharedlib_from_linklib_cmd='unknown'
5613 cygwin* | mingw* | pw32* | cegcc*)
5614 # two different shell functions defined in ltmain.sh
5615 # decide which to use based on capabilities of $DLLTOOL
5616 case `$DLLTOOL --help 2>&1` in
5617 *--identify-strict*)
5618 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5621 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5626 # fallback: assume linklib IS sharedlib
5627 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_sharedlib_from_linklib_cmd" >&5
5633 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5634 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5635 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5644 if test -n "$ac_tool_prefix"; then
5647 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5648 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5650 $as_echo_n "checking
for $ac_word...
" >&6; }
5651 if ${ac_cv_prog_AR+:} false; then :
5652 $as_echo_n "(cached
) " >&6
5654 if test -n "$AR"; then
5655 ac_cv_prog_AR="$AR" # Let the user override the test.
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5661 test -z "$as_dir" && as_dir=.
5662 for ac_exec_ext in '' $ac_executable_extensions; do
5663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5664 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5665 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5675 if test -n "$AR"; then
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
5677 $as_echo "$AR" >&6; }
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5680 $as_echo "no
" >&6; }
5684 test -n "$AR" && break
5687 if test -z "$AR"; then
5691 # Extract the first word of "$ac_prog", so it can be a program name with args.
5692 set dummy $ac_prog; ac_word=$2
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5694 $as_echo_n "checking
for $ac_word...
" >&6; }
5695 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5696 $as_echo_n "(cached
) " >&6
5698 if test -n "$ac_ct_AR"; then
5699 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5705 test -z "$as_dir" && as_dir=.
5706 for ac_exec_ext in '' $ac_executable_extensions; do
5707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5708 ac_cv_prog_ac_ct_AR="$ac_prog"
5709 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5718 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5719 if test -n "$ac_ct_AR"; then
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
5721 $as_echo "$ac_ct_AR" >&6; }
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5724 $as_echo "no
" >&6; }
5728 test -n "$ac_ct_AR" && break
5731 if test "x
$ac_ct_AR" = x; then
5734 case $cross_compiling:$ac_tool_warned in
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5737 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5738 ac_tool_warned=yes ;;
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for archiver @FILE support
" >&5
5758 $as_echo_n "checking
for archiver @FILE support...
" >&6; }
5759 if ${lt_cv_ar_at_file+:} false; then :
5760 $as_echo_n "(cached
) " >&6
5763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5764 /* end confdefs.h. */
5774 if ac_fn_c_try_compile "$LINENO"; then :
5775 echo conftest.$ac_objext > conftest.lst
5776 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5777 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5778 (eval $lt_ar_try) 2>&5
5780 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5781 test $ac_status = 0; }
5782 if test "$ac_status" -eq 0; then
5783 # Ensure the archiver fails upon bogus file names.
5784 rm -f conftest.$ac_objext libconftest.a
5785 { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5786 (eval $lt_ar_try) 2>&5
5788 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5789 test $ac_status = 0; }
5790 if test "$ac_status" -ne 0; then
5794 rm -f conftest.* libconftest.a
5797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ar_at_file" >&5
5801 $as_echo "$lt_cv_ar_at_file" >&6; }
5803 if test "x
$lt_cv_ar_at_file" = xno; then
5806 archiver_list_spec=$lt_cv_ar_at_file
5815 if test -n "$ac_tool_prefix"; then
5816 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
5817 set dummy ${ac_tool_prefix}strip; ac_word=$2
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5819 $as_echo_n "checking
for $ac_word...
" >&6; }
5820 if ${ac_cv_prog_STRIP+:} false; then :
5821 $as_echo_n "(cached
) " >&6
5823 if test -n "$STRIP"; then
5824 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830 test -z "$as_dir" && as_dir=.
5831 for ac_exec_ext in '' $ac_executable_extensions; do
5832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5833 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
5834 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5843 STRIP=$ac_cv_prog_STRIP
5844 if test -n "$STRIP"; then
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
5846 $as_echo "$STRIP" >&6; }
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5849 $as_echo "no
" >&6; }
5854 if test -z "$ac_cv_prog_STRIP"; then
5856 # Extract the first word of "strip
", so it can be a program name with args.
5857 set dummy strip; ac_word=$2
5858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5859 $as_echo_n "checking
for $ac_word...
" >&6; }
5860 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5861 $as_echo_n "(cached
) " >&6
5863 if test -n "$ac_ct_STRIP"; then
5864 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870 test -z "$as_dir" && as_dir=.
5871 for ac_exec_ext in '' $ac_executable_extensions; do
5872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5873 ac_cv_prog_ac_ct_STRIP="strip
"
5874 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5883 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5884 if test -n "$ac_ct_STRIP"; then
5885 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
5886 $as_echo "$ac_ct_STRIP" >&6; }
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5889 $as_echo "no
" >&6; }
5892 if test "x
$ac_ct_STRIP" = x; then
5895 case $cross_compiling:$ac_tool_warned in
5897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5898 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5899 ac_tool_warned=yes ;;
5904 STRIP="$ac_cv_prog_STRIP"
5907 test -z "$STRIP" && STRIP=:
5914 if test -n "$ac_tool_prefix"; then
5915 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
5916 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5918 $as_echo_n "checking
for $ac_word...
" >&6; }
5919 if ${ac_cv_prog_RANLIB+:} false; then :
5920 $as_echo_n "(cached
) " >&6
5922 if test -n "$RANLIB"; then
5923 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 test -z "$as_dir" && as_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5932 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
5933 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5942 RANLIB=$ac_cv_prog_RANLIB
5943 if test -n "$RANLIB"; then
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
5945 $as_echo "$RANLIB" >&6; }
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5948 $as_echo "no
" >&6; }
5953 if test -z "$ac_cv_prog_RANLIB"; then
5954 ac_ct_RANLIB=$RANLIB
5955 # Extract the first word of "ranlib
", so it can be a program name with args.
5956 set dummy ranlib; ac_word=$2
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5958 $as_echo_n "checking
for $ac_word...
" >&6; }
5959 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5960 $as_echo_n "(cached
) " >&6
5962 if test -n "$ac_ct_RANLIB"; then
5963 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 test -z "$as_dir" && as_dir=.
5970 for ac_exec_ext in '' $ac_executable_extensions; do
5971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5972 ac_cv_prog_ac_ct_RANLIB="ranlib
"
5973 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5982 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5983 if test -n "$ac_ct_RANLIB"; then
5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
5985 $as_echo "$ac_ct_RANLIB" >&6; }
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5988 $as_echo "no
" >&6; }
5991 if test "x
$ac_ct_RANLIB" = x; then
5994 case $cross_compiling:$ac_tool_warned in
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5997 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5998 ac_tool_warned=yes ;;
6000 RANLIB=$ac_ct_RANLIB
6003 RANLIB="$ac_cv_prog_RANLIB"
6006 test -z "$RANLIB" && RANLIB=:
6013 # Determine commands to create old-style static archives.
6014 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6015 old_postinstall_cmds='chmod 644 $oldlib'
6016 old_postuninstall_cmds=
6018 if test -n "$RANLIB"; then
6021 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$tool_oldlib"
6024 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$tool_oldlib"
6027 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$tool_oldlib"
6032 lock_old_archive_extraction=yes ;;
6034 lock_old_archive_extraction=no ;;
6075 # If no C compiler was specified, use CC.
6078 # If no C compiler flags were specified, use CFLAGS.
6079 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6081 # Allow CC to be a program name with arguments.
6085 # Check for command to grab the raw symbol name followed by C symbol from nm.
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
6087 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
6088 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6089 $as_echo_n "(cached
) " >&6
6092 # These are sane defaults that work on at least a few old systems.
6093 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6095 # Character class describing NM global symbol codes.
6096 symcode='[BCDEGRST]'
6098 # Regexp to match symbols that can be accessed directly from C.
6099 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6101 # Define system-specific variables.
6106 cygwin* | mingw* | pw32* | cegcc*)
6107 symcode='[ABCDGISTW]'
6110 if test "$host_cpu" = ia64; then
6111 symcode='[ABCDEGRST]'
6115 symcode='[BCDEGRST]'
6118 symcode='[BCDEGQRST]'
6129 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6137 # If we're using GNU nm, then use its standard symbol codes.
6138 case `$NM -V 2>&1` in
6139 *GNU* | *'with BFD'*)
6140 symcode='[ABCDGIRSTW]' ;;
6143 # Transform an extracted symbol line into a proper C declaration.
6144 # Some systems (esp. on ia64) link data and code symbols differently,
6145 # so use this general approach.
6146 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6148 # Transform an extracted symbol line into symbol name and symbol address
6149 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6150 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6152 # Handle CRLF in mingw tool chain
6156 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6160 # Try without a prefix underscore, then with it.
6161 for ac_symprfx in "" "_
"; do
6163 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6164 symxfrm="\\1 $ac_symprfx\\2 \\2"
6166 # Write the raw and C identifiers.
6167 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6168 # Fake it for dumpbin and say T for any non-static function
6169 # and D for any global variable.
6170 # Also find C++ and __fastcall symbols from MSVC++,
6171 # which start with @ or ?.
6172 lt_cv_sys_global_symbol_pipe="$AWK '"\
6173 " {last_section=section; section=\$ 3};"\
6174 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6175 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6176 " \$ 0!~/External *\|/{next};"\
6177 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6178 " {if(hide[section]) next};"\
6179 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6180 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6181 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6182 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6183 " ' prfx
=^
$ac_symprfx"
6185 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6187 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe |
sed '/ __gnu_lto/d'"
6189 # Check to see that the pipe works correctly.
6193 cat > conftest.$ac_ext <<_LT_EOF
6198 void nm_test_func(void);
6199 void nm_test_func(void){}
6203 int main(){nm_test_var='a';nm_test_func();return(0);}
6206 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6207 (eval $ac_compile) 2>&5
6209 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6210 test $ac_status = 0; }; then
6211 # Now try to grab the symbols.
6213 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
"$lt_cv_sys_global_symbol_pipe" \
> $nlist\""; } >&5
6214 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6216 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6217 test $ac_status = 0; } && test -s "$nlist"; then
6218 # Try sorting and uniquifying the output.
6219 if sort "$nlist" | uniq > "$nlist"T; then
6220 mv -f "$nlist"T "$nlist"
6225 # Make sure that we snagged all the symbols we need.
6226 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6227 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6228 cat <<_LT_EOF > conftest.$ac_ext
6229 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6230 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6231 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6232 relocations are performed -- see ld's documentation on pseudo-relocs. */
6233 # define LT_DLSYM_CONST
6234 #elif defined(__osf__)
6235 /* This system does not cope well with relocations in const data. */
6236 # define LT_DLSYM_CONST
6238 # define LT_DLSYM_CONST const
6246 # Now generate the symbol file.
6247 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6249 cat <<_LT_EOF >> conftest.$ac_ext
6251 /* The mapping between symbol names and symbols. */
6252 LT_DLSYM_CONST struct {
6256 lt__PROGRAM__LTX_preloaded_symbols[] =
6258 { "@PROGRAM@
", (void *) 0 },
6260 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6261 cat <<\_LT_EOF >> conftest.$ac_ext
6265 /* This works around a problem in FreeBSD linker */
6266 #ifdef FREEBSD_WORKAROUND
6267 static const void *lt_preloaded_setup() {
6268 return lt__PROGRAM__LTX_preloaded_symbols;
6276 # Now try linking the two files.
6277 mv conftest.$ac_objext conftstm.$ac_objext
6278 lt_globsym_save_LIBS=$LIBS
6279 lt_globsym_save_CFLAGS=$CFLAGS
6280 LIBS="conftstm.
$ac_objext"
6281 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6282 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6283 (eval $ac_link) 2>&5
6285 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6286 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6289 LIBS=$lt_globsym_save_LIBS
6290 CFLAGS=$lt_globsym_save_CFLAGS
6292 echo "cannot
find nm_test_func
in $nlist" >&5
6295 echo "cannot
find nm_test_var
in $nlist" >&5
6298 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
6301 echo "$progname: failed program was
:" >&5
6302 cat conftest.$ac_ext >&5
6304 rm -rf conftest* conftst*
6306 # Do not use the global_symbol_pipe unless it works.
6307 if test "$pipe_works" = yes; then
6310 lt_cv_sys_global_symbol_pipe=
6316 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6317 lt_cv_sys_global_symbol_to_cdecl=
6319 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
6321 $as_echo "failed
" >&6; }
6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
6324 $as_echo "ok
" >&6; }
6327 # Response file support.
6328 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
6329 nm_file_list_spec='@'
6330 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6331 nm_file_list_spec='@'
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for sysroot
" >&5
6361 $as_echo_n "checking
for sysroot...
" >&6; }
6363 # Check whether --with-sysroot was given.
6364 if test "${with_sysroot+set}" = set; then :
6365 withval=$with_sysroot;
6372 case ${with_sysroot} in #(
6374 if test "$GCC" = yes; then
6375 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6379 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${with_sysroot}" >&5
6385 $as_echo "${with_sysroot}" >&6; }
6386 as_fn_error $? "The sysroot must be an absolute path.
" "$LINENO" 5
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ${lt_sysroot:-no}" >&5
6391 $as_echo "${lt_sysroot:-no}" >&6; }
6397 # Check whether --enable-libtool-lock was given.
6398 if test "${enable_libtool_lock+set}" = set; then :
6399 enableval=$enable_libtool_lock;
6402 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
6404 # Some flags need to be propagated to the compiler or linker for good
6408 # Find out which ABI we are using.
6409 echo 'int i;' > conftest.$ac_ext
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 case `/usr/bin/file conftest.$ac_objext` in
6427 # Find out which ABI we are using.
6428 echo '#line '$LINENO' "configure
"' > conftest.$ac_ext
6429 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6430 (eval $ac_compile) 2>&5
6432 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6433 test $ac_status = 0; }; then
6434 if test "$lt_cv_prog_gnu_ld" = yes; then
6435 case `/usr/bin/file conftest.$ac_objext` in
6437 LD="${LD-ld} -melf32bsmip"
6440 LD="${LD-ld} -melf32bmipn32"
6443 LD="${LD-ld} -melf64bmip"
6447 case `/usr/bin/file conftest.$ac_objext` in
6463 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6464 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6465 # Find out which ABI we are using.
6466 echo 'int i;' > conftest.$ac_ext
6467 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6468 (eval $ac_compile) 2>&5
6470 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6471 test $ac_status = 0; }; then
6472 case `/usr/bin/file conftest.o` in
6475 x86_64-*kfreebsd*-gnu)
6476 LD="${LD-ld} -m elf_i386_fbsd
"
6479 LD="${LD-ld} -m elf_i386
"
6481 ppc64-*linux*|powerpc64-*linux*)
6482 LD="${LD-ld} -m elf32ppclinux
"
6485 LD="${LD-ld} -m elf_s390
"
6488 LD="${LD-ld} -m elf32_sparc
"
6494 x86_64-*kfreebsd*-gnu)
6495 LD="${LD-ld} -m elf_x86_64_fbsd
"
6498 LD="${LD-ld} -m elf_x86_64
"
6500 ppc*-*linux*|powerpc*-*linux*)
6501 LD="${LD-ld} -m elf64ppc
"
6503 s390*-*linux*|s390*-*tpf*)
6504 LD="${LD-ld} -m elf64_s390
"
6507 LD="${LD-ld} -m elf64_sparc
"
6517 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6518 SAVE_CFLAGS="$CFLAGS"
6519 CFLAGS="$CFLAGS -belf"
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
6521 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6522 if ${lt_cv_cc_needs_belf+:} false; then :
6523 $as_echo_n "(cached
) " >&6
6526 ac_cpp='$CPP $CPPFLAGS'
6527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6532 /* end confdefs.h. */
6542 if ac_fn_c_try_link "$LINENO"; then :
6543 lt_cv_cc_needs_belf=yes
6545 lt_cv_cc_needs_belf=no
6547 rm -f core conftest.err conftest.$ac_objext \
6548 conftest$ac_exeext conftest.$ac_ext
6550 ac_cpp='$CPP $CPPFLAGS'
6551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
6557 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6558 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6559 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6560 CFLAGS="$SAVE_CFLAGS"
6564 # Find out which ABI we are using.
6565 echo 'int i;' > conftest.$ac_ext
6566 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6567 (eval $ac_compile) 2>&5
6569 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6570 test $ac_status = 0; }; then
6571 case `/usr/bin/file conftest.o` in
6573 case $lt_cv_prog_gnu_ld in
6577 LD="${LD-ld} -m elf_x86_64
"
6580 LD="${LD-ld} -m elf64_sparc
"
6583 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6584 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6589 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6601 need_locks="$enable_libtool_lock"
6603 if test -n "$ac_tool_prefix"; then
6604 # Extract the first word of "${ac_tool_prefix}mt
", so it can be a program name with args.
6605 set dummy ${ac_tool_prefix}mt; ac_word=$2
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6607 $as_echo_n "checking
for $ac_word...
" >&6; }
6608 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6609 $as_echo_n "(cached
) " >&6
6611 if test -n "$MANIFEST_TOOL"; then
6612 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 test -z "$as_dir" && as_dir=.
6619 for ac_exec_ext in '' $ac_executable_extensions; do
6620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt
"
6622 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6631 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6632 if test -n "$MANIFEST_TOOL"; then
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MANIFEST_TOOL" >&5
6634 $as_echo "$MANIFEST_TOOL" >&6; }
6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6637 $as_echo "no
" >&6; }
6642 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6643 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6644 # Extract the first word of "mt
", so it can be a program name with args.
6645 set dummy mt; ac_word=$2
6646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6647 $as_echo_n "checking
for $ac_word...
" >&6; }
6648 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6649 $as_echo_n "(cached
) " >&6
6651 if test -n "$ac_ct_MANIFEST_TOOL"; then
6652 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 test -z "$as_dir" && as_dir=.
6659 for ac_exec_ext in '' $ac_executable_extensions; do
6660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6661 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt
"
6662 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6671 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6672 if test -n "$ac_ct_MANIFEST_TOOL"; then
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_MANIFEST_TOOL" >&5
6674 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6677 $as_echo "no
" >&6; }
6680 if test "x
$ac_ct_MANIFEST_TOOL" = x; then
6683 case $cross_compiling:$ac_tool_warned in
6685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6686 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6687 ac_tool_warned=yes ;;
6689 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6692 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6695 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
if $MANIFEST_TOOL is a manifest tool
" >&5
6697 $as_echo_n "checking
if $MANIFEST_TOOL is a manifest tool...
" >&6; }
6698 if ${lt_cv_path_mainfest_tool+:} false; then :
6699 $as_echo_n "(cached
) " >&6
6701 lt_cv_path_mainfest_tool=no
6702 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6703 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6704 cat conftest.err >&5
6705 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6706 lt_cv_path_mainfest_tool=yes
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_path_mainfest_tool" >&5
6711 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6712 if test "x
$lt_cv_path_mainfest_tool" != xyes; then
6722 rhapsody* | darwin*)
6723 if test -n "$ac_tool_prefix"; then
6724 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
6725 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6727 $as_echo_n "checking
for $ac_word...
" >&6; }
6728 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6729 $as_echo_n "(cached
) " >&6
6731 if test -n "$DSYMUTIL"; then
6732 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 test -z "$as_dir" && as_dir=.
6739 for ac_exec_ext in '' $ac_executable_extensions; do
6740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6741 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
6742 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6751 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6752 if test -n "$DSYMUTIL"; then
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
6754 $as_echo "$DSYMUTIL" >&6; }
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6757 $as_echo "no
" >&6; }
6762 if test -z "$ac_cv_prog_DSYMUTIL"; then
6763 ac_ct_DSYMUTIL=$DSYMUTIL
6764 # Extract the first word of "dsymutil
", so it can be a program name with args.
6765 set dummy dsymutil; ac_word=$2
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6767 $as_echo_n "checking
for $ac_word...
" >&6; }
6768 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6769 $as_echo_n "(cached
) " >&6
6771 if test -n "$ac_ct_DSYMUTIL"; then
6772 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 test -z "$as_dir" && as_dir=.
6779 for ac_exec_ext in '' $ac_executable_extensions; do
6780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6781 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
6782 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6791 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6792 if test -n "$ac_ct_DSYMUTIL"; then
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
6794 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6797 $as_echo "no
" >&6; }
6800 if test "x
$ac_ct_DSYMUTIL" = x; then
6803 case $cross_compiling:$ac_tool_warned in
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6806 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6807 ac_tool_warned=yes ;;
6809 DSYMUTIL=$ac_ct_DSYMUTIL
6812 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6815 if test -n "$ac_tool_prefix"; then
6816 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
6817 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6819 $as_echo_n "checking
for $ac_word...
" >&6; }
6820 if ${ac_cv_prog_NMEDIT+:} false; then :
6821 $as_echo_n "(cached
) " >&6
6823 if test -n "$NMEDIT"; then
6824 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 test -z "$as_dir" && as_dir=.
6831 for ac_exec_ext in '' $ac_executable_extensions; do
6832 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6833 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
6834 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6843 NMEDIT=$ac_cv_prog_NMEDIT
6844 if test -n "$NMEDIT"; then
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
6846 $as_echo "$NMEDIT" >&6; }
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6849 $as_echo "no
" >&6; }
6854 if test -z "$ac_cv_prog_NMEDIT"; then
6855 ac_ct_NMEDIT=$NMEDIT
6856 # Extract the first word of "nmedit
", so it can be a program name with args.
6857 set dummy nmedit; ac_word=$2
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6859 $as_echo_n "checking
for $ac_word...
" >&6; }
6860 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6861 $as_echo_n "(cached
) " >&6
6863 if test -n "$ac_ct_NMEDIT"; then
6864 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 test -z "$as_dir" && as_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6873 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
6874 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6883 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6884 if test -n "$ac_ct_NMEDIT"; then
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
6886 $as_echo "$ac_ct_NMEDIT" >&6; }
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6889 $as_echo "no
" >&6; }
6892 if test "x
$ac_ct_NMEDIT" = x; then
6895 case $cross_compiling:$ac_tool_warned in
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6898 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6899 ac_tool_warned=yes ;;
6901 NMEDIT=$ac_ct_NMEDIT
6904 NMEDIT="$ac_cv_prog_NMEDIT"
6907 if test -n "$ac_tool_prefix"; then
6908 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
6909 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6911 $as_echo_n "checking
for $ac_word...
" >&6; }
6912 if ${ac_cv_prog_LIPO+:} false; then :
6913 $as_echo_n "(cached
) " >&6
6915 if test -n "$LIPO"; then
6916 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6922 test -z "$as_dir" && as_dir=.
6923 for ac_exec_ext in '' $ac_executable_extensions; do
6924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6925 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
6926 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6935 LIPO=$ac_cv_prog_LIPO
6936 if test -n "$LIPO"; then
6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
6938 $as_echo "$LIPO" >&6; }
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6941 $as_echo "no
" >&6; }
6946 if test -z "$ac_cv_prog_LIPO"; then
6948 # Extract the first word of "lipo
", so it can be a program name with args.
6949 set dummy lipo; ac_word=$2
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6951 $as_echo_n "checking
for $ac_word...
" >&6; }
6952 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6953 $as_echo_n "(cached
) " >&6
6955 if test -n "$ac_ct_LIPO"; then
6956 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6962 test -z "$as_dir" && as_dir=.
6963 for ac_exec_ext in '' $ac_executable_extensions; do
6964 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6965 ac_cv_prog_ac_ct_LIPO="lipo
"
6966 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6975 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6976 if test -n "$ac_ct_LIPO"; then
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
6978 $as_echo "$ac_ct_LIPO" >&6; }
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6981 $as_echo "no
" >&6; }
6984 if test "x
$ac_ct_LIPO" = x; then
6987 case $cross_compiling:$ac_tool_warned in
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6990 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6991 ac_tool_warned=yes ;;
6996 LIPO="$ac_cv_prog_LIPO"
6999 if test -n "$ac_tool_prefix"; then
7000 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
7001 set dummy ${ac_tool_prefix}otool; ac_word=$2
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7003 $as_echo_n "checking
for $ac_word...
" >&6; }
7004 if ${ac_cv_prog_OTOOL+:} false; then :
7005 $as_echo_n "(cached
) " >&6
7007 if test -n "$OTOOL"; then
7008 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014 test -z "$as_dir" && as_dir=.
7015 for ac_exec_ext in '' $ac_executable_extensions; do
7016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7017 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
7018 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7027 OTOOL=$ac_cv_prog_OTOOL
7028 if test -n "$OTOOL"; then
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
7030 $as_echo "$OTOOL" >&6; }
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7033 $as_echo "no
" >&6; }
7038 if test -z "$ac_cv_prog_OTOOL"; then
7040 # Extract the first word of "otool
", so it can be a program name with args.
7041 set dummy otool; ac_word=$2
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7043 $as_echo_n "checking
for $ac_word...
" >&6; }
7044 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7045 $as_echo_n "(cached
) " >&6
7047 if test -n "$ac_ct_OTOOL"; then
7048 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054 test -z "$as_dir" && as_dir=.
7055 for ac_exec_ext in '' $ac_executable_extensions; do
7056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7057 ac_cv_prog_ac_ct_OTOOL="otool
"
7058 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7067 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7068 if test -n "$ac_ct_OTOOL"; then
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
7070 $as_echo "$ac_ct_OTOOL" >&6; }
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7073 $as_echo "no
" >&6; }
7076 if test "x
$ac_ct_OTOOL" = x; then
7079 case $cross_compiling:$ac_tool_warned in
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7082 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7083 ac_tool_warned=yes ;;
7088 OTOOL="$ac_cv_prog_OTOOL"
7091 if test -n "$ac_tool_prefix"; then
7092 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
7093 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7095 $as_echo_n "checking
for $ac_word...
" >&6; }
7096 if ${ac_cv_prog_OTOOL64+:} false; then :
7097 $as_echo_n "(cached
) " >&6
7099 if test -n "$OTOOL64"; then
7100 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106 test -z "$as_dir" && as_dir=.
7107 for ac_exec_ext in '' $ac_executable_extensions; do
7108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7109 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
7110 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7119 OTOOL64=$ac_cv_prog_OTOOL64
7120 if test -n "$OTOOL64"; then
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
7122 $as_echo "$OTOOL64" >&6; }
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7125 $as_echo "no
" >&6; }
7130 if test -z "$ac_cv_prog_OTOOL64"; then
7131 ac_ct_OTOOL64=$OTOOL64
7132 # Extract the first word of "otool64
", so it can be a program name with args.
7133 set dummy otool64; ac_word=$2
7134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
7135 $as_echo_n "checking
for $ac_word...
" >&6; }
7136 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7137 $as_echo_n "(cached
) " >&6
7139 if test -n "$ac_ct_OTOOL64"; then
7140 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146 test -z "$as_dir" && as_dir=.
7147 for ac_exec_ext in '' $ac_executable_extensions; do
7148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7149 ac_cv_prog_ac_ct_OTOOL64="otool64
"
7150 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
7159 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7160 if test -n "$ac_ct_OTOOL64"; then
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
7162 $as_echo "$ac_ct_OTOOL64" >&6; }
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
7165 $as_echo "no
" >&6; }
7168 if test "x
$ac_ct_OTOOL64" = x; then
7171 case $cross_compiling:$ac_tool_warned in
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
7174 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
7175 ac_tool_warned=yes ;;
7177 OTOOL64=$ac_ct_OTOOL64
7180 OTOOL64="$ac_cv_prog_OTOOL64"
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
7210 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
7211 if ${lt_cv_apple_cc_single_mod+:} false; then :
7212 $as_echo_n "(cached
) " >&6
7214 lt_cv_apple_cc_single_mod=no
7215 if test -z "${LT_MULTI_MODULE}"; then
7216 # By default we will add the -single_module flag. You can override
7217 # by either setting the environment variable LT_MULTI_MODULE
7218 # non-empty at configure time, or by adding -multi_module to the
7220 rm -rf libconftest.dylib*
7221 echo "int foo
(void
){return 1;}" > conftest.c
7222 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7223 -dynamiclib -Wl,-single_module conftest.c
" >&5
7224 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7225 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7227 # If there is a non-empty error log, and "single_module
"
7228 # appears in it, assume the flag caused a linker warning
7229 if test -s conftest.err && $GREP single_module conftest.err; then
7230 cat conftest.err >&5
7231 # Otherwise, if the output was created with a 0 exit code from
7232 # the compiler, it worked.
7233 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7234 lt_cv_apple_cc_single_mod=yes
7236 cat conftest.err >&5
7238 rm -rf libconftest.dylib*
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
7243 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
7246 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
7247 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7248 $as_echo_n "(cached
) " >&6
7250 lt_cv_ld_exported_symbols_list=no
7251 save_LDFLAGS=$LDFLAGS
7252 echo "_main
" > conftest.sym
7253 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
7254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7255 /* end confdefs.h. */
7265 if ac_fn_c_try_link "$LINENO"; then :
7266 lt_cv_ld_exported_symbols_list=yes
7268 lt_cv_ld_exported_symbols_list=no
7270 rm -f core conftest.err conftest.$ac_objext \
7271 conftest$ac_exeext conftest.$ac_ext
7272 LDFLAGS="$save_LDFLAGS"
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
7276 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -force_load linker flag
" >&5
7279 $as_echo_n "checking
for -force_load linker flag...
" >&6; }
7280 if ${lt_cv_ld_force_load+:} false; then :
7281 $as_echo_n "(cached
) " >&6
7283 lt_cv_ld_force_load=no
7284 cat > conftest.c << _LT_EOF
7285 int forced_loaded() { return 2;}
7287 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c
" >&5
7288 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7289 echo "$AR cru libconftest.a conftest.o
" >&5
7290 $AR cru libconftest.a conftest.o 2>&5
7291 echo "$RANLIB libconftest.a
" >&5
7292 $RANLIB libconftest.a 2>&5
7293 cat > conftest.c << _LT_EOF
7294 int main() { return 0;}
7296 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
" >&5
7297 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7299 if test -s conftest.err && $GREP force_load conftest.err; then
7300 cat conftest.err >&5
7301 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7302 lt_cv_ld_force_load=yes
7304 cat conftest.err >&5
7306 rm -f conftest.err libconftest.a conftest conftest.c
7307 rm -rf conftest.dSYM
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_force_load" >&5
7311 $as_echo "$lt_cv_ld_force_load" >&6; }
7313 rhapsody* | darwin1.[012])
7314 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7316 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7317 darwin*) # darwin 5.x on
7318 # if running on 10.5 or later, the deployment target defaults
7319 # to the OS version, if on x86, and 10.4, the deployment
7320 # target defaults to 10.4. Don't you love it?
7321 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7322 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7323 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7325 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7327 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7331 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7332 _lt_dar_single_mod='$single_module'
7334 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7335 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7337 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7339 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no
"; then
7340 _lt_dsymutil='~$DSYMUTIL $lib || :'
7348 ac_cpp='$CPP $CPPFLAGS'
7349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
7353 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
7354 # On Suns, sometimes $CPP names a directory.
7355 if test -n "$CPP" && test -d "$CPP"; then
7358 if test -z "$CPP"; then
7359 if ${ac_cv_prog_CPP+:} false; then :
7360 $as_echo_n "(cached
) " >&6
7362 # Double quotes because CPP needs to be expanded
7363 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
7366 for ac_c_preproc_warn_flag in '' yes
7368 # Use a header file that comes with gcc, so configuring glibc
7369 # with a fresh cross-compiler works.
7370 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7371 # <limits.h> exists even on freestanding compilers.
7372 # On the NeXT, cc -E runs the code through the compiler's parser,
7373 # not just through cpp. "Syntax error
" is here to catch this case.
7374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7375 /* end confdefs.h. */
7377 # include <limits.h>
7379 # include <assert.h>
7383 if ac_fn_c_try_cpp "$LINENO"; then :
7386 # Broken: fails on valid input.
7389 rm -f conftest.err conftest.i conftest.$ac_ext
7391 # OK, works on sane cases. Now check whether nonexistent headers
7392 # can be detected and how.
7393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7394 /* end confdefs.h. */
7395 #include <ac_nonexistent.h>
7397 if ac_fn_c_try_cpp "$LINENO"; then :
7398 # Broken: success on invalid input.
7401 # Passes both tests.
7405 rm -f conftest.err conftest.i conftest.$ac_ext
7408 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7409 rm -f conftest.i conftest.err conftest.$ac_ext
7410 if $ac_preproc_ok; then :
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
7423 $as_echo "$CPP" >&6; }
7425 for ac_c_preproc_warn_flag in '' yes
7427 # Use a header file that comes with gcc, so configuring glibc
7428 # with a fresh cross-compiler works.
7429 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7430 # <limits.h> exists even on freestanding compilers.
7431 # On the NeXT, cc -E runs the code through the compiler's parser,
7432 # not just through cpp. "Syntax error
" is here to catch this case.
7433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7434 /* end confdefs.h. */
7436 # include <limits.h>
7438 # include <assert.h>
7442 if ac_fn_c_try_cpp "$LINENO"; then :
7445 # Broken: fails on valid input.
7448 rm -f conftest.err conftest.i conftest.$ac_ext
7450 # OK, works on sane cases. Now check whether nonexistent headers
7451 # can be detected and how.
7452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453 /* end confdefs.h. */
7454 #include <ac_nonexistent.h>
7456 if ac_fn_c_try_cpp "$LINENO"; then :
7457 # Broken: success on invalid input.
7460 # Passes both tests.
7464 rm -f conftest.err conftest.i conftest.$ac_ext
7467 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7468 rm -f conftest.i conftest.err conftest.$ac_ext
7469 if $ac_preproc_ok; then :
7472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
7473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7474 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7475 See \`config.log' for more details
" "$LINENO" 5; }
7479 ac_cpp='$CPP $CPPFLAGS'
7480 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7481 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7482 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
7486 $as_echo_n "checking
for ANSI C header files...
" >&6; }
7487 if ${ac_cv_header_stdc+:} false; then :
7488 $as_echo_n "(cached
) " >&6
7490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7491 /* end confdefs.h. */
7505 if ac_fn_c_try_compile "$LINENO"; then :
7506 ac_cv_header_stdc=yes
7508 ac_cv_header_stdc=no
7510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7512 if test $ac_cv_header_stdc = yes; then
7513 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7515 /* end confdefs.h. */
7519 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7520 $EGREP "memchr
" >/dev/null 2>&1; then :
7523 ac_cv_header_stdc=no
7529 if test $ac_cv_header_stdc = yes; then
7530 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7532 /* end confdefs.h. */
7536 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7537 $EGREP "free
" >/dev/null 2>&1; then :
7540 ac_cv_header_stdc=no
7546 if test $ac_cv_header_stdc = yes; then
7547 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7548 if test "$cross_compiling" = yes; then :
7551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7552 /* end confdefs.h. */
7555 #if ((' ' & 0x0FF) == 0x020)
7556 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7557 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7559 # define ISLOWER(c) \
7560 (('a' <= (c) && (c) <= 'i') \
7561 || ('j' <= (c) && (c) <= 'r') \
7562 || ('s' <= (c) && (c) <= 'z'))
7563 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7566 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7571 for (i = 0; i < 256; i++)
7572 if (XOR (islower (i), ISLOWER (i))
7573 || toupper (i) != TOUPPER (i))
7578 if ac_fn_c_try_run "$LINENO"; then :
7581 ac_cv_header_stdc=no
7583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7584 conftest.$ac_objext conftest.beam conftest.$ac_ext
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
7590 $as_echo "$ac_cv_header_stdc" >&6; }
7591 if test $ac_cv_header_stdc = yes; then
7593 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7597 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7598 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7599 inttypes.h stdint.h unistd.h
7601 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7602 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7604 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7605 cat >>confdefs.h
<<_ACEOF
7606 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7614 for ac_header
in dlfcn.h
7616 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7618 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
7619 cat >>confdefs.h
<<_ACEOF
7620 #define HAVE_DLFCN_H 1
7641 # Check whether --enable-shared was given.
7642 if test "${enable_shared+set}" = set; then :
7643 enableval
=$enable_shared; p
=${PACKAGE-default}
7645 yes) enable_shared
=yes ;;
7646 no
) enable_shared
=no
;;
7649 # Look at the argument we got. We use all the common list separators.
7650 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7651 for pkg
in $enableval; do
7653 if test "X$pkg" = "X$p"; then
7672 # Check whether --enable-static was given.
7673 if test "${enable_static+set}" = set; then :
7674 enableval
=$enable_static; p
=${PACKAGE-default}
7676 yes) enable_static
=yes ;;
7677 no
) enable_static
=no
;;
7680 # Look at the argument we got. We use all the common list separators.
7681 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7682 for pkg
in $enableval; do
7684 if test "X$pkg" = "X$p"; then
7704 # Check whether --with-pic was given.
7705 if test "${with_pic+set}" = set; then :
7706 withval
=$with_pic; lt_p
=${PACKAGE-default}
7708 yes|no
) pic_mode
=$withval ;;
7711 # Look at the argument we got. We use all the common list separators.
7712 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7713 for lt_pkg
in $withval; do
7715 if test "X$lt_pkg" = "X$lt_p"; then
7727 test -z "$pic_mode" && pic_mode
=default
7735 # Check whether --enable-fast-install was given.
7736 if test "${enable_fast_install+set}" = set; then :
7737 enableval
=$enable_fast_install; p
=${PACKAGE-default}
7739 yes) enable_fast_install
=yes ;;
7740 no
) enable_fast_install
=no
;;
7742 enable_fast_install
=no
7743 # Look at the argument we got. We use all the common list separators.
7744 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7745 for pkg
in $enableval; do
7747 if test "X$pkg" = "X$p"; then
7748 enable_fast_install
=yes
7755 enable_fast_install
=yes
7768 # This can be used to rebuild libtool when needed
7769 LIBTOOL_DEPS
="$ltmain"
7771 # Always use our own libtool.
7772 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
7803 test -z "$LN_S" && LN_S
="ln -s"
7818 if test -n "${ZSH_VERSION+set}" ; then
7819 setopt NO_GLOB_SUBST
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7823 $as_echo_n "checking for objdir... " >&6; }
7824 if ${lt_cv_objdir+:} false
; then :
7825 $as_echo_n "(cached) " >&6
7827 rm -f .libs
2>/dev
/null
7828 mkdir .libs
2>/dev
/null
7829 if test -d .libs
; then
7832 # MS-DOS does not allow filenames that begin with a dot.
7835 rmdir .libs
2>/dev
/null
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7838 $as_echo "$lt_cv_objdir" >&6; }
7839 objdir
=$lt_cv_objdir
7845 cat >>confdefs.h
<<_ACEOF
7846 #define LT_OBJDIR "$lt_cv_objdir/"
7854 # AIX sometimes has problems with the GCC collect2 program. For some
7855 # reason, if we set the COLLECT_NAMES environment variable, the problems
7856 # vanish in a puff of smoke.
7857 if test "X${COLLECT_NAMES+set}" != Xset
; then
7859 export COLLECT_NAMES
7866 can_build_shared
=yes
7868 # All known linkers require a `.a' archive for static linking (except MSVC,
7869 # which needs '.lib').
7872 with_gnu_ld
="$lt_cv_prog_gnu_ld"
7875 old_CFLAGS
="$CFLAGS"
7877 # Set sane defaults for various variables
7878 test -z "$CC" && CC
=cc
7879 test -z "$LTCC" && LTCC
=$CC
7880 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
7881 test -z "$LD" && LD
=ld
7882 test -z "$ac_objext" && ac_objext
=o
7884 for cc_temp
in $compiler""; do
7886 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7887 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7892 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7895 # Only perform the check for file, if the check method requires it
7896 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
7897 case $deplibs_check_method in
7899 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7901 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7902 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
7903 $as_echo_n "(cached) " >&6
7907 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7910 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7911 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7912 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7913 for ac_dir
in $ac_dummy; do
7915 test -z "$ac_dir" && ac_dir
=.
7916 if test -f $ac_dir/${ac_tool_prefix}file; then
7917 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
7918 if test -n "$file_magic_test_file"; then
7919 case $deplibs_check_method in
7921 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7922 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7923 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7924 $EGREP "$file_magic_regex" > /dev
/null
; then
7929 *** Warning: the command libtool uses to detect shared libraries,
7930 *** $file_magic_cmd, produces output that libtool cannot recognize.
7931 *** The result is that libtool may fail to recognize shared libraries
7932 *** as such. This will affect the creation of libtool libraries that
7933 *** depend on shared libraries, but programs linked with such libtool
7934 *** libraries will work regardless of this problem. Nevertheless, you
7935 *** may want to report the problem to your system manager and/or to
7936 *** bug-libtool@gnu.org
7946 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7951 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7952 if test -n "$MAGIC_CMD"; then
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7954 $as_echo "$MAGIC_CMD" >&6; }
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7957 $as_echo "no" >&6; }
7964 if test -z "$lt_cv_path_MAGIC_CMD"; then
7965 if test -n "$ac_tool_prefix"; then
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7967 $as_echo_n "checking for file... " >&6; }
7968 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
7969 $as_echo_n "(cached) " >&6
7973 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7976 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7977 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7978 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7979 for ac_dir
in $ac_dummy; do
7981 test -z "$ac_dir" && ac_dir
=.
7982 if test -f $ac_dir/file; then
7983 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
7984 if test -n "$file_magic_test_file"; then
7985 case $deplibs_check_method in
7987 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7988 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7989 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7990 $EGREP "$file_magic_regex" > /dev
/null
; then
7995 *** Warning: the command libtool uses to detect shared libraries,
7996 *** $file_magic_cmd, produces output that libtool cannot recognize.
7997 *** The result is that libtool may fail to recognize shared libraries
7998 *** as such. This will affect the creation of libtool libraries that
7999 *** depend on shared libraries, but programs linked with such libtool
8000 *** libraries will work regardless of this problem. Nevertheless, you
8001 *** may want to report the problem to your system manager and/or to
8002 *** bug-libtool@gnu.org
8012 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8017 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8018 if test -n "$MAGIC_CMD"; then
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8020 $as_echo "$MAGIC_CMD" >&6; }
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8023 $as_echo "no" >&6; }
8036 # Use C for the default configuration in the libtool script
8040 ac_cpp
='$CPP $CPPFLAGS'
8041 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8042 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8043 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8046 # Source file extension for C test sources.
8049 # Object file extension for compiled C test sources.
8053 # Code to be used in simple compile tests
8054 lt_simple_compile_test_code
="int some_variable = 0;"
8056 # Code to be used in simple link tests
8057 lt_simple_link_test_code
='int main(){return(0);}'
8065 # If no C compiler was specified, use CC.
8068 # If no C compiler flags were specified, use CFLAGS.
8069 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
8071 # Allow CC to be a program name with arguments.
8074 # Save the default compiler, since it gets overwritten when the other
8075 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8076 compiler_DEFAULT
=$CC
8078 # save warnings/boilerplate of simple test code
8079 ac_outfile
=conftest.
$ac_objext
8080 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
8081 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8082 _lt_compiler_boilerplate
=`cat conftest.err`
8085 ac_outfile
=conftest.
$ac_objext
8086 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
8087 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
8088 _lt_linker_boilerplate
=`cat conftest.err`
8093 ## There is no encapsulation within the following macros, do not change
8094 ## the running order or otherwise move them around unless you know exactly
8095 ## what you are doing...
8096 if test -n "$compiler"; then
8098 lt_prog_compiler_no_builtin_flag
=
8100 if test "$GCC" = yes; then
8101 case $cc_basename in
8103 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
8105 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8109 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8110 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
8111 $as_echo_n "(cached) " >&6
8113 lt_cv_prog_compiler_rtti_exceptions
=no
8114 ac_outfile
=conftest.
$ac_objext
8115 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8116 lt_compiler_flag
="-fno-rtti -fno-exceptions"
8117 # Insert the option either (1) after the last *FLAGS variable, or
8118 # (2) before a word containing "conftest.", or (3) at the end.
8119 # Note that $ac_compile itself does not contain backslashes and begins
8120 # with a dollar sign (not a hyphen), so the echo should work correctly.
8121 # The option is referenced via a variable to avoid confusing sed.
8122 lt_compile
=`echo "$ac_compile" | $SED \
8123 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8125 -e 's:$: $lt_compiler_flag:'`
8126 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8127 (eval "$lt_compile" 2>conftest.err
)
8129 cat conftest.err
>&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 if (exit $ac_status) && test -s "$ac_outfile"; then
8132 # The compiler can only warn and ignore the option if not recognized
8133 # So say no if there are warnings other than the usual output.
8134 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8135 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8136 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8137 lt_cv_prog_compiler_rtti_exceptions
=yes
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8144 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8146 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
8147 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8159 lt_prog_compiler_wl
=
8160 lt_prog_compiler_pic
=
8161 lt_prog_compiler_static
=
8164 if test "$GCC" = yes; then
8165 lt_prog_compiler_wl
='-Wl,'
8166 lt_prog_compiler_static
='-static'
8170 # All AIX code is PIC.
8171 if test "$host_cpu" = ia64
; then
8172 # AIX 5 now supports IA64 processor
8173 lt_prog_compiler_static
='-Bstatic'
8180 # see comment about AmigaOS4 .so support
8181 lt_prog_compiler_pic
='-fPIC'
8184 # FIXME: we need at least 68020 code to build shared libraries, but
8185 # adding the `-m68020' flag to GCC prevents building anything better,
8187 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
8192 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
8193 # PIC is the default for these OSes.
8196 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8197 # This hack is so that the source file can tell whether it is being
8198 # built for inclusion in a dll (and should export symbols for example).
8199 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8200 # (--disable-auto-import) libraries
8201 lt_prog_compiler_pic
='-DDLL_EXPORT'
8204 darwin
* | rhapsody
*)
8205 # PIC is the default on this platform
8206 # Common symbols not allowed in MH_DYLIB files
8207 lt_prog_compiler_pic
='-fno-common'
8211 # PIC is the default for Haiku.
8212 # The "-static" flag exists, but is broken.
8213 lt_prog_compiler_static
=
8217 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8218 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8219 # sets the default TLS model and affects inlining.
8225 lt_prog_compiler_pic
='-fPIC'
8231 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8232 # Instead, we relocate shared libraries at runtime.
8236 # Just because we use GCC doesn't mean we suddenly get shared libraries
8237 # on systems that don't support them.
8238 lt_prog_compiler_can_build_shared
=no
8243 # QNX uses GNU C++, but need to define -shared option too, otherwise
8245 lt_prog_compiler_pic
='-fPIC -shared'
8249 if test -d /usr
/nec
; then
8250 lt_prog_compiler_pic
=-Kconform_pic
8255 lt_prog_compiler_pic
='-fPIC'
8259 case $cc_basename in
8260 nvcc
*) # Cuda Compiler Driver 2.2
8261 lt_prog_compiler_wl
='-Xlinker '
8262 if test -n "$lt_prog_compiler_pic"; then
8263 lt_prog_compiler_pic
="-Xcompiler $lt_prog_compiler_pic"
8268 # PORTME Check for flag to pass linker flags through the system compiler.
8271 lt_prog_compiler_wl
='-Wl,'
8272 if test "$host_cpu" = ia64
; then
8273 # AIX 5 now supports IA64 processor
8274 lt_prog_compiler_static
='-Bstatic'
8276 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
8280 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
8281 # This hack is so that the source file can tell whether it is being
8282 # built for inclusion in a dll (and should export symbols for example).
8283 lt_prog_compiler_pic
='-DDLL_EXPORT'
8286 hpux9
* | hpux10
* | hpux11
*)
8287 lt_prog_compiler_wl
='-Wl,'
8288 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8295 lt_prog_compiler_pic
='+Z'
8298 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8299 lt_prog_compiler_static
='${wl}-a ${wl}archive'
8302 irix5
* | irix6
* | nonstopux
*)
8303 lt_prog_compiler_wl
='-Wl,'
8304 # PIC (with -KPIC) is the default.
8305 lt_prog_compiler_static
='-non_shared'
8308 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8309 case $cc_basename in
8310 # old Intel for x86_64 which still supported -KPIC.
8312 lt_prog_compiler_wl
='-Wl,'
8313 lt_prog_compiler_pic
='-KPIC'
8314 lt_prog_compiler_static
='-static'
8316 # icc used to be incompatible with GCC.
8317 # ICC 10 doesn't accept -KPIC any more.
8319 lt_prog_compiler_wl
='-Wl,'
8320 lt_prog_compiler_pic
='-fPIC'
8321 lt_prog_compiler_static
='-static'
8323 # Lahey Fortran 8.1.
8325 lt_prog_compiler_wl
='-Wl,'
8326 lt_prog_compiler_pic
='--shared'
8327 lt_prog_compiler_static
='--static'
8330 # NAG Fortran compiler
8331 lt_prog_compiler_wl
='-Wl,-Wl,,'
8332 lt_prog_compiler_pic
='-PIC'
8333 lt_prog_compiler_static
='-Bstatic'
8335 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8336 # Portland Group compilers (*not* the Pentium gcc compiler,
8337 # which looks to be a dead project)
8338 lt_prog_compiler_wl
='-Wl,'
8339 lt_prog_compiler_pic
='-fpic'
8340 lt_prog_compiler_static
='-Bstatic'
8343 lt_prog_compiler_wl
='-Wl,'
8344 # All Alpha code is PIC.
8345 lt_prog_compiler_static
='-non_shared'
8347 xl
* | bgxl
* | bgf
* | mpixl
*)
8348 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8349 lt_prog_compiler_wl
='-Wl,'
8350 lt_prog_compiler_pic
='-qpic'
8351 lt_prog_compiler_static
='-qstaticlink'
8354 case `$CC -V 2>&1 | sed 5q` in
8355 *Sun\ Ceres\ Fortran
* |
*Sun
*Fortran
*\
[1-7].
* |
*Sun
*Fortran
*\
8.
[0-3]*)
8356 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8357 lt_prog_compiler_pic
='-KPIC'
8358 lt_prog_compiler_static
='-Bstatic'
8359 lt_prog_compiler_wl
=''
8361 *Sun\ F
* |
*Sun
*Fortran
*)
8362 lt_prog_compiler_pic
='-KPIC'
8363 lt_prog_compiler_static
='-Bstatic'
8364 lt_prog_compiler_wl
='-Qoption ld '
8368 lt_prog_compiler_pic
='-KPIC'
8369 lt_prog_compiler_static
='-Bstatic'
8370 lt_prog_compiler_wl
='-Wl,'
8372 *Intel
*\
[CF
]*Compiler
*)
8373 lt_prog_compiler_wl
='-Wl,'
8374 lt_prog_compiler_pic
='-fPIC'
8375 lt_prog_compiler_static
='-static'
8378 lt_prog_compiler_wl
='-Wl,'
8379 lt_prog_compiler_pic
='-fpic'
8380 lt_prog_compiler_static
='-Bstatic'
8388 lt_prog_compiler_pic
='-KPIC'
8389 lt_prog_compiler_static
='-Bstatic'
8393 # QNX uses GNU C++, but need to define -shared option too, otherwise
8395 lt_prog_compiler_pic
='-fPIC -shared'
8398 osf3
* | osf4
* | osf5
*)
8399 lt_prog_compiler_wl
='-Wl,'
8400 # All OSF/1 code is PIC.
8401 lt_prog_compiler_static
='-non_shared'
8405 lt_prog_compiler_static
='-non_shared'
8409 lt_prog_compiler_pic
='-KPIC'
8410 lt_prog_compiler_static
='-Bstatic'
8411 case $cc_basename in
8412 f77
* | f90
* | f95
* | sunf77
* | sunf90
* | sunf95
*)
8413 lt_prog_compiler_wl
='-Qoption ld ';;
8415 lt_prog_compiler_wl
='-Wl,';;
8420 lt_prog_compiler_wl
='-Qoption ld '
8421 lt_prog_compiler_pic
='-PIC'
8422 lt_prog_compiler_static
='-Bstatic'
8425 sysv4 | sysv4.2uw2
* | sysv4.3
*)
8426 lt_prog_compiler_wl
='-Wl,'
8427 lt_prog_compiler_pic
='-KPIC'
8428 lt_prog_compiler_static
='-Bstatic'
8432 if test -d /usr
/nec
;then
8433 lt_prog_compiler_pic
='-Kconform_pic'
8434 lt_prog_compiler_static
='-Bstatic'
8438 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
8439 lt_prog_compiler_wl
='-Wl,'
8440 lt_prog_compiler_pic
='-KPIC'
8441 lt_prog_compiler_static
='-Bstatic'
8445 lt_prog_compiler_wl
='-Wl,'
8446 lt_prog_compiler_can_build_shared
=no
8450 lt_prog_compiler_pic
='-pic'
8451 lt_prog_compiler_static
='-Bstatic'
8455 lt_prog_compiler_can_build_shared
=no
8461 # For platforms which do not support PIC, -DPIC is meaningless:
8463 lt_prog_compiler_pic
=
8466 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8471 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8472 if ${lt_cv_prog_compiler_pic+:} false
; then :
8473 $as_echo_n "(cached) " >&6
8475 lt_cv_prog_compiler_pic
=$lt_prog_compiler_pic
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8478 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8479 lt_prog_compiler_pic
=$lt_cv_prog_compiler_pic
8482 # Check to make sure the PIC flag actually works.
8484 if test -n "$lt_prog_compiler_pic"; then
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8486 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8487 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
8488 $as_echo_n "(cached) " >&6
8490 lt_cv_prog_compiler_pic_works
=no
8491 ac_outfile
=conftest.
$ac_objext
8492 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8493 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
8494 # Insert the option either (1) after the last *FLAGS variable, or
8495 # (2) before a word containing "conftest.", or (3) at the end.
8496 # Note that $ac_compile itself does not contain backslashes and begins
8497 # with a dollar sign (not a hyphen), so the echo should work correctly.
8498 # The option is referenced via a variable to avoid confusing sed.
8499 lt_compile
=`echo "$ac_compile" | $SED \
8500 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8501 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8502 -e 's:$: $lt_compiler_flag:'`
8503 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8504 (eval "$lt_compile" 2>conftest.err
)
8506 cat conftest.err
>&5
8507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8508 if (exit $ac_status) && test -s "$ac_outfile"; then
8509 # The compiler can only warn and ignore the option if not recognized
8510 # So say no if there are warnings other than the usual output.
8511 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' >conftest.exp
8512 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8513 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
8514 lt_cv_prog_compiler_pic_works
=yes
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8521 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8523 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
8524 case $lt_prog_compiler_pic in
8526 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
8529 lt_prog_compiler_pic
=
8530 lt_prog_compiler_can_build_shared
=no
8546 # Check to make sure the static flag actually works.
8548 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8550 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8551 if ${lt_cv_prog_compiler_static_works+:} false
; then :
8552 $as_echo_n "(cached) " >&6
8554 lt_cv_prog_compiler_static_works
=no
8555 save_LDFLAGS
="$LDFLAGS"
8556 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8557 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8558 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8559 # The linker can only warn and ignore the option if not recognized
8560 # So say no if there are warnings
8561 if test -s conftest.err
; then
8562 # Append any errors to the config.log.
8563 cat conftest.err
1>&5
8564 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
8565 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8566 if diff conftest.exp conftest.er2
>/dev
/null
; then
8567 lt_cv_prog_compiler_static_works
=yes
8570 lt_cv_prog_compiler_static_works
=yes
8574 LDFLAGS
="$save_LDFLAGS"
8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8578 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8580 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8583 lt_prog_compiler_static
=
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8593 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8594 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8595 $as_echo_n "(cached) " >&6
8597 lt_cv_prog_compiler_c_o
=no
8598 $RM -r conftest
2>/dev
/null
8602 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8604 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8605 # Insert the option either (1) after the last *FLAGS variable, or
8606 # (2) before a word containing "conftest.", or (3) at the end.
8607 # Note that $ac_compile itself does not contain backslashes and begins
8608 # with a dollar sign (not a hyphen), so the echo should work correctly.
8609 lt_compile
=`echo "$ac_compile" | $SED \
8610 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8611 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8612 -e 's:$: $lt_compiler_flag:'`
8613 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8614 (eval "$lt_compile" 2>out
/conftest.err
)
8616 cat out
/conftest.err
>&5
8617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8618 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8620 # The compiler can only warn and ignore the option if not recognized
8621 # So say no if there are warnings
8622 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8623 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8624 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8625 lt_cv_prog_compiler_c_o
=yes
8630 # SGI C++ compiler will create directory out/ii_files/ for
8631 # template instantiation
8632 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8633 $RM out
/* && rmdir out
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8640 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8648 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8649 if ${lt_cv_prog_compiler_c_o+:} false
; then :
8650 $as_echo_n "(cached) " >&6
8652 lt_cv_prog_compiler_c_o
=no
8653 $RM -r conftest
2>/dev
/null
8657 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8659 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8660 # Insert the option either (1) after the last *FLAGS variable, or
8661 # (2) before a word containing "conftest.", or (3) at the end.
8662 # Note that $ac_compile itself does not contain backslashes and begins
8663 # with a dollar sign (not a hyphen), so the echo should work correctly.
8664 lt_compile
=`echo "$ac_compile" | $SED \
8665 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8666 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8667 -e 's:$: $lt_compiler_flag:'`
8668 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8669 (eval "$lt_compile" 2>out
/conftest.err
)
8671 cat out
/conftest.err
>&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8675 # The compiler can only warn and ignore the option if not recognized
8676 # So say no if there are warnings
8677 $ECHO "$_lt_compiler_boilerplate" |
$SED '/^$/d' > out
/conftest.exp
8678 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8679 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8680 lt_cv_prog_compiler_c_o
=yes
8685 # SGI C++ compiler will create directory out/ii_files/ for
8686 # template instantiation
8687 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8688 $RM out
/* && rmdir out
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8695 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8700 hard_links
="nottested"
8701 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8702 # do not overwrite the value of need_locks provided by the user
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8704 $as_echo_n "checking if we can lock with hard links... " >&6; }
8707 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8709 ln conftest.a conftest.b
2>&5 || hard_links
=no
8710 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8712 $as_echo "$hard_links" >&6; }
8713 if test "$hard_links" = no
; then
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8715 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8728 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8731 allow_undefined_flag
=
8732 always_export_symbols
=no
8734 archive_expsym_cmds
=
8735 compiler_needs_object
=no
8736 enable_shared_with_static_runtimes
=no
8737 export_dynamic_flag_spec
=
8738 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8739 hardcode_automatic
=no
8741 hardcode_direct_absolute
=no
8742 hardcode_libdir_flag_spec
=
8743 hardcode_libdir_separator
=
8745 hardcode_shlibpath_var
=unsupported
8747 link_all_deplibs
=unknown
8750 old_archive_from_new_cmds
=
8751 old_archive_from_expsyms_cmds
=
8752 thread_safe_flag_spec
=
8753 whole_archive_flag_spec
=
8754 # include_expsyms should be a list of space-separated symbols to be *always*
8755 # included in the symbol list
8757 # exclude_expsyms can be an extended regexp of symbols to exclude
8758 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8759 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8760 # as well as any symbol that contains `d'.
8761 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8762 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8763 # platforms (ab)use it in PIC code, but their linkers get confused if
8764 # the symbol is explicitly referenced. Since portable code cannot
8765 # rely on this symbol name, it's probably fine to never include it in
8766 # preloaded symbol tables.
8767 # Exclude shared library initialization/finalization symbols.
8768 extract_expsyms_cmds
=
8771 cygwin
* | mingw
* | pw32
* | cegcc
*)
8772 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8773 # When not using gcc, we currently assume that we are using
8774 # Microsoft Visual C++.
8775 if test "$GCC" != yes; then
8780 # we just hope/assume this is gcc and not c89 (= MSVC++)
8786 linux
* | k
*bsd
*-gnu | gnu
*)
8793 # On some targets, GNU ld is compatible enough with the native linker
8794 # that we're better off using the native interface for both.
8795 lt_use_gnu_ld_interface
=no
8796 if test "$with_gnu_ld" = yes; then
8799 # The AIX port of GNU ld has always aspired to compatibility
8800 # with the native linker. However, as the warning in the GNU ld
8801 # block says, versions before 2.19.5* couldn't really create working
8802 # shared libraries, regardless of the interface used.
8803 case `$LD -v 2>&1` in
8804 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
8805 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
8806 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
8808 lt_use_gnu_ld_interface
=yes
8813 lt_use_gnu_ld_interface
=yes
8818 if test "$lt_use_gnu_ld_interface" = yes; then
8819 # If archive_cmds runs LD, not CC, wlarc should be empty
8822 # Set some defaults for GNU ld with shared library support. These
8823 # are reset later if shared libraries are not supported. Putting them
8824 # here allows them to be overridden if necessary.
8825 runpath_var
=LD_RUN_PATH
8826 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8827 export_dynamic_flag_spec
='${wl}--export-dynamic'
8828 # ancient GNU ld didn't support --whole-archive et. al.
8829 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
8830 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8832 whole_archive_flag_spec
=
8834 supports_anon_versioning
=no
8835 case `$LD -v 2>&1` in
8836 *GNU\ gold
*) supports_anon_versioning
=yes ;;
8837 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
8838 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
8839 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
8840 *\
2.11.
*) ;; # other 2.11 versions
8841 *) supports_anon_versioning
=yes ;;
8844 # See if GNU ld supports shared libraries.
8847 # On AIX/PPC, the GNU linker is very broken
8848 if test "$host_cpu" != ia64
; then
8852 *** Warning: the GNU linker, at least up to release 2.19, is reported
8853 *** to be unable to reliably create shared libraries on AIX.
8854 *** Therefore, libtool is disabling shared libraries support. If you
8855 *** really care for shared libraries, you may want to install binutils
8856 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8857 *** You will then need to restart the configuration process.
8866 # see comment about AmigaOS4 .so support
8867 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8868 archive_expsym_cmds
=''
8871 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)'
8872 hardcode_libdir_flag_spec
='-L$libdir'
8873 hardcode_minus_L
=yes
8879 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8880 allow_undefined_flag
=unsupported
8881 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8882 # support --undefined. This deserves some investigation. FIXME
8883 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8889 cygwin
* | mingw
* | pw32
* | cegcc
*)
8890 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8891 # as there is no search path for DLLs.
8892 hardcode_libdir_flag_spec
='-L$libdir'
8893 export_dynamic_flag_spec
='${wl}--export-all-symbols'
8894 allow_undefined_flag
=unsupported
8895 always_export_symbols
=no
8896 enable_shared_with_static_runtimes
=yes
8897 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'
8898 exclude_expsyms
='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8900 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
8901 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8902 # If the export-symbols file already is a .def file (1st line
8903 # is EXPORTS), use it as is; otherwise, prepend...
8904 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8905 cp $export_symbols $output_objdir/$soname.def;
8907 echo EXPORTS > $output_objdir/$soname.def;
8908 cat $export_symbols >> $output_objdir/$soname.def;
8910 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8917 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8918 link_all_deplibs
=yes
8923 hardcode_shlibpath_var
=no
8924 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8925 export_dynamic_flag_spec
='${wl}-E'
8926 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8927 # Instead, shared libraries are loaded at an image base (0x10000000 by
8928 # default) and relocated if they conflict, which is a slow very memory
8929 # consuming and fragmenting process. To avoid this, we pick a random,
8930 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8931 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8932 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8933 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'
8936 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8938 if test "$host_os" = linux-dietlibc
; then
8939 case $cc_basename in
8940 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
8943 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
8944 && test "$tmp_diet" = no
8946 tmp_addflag
=' $pic_flag'
8947 tmp_sharedflag
='-shared'
8948 case $cc_basename,$host_cpu in
8949 pgcc
*) # Portland Group C compiler
8950 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'
8951 tmp_addflag
=' $pic_flag'
8953 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
8954 # Portland Group f77 and f90 compilers
8955 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'
8956 tmp_addflag
=' $pic_flag -Mnomain' ;;
8957 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8958 tmp_addflag
=' -i_dynamic' ;;
8959 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8960 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8961 ifc
* | ifort
*) # Intel Fortran compiler
8962 tmp_addflag
=' -nofor_main' ;;
8963 lf95
*) # Lahey Fortran 8.1
8964 whole_archive_flag_spec
=
8965 tmp_sharedflag
='--shared' ;;
8966 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8967 tmp_sharedflag
='-qmkshrobj'
8969 nvcc
*) # Cuda Compiler Driver 2.2
8970 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'
8971 compiler_needs_object
=yes
8974 case `$CC -V 2>&1 | sed 5q` in
8975 *Sun\ C
*) # Sun C 5.9
8976 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'
8977 compiler_needs_object
=yes
8978 tmp_sharedflag
='-G' ;;
8979 *Sun\ F
*) # Sun Fortran 8.3
8980 tmp_sharedflag
='-G' ;;
8982 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8984 if test "x$supports_anon_versioning" = xyes
; then
8985 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8986 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8987 echo "local: *; };" >> $output_objdir/$libname.ver~
8988 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8991 case $cc_basename in
8992 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
8993 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8994 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
8995 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8996 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8997 if test "x$supports_anon_versioning" = xyes
; then
8998 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8999 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9000 echo "local: *; };" >> $output_objdir/$libname.ver~
9001 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9010 netbsd
* | netbsdelf
*-gnu)
9011 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9012 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9015 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9016 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9021 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
9025 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9026 *** create shared libraries on Solaris systems. Therefore, libtool
9027 *** is disabling shared libraries support. We urge you to upgrade GNU
9028 *** binutils to release 2.9.1 or newer. Another option is to modify
9029 *** your PATH or compiler configuration so that the native linker is
9030 *** used, and then restart.
9033 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9034 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9035 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9041 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9042 case `$LD -v 2>&1` in
9043 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
9047 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9048 *** reliably create shared libraries on SCO systems. Therefore, libtool
9049 *** is disabling shared libraries support. We urge you to upgrade GNU
9050 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9051 *** your PATH or compiler configuration so that the native linker is
9052 *** used, and then restart.
9057 # For security reasons, it is highly recommended that you always
9058 # use absolute paths for naming shared libraries, and exclude the
9059 # DT_RUNPATH tag from executables and libraries. But doing so
9060 # requires that you compile everything twice, which is a pain.
9061 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9062 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9063 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9064 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9073 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9076 hardcode_shlibpath_var
=no
9080 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
9081 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9082 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9089 if test "$ld_shlibs" = no
; then
9091 hardcode_libdir_flag_spec
=
9092 export_dynamic_flag_spec
=
9093 whole_archive_flag_spec
=
9096 # PORTME fill in a description of your system's linker (not GNU ld)
9099 allow_undefined_flag
=unsupported
9100 always_export_symbols
=yes
9101 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'
9102 # Note: this linker hardcodes the directories in LIBPATH if there
9103 # are no directories specified by -L.
9104 hardcode_minus_L
=yes
9105 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9106 # Neither direct hardcoding nor static linking is supported with a
9108 hardcode_direct
=unsupported
9113 if test "$host_cpu" = ia64
; then
9114 # On IA64, the linker does run time linking by default, so we don't
9115 # have to do anything special.
9116 aix_use_runtimelinking
=no
9117 exp_sym_flag
='-Bexport'
9120 # If we're using GNU nm, then we don't want the "-C" option.
9121 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9122 # Also, AIX nm treats weak defined symbols like other global
9123 # defined symbols, whereas GNU nm marks them as "W".
9124 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
9125 export_symbols_cmds
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9127 export_symbols_cmds
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9129 aix_use_runtimelinking
=no
9131 # Test if we are trying to use run time linking or normal
9132 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9133 # need to do runtime linking.
9134 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
9135 for ld_flag
in $LDFLAGS; do
9136 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
9137 aix_use_runtimelinking
=yes
9144 exp_sym_flag
='-bexport'
9145 no_entry_flag
='-bnoentry'
9148 # When large executables or shared objects are built, AIX ld can
9149 # have problems creating the table of contents. If linking a library
9150 # or program results in "error TOC overflow" add -mminimal-toc to
9151 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9152 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9156 hardcode_direct_absolute
=yes
9157 hardcode_libdir_separator
=':'
9158 link_all_deplibs
=yes
9159 file_list_spec
='${wl}-f,'
9161 if test "$GCC" = yes; then
9162 case $host_os in aix4.
[012]|aix4.
[012].
*)
9163 # We only want to do this on AIX 4.2 and lower, the check
9164 # below for broken collect2 doesn't work under 4.3+
9165 collect2name
=`${CC} -print-prog-name=collect2`
9166 if test -f "$collect2name" &&
9167 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
9169 # We have reworked collect2
9172 # We have old collect2
9173 hardcode_direct
=unsupported
9174 # It fails to find uninstalled libraries when the uninstalled
9175 # path is not listed in the libpath. Setting hardcode_minus_L
9176 # to unsupported forces relinking
9177 hardcode_minus_L
=yes
9178 hardcode_libdir_flag_spec
='-L$libdir'
9179 hardcode_libdir_separator
=
9183 shared_flag
='-shared'
9184 if test "$aix_use_runtimelinking" = yes; then
9185 shared_flag
="$shared_flag "'${wl}-G'
9190 if test "$host_cpu" = ia64
; then
9191 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9192 # chokes on -Wl,-G. The following line is correct:
9195 if test "$aix_use_runtimelinking" = yes; then
9196 shared_flag
='${wl}-G'
9198 shared_flag
='${wl}-bM:SRE'
9203 export_dynamic_flag_spec
='${wl}-bexpall'
9204 # It seems that -bexpall does not export symbols beginning with
9205 # underscore (_), so it is better to generate a list of symbols to export.
9206 always_export_symbols
=yes
9207 if test "$aix_use_runtimelinking" = yes; then
9208 # Warning - without using the other runtime loading flags (-brtl),
9209 # -berok will link without error, but may produce a broken library.
9210 allow_undefined_flag
='-berok'
9211 # Determine the default libpath from the value encoded in an
9213 if test "${lt_cv_aix_libpath+set}" = set; then
9214 aix_libpath
=$lt_cv_aix_libpath
9216 if ${lt_cv_aix_libpath_+:} false
; then :
9217 $as_echo_n "(cached) " >&6
9219 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9220 /* end confdefs.h. */
9230 if ac_fn_c_try_link
"$LINENO"; then :
9232 lt_aix_libpath_sed
='
9233 /Import File Strings/,/^$/ {
9235 s/^0 *\([^ ]*\) *$/\1/
9239 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9240 # Check for a 64-bit object if we didn't find anything.
9241 if test -z "$lt_cv_aix_libpath_"; then
9242 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9245 rm -f core conftest.err conftest.
$ac_objext \
9246 conftest
$ac_exeext conftest.
$ac_ext
9247 if test -z "$lt_cv_aix_libpath_"; then
9248 lt_cv_aix_libpath_
="/usr/lib:/lib"
9253 aix_libpath
=$lt_cv_aix_libpath_
9256 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9257 archive_expsym_cmds
='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9259 if test "$host_cpu" = ia64
; then
9260 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
9261 allow_undefined_flag
="-z nodefs"
9262 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"
9264 # Determine the default libpath from the value encoded in an
9266 if test "${lt_cv_aix_libpath+set}" = set; then
9267 aix_libpath
=$lt_cv_aix_libpath
9269 if ${lt_cv_aix_libpath_+:} false
; then :
9270 $as_echo_n "(cached) " >&6
9272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9273 /* end confdefs.h. */
9283 if ac_fn_c_try_link
"$LINENO"; then :
9285 lt_aix_libpath_sed
='
9286 /Import File Strings/,/^$/ {
9288 s/^0 *\([^ ]*\) *$/\1/
9292 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9293 # Check for a 64-bit object if we didn't find anything.
9294 if test -z "$lt_cv_aix_libpath_"; then
9295 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9298 rm -f core conftest.err conftest.
$ac_objext \
9299 conftest
$ac_exeext conftest.
$ac_ext
9300 if test -z "$lt_cv_aix_libpath_"; then
9301 lt_cv_aix_libpath_
="/usr/lib:/lib"
9306 aix_libpath
=$lt_cv_aix_libpath_
9309 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
9310 # Warning - without using the other run time loading flags,
9311 # -berok will link without error, but may produce a broken library.
9312 no_undefined_flag
=' ${wl}-bernotok'
9313 allow_undefined_flag
=' ${wl}-berok'
9314 if test "$with_gnu_ld" = yes; then
9315 # We only use this code for GNU lds that support --whole-archive.
9316 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9318 # Exported symbols can be pulled into shared objects from archives
9319 whole_archive_flag_spec
='$convenience'
9321 archive_cmds_need_lc
=yes
9322 # This is similar to how AIX traditionally builds its shared libraries.
9323 archive_expsym_cmds
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9331 # see comment about AmigaOS4 .so support
9332 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9333 archive_expsym_cmds
=''
9336 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)'
9337 hardcode_libdir_flag_spec
='-L$libdir'
9338 hardcode_minus_L
=yes
9344 export_dynamic_flag_spec
=-rdynamic
9347 cygwin
* | mingw
* | pw32
* | cegcc
*)
9348 # When not using gcc, we currently assume that we are using
9349 # Microsoft Visual C++.
9350 # hardcode_libdir_flag_spec is actually meaningless, as there is
9351 # no search path for DLLs.
9352 case $cc_basename in
9355 hardcode_libdir_flag_spec
=' '
9356 allow_undefined_flag
=unsupported
9357 always_export_symbols
=yes
9359 # Tell ltmain to make .lib files, not .a files.
9361 # Tell ltmain to make .dll files, not .so files.
9363 # FIXME: Setting linknames here is a bad hack.
9364 archive_cmds
='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9365 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9366 sed -n -e 's
/\\\\\\\
(.
*\\\\\\\
)/-link\\\
-EXPORT:\\\\\\\
1/' -e '1\\\
!p
' < $export_symbols > $output_objdir/$soname.exp;
9368 sed -e 's
/\\\\\\\
(.
*\\\\\\\
)/-link\\\
-EXPORT:\\\\\\\
1/' < $export_symbols > $output_objdir/$soname.exp;
9370 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9372 # The linker will not automatically build a static lib if we build a DLL.
9373 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9374 enable_shared_with_static_runtimes
=yes
9375 exclude_expsyms
='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9376 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9378 old_postinstall_cmds
='chmod 644 $oldlib'
9379 postlink_cmds
='lt_outputfile="@OUTPUT@"~
9380 lt_tool_outputfile="@TOOL_OUTPUT@"~
9381 case $lt_outputfile in
9384 lt_outputfile="$lt_outputfile.exe"
9385 lt_tool_outputfile="$lt_tool_outputfile.exe"
9388 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9389 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9390 $RM "$lt_outputfile.manifest";
9394 # Assume MSVC wrapper
9395 hardcode_libdir_flag_spec
=' '
9396 allow_undefined_flag
=unsupported
9397 # Tell ltmain to make .lib files, not .a files.
9399 # Tell ltmain to make .dll files, not .so files.
9401 # FIXME: Setting linknames here is a bad hack.
9402 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9403 # The linker will automatically build a .lib file if we build a DLL.
9404 old_archive_from_new_cmds
='true'
9405 # FIXME: Should let the user specify the lib program.
9406 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
9407 enable_shared_with_static_runtimes
=yes
9412 darwin
* | rhapsody
*)
9415 archive_cmds_need_lc
=no
9417 hardcode_automatic
=yes
9418 hardcode_shlibpath_var
=unsupported
9419 if test "$lt_cv_ld_force_load" = "yes"; then
9420 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\"`'
9423 whole_archive_flag_spec
=''
9425 link_all_deplibs
=yes
9426 allow_undefined_flag
="$_lt_dar_allow_undefined"
9427 case $cc_basename in
9428 ifort
*) _lt_dar_can_shared
=yes ;;
9429 *) _lt_dar_can_shared
=$GCC ;;
9431 if test "$_lt_dar_can_shared" = "yes"; then
9432 output_verbose_link_cmd
=func_echo_all
9433 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9434 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9435 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}"
9436 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}"
9445 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9446 hardcode_libdir_flag_spec
='-L$libdir'
9447 hardcode_shlibpath_var
=no
9450 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9451 # support. Future versions do this automatically, but an explicit c++rt0.o
9452 # does not break anything, and helps significantly (at the cost of a little
9455 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9456 hardcode_libdir_flag_spec
='-R$libdir'
9458 hardcode_shlibpath_var
=no
9461 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9463 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9465 hardcode_minus_L
=yes
9466 hardcode_shlibpath_var
=no
9469 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9470 freebsd
* | dragonfly
*)
9471 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9472 hardcode_libdir_flag_spec
='-R$libdir'
9474 hardcode_shlibpath_var
=no
9478 if test "$GCC" = yes; then
9479 archive_cmds
='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9481 archive_cmds
='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9483 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9484 hardcode_libdir_separator
=:
9487 # hardcode_minus_L: Not really in the search PATH,
9488 # but as the default location of the library.
9489 hardcode_minus_L
=yes
9490 export_dynamic_flag_spec
='${wl}-E'
9494 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9495 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9497 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9499 if test "$with_gnu_ld" = no
; then
9500 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9501 hardcode_libdir_separator
=:
9503 hardcode_direct_absolute
=yes
9504 export_dynamic_flag_spec
='${wl}-E'
9505 # hardcode_minus_L: Not really in the search PATH,
9506 # but as the default location of the library.
9507 hardcode_minus_L
=yes
9512 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
9515 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9518 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9521 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9527 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9530 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9534 # Older versions of the 11.00 compiler do not understand -b yet
9535 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9537 $as_echo_n "checking if $CC understands -b... " >&6; }
9538 if ${lt_cv_prog_compiler__b+:} false
; then :
9539 $as_echo_n "(cached) " >&6
9541 lt_cv_prog_compiler__b
=no
9542 save_LDFLAGS
="$LDFLAGS"
9543 LDFLAGS
="$LDFLAGS -b"
9544 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9545 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9546 # The linker can only warn and ignore the option if not recognized
9547 # So say no if there are warnings
9548 if test -s conftest.err
; then
9549 # Append any errors to the config.log.
9550 cat conftest.err
1>&5
9551 $ECHO "$_lt_linker_boilerplate" |
$SED '/^$/d' > conftest.exp
9552 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9553 if diff conftest.exp conftest.er2
>/dev
/null
; then
9554 lt_cv_prog_compiler__b
=yes
9557 lt_cv_prog_compiler__b
=yes
9561 LDFLAGS
="$save_LDFLAGS"
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9565 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9567 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
9568 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9570 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9576 if test "$with_gnu_ld" = no
; then
9577 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
9578 hardcode_libdir_separator
=:
9583 hardcode_shlibpath_var
=no
9587 hardcode_direct_absolute
=yes
9588 export_dynamic_flag_spec
='${wl}-E'
9590 # hardcode_minus_L: Not really in the search PATH,
9591 # but as the default location of the library.
9592 hardcode_minus_L
=yes
9598 irix5
* | irix6
* | nonstopux
*)
9599 if test "$GCC" = yes; then
9600 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'
9601 # Try to use the -exported_symbol ld option, if it does not
9602 # work, assume that -exports_file does not work either and
9603 # implicitly export all symbols.
9604 # This should be the same for all languages, so no per-tag cache variable.
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9606 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9607 if ${lt_cv_irix_exported_symbol+:} false
; then :
9608 $as_echo_n "(cached) " >&6
9610 save_LDFLAGS
="$LDFLAGS"
9611 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9612 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9613 /* end confdefs.h. */
9614 int foo (void) { return 0; }
9616 if ac_fn_c_try_link
"$LINENO"; then :
9617 lt_cv_irix_exported_symbol
=yes
9619 lt_cv_irix_exported_symbol
=no
9621 rm -f core conftest.err conftest.
$ac_objext \
9622 conftest
$ac_exeext conftest.
$ac_ext
9623 LDFLAGS
="$save_LDFLAGS"
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9626 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9627 if test "$lt_cv_irix_exported_symbol" = yes; then
9628 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'
9631 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'
9632 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'
9634 archive_cmds_need_lc
='no'
9635 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9636 hardcode_libdir_separator
=:
9638 link_all_deplibs
=yes
9641 netbsd
* | netbsdelf
*-gnu)
9642 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9643 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9645 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9647 hardcode_libdir_flag_spec
='-R$libdir'
9649 hardcode_shlibpath_var
=no
9653 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9655 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9656 hardcode_libdir_separator
=:
9657 hardcode_shlibpath_var
=no
9664 if test -f /usr
/libexec
/ld.so
; then
9666 hardcode_shlibpath_var
=no
9667 hardcode_direct_absolute
=yes
9668 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9669 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9670 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9671 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9672 export_dynamic_flag_spec
='${wl}-E'
9675 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
9676 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9677 hardcode_libdir_flag_spec
='-R$libdir'
9680 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9681 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9691 hardcode_libdir_flag_spec
='-L$libdir'
9692 hardcode_minus_L
=yes
9693 allow_undefined_flag
=unsupported
9694 archive_cmds
='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9695 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9699 if test "$GCC" = yes; then
9700 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9701 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'
9703 allow_undefined_flag
=' -expect_unresolved \*'
9704 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'
9706 archive_cmds_need_lc
='no'
9707 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9708 hardcode_libdir_separator
=:
9711 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
9712 if test "$GCC" = yes; then
9713 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
9714 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'
9715 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9717 allow_undefined_flag
=' -expect_unresolved \*'
9718 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'
9719 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~
9720 $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'
9722 # Both c and cxx compiler support -rpath directly
9723 hardcode_libdir_flag_spec
='-rpath $libdir'
9725 archive_cmds_need_lc
='no'
9726 hardcode_libdir_separator
=:
9730 no_undefined_flag
=' -z defs'
9731 if test "$GCC" = yes; then
9733 archive_cmds
='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9734 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9735 $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'
9737 case `$CC -V 2>&1` in
9740 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9741 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9742 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9746 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9747 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9748 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9752 hardcode_libdir_flag_spec
='-R$libdir'
9753 hardcode_shlibpath_var
=no
9755 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
9757 # The compiler driver will combine and reorder linker options,
9758 # but understands `-z linker_flag'. GCC discards it without `$wl',
9759 # but is careful enough not to reorder.
9760 # Supported since Solaris 2.6 (maybe 2.5.1?)
9761 if test "$GCC" = yes; then
9762 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9764 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9768 link_all_deplibs
=yes
9772 if test "x$host_vendor" = xsequent
; then
9773 # Use $CC to link under sequent, because it throws in some extra .o
9774 # files that make .init and .fini sections work.
9775 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9777 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9779 hardcode_libdir_flag_spec
='-L$libdir'
9781 hardcode_minus_L
=yes
9782 hardcode_shlibpath_var
=no
9786 case $host_vendor in
9788 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9789 hardcode_direct
=yes # is this really true???
9792 ## LD is ld it makes a PLAMLIB
9793 ## CC just makes a GrossModule.
9794 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9795 reload_cmds
='$CC -r -o $output$reload_objs'
9799 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9800 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9803 runpath_var
='LD_RUN_PATH'
9804 hardcode_shlibpath_var
=no
9808 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9809 hardcode_shlibpath_var
=no
9810 export_dynamic_flag_spec
='-Bexport'
9814 if test -d /usr
/nec
; then
9815 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9816 hardcode_shlibpath_var
=no
9817 runpath_var
=LD_RUN_PATH
9818 hardcode_runpath_var
=yes
9823 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9824 no_undefined_flag
='${wl}-z,text'
9825 archive_cmds_need_lc
=no
9826 hardcode_shlibpath_var
=no
9827 runpath_var
='LD_RUN_PATH'
9829 if test "$GCC" = yes; then
9830 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9831 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9833 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9834 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9838 sysv5
* | sco3.2v5
* | sco5v6
*)
9839 # Note: We can NOT use -z defs as we might desire, because we do not
9840 # link with -lc, and that would cause any symbols used from libc to
9841 # always be unresolved, which means just about no library would
9842 # ever link correctly. If we're not using GNU ld we use -z text
9843 # though, which does catch some bad symbols but isn't as heavy-handed
9845 no_undefined_flag
='${wl}-z,text'
9846 allow_undefined_flag
='${wl}-z,nodefs'
9847 archive_cmds_need_lc
=no
9848 hardcode_shlibpath_var
=no
9849 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
9850 hardcode_libdir_separator
=':'
9851 link_all_deplibs
=yes
9852 export_dynamic_flag_spec
='${wl}-Bexport'
9853 runpath_var
='LD_RUN_PATH'
9855 if test "$GCC" = yes; then
9856 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9857 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9859 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9860 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9865 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9866 hardcode_libdir_flag_spec
='-L$libdir'
9867 hardcode_shlibpath_var
=no
9875 if test x
$host_vendor = xsni
; then
9877 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
9878 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9885 $as_echo "$ld_shlibs" >&6; }
9886 test "$ld_shlibs" = no
&& can_build_shared
=no
9888 with_gnu_ld
=$with_gnu_ld
9905 # Do we need to explicitly link libc?
9907 case "x$archive_cmds_need_lc" in
9909 # Assume -lc should be added
9910 archive_cmds_need_lc
=yes
9912 if test "$enable_shared" = yes && test "$GCC" = yes; then
9913 case $archive_cmds in
9915 # FIXME: we may have to deal with multi-command sequences.
9918 # Test whether the compiler implicitly links with -lc since on some
9919 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9920 # to ld, don't add -lc before -lgcc.
9921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9922 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9923 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
9924 $as_echo_n "(cached) " >&6
9927 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9930 (eval $ac_compile) 2>&5
9932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9933 test $ac_status = 0; } 2>conftest.err
; then
9936 libobjs
=conftest.
$ac_objext
9938 wl
=$lt_prog_compiler_wl
9939 pic_flag
=$lt_prog_compiler_pic
9945 lt_save_allow_undefined_flag
=$allow_undefined_flag
9946 allow_undefined_flag
=
9947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9948 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9951 test $ac_status = 0; }
9953 lt_cv_archive_cmds_need_lc
=no
9955 lt_cv_archive_cmds_need_lc
=yes
9957 allow_undefined_flag
=$lt_save_allow_undefined_flag
9959 cat conftest.err
1>&5
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9965 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9966 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10125 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10127 if test "$GCC" = yes; then
10129 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
10130 *) lt_awk_arg
="/^libraries:/" ;;
10133 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
10134 *) lt_sed_strip_eq
="s,=/,/,g" ;;
10136 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10137 case $lt_search_path_spec in
10139 # if the path contains ";" then we assume it to be the separator
10140 # otherwise default to the standard path separator (i.e. ":") - it is
10141 # assumed that no part of a normal pathname contains ";" but that should
10142 # okay in the real world where ";" in dirpaths is itself problematic.
10143 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10146 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10149 # Ok, now we have the path, separated by spaces, we can step through it
10150 # and add multilib dir if necessary.
10151 lt_tmp_lt_search_path_spec
=
10152 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10153 for lt_sys_path
in $lt_search_path_spec; do
10154 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10155 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10157 test -d "$lt_sys_path" && \
10158 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
10161 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10162 BEGIN {RS=" "; FS="/|\n";} {
10165 for (lt_i = NF; lt_i > 0; lt_i--) {
10166 if ($lt_i != "" && $lt_i != ".") {
10167 if ($lt_i == "..") {
10170 if (lt_count == 0) {
10171 lt_foo="/" $lt_i lt_foo;
10178 if (lt_foo != "") { lt_freq[lt_foo]++; }
10179 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10181 # AWK program above erroneously prepends '/' to C:/dos/paths
10184 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
10185 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10187 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10189 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
10191 library_names_spec
=
10192 libname_spec
='lib$name'
10196 postuninstall_cmds
=
10200 shlibpath_overrides_runpath
=unknown
10202 dynamic_linker
="$host_os ld.so"
10203 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
10204 need_lib_prefix
=unknown
10205 hardcode_into_libs
=no
10207 # when you set need_version to no, make sure it does not cause -set_version
10208 # flags to be left without arguments
10209 need_version
=unknown
10213 version_type
=linux
# correct to gnu/linux during the next big refactor
10214 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
10215 shlibpath_var
=LIBPATH
10217 # AIX 3 has no versioning support, so we append a major version to the name.
10218 soname_spec
='${libname}${release}${shared_ext}$major'
10222 version_type
=linux
# correct to gnu/linux during the next big refactor
10225 hardcode_into_libs
=yes
10226 if test "$host_cpu" = ia64
; then
10227 # AIX 5 supports IA64
10228 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10229 shlibpath_var
=LD_LIBRARY_PATH
10231 # With GCC up to 2.95.x, collect2 would create an import file
10232 # for dependence libraries. The import file would start with
10233 # the line `#! .'. This would cause the generated library to
10234 # depend on `.', always an invalid library. This was fixed in
10235 # development snapshots of GCC prior to 3.0.
10237 aix4 | aix4.
[01] | aix4.
[01].
*)
10238 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10240 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
10243 can_build_shared
=no
10247 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10248 # soname into executable. Probably we can add versioning support to
10249 # collect2, so additional links can be useful in future.
10250 if test "$aix_use_runtimelinking" = yes; then
10251 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10252 # instead of lib<name>.a to let people know that these are not
10253 # typical AIX shared libraries.
10254 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10256 # We preserve .a as extension for shared libraries through AIX4.2
10257 # and later when we are not doing run time linking.
10258 library_names_spec
='${libname}${release}.a $libname.a'
10259 soname_spec
='${libname}${release}${shared_ext}$major'
10261 shlibpath_var
=LIBPATH
10268 # Since July 2007 AmigaOS4 officially supports .so libraries.
10269 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10270 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10273 library_names_spec
='$libname.ixlibrary $libname.a'
10274 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10275 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10281 library_names_spec
='${libname}${shared_ext}'
10282 dynamic_linker
="$host_os ld.so"
10283 shlibpath_var
=LIBRARY_PATH
10287 version_type
=linux
# correct to gnu/linux during the next big refactor
10289 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10290 soname_spec
='${libname}${release}${shared_ext}$major'
10291 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
10292 shlibpath_var
=LD_LIBRARY_PATH
10293 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10294 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
10295 # the default ld.so.conf also contains /usr/contrib/lib and
10296 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10297 # libtool to hard-code these into programs
10300 cygwin
* | mingw
* | pw32
* | cegcc
*)
10301 version_type
=windows
10306 case $GCC,$cc_basename in
10309 library_names_spec
='$libname.dll.a'
10310 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10311 postinstall_cmds
='base_file=`basename \${file}`~
10312 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10313 dldir=$destdir/`dirname \$dlpath`~
10314 test -d \$dldir || mkdir -p \$dldir~
10315 $install_prog $dir/$dlname \$dldir/$dlname~
10316 chmod a+x \$dldir/$dlname~
10317 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10318 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10320 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10321 dlpath=$dir/\$dldll~
10323 shlibpath_overrides_runpath
=yes
10327 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10328 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10330 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
10333 # MinGW DLLs use traditional 'lib' prefix
10334 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10337 # pw32 DLLs use 'pw' prefix rather than 'lib'
10338 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10341 dynamic_linker
='Win32 ld.exe'
10346 libname_spec
='$name'
10347 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10348 library_names_spec
='${libname}.dll.lib'
10352 sys_lib_search_path_spec
=
10355 for lt_path
in $LIB
10358 # Let DOS variable expansion print the short 8.3 style file name.
10359 lt_path
=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10360 sys_lib_search_path_spec
="$sys_lib_search_path_spec $lt_path"
10363 # Convert to MSYS style.
10364 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10367 # Convert to unix form, then to dos form, then back to unix form
10368 # but this time dos style (no spaces!) so that the unix form looks
10369 # like /cygdrive/c/PROGRA~1:/cygdr...
10370 sys_lib_search_path_spec
=`cygpath --path --unix "$LIB"`
10371 sys_lib_search_path_spec
=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10372 sys_lib_search_path_spec
=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10375 sys_lib_search_path_spec
="$LIB"
10376 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
10377 # It is most probably a Windows format PATH.
10378 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10380 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10382 # FIXME: find the short name or the path components, as spaces are
10383 # common. (e.g. "Program Files" -> "PROGRA~1")
10387 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10388 postinstall_cmds
='base_file=`basename \${file}`~
10389 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10390 dldir=$destdir/`dirname \$dlpath`~
10391 test -d \$dldir || mkdir -p \$dldir~
10392 $install_prog $dir/$dlname \$dldir/$dlname'
10393 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10394 dlpath=$dir/\$dldll~
10396 shlibpath_overrides_runpath
=yes
10397 dynamic_linker
='Win32 link.exe'
10401 # Assume MSVC wrapper
10402 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10403 dynamic_linker
='Win32 ld.exe'
10406 # FIXME: first we should search . and the directory the executable is in
10410 darwin
* | rhapsody
*)
10411 dynamic_linker
="$host_os dyld"
10412 version_type
=darwin
10415 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10416 soname_spec
='${libname}${release}${major}$shared_ext'
10417 shlibpath_overrides_runpath
=yes
10418 shlibpath_var
=DYLD_LIBRARY_PATH
10419 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
10421 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
10422 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10426 version_type
=linux
# correct to gnu/linux during the next big refactor
10429 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10430 soname_spec
='${libname}${release}${shared_ext}$major'
10431 shlibpath_var
=LD_LIBRARY_PATH
10434 freebsd
* | dragonfly
*)
10435 # DragonFly does not have aout. When/if they implement a new
10436 # versioning mechanism, adjust this.
10437 if test -x /usr
/bin
/objformat
; then
10438 objformat
=`/usr/bin/objformat`
10441 freebsd
[23].
*) objformat
=aout
;;
10442 *) objformat
=elf
;;
10445 version_type
=freebsd-
$objformat
10446 case $version_type in
10448 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10453 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10457 shlibpath_var
=LD_LIBRARY_PATH
10460 shlibpath_overrides_runpath
=yes
10462 freebsd3.
[01]* | freebsdelf3.
[01]*)
10463 shlibpath_overrides_runpath
=yes
10464 hardcode_into_libs
=yes
10466 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10467 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10468 shlibpath_overrides_runpath
=no
10469 hardcode_into_libs
=yes
10471 *) # from 4.6 on, and DragonFly
10472 shlibpath_overrides_runpath
=yes
10473 hardcode_into_libs
=yes
10479 version_type
=linux
# correct to gnu/linux during the next big refactor
10482 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10483 soname_spec
='${libname}${release}${shared_ext}$major'
10484 shlibpath_var
=LD_LIBRARY_PATH
10485 shlibpath_overrides_runpath
=no
10486 hardcode_into_libs
=yes
10490 version_type
=linux
# correct to gnu/linux during the next big refactor
10493 dynamic_linker
="$host_os runtime_loader"
10494 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10495 soname_spec
='${libname}${release}${shared_ext}$major'
10496 shlibpath_var
=LIBRARY_PATH
10497 shlibpath_overrides_runpath
=yes
10498 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10499 hardcode_into_libs
=yes
10502 hpux9
* | hpux10
* | hpux11
*)
10503 # Give a soname corresponding to the major version so that dld.sl refuses to
10504 # link against other versions.
10511 hardcode_into_libs
=yes
10512 dynamic_linker
="$host_os dld.so"
10513 shlibpath_var
=LD_LIBRARY_PATH
10514 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10515 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10516 soname_spec
='${libname}${release}${shared_ext}$major'
10517 if test "X$HPUX_IA64_MODE" = X32
; then
10518 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10520 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10522 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10526 hardcode_into_libs
=yes
10527 dynamic_linker
="$host_os dld.sl"
10528 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10529 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10530 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10531 soname_spec
='${libname}${release}${shared_ext}$major'
10532 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10533 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10537 dynamic_linker
="$host_os dld.sl"
10538 shlibpath_var
=SHLIB_PATH
10539 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10540 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10541 soname_spec
='${libname}${release}${shared_ext}$major'
10544 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10545 postinstall_cmds
='chmod 555 $lib'
10546 # or fails outright, so override atomically:
10547 install_override_mode
=555
10551 version_type
=linux
# correct to gnu/linux during the next big refactor
10554 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10555 soname_spec
='${libname}${release}${shared_ext}$major'
10556 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10557 shlibpath_var
=LD_LIBRARY_PATH
10558 shlibpath_overrides_runpath
=no
10559 hardcode_into_libs
=yes
10562 irix5
* | irix6
* | nonstopux
*)
10564 nonstopux
*) version_type
=nonstopux
;;
10566 if test "$lt_cv_prog_gnu_ld" = yes; then
10567 version_type
=linux
# correct to gnu/linux during the next big refactor
10574 soname_spec
='${libname}${release}${shared_ext}$major'
10575 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10577 irix5
* | nonstopux
*)
10578 libsuff
= shlibsuff
=
10581 case $LD in # libtool.m4 will add one of these switches to LD
10582 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10583 libsuff
= shlibsuff
= libmagic
=32-bit;;
10584 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10585 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10586 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10587 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10588 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10592 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10593 shlibpath_overrides_runpath
=no
10594 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10595 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10596 hardcode_into_libs
=yes
10599 # No shared lib support for Linux oldld, aout, or coff.
10600 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10604 # This must be glibc/ELF.
10605 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
10606 version_type
=linux
# correct to gnu/linux during the next big refactor
10609 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10610 soname_spec
='${libname}${release}${shared_ext}$major'
10611 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10612 shlibpath_var
=LD_LIBRARY_PATH
10613 shlibpath_overrides_runpath
=no
10615 # Some binutils ld are patched to set DT_RUNPATH
10616 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
10617 $as_echo_n "(cached) " >&6
10619 lt_cv_shlibpath_overrides_runpath
=no
10620 save_LDFLAGS
=$LDFLAGS
10621 save_libdir
=$libdir
10622 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10623 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10624 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10625 /* end confdefs.h. */
10635 if ac_fn_c_try_link
"$LINENO"; then :
10636 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
10637 lt_cv_shlibpath_overrides_runpath
=yes
10640 rm -f core conftest.err conftest.
$ac_objext \
10641 conftest
$ac_exeext conftest.
$ac_ext
10642 LDFLAGS
=$save_LDFLAGS
10643 libdir
=$save_libdir
10647 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
10649 # This implies no fast_install, which is unacceptable.
10650 # Some rework will be needed to allow for fast_install
10651 # before this can be enabled.
10652 hardcode_into_libs
=yes
10654 # Append ld.so.conf contents to the search path
10655 if test -f /etc
/ld.so.conf
; then
10656 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' ' '`
10657 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10660 # We used to test for /lib/ld.so.1 and disable shared libraries on
10661 # powerpc, because MkLinux only supported shared libraries with the
10662 # GNU dynamic linker. Since this was broken with cross compilers,
10663 # most powerpc-linux boxes support dynamic linking these days and
10664 # people can always --disable-shared, the test was removed, and we
10665 # assume the GNU/Linux dynamic linker is in use.
10666 dynamic_linker
='GNU/Linux ld.so'
10673 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10674 soname_spec
='${libname}${release}${shared_ext}$major'
10675 shlibpath_var
=LD_LIBRARY_PATH
10676 shlibpath_overrides_runpath
=no
10677 hardcode_into_libs
=yes
10678 dynamic_linker
='NetBSD ld.elf_so'
10685 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
10686 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10687 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10688 dynamic_linker
='NetBSD (a.out) ld.so'
10690 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10691 soname_spec
='${libname}${release}${shared_ext}$major'
10692 dynamic_linker
='NetBSD ld.elf_so'
10694 shlibpath_var
=LD_LIBRARY_PATH
10695 shlibpath_overrides_runpath
=yes
10696 hardcode_into_libs
=yes
10700 version_type
=linux
# correct to gnu/linux during the next big refactor
10701 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10702 shlibpath_var
=LD_LIBRARY_PATH
10703 shlibpath_overrides_runpath
=yes
10710 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10711 soname_spec
='${libname}${release}${shared_ext}$major'
10712 shlibpath_var
=LD_LIBRARY_PATH
10713 shlibpath_overrides_runpath
=no
10714 hardcode_into_libs
=yes
10715 dynamic_linker
='ldqnx.so'
10720 sys_lib_dlsearch_path_spec
="/usr/lib"
10722 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10724 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10725 *) need_version
=no
;;
10727 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10728 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10729 shlibpath_var
=LD_LIBRARY_PATH
10730 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10732 openbsd2.
[89] | openbsd2.
[89].
*)
10733 shlibpath_overrides_runpath
=no
10736 shlibpath_overrides_runpath
=yes
10740 shlibpath_overrides_runpath
=yes
10745 libname_spec
='$name'
10748 library_names_spec
='$libname${shared_ext} $libname.a'
10749 dynamic_linker
='OS/2 ld.exe'
10750 shlibpath_var
=LIBPATH
10753 osf3
* | osf4
* | osf5
*)
10757 soname_spec
='${libname}${release}${shared_ext}$major'
10758 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10759 shlibpath_var
=LD_LIBRARY_PATH
10760 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10761 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10769 version_type
=linux
# correct to gnu/linux during the next big refactor
10772 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10773 soname_spec
='${libname}${release}${shared_ext}$major'
10774 shlibpath_var
=LD_LIBRARY_PATH
10775 shlibpath_overrides_runpath
=yes
10776 hardcode_into_libs
=yes
10777 # ldd complains unless libraries are executable
10778 postinstall_cmds
='chmod +x $lib'
10783 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10784 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10785 shlibpath_var
=LD_LIBRARY_PATH
10786 shlibpath_overrides_runpath
=yes
10787 if test "$with_gnu_ld" = yes; then
10794 version_type
=linux
# correct to gnu/linux during the next big refactor
10795 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10796 soname_spec
='${libname}${release}${shared_ext}$major'
10797 shlibpath_var
=LD_LIBRARY_PATH
10798 case $host_vendor in
10800 shlibpath_overrides_runpath
=no
10802 runpath_var
=LD_RUN_PATH
10810 shlibpath_overrides_runpath
=no
10811 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10817 if test -d /usr
/nec
;then
10818 version_type
=linux
# correct to gnu/linux during the next big refactor
10819 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10820 soname_spec
='$libname${shared_ext}.$major'
10821 shlibpath_var
=LD_LIBRARY_PATH
10825 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10826 version_type
=freebsd-elf
10829 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10830 soname_spec
='${libname}${release}${shared_ext}$major'
10831 shlibpath_var
=LD_LIBRARY_PATH
10832 shlibpath_overrides_runpath
=yes
10833 hardcode_into_libs
=yes
10834 if test "$with_gnu_ld" = yes; then
10835 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10837 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10840 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10844 sys_lib_dlsearch_path_spec
='/usr/lib'
10848 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10849 version_type
=linux
# correct to gnu/linux during the next big refactor
10852 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10853 shlibpath_var
=LD_LIBRARY_PATH
10854 shlibpath_overrides_runpath
=no
10855 hardcode_into_libs
=yes
10859 version_type
=linux
# correct to gnu/linux during the next big refactor
10860 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10861 soname_spec
='${libname}${release}${shared_ext}$major'
10862 shlibpath_var
=LD_LIBRARY_PATH
10869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10870 $as_echo "$dynamic_linker" >&6; }
10871 test "$dynamic_linker" = no
&& can_build_shared
=no
10873 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10874 if test "$GCC" = yes; then
10875 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10878 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10879 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
10881 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10882 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10977 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10979 if test -n "$hardcode_libdir_flag_spec" ||
10980 test -n "$runpath_var" ||
10981 test "X$hardcode_automatic" = "Xyes" ; then
10983 # We can hardcode non-existent directories.
10984 if test "$hardcode_direct" != no
&&
10985 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10986 # have to relink, otherwise we might link with an installed library
10987 # when we should be linking with a yet-to-be-installed one
10988 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10989 test "$hardcode_minus_L" != no
; then
10990 # Linking always hardcodes the temporary library directory.
10991 hardcode_action
=relink
10993 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10994 hardcode_action
=immediate
10997 # We cannot hardcode anything, or else we can only hardcode existing
10999 hardcode_action
=unsupported
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11002 $as_echo "$hardcode_action" >&6; }
11004 if test "$hardcode_action" = relink ||
11005 test "$inherit_rpath" = yes; then
11006 # Fast installation is not supported
11007 enable_fast_install
=no
11008 elif test "$shlibpath_overrides_runpath" = yes ||
11009 test "$enable_shared" = no
; then
11010 # Fast installation is not necessary
11011 enable_fast_install
=needless
11019 if test "x$enable_dlopen" != xyes
; then
11020 enable_dlopen
=unknown
11021 enable_dlopen_self
=unknown
11022 enable_dlopen_self_static
=unknown
11029 lt_cv_dlopen
="load_add_on"
11031 lt_cv_dlopen_self
=yes
11034 mingw
* | pw32
* | cegcc
*)
11035 lt_cv_dlopen
="LoadLibrary"
11040 lt_cv_dlopen
="dlopen"
11045 # if libdl is installed we need to link against it
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11047 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11048 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11049 $as_echo_n "(cached) " >&6
11051 ac_check_lib_save_LIBS
=$LIBS
11053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11054 /* end confdefs.h. */
11056 /* Override any GCC internal prototype to avoid an error.
11057 Use char because int might match the return type of a GCC
11058 builtin and then its argument prototype would still apply. */
11071 if ac_fn_c_try_link
"$LINENO"; then :
11072 ac_cv_lib_dl_dlopen
=yes
11074 ac_cv_lib_dl_dlopen
=no
11076 rm -f core conftest.err conftest.
$ac_objext \
11077 conftest
$ac_exeext conftest.
$ac_ext
11078 LIBS
=$ac_check_lib_save_LIBS
11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11081 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11082 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11083 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11086 lt_cv_dlopen
="dyld"
11088 lt_cv_dlopen_self
=yes
11095 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
11096 if test "x$ac_cv_func_shl_load" = xyes
; then :
11097 lt_cv_dlopen
="shl_load"
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11100 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11101 if ${ac_cv_lib_dld_shl_load+:} false
; then :
11102 $as_echo_n "(cached) " >&6
11104 ac_check_lib_save_LIBS
=$LIBS
11106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11107 /* end confdefs.h. */
11109 /* Override any GCC internal prototype to avoid an error.
11110 Use char because int might match the return type of a GCC
11111 builtin and then its argument prototype would still apply. */
11119 return shl_load ();
11124 if ac_fn_c_try_link
"$LINENO"; then :
11125 ac_cv_lib_dld_shl_load
=yes
11127 ac_cv_lib_dld_shl_load
=no
11129 rm -f core conftest.err conftest.
$ac_objext \
11130 conftest
$ac_exeext conftest.
$ac_ext
11131 LIBS
=$ac_check_lib_save_LIBS
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11134 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11135 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
11136 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
11138 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
11139 if test "x$ac_cv_func_dlopen" = xyes
; then :
11140 lt_cv_dlopen
="dlopen"
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11143 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11144 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11145 $as_echo_n "(cached) " >&6
11147 ac_check_lib_save_LIBS
=$LIBS
11149 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11150 /* end confdefs.h. */
11152 /* Override any GCC internal prototype to avoid an error.
11153 Use char because int might match the return type of a GCC
11154 builtin and then its argument prototype would still apply. */
11167 if ac_fn_c_try_link
"$LINENO"; then :
11168 ac_cv_lib_dl_dlopen
=yes
11170 ac_cv_lib_dl_dlopen
=no
11172 rm -f core conftest.err conftest.
$ac_objext \
11173 conftest
$ac_exeext conftest.
$ac_ext
11174 LIBS
=$ac_check_lib_save_LIBS
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11177 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11178 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11179 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11182 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11183 if ${ac_cv_lib_svld_dlopen+:} false
; then :
11184 $as_echo_n "(cached) " >&6
11186 ac_check_lib_save_LIBS
=$LIBS
11187 LIBS
="-lsvld $LIBS"
11188 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11189 /* end confdefs.h. */
11191 /* Override any GCC internal prototype to avoid an error.
11192 Use char because int might match the return type of a GCC
11193 builtin and then its argument prototype would still apply. */
11206 if ac_fn_c_try_link
"$LINENO"; then :
11207 ac_cv_lib_svld_dlopen
=yes
11209 ac_cv_lib_svld_dlopen
=no
11211 rm -f core conftest.err conftest.
$ac_objext \
11212 conftest
$ac_exeext conftest.
$ac_ext
11213 LIBS
=$ac_check_lib_save_LIBS
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11216 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11217 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
11218 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11221 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11222 if ${ac_cv_lib_dld_dld_link+:} false
; then :
11223 $as_echo_n "(cached) " >&6
11225 ac_check_lib_save_LIBS
=$LIBS
11227 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11228 /* end confdefs.h. */
11230 /* Override any GCC internal prototype to avoid an error.
11231 Use char because int might match the return type of a GCC
11232 builtin and then its argument prototype would still apply. */
11240 return dld_link ();
11245 if ac_fn_c_try_link
"$LINENO"; then :
11246 ac_cv_lib_dld_dld_link
=yes
11248 ac_cv_lib_dld_dld_link
=no
11250 rm -f core conftest.err conftest.
$ac_objext \
11251 conftest
$ac_exeext conftest.
$ac_ext
11252 LIBS
=$ac_check_lib_save_LIBS
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11255 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11256 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
11257 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
11278 if test "x$lt_cv_dlopen" != xno
; then
11284 case $lt_cv_dlopen in
11286 save_CPPFLAGS
="$CPPFLAGS"
11287 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
11289 save_LDFLAGS
="$LDFLAGS"
11290 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
11293 LIBS
="$lt_cv_dlopen_libs $LIBS"
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11296 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11297 if ${lt_cv_dlopen_self+:} false
; then :
11298 $as_echo_n "(cached) " >&6
11300 if test "$cross_compiling" = yes; then :
11301 lt_cv_dlopen_self
=cross
11303 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11304 lt_status
=$lt_dlunknown
11305 cat > conftest.
$ac_ext <<_LT_EOF
11306 #line $LINENO "configure"
11307 #include "confdefs.h"
11316 # define LT_DLGLOBAL RTLD_GLOBAL
11319 # define LT_DLGLOBAL DL_GLOBAL
11321 # define LT_DLGLOBAL 0
11325 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11326 find out it does not work in some platform. */
11327 #ifndef LT_DLLAZY_OR_NOW
11329 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11332 # define LT_DLLAZY_OR_NOW DL_LAZY
11335 # define LT_DLLAZY_OR_NOW RTLD_NOW
11338 # define LT_DLLAZY_OR_NOW DL_NOW
11340 # define LT_DLLAZY_OR_NOW 0
11347 /* When -fvisbility=hidden is used, assume the code has been annotated
11348 correspondingly for the symbols needed. */
11349 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11350 int fnord () __attribute__((visibility("default")));
11353 int fnord () { return 42; }
11356 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11357 int status = $lt_dlunknown;
11361 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11364 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11365 else puts (dlerror ());
11367 /* dlclose (self); */
11375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11376 (eval $ac_link) 2>&5
11378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11379 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11380 (.
/conftest
; exit; ) >&5 2>/dev
/null
11382 case x
$lt_status in
11383 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
11384 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
11385 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
11388 # compilation failed
11389 lt_cv_dlopen_self
=no
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11397 $as_echo "$lt_cv_dlopen_self" >&6; }
11399 if test "x$lt_cv_dlopen_self" = xyes
; then
11400 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11402 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11403 if ${lt_cv_dlopen_self_static+:} false
; then :
11404 $as_echo_n "(cached) " >&6
11406 if test "$cross_compiling" = yes; then :
11407 lt_cv_dlopen_self_static
=cross
11409 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11410 lt_status
=$lt_dlunknown
11411 cat > conftest.
$ac_ext <<_LT_EOF
11412 #line $LINENO "configure"
11413 #include "confdefs.h"
11422 # define LT_DLGLOBAL RTLD_GLOBAL
11425 # define LT_DLGLOBAL DL_GLOBAL
11427 # define LT_DLGLOBAL 0
11431 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11432 find out it does not work in some platform. */
11433 #ifndef LT_DLLAZY_OR_NOW
11435 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11438 # define LT_DLLAZY_OR_NOW DL_LAZY
11441 # define LT_DLLAZY_OR_NOW RTLD_NOW
11444 # define LT_DLLAZY_OR_NOW DL_NOW
11446 # define LT_DLLAZY_OR_NOW 0
11453 /* When -fvisbility=hidden is used, assume the code has been annotated
11454 correspondingly for the symbols needed. */
11455 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11456 int fnord () __attribute__((visibility("default")));
11459 int fnord () { return 42; }
11462 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11463 int status = $lt_dlunknown;
11467 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11470 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11471 else puts (dlerror ());
11473 /* dlclose (self); */
11481 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11482 (eval $ac_link) 2>&5
11484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11485 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11486 (.
/conftest
; exit; ) >&5 2>/dev
/null
11488 case x
$lt_status in
11489 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
11490 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
11491 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
11494 # compilation failed
11495 lt_cv_dlopen_self_static
=no
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11503 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11506 CPPFLAGS
="$save_CPPFLAGS"
11507 LDFLAGS
="$save_LDFLAGS"
11512 case $lt_cv_dlopen_self in
11513 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
11514 *) enable_dlopen_self
=unknown
;;
11517 case $lt_cv_dlopen_self_static in
11518 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
11519 *) enable_dlopen_self_static
=unknown
;;
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11542 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11543 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
11544 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
11545 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11547 $as_echo "yes" >&6; }
11549 # FIXME - insert some real tests, host_os isn't really good enough
11552 if test -n "$STRIP" ; then
11553 striplib
="$STRIP -x"
11554 old_striplib
="$STRIP -S"
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11556 $as_echo "yes" >&6; }
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11559 $as_echo "no" >&6; }
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11564 $as_echo "no" >&6; }
11580 # Report which library types will actually be built
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11582 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11584 $as_echo "$can_build_shared" >&6; }
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11587 $as_echo_n "checking whether to build shared libraries... " >&6; }
11588 test "$can_build_shared" = "no" && enable_shared
=no
11590 # On AIX, shared libraries and static libraries use the same namespace, and
11591 # are all built from PIC.
11594 test "$enable_shared" = yes && enable_static
=no
11595 if test -n "$RANLIB"; then
11596 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
11597 postinstall_cmds
='$RANLIB $lib'
11602 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
11603 test "$enable_shared" = yes && enable_static
=no
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11608 $as_echo "$enable_shared" >&6; }
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11611 $as_echo_n "checking whether to build static libraries... " >&6; }
11612 # Make sure either enable_shared or enable_static is yes.
11613 test "$enable_shared" = yes || enable_static
=yes
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11615 $as_echo "$enable_static" >&6; }
11622 ac_cpp
='$CPP $CPPFLAGS'
11623 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11624 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11625 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11643 ac_config_commands
="$ac_config_commands libtool"
11648 # Only expand once:
11651 # By default we simply use the C compiler to build assembly code.
11653 test "${CCAS+set}" = set || CCAS
=$CC
11654 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
11658 depcc
="$CCAS" am_compiler_list
=
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
11661 $as_echo_n "checking dependency style of $depcc... " >&6; }
11662 if ${am_cv_CCAS_dependencies_compiler_type+:} false
; then :
11663 $as_echo_n "(cached) " >&6
11665 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
11666 # We make a subdir and do the tests there. Otherwise we can end up
11667 # making bogus files that we don't know about and never remove. For
11668 # instance it was reported that on HP-UX the gcc test will end up
11669 # making a dummy file named `D' -- because `-MD' means `put the output
11671 rm -rf conftest.dir
11673 # Copy depcomp to subdir because otherwise we won't find it if we're
11674 # using a relative directory.
11675 cp "$am_depcomp" conftest.dir
11677 # We will build objects and dependencies in a subdirectory because
11678 # it helps to detect inapplicable dependency modes. For instance
11679 # both Tru64's cc and ICC support -MD to output dependencies as a
11680 # side effect of compilation, but ICC will put the dependencies in
11681 # the current directory while Tru64 will put them in the object
11685 am_cv_CCAS_dependencies_compiler_type
=none
11686 if test "$am_compiler_list" = ""; then
11687 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
11689 am__universal
=false
11692 for depmode
in $am_compiler_list; do
11693 # Setup a source with many dependencies, because some compilers
11694 # like to wrap large dependency lists on column 80 (with \), and
11695 # we should not choose a depcomp mode which is confused by this.
11697 # We need to recreate these files for each test, as the compiler may
11698 # overwrite some of them when testing with obscure command lines.
11699 # This happens at least with the AIX C compiler.
11701 for i
in 1 2 3 4 5 6; do
11702 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
11703 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
11704 # Solaris 8's {/usr,}/bin/sh.
11705 touch sub
/conftst
$i.h
11707 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
11709 # We check with `-c' and `-o' for the sake of the "dashmstdout"
11710 # mode. It turns out that the SunPro C++ compiler does not properly
11711 # handle `-M -o', and we need to detect this. Also, some Intel
11712 # versions had trouble with output in subdirs
11713 am__obj
=sub
/conftest.
${OBJEXT-o}
11714 am__minus_obj
="-o $am__obj"
11717 # This depmode causes a compiler race in universal mode.
11718 test "$am__universal" = false ||
continue
11721 # after this tag, mechanisms are not by side-effect, so they'll
11722 # only be used when explicitly requested
11723 if test "x$enable_dependency_tracking" = xyes
; then
11729 msvc7 | msvc7msys | msvisualcpp | msvcmsys
)
11730 # This compiler won't grok `-c -o', but also, the minuso test has
11731 # not run yet. These depmodes are late enough in the game, and
11732 # so weak that their functioning should not be impacted.
11733 am__obj
=conftest.
${OBJEXT-o}
11738 if depmode
=$depmode \
11739 source=sub
/conftest.c object
=$am__obj \
11740 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
11741 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
11742 >/dev
/null
2>conftest.err
&&
11743 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
11744 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
11745 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
11746 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
11747 # icc doesn't choke on unknown options, it will just issue warnings
11748 # or remarks (even with -Werror). So we grep stderr for any message
11749 # that says an option was ignored or not supported.
11750 # When given -MP, icc 7.0 and 7.1 complain thusly:
11751 # icc: Command line warning: ignoring option '-M'; no argument required
11752 # The diagnosis changed in icc 8.0:
11753 # icc: Command line remark: option '-MP' not supported
11754 if (grep 'ignoring option' conftest.err ||
11755 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
11756 am_cv_CCAS_dependencies_compiler_type
=$depmode
11763 rm -rf conftest.dir
11765 am_cv_CCAS_dependencies_compiler_type
=none
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
11770 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
11771 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
11774 test "x$enable_dependency_tracking" != xno \
11775 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
11776 am__fastdepCCAS_TRUE
=
11777 am__fastdepCCAS_FALSE
='#'
11779 am__fastdepCCAS_TRUE
='#'
11780 am__fastdepCCAS_FALSE
=
11786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs author" >&5
11787 $as_echo_n "checking zfs author... " >&6; }
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_AUTHOR" >&5
11789 $as_echo "$ZFS_META_AUTHOR" >&6; }
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs license" >&5
11792 $as_echo_n "checking zfs license... " >&6; }
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_LICENSE" >&5
11794 $as_echo "$ZFS_META_LICENSE" >&6; }
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linux distribution" >&5
11799 $as_echo_n "checking linux distribution... " >&6; }
11800 if test -f /etc
/toss-release
; then
11802 elif test -f /etc
/fedora-release
; then
11804 elif test -f /etc
/redhat-release
; then
11806 elif test -f /etc
/gentoo-release
; then
11808 elif test -f /etc
/arch-release
; then
11810 elif test -f /etc
/SuSE-release
; then
11812 elif test -f /etc
/slackware-version
; then
11814 elif test -f /etc
/lunar.release
; then
11816 elif test -f /etc
/lsb-release
; then
11818 elif test -f /etc
/debian_version
; then
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VENDOR" >&5
11824 $as_echo "$VENDOR" >&6; }
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default package type" >&5
11828 $as_echo_n "checking default package type... " >&6; }
11830 toss
) DEFAULT_PACKAGE
=rpm
;;
11831 redhat
) DEFAULT_PACKAGE
=rpm
;;
11832 fedora
) DEFAULT_PACKAGE
=rpm
;;
11833 gentoo
) DEFAULT_PACKAGE
=tgz
;;
11834 arch
) DEFAULT_PACKAGE
=tgz
;;
11835 sles
) DEFAULT_PACKAGE
=rpm
;;
11836 slackware
) DEFAULT_PACKAGE
=tgz
;;
11837 lunar
) DEFAULT_PACKAGE
=tgz
;;
11838 ubuntu
) DEFAULT_PACKAGE
=deb
;;
11839 debian
) DEFAULT_PACKAGE
=deb
;;
11840 *) DEFAULT_PACKAGE
=rpm
;;
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_PACKAGE" >&5
11844 $as_echo "$DEFAULT_PACKAGE" >&6; }
11847 DEFAULT_INIT_DIR
=$sysconfdir/init.d
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init directory" >&5
11849 $as_echo_n "checking default init directory... " >&6; }
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_DIR" >&5
11851 $as_echo "$DEFAULT_INIT_DIR" >&6; }
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init script type" >&5
11855 $as_echo_n "checking default init script type... " >&6; }
11857 toss
) DEFAULT_INIT_SCRIPT
=redhat
;;
11858 redhat
) DEFAULT_INIT_SCRIPT
=redhat
;;
11859 fedora
) DEFAULT_INIT_SCRIPT
=fedora
;;
11860 gentoo
) DEFAULT_INIT_SCRIPT
=gentoo
;;
11861 arch
) DEFAULT_INIT_SCRIPT
=lsb
;;
11862 sles
) DEFAULT_INIT_SCRIPT
=lsb
;;
11863 slackware
) DEFAULT_INIT_SCRIPT
=lsb
;;
11864 lunar
) DEFAULT_INIT_SCRIPT
=lunar
;;
11865 ubuntu
) DEFAULT_INIT_SCRIPT
=lsb
;;
11866 debian
) DEFAULT_INIT_SCRIPT
=lsb
;;
11867 *) DEFAULT_INIT_SCRIPT
=lsb
;;
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_SCRIPT" >&5
11871 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPM is available" >&5
11879 $as_echo_n "checking whether $RPM is available... " >&6; }
11880 if tmp
=$
($RPM --version 2>/dev
/null
); then :
11882 RPM_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM ($RPM_VERSION)" >&5
11885 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM" >&5
11891 $as_echo "$HAVE_RPM" >&6; }
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPMBUILD is available" >&5
11896 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11897 if tmp
=$
($RPMBUILD --version 2>/dev
/null
); then :
11899 RPMBUILD_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11902 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD" >&5
11908 $as_echo "$HAVE_RPMBUILD" >&6; }
11912 RPM_DEFINE_COMMON
='--define "$(DEBUG_ZFS) 1" --define "$(DEBUG_DMU_TX) 1"'
11913 RPM_DEFINE_UTIL
='--define "_dracutdir $(dracutdir)" --define "_udevdir $(udevdir)" --define "_udevruledir $(udevruledir)"'
11914 RPM_DEFINE_KMOD
='--define "kernels $(LINUX_VERSION)" --define "require_spldir $(SPL)" --define "require_splobj $(SPL_OBJ)" --define "ksrc $(LINUX)" --define "kobj $(LINUX_OBJ)"'
11917 SRPM_DEFINE_COMMON
='--define "build_src_rpm 1"'
11922 RPM_SPEC_DIR
="rpm/generic"
11924 # Check whether --with-spec was given.
11925 if test "${with_spec+set}" = set; then :
11926 withval
=$with_spec; RPM_SPEC_DIR
="rpm/$withval"
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spec files are available" >&5
11931 $as_echo_n "checking whether spec files are available... " >&6; }
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
11933 $as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
11955 DPKGBUILD
=dpkg-buildpackage
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKG is available" >&5
11958 $as_echo_n "checking whether $DPKG is available... " >&6; }
11959 if tmp
=$
($DPKG --version 2>/dev
/null
); then :
11961 DPKG_VERSION
=$
(echo $tmp |
$AWK '/Debian/ { print $7 }')
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11964 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG" >&5
11970 $as_echo "$HAVE_DPKG" >&6; }
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKGBUILD is available" >&5
11975 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11976 if tmp
=$
($DPKGBUILD --version 2>/dev
/null
); then :
11978 DPKGBUILD_VERSION
=$
(echo $tmp | \
11979 $AWK '/Debian/ { print $4 }' | cut
-f-4 -d'.')
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11982 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD" >&5
11988 $as_echo "$HAVE_DPKGBUILD" >&6; }
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ALIEN is available" >&5
12004 $as_echo_n "checking whether $ALIEN is available... " >&6; }
12005 if tmp
=$
($ALIEN --version 2>/dev
/null
); then :
12007 ALIEN_VERSION
=$
(echo $tmp |
$AWK '{ print $3 }')
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
12010 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
12015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN" >&5
12016 $as_echo "$HAVE_ALIEN" >&6; }
12026 TARGET_ASM_DIR
=asm-generic
12031 # Check whether --with-config was given.
12032 if test "${with_config+set}" = set; then :
12033 withval
=$with_config; ZFS_CONFIG
="$withval"
12036 # Check whether --enable-linux-builtin was given.
12037 if test "${enable_linux_builtin+set}" = set; then :
12038 enableval
=$enable_linux_builtin;
12040 enable_linux_builtin
=no
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs config" >&5
12045 $as_echo_n "checking zfs config... " >&6; }
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_CONFIG" >&5
12047 $as_echo "$ZFS_CONFIG" >&6; };
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-unused-but-set-variable support" >&5
12053 $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
12055 saved_flags
="$CFLAGS"
12056 CFLAGS
="$CFLAGS -Wunused-but-set-variable"
12058 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12059 /* end confdefs.h. */
12069 if ac_fn_c_try_compile
"$LINENO"; then :
12071 NO_UNUSED_BUT_SET_VARIABLE
=-Wno-unused-but-set-variable
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12073 $as_echo "yes" >&6; }
12077 NO_UNUSED_BUT_SET_VARIABLE
=
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12079 $as_echo "no" >&6; }
12082 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12084 CFLAGS
="$saved_flags"
12089 case "$ZFS_CONFIG" in
12093 # Check whether --with-linux was given.
12094 if test "${with_linux+set}" = set; then :
12095 withval
=$with_linux; kernelsrc
="$withval"
12100 # Check whether --with-linux-obj was given.
12101 if test "${with_linux_obj+set}" = set; then :
12102 withval
=$with_linux_obj; kernelbuild
="$withval"
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
12107 $as_echo_n "checking kernel source directory... " >&6; }
12108 if test -z "$kernelsrc"; then :
12110 if test -e "/lib/modules/$(uname -r)/source"; then :
12112 headersdir
="/lib/modules/$(uname -r)/source"
12113 sourcelink
=$
(readlink
-f "$headersdir")
12115 elif test -e "/lib/modules/$(uname -r)/build"; then :
12117 headersdir
="/lib/modules/$(uname -r)/build"
12118 sourcelink
=$
(readlink
-f "$headersdir")
12122 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
12124 2>/dev
/null |
grep -v obj |
tail -1)
12128 if test -n "$sourcelink" && test -e ${sourcelink}; then :
12130 kernelsrc
=`readlink -f ${sourcelink}`
12134 kernelsrc
="Not found"
12140 if test "$kernelsrc" = "NONE"; then :
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
12149 $as_echo "$kernelsrc" >&6; }
12150 if test ! -d "$kernelsrc"; then :
12153 *** Please make sure the kernel devel package for your distribution
12154 *** is installed and then try again. If that fails, you can specify the
12155 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
12160 $as_echo_n "checking kernel build directory... " >&6; }
12161 if test -z "$kernelbuild"; then :
12163 if test -e "/lib/modules/$(uname -r)/build"; then :
12165 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
12167 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
12169 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
12171 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then :
12173 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
12175 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then :
12177 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
12181 kernelbuild
=${kernelsrc}
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
12187 $as_echo "$kernelbuild" >&6; }
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
12190 $as_echo_n "checking kernel source version... " >&6; }
12191 utsrelease1
=$kernelbuild/include
/linux
/version.h
12192 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
12193 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
12194 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then :
12196 utsrelease
=linux
/version.h
12198 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then :
12200 utsrelease
=linux
/utsrelease.h
12202 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then :
12204 utsrelease
=generated
/utsrelease.h
12208 if test "$utsrelease"; then :
12210 kernsrcver
=`(echo "#include <$utsrelease>";
12211 echo "kernsrcver=UTS_RELEASE") |
12212 cpp -I $kernelbuild/include |
12213 grep "^kernsrcver=" | cut -d \" -f 2`
12215 if test -z "$kernsrcver"; then :
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
12218 $as_echo "Not found" >&6; }
12219 as_fn_error $?
"*** Cannot determine kernel version." "$LINENO" 5
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
12226 $as_echo "Not found" >&6; }
12227 if test "x$enable_linux_builtin" != xyes
; then
12228 as_fn_error $?
"*** Cannot find UTS_RELEASE definition." "$LINENO" 5
12231 *** Cannot find UTS_RELEASE definition.
12232 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
12238 $as_echo "$kernsrcver" >&6; }
12241 LINUX_OBJ
=${kernelbuild}
12242 LINUX_VERSION
=${kernsrcver}
12249 modpost
=$LINUX/scripts
/Makefile.modpost
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
12251 $as_echo_n "checking kernel file name for module symbols... " >&6; }
12252 if test "x$enable_linux_builtin" != xyes
-a -f "$modpost"; then :
12254 if grep -q Modules.symvers
$modpost; then :
12256 LINUX_SYMBOLS
=Modules.symvers
12260 LINUX_SYMBOLS
=Module.symvers
12264 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
12267 *** Please make sure the kernel devel package for your distribution
12268 *** is installed. If you are building with a custom kernel, make sure the
12269 *** kernel is configured, built, and the '--with-linux=PATH' configure
12270 *** option refers to the location of the kernel source." "$LINENO" 5
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
12280 $as_echo "$LINUX_SYMBOLS" >&6; }
12286 # Check whether --with-spl was given.
12287 if test "${with_spl+set}" = set; then :
12288 withval
=$with_spl; splsrc
="$withval"
12293 # Check whether --with-spl-obj was given.
12294 if test "${with_spl_obj+set}" = set; then :
12295 withval
=$with_spl_obj; splbuild
="$withval"
12300 # Check whether --with-spl-timeout was given.
12301 if test "${with_spl_timeout+set}" = set; then :
12302 withval
=$with_spl_timeout; timeout
="$withval"
12308 splsrc0
="/var/lib/dkms/spl/${VERSION}/build"
12309 splsrc1
="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
12310 splsrc2
="/usr/local/src/spl-${VERSION}"
12311 splsrc3
="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
12312 splsrc4
="/usr/src/spl-${VERSION}"
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
12317 $as_echo_n "checking spl source directory... " >&6; }
12318 if test -z "${splsrc}"; then :
12320 if test -e "${splsrc0}/spl.release.in"; then :
12324 elif test -e "${splsrc1}/spl.release.in"; then :
12328 elif test -e "${splsrc2}/spl.release.in"; then :
12332 elif test -e "${splsrc3}/spl.release.in"; then :
12334 splsrc
=$
(readlink
-f "${splsrc3}")
12336 elif test -e "${splsrc4}/spl.release.in" ; then :
12340 elif test -e "${splsrc5}/spl.release.in"; then :
12342 splsrc
=$
(readlink
-f "${splsrc5}")
12344 elif test -e "${splsrc6}/spl.release.in" ; then :
12356 if test "$splsrc" = "NONE"; then :
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
12366 $as_echo "$splsrc" >&6; }
12367 if test ! -e "$splsrc/spl.release.in"; then :
12370 *** Please make sure the kmod spl devel package for your distribution
12371 *** is installed then try again. If that fails you can specify the
12372 *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
12377 $as_echo_n "checking spl build directory... " >&6; }
12379 if test -z "$splbuild"; then :
12381 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
12383 splbuild
="${splsrc}/${LINUX_VERSION}"
12385 elif test -e "${splsrc}/spl_config.h" ; then :
12387 splbuild
="${splsrc}"
12391 splbuild
="Not found"
12396 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
12403 timeout
=$
((timeout-1
))
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
12409 $as_echo "$splbuild" >&6; }
12410 if ! test -e "$splbuild/spl_config.h"; then :
12413 *** Please make sure the kmod spl devel <kernel> package for your
12414 *** distribution is installed then try again. If that fails you
12415 *** can specify the location of the spl objects with the
12416 *** '--with-spl-obj=PATH' option." "$LINENO" 5
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
12421 $as_echo_n "checking spl source version... " >&6; }
12422 if test -r $splbuild/spl_config.h
&&
12423 fgrep
-q SPL_META_VERSION
$splbuild/spl_config.h
; then :
12426 splsrcver
=`(echo "#include <spl_config.h>";
12427 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
12429 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
12433 if test -z "$splsrcver"; then :
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
12436 $as_echo "Not found" >&6; }
12438 *** Cannot determine the version of the spl source.
12439 *** Please prepare the spl source before running this script" "$LINENO" 5
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
12444 $as_echo "$splsrcver" >&6; }
12447 SPL_OBJ
=${splbuild}
12448 SPL_VERSION
=${splsrcver}
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
12455 $as_echo_n "checking spl file name for module symbols... " >&6; }
12459 if test -r $SPL_OBJ/Module.symvers
; then :
12461 SPL_SYMBOLS
=Module.symvers
12463 elif test -r $SPL_OBJ/Modules.symvers
; then :
12465 SPL_SYMBOLS
=Modules.symvers
12467 elif test -r $SPL_OBJ/module
/Module.symvers
; then :
12469 SPL_SYMBOLS
=Module.symvers
12471 elif test -r $SPL_OBJ/module
/Modules.symvers
; then :
12473 SPL_SYMBOLS
=Modules.symvers
12477 if test $SPL_SYMBOLS != NONE
-o $timeout -le 0; then :
12484 timeout
=$
((timeout-1
))
12489 if test "$SPL_SYMBOLS" = NONE
; then :
12491 SPL_SYMBOLS
=$LINUX_SYMBOLS
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
12496 $as_echo "$SPL_SYMBOLS" >&6; }
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
12501 $as_echo_n "checking whether modules can be built... " >&6; }
12504 cat confdefs.h
- <<_ACEOF >conftest.c
12519 cat - <<_ACEOF >conftest.h
12524 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12525 echo "obj-m := conftest.o" >build
/Makefile
12527 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12528 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12529 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12530 (eval $ac_try) 2>&5
12532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12533 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12534 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12535 (eval $ac_try) 2>&5
12537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12538 test $ac_status = 0; }; }; then :
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12541 $as_echo "yes" >&6; }
12544 $as_echo "$as_me: failed program was:" >&5
12545 sed 's/^/| /' conftest.
$ac_ext >&5
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12548 $as_echo "no" >&6; }
12549 if test "x$enable_linux_builtin" != xyes
; then
12550 as_fn_error $?
"*** Unable to build an empty module." "$LINENO" 5
12553 *** Unable to build an empty module.
12554 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
12565 if test "$cross_compiling" = yes; then :
12566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12568 as_fn_error $?
"cannot run test program while cross compiling
12569 See \`config.log' for more details" "$LINENO" 5; }
12571 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12572 /* end confdefs.h. */
12575 #include "$LINUX/include/linux/license.h"
12581 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
12588 if ac_fn_c_try_run
"$LINENO"; then :
12591 $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
12595 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12596 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
12603 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
12606 cat confdefs.h
- <<_ACEOF >conftest.c
12609 #include <linux/module.h>
12615 #ifndef CONFIG_DEBUG_LOCK_ALLOC
12616 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
12627 cat - <<_ACEOF >conftest.h
12632 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12633 echo "obj-m := conftest.o" >build
/Makefile
12635 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12636 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12637 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12638 (eval $ac_try) 2>&5
12640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12641 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12642 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12643 (eval $ac_try) 2>&5
12645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12646 test $ac_status = 0; }; }; then :
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12649 $as_echo "yes" >&6; }
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
12652 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
12653 tmp_flags
="$EXTRA_KCFLAGS"
12656 cat confdefs.h
- <<_ACEOF >conftest.c
12659 #include <linux/module.h>
12660 #include <linux/mutex.h>
12662 MODULE_LICENSE("$ZFS_META_LICENSE");
12672 mutex_unlock(&lock);
12682 cat - <<_ACEOF >conftest.h
12687 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12688 echo "obj-m := conftest.o" >build
/Makefile
12690 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12691 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12693 (eval $ac_try) 2>&5
12695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12696 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12698 (eval $ac_try) 2>&5
12700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12701 test $ac_status = 0; }; }; then :
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12704 $as_echo "no" >&6; }
12707 $as_echo "$as_me: failed program was:" >&5
12708 sed 's/^/| /' conftest.
$ac_ext >&5
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12711 $as_echo "yes" >&6; }
12713 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
12714 *** with the CDDL license and will prevent the module linking stage
12715 *** from succeeding. You must rebuild your kernel without this
12716 *** option enabled." "$LINENO" 5
12724 EXTRA_KCFLAGS
="$tmp_flags"
12728 $as_echo "$as_me: failed program was:" >&5
12729 sed 's/^/| /' conftest.
$ac_ext >&5
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12732 $as_echo "no" >&6; }
12745 tmp_flags
="$EXTRA_KCFLAGS"
12746 EXTRA_KCFLAGS
="-I\$(src)"
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
12749 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
12752 cat confdefs.h
- <<_ACEOF >conftest.c
12755 #include <linux/module.h>
12756 MODULE_LICENSE(ZFS_META_LICENSE);
12758 #define CREATE_TRACE_POINTS
12759 #include "conftest.h"
12765 trace_zfs_autoconf_event_one(1UL);
12766 trace_zfs_autoconf_event_two(2UL);
12776 cat - <<_ACEOF >conftest.h
12778 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
12779 #define _CONFTEST_H
12781 #undef TRACE_SYSTEM
12782 #define TRACE_SYSTEM zfs
12783 #include <linux/tracepoint.h>
12785 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
12786 TP_PROTO(unsigned long i),
12789 __field(unsigned long, i)
12794 TP_printk("i = %lu", __entry->i)
12797 #define DEFINE_AUTOCONF_EVENT(name) \
12798 DEFINE_EVENT(zfs_autoconf_event_class, name, \
12799 TP_PROTO(unsigned long i), \
12801 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
12802 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
12804 #endif /* _CONFTEST_H */
12806 #undef TRACE_INCLUDE_PATH
12807 #define TRACE_INCLUDE_PATH .
12808 #define TRACE_INCLUDE_FILE conftest
12809 #include <trace/define_trace.h>
12814 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12815 echo "obj-m := conftest.o" >build
/Makefile
12817 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12818 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12819 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12820 (eval $ac_try) 2>&5
12822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12823 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12824 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12825 (eval $ac_try) 2>&5
12827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12828 test $ac_status = 0; }; }; then :
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12831 $as_echo "yes" >&6; }
12833 $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
12837 $as_echo "$as_me: failed program was:" >&5
12838 sed 's/^/| /' conftest.
$ac_ext >&5
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12841 $as_echo "no" >&6; }
12849 EXTRA_KCFLAGS
="$tmp_flags"
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
12853 $as_echo_n "checking block device operation prototypes... " >&6; }
12854 tmp_flags
="$EXTRA_KCFLAGS"
12855 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
12858 cat confdefs.h
- <<_ACEOF >conftest.c
12861 #include <linux/blkdev.h>
12863 int blk_open(struct block_device *bdev, fmode_t mode)
12865 int blk_ioctl(struct block_device *bdev, fmode_t mode,
12866 unsigned x, unsigned long y) { return 0; }
12867 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
12868 unsigned x, unsigned long y) { return 0; }
12870 static const struct block_device_operations
12871 bops __attribute__ ((unused)) = {
12874 .ioctl = blk_ioctl,
12875 .compat_ioctl = blk_compat_ioctl,
12891 cat - <<_ACEOF >conftest.h
12896 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12897 echo "obj-m := conftest.o" >build
/Makefile
12899 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12900 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12902 (eval $ac_try) 2>&5
12904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12905 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12907 (eval $ac_try) 2>&5
12909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12910 test $ac_status = 0; }; }; then :
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
12913 $as_echo "struct block_device" >&6; }
12915 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
12919 $as_echo "$as_me: failed program was:" >&5
12920 sed 's/^/| /' conftest.
$ac_ext >&5
12922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
12923 $as_echo "struct inode" >&6; }
12931 EXTRA_KCFLAGS
="$tmp_flags"
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
12935 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
12936 tmp_flags
="$EXTRA_KCFLAGS"
12937 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
12940 cat confdefs.h
- <<_ACEOF >conftest.c
12943 #include <linux/blkdev.h>
12945 void blk_release(struct gendisk *g, fmode_t mode) { return; }
12947 static const struct block_device_operations
12948 bops __attribute__ ((unused)) = {
12950 .release = blk_release,
12952 .compat_ioctl = NULL,
12968 cat - <<_ACEOF >conftest.h
12973 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12974 echo "obj-m := conftest.o" >build
/Makefile
12976 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12977 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12978 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12979 (eval $ac_try) 2>&5
12981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12982 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12983 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12984 (eval $ac_try) 2>&5
12986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12987 test $ac_status = 0; }; }; then :
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
12990 $as_echo "void" >&6; }
12992 $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
12996 $as_echo "$as_me: failed program was:" >&5
12997 sed 's/^/| /' conftest.
$ac_ext >&5
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
13000 $as_echo "int" >&6; }
13008 EXTRA_KCFLAGS
="$tmp_flags"
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
13011 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
13014 cat confdefs.h
- <<_ACEOF >conftest.c
13017 #include <linux/types.h>
13023 fmode_t *ptr __attribute__ ((unused));
13033 cat - <<_ACEOF >conftest.h
13038 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13039 echo "obj-m := conftest.o" >build
/Makefile
13041 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13042 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13044 (eval $ac_try) 2>&5
13046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13047 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13049 (eval $ac_try) 2>&5
13051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13052 test $ac_status = 0; }; }; then :
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13055 $as_echo "yes" >&6; }
13057 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
13061 $as_echo "$as_me: failed program was:" >&5
13062 sed 's/^/| /' conftest.
$ac_ext >&5
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13065 $as_echo "no" >&6; }
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5
13076 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
13079 cat confdefs.h
- <<_ACEOF >conftest.c
13082 #include <linux/kobject.h>
13088 int val __attribute__ ((unused));
13089 val = KOBJ_NAME_LEN;
13099 cat - <<_ACEOF >conftest.h
13104 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13105 echo "obj-m := conftest.o" >build
/Makefile
13107 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13108 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13110 (eval $ac_try) 2>&5
13112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13113 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13115 (eval $ac_try) 2>&5
13117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13118 test $ac_status = 0; }; }; then :
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13121 $as_echo "yes" >&6; }
13123 $as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h
13127 $as_echo "$as_me: failed program was:" >&5
13128 sed 's/^/| /' conftest.
$ac_ext >&5
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13131 $as_echo "no" >&6; }
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
13142 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
13145 cat confdefs.h
- <<_ACEOF >conftest.c
13148 #include <linux/fs.h>
13154 struct block_device *bdev = NULL;
13155 (void) blkdev_get(bdev, 0, NULL);
13165 cat - <<_ACEOF >conftest.h
13170 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13171 echo "obj-m := conftest.o" >build
/Makefile
13173 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13174 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13175 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13176 (eval $ac_try) 2>&5
13178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13179 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13180 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13181 (eval $ac_try) 2>&5
13183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13184 test $ac_status = 0; }; }; then :
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13187 $as_echo "yes" >&6; }
13189 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
13193 $as_echo "$as_me: failed program was:" >&5
13194 sed 's/^/| /' conftest.
$ac_ext >&5
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13197 $as_echo "no" >&6; }
13206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
13207 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
13211 cat confdefs.h
- <<_ACEOF >conftest.c
13214 #include <linux/fs.h>
13220 blkdev_get_by_path(NULL, 0, NULL);
13230 cat - <<_ACEOF >conftest.h
13235 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13236 echo "obj-m := conftest.o" >build
/Makefile
13238 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13239 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13241 (eval $ac_try) 2>&5
13243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13244 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13246 (eval $ac_try) 2>&5
13248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13249 test $ac_status = 0; }; }; then :
13252 $as_echo "$as_me: failed program was:" >&5
13253 sed 's/^/| /' conftest.
$ac_ext >&5
13261 if test $rc -ne 0; then :
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13264 $as_echo "no" >&6; }
13267 if test "x$enable_linux_builtin" != xyes
; then
13269 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
13270 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
13272 if test $rc -ne 0; then
13274 for file in fs
/block_dev.c
; do
13275 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
13276 "$LINUX/$file" 2>/dev
/null
13278 if test $rc -eq 0; then
13283 if test $export -eq 0; then :
13293 if test $rc -ne 0; then :
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13296 $as_echo "no" >&6; }
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13301 $as_echo "yes" >&6; }
13303 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
13311 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
13315 cat confdefs.h
- <<_ACEOF >conftest.c
13318 #include <linux/fs.h>
13324 open_bdev_exclusive(NULL, 0, NULL);
13334 cat - <<_ACEOF >conftest.h
13339 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13340 echo "obj-m := conftest.o" >build
/Makefile
13342 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13343 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13345 (eval $ac_try) 2>&5
13347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13348 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13350 (eval $ac_try) 2>&5
13352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13353 test $ac_status = 0; }; }; then :
13356 $as_echo "$as_me: failed program was:" >&5
13357 sed 's/^/| /' conftest.
$ac_ext >&5
13365 if test $rc -ne 0; then :
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13368 $as_echo "no" >&6; }
13371 if test "x$enable_linux_builtin" != xyes
; then
13373 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
13374 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
13376 if test $rc -ne 0; then
13378 for file in fs
/block_dev.c
; do
13379 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
13380 "$LINUX/$file" 2>/dev
/null
13382 if test $rc -eq 0; then
13387 if test $export -eq 0; then :
13397 if test $rc -ne 0; then :
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13400 $as_echo "no" >&6; }
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13405 $as_echo "yes" >&6; }
13407 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() is available" >&5
13415 $as_echo_n "checking whether lookup_bdev() is available... " >&6; }
13419 cat confdefs.h
- <<_ACEOF >conftest.c
13422 #include <linux/fs.h>
13438 cat - <<_ACEOF >conftest.h
13443 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13444 echo "obj-m := conftest.o" >build
/Makefile
13446 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13447 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13449 (eval $ac_try) 2>&5
13451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13452 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13454 (eval $ac_try) 2>&5
13456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13457 test $ac_status = 0; }; }; then :
13460 $as_echo "$as_me: failed program was:" >&5
13461 sed 's/^/| /' conftest.
$ac_ext >&5
13469 if test $rc -ne 0; then :
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13472 $as_echo "no" >&6; }
13475 if test "x$enable_linux_builtin" != xyes
; then
13477 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
13478 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
13480 if test $rc -ne 0; then
13482 for file in fs
/block_dev.c
; do
13483 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
13484 "$LINUX/$file" 2>/dev
/null
13486 if test $rc -eq 0; then
13491 if test $export -eq 0; then :
13501 if test $rc -ne 0; then :
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13504 $as_echo "no" >&6; }
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13509 $as_echo "yes" >&6; }
13511 $as_echo "#define HAVE_LOOKUP_BDEV 1" >>confdefs.h
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
13520 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
13523 cat confdefs.h
- <<_ACEOF >conftest.c
13526 #include <linux/buffer_head.h>
13532 struct block_device *bdev = NULL;
13533 invalidate_bdev(bdev);
13543 cat - <<_ACEOF >conftest.h
13548 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13549 echo "obj-m := conftest.o" >build
/Makefile
13551 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13552 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13553 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13554 (eval $ac_try) 2>&5
13556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13557 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13558 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13559 (eval $ac_try) 2>&5
13561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13562 test $ac_status = 0; }; }; then :
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13565 $as_echo "yes" >&6; }
13567 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
13571 $as_echo "$as_me: failed program was:" >&5
13572 sed 's/^/| /' conftest.
$ac_ext >&5
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13575 $as_echo "no" >&6; }
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
13586 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
13587 tmp_flags
="$EXTRA_KCFLAGS"
13588 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
13591 cat confdefs.h
- <<_ACEOF >conftest.c
13594 #include <linux/blkdev.h>
13600 struct block_device *bdev = NULL;
13601 bdev_logical_block_size(bdev);
13611 cat - <<_ACEOF >conftest.h
13616 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13617 echo "obj-m := conftest.o" >build
/Makefile
13619 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13620 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13621 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13622 (eval $ac_try) 2>&5
13624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13625 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13626 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13627 (eval $ac_try) 2>&5
13629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13630 test $ac_status = 0; }; }; then :
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13633 $as_echo "yes" >&6; }
13635 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
13639 $as_echo "$as_me: failed program was:" >&5
13640 sed 's/^/| /' conftest.
$ac_ext >&5
13642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13643 $as_echo "no" >&6; }
13651 EXTRA_KCFLAGS
="$tmp_flags"
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
13655 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
13656 tmp_flags
="$EXTRA_KCFLAGS"
13657 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
13660 cat confdefs.h
- <<_ACEOF >conftest.c
13663 #include <linux/blkdev.h>
13669 struct block_device *bdev = NULL;
13670 bdev_physical_block_size(bdev);
13680 cat - <<_ACEOF >conftest.h
13685 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13686 echo "obj-m := conftest.o" >build
/Makefile
13688 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13689 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13690 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13691 (eval $ac_try) 2>&5
13693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13694 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13695 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13696 (eval $ac_try) 2>&5
13698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13699 test $ac_status = 0; }; }; then :
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13702 $as_echo "yes" >&6; }
13704 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
13708 $as_echo "$as_me: failed program was:" >&5
13709 sed 's/^/| /' conftest.
$ac_ext >&5
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13712 $as_echo "no" >&6; }
13720 EXTRA_KCFLAGS
="$tmp_flags"
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
13724 $as_echo_n "checking whether bio has bi_iter... " >&6; }
13727 cat confdefs.h
- <<_ACEOF >conftest.c
13730 #include <linux/bio.h>
13737 bio.bi_iter.bi_sector = 0;
13747 cat - <<_ACEOF >conftest.h
13752 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13753 echo "obj-m := conftest.o" >build
/Makefile
13755 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13756 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13757 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13758 (eval $ac_try) 2>&5
13760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13761 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13762 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13763 (eval $ac_try) 2>&5
13765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13766 test $ac_status = 0; }; }; then :
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13769 $as_echo "yes" >&6; }
13771 $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
13775 $as_echo "$as_me: failed program was:" >&5
13776 sed 's/^/| /' conftest.
$ac_ext >&5
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13779 $as_echo "no" >&6; }
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST is defined" >&5
13790 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
13793 cat confdefs.h
- <<_ACEOF >conftest.c
13796 #include <linux/bio.h>
13802 int flags __attribute__ ((unused));
13803 flags = (1 << BIO_RW_FAILFAST);
13813 cat - <<_ACEOF >conftest.h
13818 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13819 echo "obj-m := conftest.o" >build
/Makefile
13821 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13822 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13824 (eval $ac_try) 2>&5
13826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13827 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13829 (eval $ac_try) 2>&5
13831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13832 test $ac_status = 0; }; }; then :
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13835 $as_echo "yes" >&6; }
13837 $as_echo "#define HAVE_BIO_RW_FAILFAST 1" >>confdefs.h
13841 $as_echo "$as_me: failed program was:" >&5
13842 sed 's/^/| /' conftest.
$ac_ext >&5
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13845 $as_echo "no" >&6; }
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
13856 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
13859 cat confdefs.h
- <<_ACEOF >conftest.c
13862 #include <linux/bio.h>
13868 int flags __attribute__ ((unused));
13869 flags = ((1 << BIO_RW_FAILFAST_DEV) |
13870 (1 << BIO_RW_FAILFAST_TRANSPORT) |
13871 (1 << BIO_RW_FAILFAST_DRIVER));
13881 cat - <<_ACEOF >conftest.h
13886 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13887 echo "obj-m := conftest.o" >build
/Makefile
13889 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13890 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13891 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13892 (eval $ac_try) 2>&5
13894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13895 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13896 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13897 (eval $ac_try) 2>&5
13899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13900 test $ac_status = 0; }; }; then :
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13903 $as_echo "yes" >&6; }
13905 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
13909 $as_echo "$as_me: failed program was:" >&5
13910 sed 's/^/| /' conftest.
$ac_ext >&5
13912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13913 $as_echo "no" >&6; }
13923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
13924 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
13927 cat confdefs.h
- <<_ACEOF >conftest.c
13930 #include <linux/bio.h>
13936 int flags __attribute__ ((unused));
13937 flags = REQ_FAILFAST_MASK;
13947 cat - <<_ACEOF >conftest.h
13952 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13953 echo "obj-m := conftest.o" >build
/Makefile
13955 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13956 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13958 (eval $ac_try) 2>&5
13960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13961 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13962 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13963 (eval $ac_try) 2>&5
13965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13966 test $ac_status = 0; }; }; then :
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13969 $as_echo "yes" >&6; }
13971 $as_echo "#define HAVE_BIO_REQ_FAILFAST_MASK 1" >>confdefs.h
13975 $as_echo "$as_me: failed program was:" >&5
13976 sed 's/^/| /' conftest.
$ac_ext >&5
13978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13979 $as_echo "no" >&6; }
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 2 args" >&5
13990 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
13993 cat confdefs.h
- <<_ACEOF >conftest.c
13996 #include <linux/bio.h>
13998 void wanted_end_io(struct bio *bio, int x) { return; }
14000 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
14015 cat - <<_ACEOF >conftest.h
14020 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14021 echo "obj-m := conftest.o" >build
/Makefile
14023 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14024 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14026 (eval $ac_try) 2>&5
14028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14029 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14030 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14031 (eval $ac_try) 2>&5
14033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14034 test $ac_status = 0; }; }; then :
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14037 $as_echo "yes" >&6; }
14039 $as_echo "#define HAVE_2ARGS_BIO_END_IO_T 1" >>confdefs.h
14043 $as_echo "$as_me: failed program was:" >&5
14044 sed 's/^/| /' conftest.
$ac_ext >&5
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14047 $as_echo "no" >&6; }
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_SYNC is defined" >&5
14058 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
14061 cat confdefs.h
- <<_ACEOF >conftest.c
14064 #include <linux/bio.h>
14070 int flags __attribute__ ((unused));
14071 flags = BIO_RW_SYNC;
14081 cat - <<_ACEOF >conftest.h
14086 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14087 echo "obj-m := conftest.o" >build
/Makefile
14089 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14090 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14092 (eval $ac_try) 2>&5
14094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14095 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14097 (eval $ac_try) 2>&5
14099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14100 test $ac_status = 0; }; }; then :
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14103 $as_echo "yes" >&6; }
14105 $as_echo "#define HAVE_BIO_RW_SYNC 1" >>confdefs.h
14109 $as_echo "$as_me: failed program was:" >&5
14110 sed 's/^/| /' conftest.
$ac_ext >&5
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14113 $as_echo "no" >&6; }
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_SYNCIO is defined" >&5
14124 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
14127 cat confdefs.h
- <<_ACEOF >conftest.c
14130 #include <linux/bio.h>
14136 int flags __attribute__ ((unused));
14137 flags = BIO_RW_SYNCIO;
14147 cat - <<_ACEOF >conftest.h
14152 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14153 echo "obj-m := conftest.o" >build
/Makefile
14155 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14156 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14157 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14158 (eval $ac_try) 2>&5
14160 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14161 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14162 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14163 (eval $ac_try) 2>&5
14165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14166 test $ac_status = 0; }; }; then :
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14169 $as_echo "yes" >&6; }
14171 $as_echo "#define HAVE_BIO_RW_SYNCIO 1" >>confdefs.h
14175 $as_echo "$as_me: failed program was:" >&5
14176 sed 's/^/| /' conftest.
$ac_ext >&5
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14179 $as_echo "no" >&6; }
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_SYNC is defined" >&5
14190 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
14193 cat confdefs.h
- <<_ACEOF >conftest.c
14196 #include <linux/bio.h>
14202 int flags __attribute__ ((unused));
14213 cat - <<_ACEOF >conftest.h
14218 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14219 echo "obj-m := conftest.o" >build
/Makefile
14221 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14222 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14224 (eval $ac_try) 2>&5
14226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14227 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14228 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14229 (eval $ac_try) 2>&5
14231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14232 test $ac_status = 0; }; }; then :
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14235 $as_echo "yes" >&6; }
14237 $as_echo "#define HAVE_REQ_SYNC 1" >>confdefs.h
14241 $as_echo "$as_me: failed program was:" >&5
14242 sed 's/^/| /' conftest.
$ac_ext >&5
14244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14245 $as_echo "no" >&6; }
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_end_request() is available" >&5
14256 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
14257 tmp_flags
="$EXTRA_KCFLAGS"
14258 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14261 cat confdefs.h
- <<_ACEOF >conftest.c
14264 #include <linux/blkdev.h>
14270 struct request *req = NULL;
14271 (void) blk_end_request(req, 0, 0);
14281 cat - <<_ACEOF >conftest.h
14286 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14287 echo "obj-m := conftest.o" >build
/Makefile
14289 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14290 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14291 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14292 (eval $ac_try) 2>&5
14294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14295 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14296 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14297 (eval $ac_try) 2>&5
14299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14300 test $ac_status = 0; }; }; then :
14302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14303 $as_echo "yes" >&6; }
14305 $as_echo "#define HAVE_BLK_END_REQUEST 1" >>confdefs.h
14309 $as_echo "$as_me: failed program was:" >&5
14310 sed 's/^/| /' conftest.
$ac_ext >&5
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14313 $as_echo "no" >&6; }
14322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_end_request() is GPL-only" >&5
14323 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
14326 cat confdefs.h
- <<_ACEOF >conftest.c
14329 #include <linux/module.h>
14330 #include <linux/blkdev.h>
14332 MODULE_LICENSE("$ZFS_META_LICENSE");
14338 struct request *req = NULL;
14339 (void) blk_end_request(req, 0, 0);
14349 cat - <<_ACEOF >conftest.h
14354 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14355 echo "obj-m := conftest.o" >build
/Makefile
14357 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14358 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14359 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14360 (eval $ac_try) 2>&5
14362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14363 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14364 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14365 (eval $ac_try) 2>&5
14367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14368 test $ac_status = 0; }; }; then :
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14371 $as_echo "no" >&6; }
14374 $as_echo "$as_me: failed program was:" >&5
14375 sed 's/^/| /' conftest.
$ac_ext >&5
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14378 $as_echo "yes" >&6; }
14380 $as_echo "#define HAVE_BLK_END_REQUEST_GPL_ONLY 1" >>confdefs.h
14389 EXTRA_KCFLAGS
="$tmp_flags"
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
14393 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
14394 tmp_flags
="$EXTRA_KCFLAGS"
14395 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14398 cat confdefs.h
- <<_ACEOF >conftest.c
14401 #include <linux/blkdev.h>
14407 struct request_queue *q = NULL;
14408 (void) blk_queue_flush(q, REQ_FLUSH);
14418 cat - <<_ACEOF >conftest.h
14423 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14424 echo "obj-m := conftest.o" >build
/Makefile
14426 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14427 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14429 (eval $ac_try) 2>&5
14431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14432 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14434 (eval $ac_try) 2>&5
14436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14437 test $ac_status = 0; }; }; then :
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14440 $as_echo "yes" >&6; }
14442 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
14446 $as_echo "$as_me: failed program was:" >&5
14447 sed 's/^/| /' conftest.
$ac_ext >&5
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14450 $as_echo "no" >&6; }
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
14460 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
14463 cat confdefs.h
- <<_ACEOF >conftest.c
14466 #include <linux/module.h>
14467 #include <linux/blkdev.h>
14469 MODULE_LICENSE("$ZFS_META_LICENSE");
14475 struct request_queue *q = NULL;
14476 (void) blk_queue_flush(q, REQ_FLUSH);
14486 cat - <<_ACEOF >conftest.h
14491 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14492 echo "obj-m := conftest.o" >build
/Makefile
14494 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14495 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14497 (eval $ac_try) 2>&5
14499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14500 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14501 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14502 (eval $ac_try) 2>&5
14504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14505 test $ac_status = 0; }; }; then :
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14508 $as_echo "no" >&6; }
14511 $as_echo "$as_me: failed program was:" >&5
14512 sed 's/^/| /' conftest.
$ac_ext >&5
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14515 $as_echo "yes" >&6; }
14517 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
14526 EXTRA_KCFLAGS
="$tmp_flags"
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
14530 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
14531 tmp_flags
="$EXTRA_KCFLAGS"
14532 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14535 cat confdefs.h
- <<_ACEOF >conftest.c
14538 #include <linux/blkdev.h>
14544 struct request_queue *q = NULL;
14545 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
14555 cat - <<_ACEOF >conftest.h
14560 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14561 echo "obj-m := conftest.o" >build
/Makefile
14563 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14564 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14565 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14566 (eval $ac_try) 2>&5
14568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14569 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14570 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14571 (eval $ac_try) 2>&5
14573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14574 test $ac_status = 0; }; }; then :
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14577 $as_echo "yes" >&6; }
14579 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
14583 $as_echo "$as_me: failed program was:" >&5
14584 sed 's/^/| /' conftest.
$ac_ext >&5
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14587 $as_echo "no" >&6; }
14595 EXTRA_KCFLAGS
="$tmp_flags"
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
14599 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
14600 tmp_flags
="$EXTRA_KCFLAGS"
14601 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14604 cat confdefs.h
- <<_ACEOF >conftest.c
14607 #include <linux/blkdev.h>
14613 struct request_queue *q = NULL;
14614 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
14624 cat - <<_ACEOF >conftest.h
14629 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14630 echo "obj-m := conftest.o" >build
/Makefile
14632 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14633 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14635 (eval $ac_try) 2>&5
14637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14638 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14639 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14640 (eval $ac_try) 2>&5
14642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14643 test $ac_status = 0; }; }; then :
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14646 $as_echo "yes" >&6; }
14648 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
14652 $as_echo "$as_me: failed program was:" >&5
14653 sed 's/^/| /' conftest.
$ac_ext >&5
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14656 $as_echo "no" >&6; }
14664 EXTRA_KCFLAGS
="$tmp_flags"
14667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_physical_block_size() is available" >&5
14668 $as_echo_n "checking whether blk_queue_physical_block_size() is available... " >&6; }
14669 tmp_flags
="$EXTRA_KCFLAGS"
14670 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14673 cat confdefs.h
- <<_ACEOF >conftest.c
14676 #include <linux/blkdev.h>
14682 struct request_queue *q = NULL;
14683 unsigned short block_size = 1;
14684 (void) blk_queue_physical_block_size(q, block_size);
14694 cat - <<_ACEOF >conftest.h
14699 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14700 echo "obj-m := conftest.o" >build
/Makefile
14702 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14703 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14705 (eval $ac_try) 2>&5
14707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14708 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14709 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14710 (eval $ac_try) 2>&5
14712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14713 test $ac_status = 0; }; }; then :
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14716 $as_echo "yes" >&6; }
14718 $as_echo "#define HAVE_BLK_QUEUE_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
14722 $as_echo "$as_me: failed program was:" >&5
14723 sed 's/^/| /' conftest.
$ac_ext >&5
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14726 $as_echo "no" >&6; }
14734 EXTRA_KCFLAGS
="$tmp_flags"
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_io_opt() is available" >&5
14738 $as_echo_n "checking whether blk_queue_io_opt() is available... " >&6; }
14739 tmp_flags
="$EXTRA_KCFLAGS"
14740 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14743 cat confdefs.h
- <<_ACEOF >conftest.c
14746 #include <linux/blkdev.h>
14752 struct request_queue *q = NULL;
14753 unsigned int opt = 1;
14754 (void) blk_queue_io_opt(q, opt);
14764 cat - <<_ACEOF >conftest.h
14769 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14770 echo "obj-m := conftest.o" >build
/Makefile
14772 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14773 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14775 (eval $ac_try) 2>&5
14777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14778 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14779 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14780 (eval $ac_try) 2>&5
14782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14783 test $ac_status = 0; }; }; then :
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14786 $as_echo "yes" >&6; }
14788 $as_echo "#define HAVE_BLK_QUEUE_IO_OPT 1" >>confdefs.h
14792 $as_echo "$as_me: failed program was:" >&5
14793 sed 's/^/| /' conftest.
$ac_ext >&5
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14796 $as_echo "no" >&6; }
14804 EXTRA_KCFLAGS
="$tmp_flags"
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_nonrot() is available" >&5
14808 $as_echo_n "checking whether blk_queue_nonrot() is available... " >&6; }
14809 tmp_flags
="$EXTRA_KCFLAGS"
14810 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14813 cat confdefs.h
- <<_ACEOF >conftest.c
14816 #include <linux/blkdev.h>
14822 struct request_queue *q = NULL;
14823 (void) blk_queue_nonrot(q);
14833 cat - <<_ACEOF >conftest.h
14838 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14839 echo "obj-m := conftest.o" >build
/Makefile
14841 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14842 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14843 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14844 (eval $ac_try) 2>&5
14846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14847 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14848 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14849 (eval $ac_try) 2>&5
14851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14852 test $ac_status = 0; }; }; then :
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14855 $as_echo "yes" >&6; }
14857 $as_echo "#define HAVE_BLK_QUEUE_NONROT 1" >>confdefs.h
14861 $as_echo "$as_me: failed program was:" >&5
14862 sed 's/^/| /' conftest.
$ac_ext >&5
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14865 $as_echo "no" >&6; }
14873 EXTRA_KCFLAGS
="$tmp_flags"
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_discard() is available" >&5
14877 $as_echo_n "checking whether blk_queue_discard() is available... " >&6; }
14878 tmp_flags
="$EXTRA_KCFLAGS"
14879 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14882 cat confdefs.h
- <<_ACEOF >conftest.c
14885 #include <linux/blkdev.h>
14891 struct request_queue *q = NULL;
14892 (void) blk_queue_discard(q);
14902 cat - <<_ACEOF >conftest.h
14907 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14908 echo "obj-m := conftest.o" >build
/Makefile
14910 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14911 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14912 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14913 (eval $ac_try) 2>&5
14915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14916 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14917 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14918 (eval $ac_try) 2>&5
14920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14921 test $ac_status = 0; }; }; then :
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14924 $as_echo "yes" >&6; }
14926 $as_echo "#define HAVE_BLK_QUEUE_DISCARD 1" >>confdefs.h
14930 $as_echo "$as_me: failed program was:" >&5
14931 sed 's/^/| /' conftest.
$ac_ext >&5
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14934 $as_echo "no" >&6; }
14942 EXTRA_KCFLAGS
="$tmp_flags"
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_fetch_request() is available" >&5
14946 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
14947 tmp_flags
="$EXTRA_KCFLAGS"
14948 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14951 cat confdefs.h
- <<_ACEOF >conftest.c
14954 #include <linux/blkdev.h>
14960 struct request_queue *q = NULL;
14961 (void) blk_fetch_request(q);
14971 cat - <<_ACEOF >conftest.h
14976 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14977 echo "obj-m := conftest.o" >build
/Makefile
14979 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14980 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14981 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14982 (eval $ac_try) 2>&5
14984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14985 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14987 (eval $ac_try) 2>&5
14989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14990 test $ac_status = 0; }; }; then :
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14993 $as_echo "yes" >&6; }
14995 $as_echo "#define HAVE_BLK_FETCH_REQUEST 1" >>confdefs.h
14999 $as_echo "$as_me: failed program was:" >&5
15000 sed 's/^/| /' conftest.
$ac_ext >&5
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15003 $as_echo "no" >&6; }
15011 EXTRA_KCFLAGS
="$tmp_flags"
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_requeue_request() is available" >&5
15015 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
15016 tmp_flags
="$EXTRA_KCFLAGS"
15017 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15020 cat confdefs.h
- <<_ACEOF >conftest.c
15023 #include <linux/blkdev.h>
15029 struct request_queue *q = NULL;
15030 struct request *req = NULL;
15031 blk_requeue_request(q, req);
15041 cat - <<_ACEOF >conftest.h
15046 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15047 echo "obj-m := conftest.o" >build
/Makefile
15049 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15050 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15052 (eval $ac_try) 2>&5
15054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15055 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15057 (eval $ac_try) 2>&5
15059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15060 test $ac_status = 0; }; }; then :
15062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15063 $as_echo "yes" >&6; }
15065 $as_echo "#define HAVE_BLK_REQUEUE_REQUEST 1" >>confdefs.h
15069 $as_echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.
$ac_ext >&5
15072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15073 $as_echo "no" >&6; }
15081 EXTRA_KCFLAGS
="$tmp_flags"
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_bytes() is available" >&5
15085 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
15086 tmp_flags
="$EXTRA_KCFLAGS"
15087 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15090 cat confdefs.h
- <<_ACEOF >conftest.c
15093 #include <linux/blkdev.h>
15099 struct request *req = NULL;
15100 (void) blk_rq_bytes(req);
15110 cat - <<_ACEOF >conftest.h
15115 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15116 echo "obj-m := conftest.o" >build
/Makefile
15118 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15119 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15121 (eval $ac_try) 2>&5
15123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15124 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15126 (eval $ac_try) 2>&5
15128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15129 test $ac_status = 0; }; }; then :
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15132 $as_echo "yes" >&6; }
15134 $as_echo "#define HAVE_BLK_RQ_BYTES 1" >>confdefs.h
15138 $as_echo "$as_me: failed program was:" >&5
15139 sed 's/^/| /' conftest.
$ac_ext >&5
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15142 $as_echo "no" >&6; }
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_bytes() is GPL-only" >&5
15152 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
15155 cat confdefs.h
- <<_ACEOF >conftest.c
15158 #include <linux/module.h>
15159 #include <linux/blkdev.h>
15161 MODULE_LICENSE("$ZFS_META_LICENSE");
15167 struct request *req = NULL;
15168 (void) blk_rq_bytes(req);
15178 cat - <<_ACEOF >conftest.h
15183 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15184 echo "obj-m := conftest.o" >build
/Makefile
15186 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15187 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15188 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15189 (eval $ac_try) 2>&5
15191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15192 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15193 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15194 (eval $ac_try) 2>&5
15196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15197 test $ac_status = 0; }; }; then :
15199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15200 $as_echo "no" >&6; }
15203 $as_echo "$as_me: failed program was:" >&5
15204 sed 's/^/| /' conftest.
$ac_ext >&5
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15207 $as_echo "yes" >&6; }
15209 $as_echo "#define HAVE_BLK_RQ_BYTES_GPL_ONLY 1" >>confdefs.h
15218 EXTRA_KCFLAGS
="$tmp_flags"
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_pos() is available" >&5
15222 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
15223 tmp_flags
="$EXTRA_KCFLAGS"
15224 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15227 cat confdefs.h
- <<_ACEOF >conftest.c
15230 #include <linux/blkdev.h>
15236 struct request *req = NULL;
15237 (void) blk_rq_pos(req);
15247 cat - <<_ACEOF >conftest.h
15252 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15253 echo "obj-m := conftest.o" >build
/Makefile
15255 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15256 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15257 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15258 (eval $ac_try) 2>&5
15260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15261 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15262 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15263 (eval $ac_try) 2>&5
15265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15266 test $ac_status = 0; }; }; then :
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15269 $as_echo "yes" >&6; }
15271 $as_echo "#define HAVE_BLK_RQ_POS 1" >>confdefs.h
15275 $as_echo "$as_me: failed program was:" >&5
15276 sed 's/^/| /' conftest.
$ac_ext >&5
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15279 $as_echo "no" >&6; }
15287 EXTRA_KCFLAGS
="$tmp_flags"
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_sectors() is available" >&5
15291 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
15292 tmp_flags
="$EXTRA_KCFLAGS"
15293 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15296 cat confdefs.h
- <<_ACEOF >conftest.c
15299 #include <linux/blkdev.h>
15305 struct request *req = NULL;
15306 (void) blk_rq_sectors(req);
15316 cat - <<_ACEOF >conftest.h
15321 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15322 echo "obj-m := conftest.o" >build
/Makefile
15324 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15325 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15326 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15327 (eval $ac_try) 2>&5
15329 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15330 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15332 (eval $ac_try) 2>&5
15334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15335 test $ac_status = 0; }; }; then :
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15338 $as_echo "yes" >&6; }
15340 $as_echo "#define HAVE_BLK_RQ_SECTORS 1" >>confdefs.h
15344 $as_echo "$as_me: failed program was:" >&5
15345 sed 's/^/| /' conftest.
$ac_ext >&5
15347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15348 $as_echo "no" >&6; }
15356 EXTRA_KCFLAGS
="$tmp_flags"
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
15360 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
15361 tmp_flags
="$EXTRA_KCFLAGS"
15362 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15365 cat confdefs.h
- <<_ACEOF >conftest.c
15368 #include <linux/blkdev.h>
15374 struct gendisk *disk = NULL;
15375 (void) get_disk_ro(disk);
15385 cat - <<_ACEOF >conftest.h
15390 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15391 echo "obj-m := conftest.o" >build
/Makefile
15393 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15394 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15395 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15396 (eval $ac_try) 2>&5
15398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15399 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15401 (eval $ac_try) 2>&5
15403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15404 test $ac_status = 0; }; }; then :
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15407 $as_echo "yes" >&6; }
15409 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
15413 $as_echo "$as_me: failed program was:" >&5
15414 sed 's/^/| /' conftest.
$ac_ext >&5
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15417 $as_echo "no" >&6; }
15425 EXTRA_KCFLAGS
="$tmp_flags"
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
15428 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
15432 cat confdefs.h
- <<_ACEOF >conftest.c
15435 #include <linux/genhd.h>
15441 get_gendisk(0, NULL);
15451 cat - <<_ACEOF >conftest.h
15456 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15457 echo "obj-m := conftest.o" >build
/Makefile
15459 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15460 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15461 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15462 (eval $ac_try) 2>&5
15464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15465 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15466 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15467 (eval $ac_try) 2>&5
15469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15470 test $ac_status = 0; }; }; then :
15473 $as_echo "$as_me: failed program was:" >&5
15474 sed 's/^/| /' conftest.
$ac_ext >&5
15482 if test $rc -ne 0; then :
15484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15485 $as_echo "no" >&6; }
15488 if test "x$enable_linux_builtin" != xyes
; then
15490 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
15491 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15493 if test $rc -ne 0; then
15495 for file in block
/genhd.c
; do
15496 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
15497 "$LINUX/$file" 2>/dev
/null
15499 if test $rc -eq 0; then
15504 if test $export -eq 0; then :
15514 if test $rc -ne 0; then :
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15517 $as_echo "no" >&6; }
15521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15522 $as_echo "yes" >&6; }
15524 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
15532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rq_is_sync() is available" >&5
15533 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
15534 tmp_flags
="$EXTRA_KCFLAGS"
15535 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15538 cat confdefs.h
- <<_ACEOF >conftest.c
15541 #include <linux/blkdev.h>
15547 struct request *req = NULL;
15548 (void) rq_is_sync(req);
15558 cat - <<_ACEOF >conftest.h
15563 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15564 echo "obj-m := conftest.o" >build
/Makefile
15566 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15567 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15569 (eval $ac_try) 2>&5
15571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15572 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15573 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15574 (eval $ac_try) 2>&5
15576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15577 test $ac_status = 0; }; }; then :
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15580 $as_echo "yes" >&6; }
15582 $as_echo "#define HAVE_RQ_IS_SYNC 1" >>confdefs.h
15586 $as_echo "$as_me: failed program was:" >&5
15587 sed 's/^/| /' conftest.
$ac_ext >&5
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15590 $as_echo "no" >&6; }
15598 EXTRA_KCFLAGS
="$tmp_flags"
15601 tmp_flags
="$EXTRA_KCFLAGS"
15602 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
15604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rq_for_each_segment() wants bio_vec *" >&5
15605 $as_echo_n "checking whether rq_for_each_segment() wants bio_vec *... " >&6; }
15608 cat confdefs.h
- <<_ACEOF >conftest.c
15611 #include <linux/blkdev.h>
15617 struct bio_vec *bv;
15618 struct req_iterator iter;
15619 struct request *req = NULL;
15620 rq_for_each_segment(bv, req, iter) { }
15630 cat - <<_ACEOF >conftest.h
15635 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15636 echo "obj-m := conftest.o" >build
/Makefile
15638 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15639 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15641 (eval $ac_try) 2>&5
15643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15644 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15646 (eval $ac_try) 2>&5
15648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15649 test $ac_status = 0; }; }; then :
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15652 $as_echo "yes" >&6; }
15654 $as_echo "#define HAVE_RQ_FOR_EACH_SEGMENT 1" >>confdefs.h
15657 $as_echo "#define HAVE_RQ_FOR_EACH_SEGMENT_BVP 1" >>confdefs.h
15661 $as_echo "$as_me: failed program was:" >&5
15662 sed 's/^/| /' conftest.
$ac_ext >&5
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15665 $as_echo "no" >&6; }
15674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rq_for_each_segment() wants bio_vec" >&5
15675 $as_echo_n "checking whether rq_for_each_segment() wants bio_vec... " >&6; }
15678 cat confdefs.h
- <<_ACEOF >conftest.c
15681 #include <linux/blkdev.h>
15688 struct req_iterator iter;
15689 struct request *req = NULL;
15690 rq_for_each_segment(bv, req, iter) { }
15700 cat - <<_ACEOF >conftest.h
15705 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15706 echo "obj-m := conftest.o" >build
/Makefile
15708 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15709 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15711 (eval $ac_try) 2>&5
15713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15714 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15716 (eval $ac_try) 2>&5
15718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15719 test $ac_status = 0; }; }; then :
15721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15722 $as_echo "yes" >&6; }
15724 $as_echo "#define HAVE_RQ_FOR_EACH_SEGMENT 1" >>confdefs.h
15727 $as_echo "#define HAVE_RQ_FOR_EACH_SEGMENT_BV 1" >>confdefs.h
15731 $as_echo "$as_me: failed program was:" >&5
15732 sed 's/^/| /' conftest.
$ac_ext >&5
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15735 $as_echo "no" >&6; }
15744 EXTRA_KCFLAGS
="$tmp_flags"
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
15748 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
15751 cat confdefs.h
- <<_ACEOF >conftest.c
15754 #include <linux/blkdev.h>
15760 struct queue_limits ql __attribute__ ((unused));
15762 ql.discard_granularity = 0;
15772 cat - <<_ACEOF >conftest.h
15777 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15778 echo "obj-m := conftest.o" >build
/Makefile
15780 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15781 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15783 (eval $ac_try) 2>&5
15785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15786 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15788 (eval $ac_try) 2>&5
15790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15791 test $ac_status = 0; }; }; then :
15793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15794 $as_echo "yes" >&6; }
15796 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
15800 $as_echo "$as_me: failed program was:" >&5
15801 sed 's/^/| /' conftest.
$ac_ext >&5
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15804 $as_echo "no" >&6; }
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_hander" >&5
15814 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
15817 cat confdefs.h
- <<_ACEOF >conftest.c
15820 #include <linux/fs.h>
15821 #include <linux/xattr.h>
15823 const struct xattr_handler xattr_test_handler = {
15829 const struct xattr_handler *xattr_handlers[] = {
15830 &xattr_test_handler,
15833 const struct super_block sb __attribute__ ((unused)) = {
15834 .s_xattr = xattr_handlers,
15850 cat - <<_ACEOF >conftest.h
15855 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15856 echo "obj-m := conftest.o" >build
/Makefile
15858 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15859 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15860 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15861 (eval $ac_try) 2>&5
15863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15864 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15866 (eval $ac_try) 2>&5
15868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15869 test $ac_status = 0; }; }; then :
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15872 $as_echo "yes" >&6; }
15874 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
15878 $as_echo "$as_me: failed program was:" >&5
15879 sed 's/^/| /' conftest.
$ac_ext >&5
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15882 $as_echo "no" >&6; }
15892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
15893 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
15896 cat confdefs.h
- <<_ACEOF >conftest.c
15899 #include <linux/xattr.h>
15901 int get(struct dentry *dentry, const char *name,
15902 void *buffer, size_t size, int handler_flags) { return 0; }
15903 static const struct xattr_handler
15904 xops __attribute__ ((unused)) = {
15921 cat - <<_ACEOF >conftest.h
15926 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15927 echo "obj-m := conftest.o" >build
/Makefile
15929 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15930 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15931 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15932 (eval $ac_try) 2>&5
15934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15935 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15937 (eval $ac_try) 2>&5
15939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15940 test $ac_status = 0; }; }; then :
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15943 $as_echo "yes" >&6; }
15945 $as_echo "#define HAVE_DENTRY_XATTR_GET 1" >>confdefs.h
15949 $as_echo "$as_me: failed program was:" >&5
15950 sed 's/^/| /' conftest.
$ac_ext >&5
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15953 $as_echo "no" >&6; }
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
15964 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
15967 cat confdefs.h
- <<_ACEOF >conftest.c
15970 #include <linux/xattr.h>
15972 int set(struct dentry *dentry, const char *name,
15973 const void *buffer, size_t size, int flags,
15974 int handler_flags) { return 0; }
15975 static const struct xattr_handler
15976 xops __attribute__ ((unused)) = {
15993 cat - <<_ACEOF >conftest.h
15998 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15999 echo "obj-m := conftest.o" >build
/Makefile
16001 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16002 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16004 (eval $ac_try) 2>&5
16006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16007 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16008 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16009 (eval $ac_try) 2>&5
16011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16012 test $ac_status = 0; }; }; then :
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16015 $as_echo "yes" >&6; }
16017 $as_echo "#define HAVE_DENTRY_XATTR_SET 1" >>confdefs.h
16021 $as_echo "$as_me: failed program was:" >&5
16022 sed 's/^/| /' conftest.
$ac_ext >&5
16024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16025 $as_echo "no" >&6; }
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
16036 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
16039 cat confdefs.h
- <<_ACEOF >conftest.c
16042 #include <linux/xattr.h>
16044 size_t list(struct dentry *dentry, char *list, size_t list_size,
16045 const char *name, size_t name_len, int handler_flags)
16047 static const struct xattr_handler
16048 xops __attribute__ ((unused)) = {
16065 cat - <<_ACEOF >conftest.h
16070 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16071 echo "obj-m := conftest.o" >build
/Makefile
16073 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16074 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16075 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16076 (eval $ac_try) 2>&5
16078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16079 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16080 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16081 (eval $ac_try) 2>&5
16083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16084 test $ac_status = 0; }; }; then :
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16087 $as_echo "yes" >&6; }
16089 $as_echo "#define HAVE_DENTRY_XATTR_LIST 1" >>confdefs.h
16093 $as_echo "$as_me: failed program was:" >&5
16094 sed 's/^/| /' conftest.
$ac_ext >&5
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16097 $as_echo "no" >&6; }
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
16108 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
16111 cat confdefs.h
- <<_ACEOF >conftest.c
16114 #include <linux/fs.h>
16120 struct inode *ip = NULL;
16121 (void) inode_owner_or_capable(ip);
16131 cat - <<_ACEOF >conftest.h
16136 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16137 echo "obj-m := conftest.o" >build
/Makefile
16139 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16140 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16141 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16142 (eval $ac_try) 2>&5
16144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16145 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16146 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16147 (eval $ac_try) 2>&5
16149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16150 test $ac_status = 0; }; }; then :
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16153 $as_echo "yes" >&6; }
16155 $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
16159 $as_echo "$as_me: failed program was:" >&5
16160 sed 's/^/| /' conftest.
$ac_ext >&5
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16163 $as_echo "no" >&6; }
16164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
16165 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
16168 cat confdefs.h
- <<_ACEOF >conftest.c
16171 #include <linux/fs.h>
16172 #include <linux/sched.h>
16178 struct inode *ip = NULL;
16179 (void) is_owner_or_cap(ip);
16189 cat - <<_ACEOF >conftest.h
16194 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16195 echo "obj-m := conftest.o" >build
/Makefile
16197 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16198 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16199 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16200 (eval $ac_try) 2>&5
16202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16203 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16205 (eval $ac_try) 2>&5
16207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16208 test $ac_status = 0; }; }; then :
16210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16211 $as_echo "yes" >&6; }
16213 $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
16217 $as_echo "$as_me: failed program was:" >&5
16218 sed 's/^/| /' conftest.
$ac_ext >&5
16220 as_fn_error $?
"no - Please file a bug report at
16221 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
16239 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
16242 cat confdefs.h
- <<_ACEOF >conftest.c
16245 #include <linux/cred.h>
16246 #include <linux/fs.h>
16247 #include <linux/posix_acl_xattr.h>
16253 posix_acl_from_xattr(&init_user_ns, NULL, 0);
16263 cat - <<_ACEOF >conftest.h
16268 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16269 echo "obj-m := conftest.o" >build
/Makefile
16271 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16272 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16273 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16274 (eval $ac_try) 2>&5
16276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16277 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16278 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16279 (eval $ac_try) 2>&5
16281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16282 test $ac_status = 0; }; }; then :
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16285 $as_echo "yes" >&6; }
16287 $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
16291 $as_echo "$as_me: failed program was:" >&5
16292 sed 's/^/| /' conftest.
$ac_ext >&5
16294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16295 $as_echo "no" >&6; }
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
16306 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
16309 cat confdefs.h
- <<_ACEOF >conftest.c
16312 #include <linux/cred.h>
16313 #include <linux/fs.h>
16314 #include <linux/posix_acl.h>
16320 struct posix_acl* tmp = posix_acl_alloc(1, 0);
16321 posix_acl_release(tmp);
16331 cat - <<_ACEOF >conftest.h
16336 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16337 echo "obj-m := conftest.o" >build
/Makefile
16339 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16340 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16342 (eval $ac_try) 2>&5
16344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16345 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16347 (eval $ac_try) 2>&5
16349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16350 test $ac_status = 0; }; }; then :
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16353 $as_echo "yes" >&6; }
16355 $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
16359 $as_echo "$as_me: failed program was:" >&5
16360 sed 's/^/| /' conftest.
$ac_ext >&5
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16363 $as_echo "no" >&6; }
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
16373 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
16376 cat confdefs.h
- <<_ACEOF >conftest.c
16379 #include <linux/cred.h>
16380 #include <linux/fs.h>
16381 #include <linux/posix_acl.h>
16383 MODULE_LICENSE("$ZFS_META_LICENSE");
16389 struct posix_acl* tmp = posix_acl_alloc(1, 0);
16390 posix_acl_release(tmp);
16400 cat - <<_ACEOF >conftest.h
16405 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16406 echo "obj-m := conftest.o" >build
/Makefile
16408 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16409 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16411 (eval $ac_try) 2>&5
16413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16414 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16416 (eval $ac_try) 2>&5
16418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16419 test $ac_status = 0; }; }; then :
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16422 $as_echo "no" >&6; }
16425 $as_echo "$as_me: failed program was:" >&5
16426 sed 's/^/| /' conftest.
$ac_ext >&5
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16429 $as_echo "yes" >&6; }
16431 $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
16443 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
16446 cat confdefs.h
- <<_ACEOF >conftest.c
16449 #include <linux/fs.h>
16450 #include <linux/posix_acl.h>
16456 posix_acl_chmod(NULL, 0, 0)
16466 cat - <<_ACEOF >conftest.h
16471 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16472 echo "obj-m := conftest.o" >build
/Makefile
16474 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16475 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16476 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16477 (eval $ac_try) 2>&5
16479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16480 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16481 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16482 (eval $ac_try) 2>&5
16484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16485 test $ac_status = 0; }; }; then :
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16488 $as_echo "yes" >&6; }
16490 $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
16494 $as_echo "$as_me: failed program was:" >&5
16495 sed 's/^/| /' conftest.
$ac_ext >&5
16497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16498 $as_echo "no" >&6; }
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
16508 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
16511 cat confdefs.h
- <<_ACEOF >conftest.c
16514 #include <linux/fs.h>
16515 #include <linux/posix_acl.h>
16521 __posix_acl_chmod(NULL, 0, 0)
16531 cat - <<_ACEOF >conftest.h
16536 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16537 echo "obj-m := conftest.o" >build
/Makefile
16539 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16540 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16541 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16542 (eval $ac_try) 2>&5
16544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16545 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16547 (eval $ac_try) 2>&5
16549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16550 test $ac_status = 0; }; }; then :
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16553 $as_echo "yes" >&6; }
16555 $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
16559 $as_echo "$as_me: failed program was:" >&5
16560 sed 's/^/| /' conftest.
$ac_ext >&5
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16563 $as_echo "no" >&6; }
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode has i_acl and i_default_acl" >&5
16574 $as_echo_n "checking whether inode has i_acl and i_default_acl... " >&6; }
16577 cat confdefs.h
- <<_ACEOF >conftest.c
16580 #include <linux/fs.h>
16588 ino.i_default_acl = NULL;
16598 cat - <<_ACEOF >conftest.h
16603 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16604 echo "obj-m := conftest.o" >build
/Makefile
16606 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16607 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16609 (eval $ac_try) 2>&5
16611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16612 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16614 (eval $ac_try) 2>&5
16616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16617 test $ac_status = 0; }; }; then :
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16620 $as_echo "yes" >&6; }
16622 $as_echo "#define HAVE_POSIX_ACL_CACHING 1" >>confdefs.h
16626 $as_echo "$as_me: failed program was:" >&5
16627 sed 's/^/| /' conftest.
$ac_ext >&5
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16630 $as_echo "no" >&6; }
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
16641 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
16644 cat confdefs.h
- <<_ACEOF >conftest.c
16647 #include <linux/fs.h>
16648 #include <linux/posix_acl.h>
16655 posix_acl_equiv_mode(NULL,&tmp);
16665 cat - <<_ACEOF >conftest.h
16670 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16671 echo "obj-m := conftest.o" >build
/Makefile
16673 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16674 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16676 (eval $ac_try) 2>&5
16678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16679 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16681 (eval $ac_try) 2>&5
16683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16684 test $ac_status = 0; }; }; then :
16686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16687 $as_echo "yes" >&6; }
16689 $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
16693 $as_echo "$as_me: failed program was:" >&5
16694 sed 's/^/| /' conftest.
$ac_ext >&5
16696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16697 $as_echo "no" >&6; }
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
16708 $as_echo_n "checking whether iops->permission() exists... " >&6; }
16711 cat confdefs.h
- <<_ACEOF >conftest.c
16714 #include <linux/fs.h>
16716 int permission_fn(struct inode *inode, int mask) { return 0; }
16718 static const struct inode_operations
16719 iops __attribute__ ((unused)) = {
16720 .permission = permission_fn,
16736 cat - <<_ACEOF >conftest.h
16741 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16742 echo "obj-m := conftest.o" >build
/Makefile
16744 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16745 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16747 (eval $ac_try) 2>&5
16749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16750 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16752 (eval $ac_try) 2>&5
16754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16755 test $ac_status = 0; }; }; then :
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16758 $as_echo "yes" >&6; }
16760 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
16764 $as_echo "$as_me: failed program was:" >&5
16765 sed 's/^/| /' conftest.
$ac_ext >&5
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16768 $as_echo "no" >&6; }
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
16779 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
16782 cat confdefs.h
- <<_ACEOF >conftest.c
16785 #include <linux/fs.h>
16787 int permission_fn(struct inode *inode, int mask,
16788 struct nameidata *nd) { return 0; }
16790 static const struct inode_operations
16791 iops __attribute__ ((unused)) = {
16792 .permission = permission_fn,
16808 cat - <<_ACEOF >conftest.h
16813 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16814 echo "obj-m := conftest.o" >build
/Makefile
16816 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16817 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16818 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16819 (eval $ac_try) 2>&5
16821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16822 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16823 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16824 (eval $ac_try) 2>&5
16826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16827 test $ac_status = 0; }; }; then :
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16830 $as_echo "yes" >&6; }
16832 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
16835 $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
16839 $as_echo "$as_me: failed program was:" >&5
16840 sed 's/^/| /' conftest.
$ac_ext >&5
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16843 $as_echo "no" >&6; }
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
16854 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
16857 cat confdefs.h
- <<_ACEOF >conftest.c
16860 #include <linux/fs.h>
16862 int check_acl_fn(struct inode *inode, int mask) { return 0; }
16864 static const struct inode_operations
16865 iops __attribute__ ((unused)) = {
16866 .check_acl = check_acl_fn,
16882 cat - <<_ACEOF >conftest.h
16887 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16888 echo "obj-m := conftest.o" >build
/Makefile
16890 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16891 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16892 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16893 (eval $ac_try) 2>&5
16895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16896 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16897 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16898 (eval $ac_try) 2>&5
16900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16901 test $ac_status = 0; }; }; then :
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16904 $as_echo "yes" >&6; }
16906 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
16910 $as_echo "$as_me: failed program was:" >&5
16911 sed 's/^/| /' conftest.
$ac_ext >&5
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16914 $as_echo "no" >&6; }
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
16925 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
16928 cat confdefs.h
- <<_ACEOF >conftest.c
16931 #include <linux/fs.h>
16933 int check_acl_fn(struct inode *inode, int mask,
16934 unsigned int flags) { return 0; }
16936 static const struct inode_operations
16937 iops __attribute__ ((unused)) = {
16938 .check_acl = check_acl_fn,
16954 cat - <<_ACEOF >conftest.h
16959 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16960 echo "obj-m := conftest.o" >build
/Makefile
16962 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16963 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16965 (eval $ac_try) 2>&5
16967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16968 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16970 (eval $ac_try) 2>&5
16972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16973 test $ac_status = 0; }; }; then :
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16976 $as_echo "yes" >&6; }
16978 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
16981 $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
16985 $as_echo "$as_me: failed program was:" >&5
16986 sed 's/^/| /' conftest.
$ac_ext >&5
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16989 $as_echo "no" >&6; }
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
17000 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
17003 cat confdefs.h
- <<_ACEOF >conftest.c
17006 #include <linux/fs.h>
17008 struct posix_acl *get_acl_fn(struct inode *inode, int type)
17011 static const struct inode_operations
17012 iops __attribute__ ((unused)) = {
17013 .get_acl = get_acl_fn,
17029 cat - <<_ACEOF >conftest.h
17034 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17035 echo "obj-m := conftest.o" >build
/Makefile
17037 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17038 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17040 (eval $ac_try) 2>&5
17042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17043 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17044 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17045 (eval $ac_try) 2>&5
17047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17048 test $ac_status = 0; }; }; then :
17050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17051 $as_echo "yes" >&6; }
17053 $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
17057 $as_echo "$as_me: failed program was:" >&5
17058 sed 's/^/| /' conftest.
$ac_ext >&5
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17061 $as_echo "no" >&6; }
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_umask exists" >&5
17072 $as_echo_n "checking whether current_umask exists... " >&6; }
17075 cat confdefs.h
- <<_ACEOF >conftest.c
17078 #include <linux/fs.h>
17094 cat - <<_ACEOF >conftest.h
17099 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17100 echo "obj-m := conftest.o" >build
/Makefile
17102 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17103 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17105 (eval $ac_try) 2>&5
17107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17108 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17109 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17110 (eval $ac_try) 2>&5
17112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17113 test $ac_status = 0; }; }; then :
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17116 $as_echo "yes" >&6; }
17118 $as_echo "#define HAVE_CURRENT_UMASK 1" >>confdefs.h
17122 $as_echo "$as_me: failed program was:" >&5
17123 sed 's/^/| /' conftest.
$ac_ext >&5
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17126 $as_echo "no" >&6; }
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
17137 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
17141 cat confdefs.h
- <<_ACEOF >conftest.c
17144 #include <linux/fs.h>
17146 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
17147 static struct super_operations sops __attribute__ ((unused)) = {
17148 .show_options = show_options,
17164 cat - <<_ACEOF >conftest.h
17169 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17170 echo "obj-m := conftest.o" >build
/Makefile
17172 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17173 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17174 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17175 (eval $ac_try) 2>&5
17177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17178 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17179 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17180 (eval $ac_try) 2>&5
17182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17183 test $ac_status = 0; }; }; then :
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17186 $as_echo "yes" >&6; }
17188 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
17192 $as_echo "$as_me: failed program was:" >&5
17193 sed 's/^/| /' conftest.
$ac_ext >&5
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17196 $as_echo "no" >&6; }
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
17207 $as_echo_n "checking whether file_inode() is available... " >&6; }
17210 cat confdefs.h
- <<_ACEOF >conftest.c
17213 #include <linux/fs.h>
17219 struct file *f = NULL;
17230 cat - <<_ACEOF >conftest.h
17235 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17236 echo "obj-m := conftest.o" >build
/Makefile
17238 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17239 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17240 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17241 (eval $ac_try) 2>&5
17243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17244 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17246 (eval $ac_try) 2>&5
17248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17249 test $ac_status = 0; }; }; then :
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17252 $as_echo "yes" >&6; }
17254 $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
17258 $as_echo "$as_me: failed program was:" >&5
17259 sed 's/^/| /' conftest.
$ac_ext >&5
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17262 $as_echo "no" >&6; }
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
17273 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
17277 cat confdefs.h
- <<_ACEOF >conftest.c
17280 #include <linux/fs.h>
17282 int test_fsync(struct file *f, struct dentry *dentry, int x)
17285 static const struct file_operations
17286 fops __attribute__ ((unused)) = {
17287 .fsync = test_fsync,
17303 cat - <<_ACEOF >conftest.h
17308 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17309 echo "obj-m := conftest.o" >build
/Makefile
17311 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17312 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17313 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17314 (eval $ac_try) 2>&5
17316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17317 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17319 (eval $ac_try) 2>&5
17321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17322 test $ac_status = 0; }; }; then :
17324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
17325 $as_echo "dentry" >&6; }
17327 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
17331 $as_echo "$as_me: failed program was:" >&5
17332 sed 's/^/| /' conftest.
$ac_ext >&5
17345 cat confdefs.h
- <<_ACEOF >conftest.c
17348 #include <linux/fs.h>
17350 int test_fsync(struct file *f, int x) { return 0; }
17352 static const struct file_operations
17353 fops __attribute__ ((unused)) = {
17354 .fsync = test_fsync,
17370 cat - <<_ACEOF >conftest.h
17375 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17376 echo "obj-m := conftest.o" >build
/Makefile
17378 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17379 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17380 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17381 (eval $ac_try) 2>&5
17383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17384 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17385 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17386 (eval $ac_try) 2>&5
17388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17389 test $ac_status = 0; }; }; then :
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
17392 $as_echo "no dentry" >&6; }
17394 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
17398 $as_echo "$as_me: failed program was:" >&5
17399 sed 's/^/| /' conftest.
$ac_ext >&5
17412 cat confdefs.h
- <<_ACEOF >conftest.c
17415 #include <linux/fs.h>
17417 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
17420 static const struct file_operations
17421 fops __attribute__ ((unused)) = {
17422 .fsync = test_fsync,
17438 cat - <<_ACEOF >conftest.h
17443 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17444 echo "obj-m := conftest.o" >build
/Makefile
17446 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17447 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17448 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17449 (eval $ac_try) 2>&5
17451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17452 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17453 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17454 (eval $ac_try) 2>&5
17456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17457 test $ac_status = 0; }; }; then :
17459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
17460 $as_echo "range" >&6; }
17462 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
17466 $as_echo "$as_me: failed program was:" >&5
17467 sed 's/^/| /' conftest.
$ac_ext >&5
17479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
17480 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
17483 cat confdefs.h
- <<_ACEOF >conftest.c
17486 #include <linux/fs.h>
17487 void evict_inode (struct inode * t) { return; }
17488 static struct super_operations sops __attribute__ ((unused)) = {
17489 .evict_inode = evict_inode,
17505 cat - <<_ACEOF >conftest.h
17510 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17511 echo "obj-m := conftest.o" >build
/Makefile
17513 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17514 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17515 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17516 (eval $ac_try) 2>&5
17518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17519 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17520 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17521 (eval $ac_try) 2>&5
17523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17524 test $ac_status = 0; }; }; then :
17526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17527 $as_echo "yes" >&6; }
17529 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
17533 $as_echo "$as_me: failed program was:" >&5
17534 sed 's/^/| /' conftest.
$ac_ext >&5
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17537 $as_echo "no" >&6; }
17547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
17548 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
17551 cat confdefs.h
- <<_ACEOF >conftest.c
17554 #include <linux/fs.h>
17556 void dirty_inode(struct inode *a, int b) { return; }
17558 static const struct super_operations
17559 sops __attribute__ ((unused)) = {
17560 .dirty_inode = dirty_inode,
17576 cat - <<_ACEOF >conftest.h
17581 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17582 echo "obj-m := conftest.o" >build
/Makefile
17584 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17585 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17587 (eval $ac_try) 2>&5
17589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17590 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17591 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17592 (eval $ac_try) 2>&5
17594 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17595 test $ac_status = 0; }; }; then :
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17598 $as_echo "yes" >&6; }
17600 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
17604 $as_echo "$as_me: failed program was:" >&5
17605 sed 's/^/| /' conftest.
$ac_ext >&5
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17608 $as_echo "no" >&6; }
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
17619 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
17622 cat confdefs.h
- <<_ACEOF >conftest.c
17625 #include <linux/fs.h>
17627 int nr_cached_objects(struct super_block *sb) { return 0; }
17629 static const struct super_operations
17630 sops __attribute__ ((unused)) = {
17631 .nr_cached_objects = nr_cached_objects,
17647 cat - <<_ACEOF >conftest.h
17652 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17653 echo "obj-m := conftest.o" >build
/Makefile
17655 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17656 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17657 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17658 (eval $ac_try) 2>&5
17660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17661 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17663 (eval $ac_try) 2>&5
17665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17666 test $ac_status = 0; }; }; then :
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17669 $as_echo "yes" >&6; }
17671 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
17675 $as_echo "$as_me: failed program was:" >&5
17676 sed 's/^/| /' conftest.
$ac_ext >&5
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17679 $as_echo "no" >&6; }
17689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
17690 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
17693 cat confdefs.h
- <<_ACEOF >conftest.c
17696 #include <linux/fs.h>
17698 void free_cached_objects(struct super_block *sb, int x)
17701 static const struct super_operations
17702 sops __attribute__ ((unused)) = {
17703 .free_cached_objects = free_cached_objects,
17719 cat - <<_ACEOF >conftest.h
17724 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17725 echo "obj-m := conftest.o" >build
/Makefile
17727 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17728 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17729 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17730 (eval $ac_try) 2>&5
17732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17733 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17734 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17735 (eval $ac_try) 2>&5
17737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17738 test $ac_status = 0; }; }; then :
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17741 $as_echo "yes" >&6; }
17743 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
17747 $as_echo "$as_me: failed program was:" >&5
17748 sed 's/^/| /' conftest.
$ac_ext >&5
17750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17751 $as_echo "no" >&6; }
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
17763 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
17766 cat confdefs.h
- <<_ACEOF >conftest.c
17769 #include <linux/fs.h>
17771 long test_fallocate(struct file *file, int mode,
17772 loff_t offset, loff_t len) { return 0; }
17774 static const struct file_operations
17775 fops __attribute__ ((unused)) = {
17776 .fallocate = test_fallocate,
17792 cat - <<_ACEOF >conftest.h
17797 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17798 echo "obj-m := conftest.o" >build
/Makefile
17800 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17801 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17803 (eval $ac_try) 2>&5
17805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17806 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17808 (eval $ac_try) 2>&5
17810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17811 test $ac_status = 0; }; }; then :
17813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17814 $as_echo "yes" >&6; }
17816 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
17820 $as_echo "$as_me: failed program was:" >&5
17821 sed 's/^/| /' conftest.
$ac_ext >&5
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17824 $as_echo "no" >&6; }
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
17835 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
17838 cat confdefs.h
- <<_ACEOF >conftest.c
17841 #include <linux/fs.h>
17843 long test_fallocate(struct inode *inode, int mode,
17844 loff_t offset, loff_t len) { return 0; }
17846 static const struct inode_operations
17847 fops __attribute__ ((unused)) = {
17848 .fallocate = test_fallocate,
17864 cat - <<_ACEOF >conftest.h
17869 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17870 echo "obj-m := conftest.o" >build
/Makefile
17872 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17873 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17875 (eval $ac_try) 2>&5
17877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17878 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17879 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17880 (eval $ac_try) 2>&5
17882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17883 test $ac_status = 0; }; }; then :
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17886 $as_echo "yes" >&6; }
17888 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
17892 $as_echo "$as_me: failed program was:" >&5
17893 sed 's/^/| /' conftest.
$ac_ext >&5
17895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17896 $as_echo "no" >&6; }
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
17908 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
17911 cat confdefs.h
- <<_ACEOF >conftest.c
17914 #include <linux/fs.h>
17916 int mkdir(struct inode *inode, struct dentry *dentry,
17917 umode_t umode) { return 0; }
17919 static const struct inode_operations
17920 iops __attribute__ ((unused)) = {
17937 cat - <<_ACEOF >conftest.h
17942 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17943 echo "obj-m := conftest.o" >build
/Makefile
17945 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17946 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17948 (eval $ac_try) 2>&5
17950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17951 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17952 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17953 (eval $ac_try) 2>&5
17955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17956 test $ac_status = 0; }; }; then :
17958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17959 $as_echo "yes" >&6; }
17961 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
17965 $as_echo "$as_me: failed program was:" >&5
17966 sed 's/^/| /' conftest.
$ac_ext >&5
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17969 $as_echo "no" >&6; }
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() takes struct nameidata" >&5
17980 $as_echo_n "checking whether iops->lookup() takes struct nameidata... " >&6; }
17983 cat confdefs.h
- <<_ACEOF >conftest.c
17986 #include <linux/fs.h>
17988 struct dentry *inode_lookup(struct inode *inode,
17989 struct dentry *dentry, struct nameidata *nidata)
17992 static const struct inode_operations iops
17993 __attribute__ ((unused)) = {
17994 .lookup = inode_lookup,
18010 cat - <<_ACEOF >conftest.h
18015 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18016 echo "obj-m := conftest.o" >build
/Makefile
18018 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18019 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18020 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18021 (eval $ac_try) 2>&5
18023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18024 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18025 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18026 (eval $ac_try) 2>&5
18028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18029 test $ac_status = 0; }; }; then :
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18032 $as_echo "yes" >&6; }
18034 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
18038 $as_echo "$as_me: failed program was:" >&5
18039 sed 's/^/| /' conftest.
$ac_ext >&5
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18042 $as_echo "no" >&6; }
18052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() takes struct nameidata" >&5
18053 $as_echo_n "checking whether iops->create() takes struct nameidata... " >&6; }
18056 cat confdefs.h
- <<_ACEOF >conftest.c
18059 #include <linux/fs.h>
18061 #ifdef HAVE_MKDIR_UMODE_T
18062 int inode_create(struct inode *inode ,struct dentry *dentry,
18063 umode_t umode, struct nameidata *nidata) { return 0; }
18065 int inode_create(struct inode *inode,struct dentry *dentry,
18066 int umode, struct nameidata * nidata) { return 0; }
18069 static const struct inode_operations
18070 iops __attribute__ ((unused)) = {
18071 .create = inode_create,
18087 cat - <<_ACEOF >conftest.h
18092 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18093 echo "obj-m := conftest.o" >build
/Makefile
18095 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18096 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18097 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18098 (eval $ac_try) 2>&5
18100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18101 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18103 (eval $ac_try) 2>&5
18105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18106 test $ac_status = 0; }; }; then :
18108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18109 $as_echo "yes" >&6; }
18111 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
18115 $as_echo "$as_me: failed program was:" >&5
18116 sed 's/^/| /' conftest.
$ac_ext >&5
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18119 $as_echo "no" >&6; }
18129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
18130 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
18133 cat confdefs.h
- <<_ACEOF >conftest.c
18136 #include <linux/fs.h>
18137 void truncate_range(struct inode *inode, loff_t start,
18138 loff_t end) { return; }
18139 static struct inode_operations iops __attribute__ ((unused)) = {
18140 .truncate_range = truncate_range,
18156 cat - <<_ACEOF >conftest.h
18161 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18162 echo "obj-m := conftest.o" >build
/Makefile
18164 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18165 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18166 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18167 (eval $ac_try) 2>&5
18169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18170 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18172 (eval $ac_try) 2>&5
18174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18175 test $ac_status = 0; }; }; then :
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18178 $as_echo "yes" >&6; }
18180 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
18184 $as_echo "$as_me: failed program was:" >&5
18185 sed 's/^/| /' conftest.
$ac_ext >&5
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18188 $as_echo "no" >&6; }
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
18199 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
18202 cat confdefs.h
- <<_ACEOF >conftest.c
18205 #include <linux/dcache.h>
18206 struct vfsmount *d_automount(struct path *p) { return NULL; }
18207 struct dentry_operations dops __attribute__ ((unused)) = {
18208 .d_automount = d_automount,
18224 cat - <<_ACEOF >conftest.h
18229 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18230 echo "obj-m := conftest.o" >build
/Makefile
18232 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18233 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18234 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18235 (eval $ac_try) 2>&5
18237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18238 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18239 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18240 (eval $ac_try) 2>&5
18242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18243 test $ac_status = 0; }; }; then :
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18246 $as_echo "yes" >&6; }
18248 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
18252 $as_echo "$as_me: failed program was:" >&5
18253 sed 's/^/| /' conftest.
$ac_ext >&5
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18256 $as_echo "no" >&6; }
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
18267 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
18270 cat confdefs.h
- <<_ACEOF >conftest.c
18273 #include <linux/exportfs.h>
18274 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
18275 struct inode *parent) { return 0; }
18276 static struct export_operations eops __attribute__ ((unused))={
18277 .encode_fh = encode_fh,
18293 cat - <<_ACEOF >conftest.h
18298 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18299 echo "obj-m := conftest.o" >build
/Makefile
18301 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18302 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18303 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18304 (eval $ac_try) 2>&5
18306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18307 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18308 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18309 (eval $ac_try) 2>&5
18311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18312 test $ac_status = 0; }; }; then :
18314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18315 $as_echo "yes" >&6; }
18317 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
18321 $as_echo "$as_me: failed program was:" >&5
18322 sed 's/^/| /' conftest.
$ac_ext >&5
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18325 $as_echo "no" >&6; }
18335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
18336 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
18339 cat confdefs.h
- <<_ACEOF >conftest.c
18342 #include <linux/exportfs.h>
18343 int commit_metadata(struct inode *inode) { return 0; }
18344 static struct export_operations eops __attribute__ ((unused))={
18345 .commit_metadata = commit_metadata,
18361 cat - <<_ACEOF >conftest.h
18366 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18367 echo "obj-m := conftest.o" >build
/Makefile
18369 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18370 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18372 (eval $ac_try) 2>&5
18374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18375 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18376 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18377 (eval $ac_try) 2>&5
18379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18380 test $ac_status = 0; }; }; then :
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18383 $as_echo "yes" >&6; }
18385 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
18389 $as_echo "$as_me: failed program was:" >&5
18390 sed 's/^/| /' conftest.
$ac_ext >&5
18392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18393 $as_echo "no" >&6; }
18402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
18403 $as_echo_n "checking whether clear_inode() is available... " >&6; }
18407 cat confdefs.h
- <<_ACEOF >conftest.c
18410 #include <linux/fs.h>
18426 cat - <<_ACEOF >conftest.h
18431 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18432 echo "obj-m := conftest.o" >build
/Makefile
18434 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18435 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18436 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18437 (eval $ac_try) 2>&5
18439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18440 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18441 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18442 (eval $ac_try) 2>&5
18444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18445 test $ac_status = 0; }; }; then :
18448 $as_echo "$as_me: failed program was:" >&5
18449 sed 's/^/| /' conftest.
$ac_ext >&5
18457 if test $rc -ne 0; then :
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18460 $as_echo "no" >&6; }
18463 if test "x$enable_linux_builtin" != xyes
; then
18465 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
18466 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
18468 if test $rc -ne 0; then
18470 for file in fs
/inode.c
; do
18471 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
18472 "$LINUX/$file" 2>/dev
/null
18474 if test $rc -eq 0; then
18479 if test $export -eq 0; then :
18489 if test $rc -ne 0; then :
18491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18492 $as_echo "no" >&6; }
18496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18497 $as_echo "yes" >&6; }
18499 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
18506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
18507 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
18511 cat confdefs.h
- <<_ACEOF >conftest.c
18514 #include <linux/fs.h>
18520 insert_inode_locked(NULL);
18530 cat - <<_ACEOF >conftest.h
18535 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18536 echo "obj-m := conftest.o" >build
/Makefile
18538 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18539 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18541 (eval $ac_try) 2>&5
18543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18544 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18546 (eval $ac_try) 2>&5
18548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18549 test $ac_status = 0; }; }; then :
18552 $as_echo "$as_me: failed program was:" >&5
18553 sed 's/^/| /' conftest.
$ac_ext >&5
18561 if test $rc -ne 0; then :
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18564 $as_echo "no" >&6; }
18567 if test "x$enable_linux_builtin" != xyes
; then
18569 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
18570 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
18572 if test $rc -ne 0; then
18574 for file in fs
/inode.c
; do
18575 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
18576 "$LINUX/$file" 2>/dev
/null
18578 if test $rc -eq 0; then
18583 if test $export -eq 0; then :
18593 if test $rc -ne 0; then :
18595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18596 $as_echo "no" >&6; }
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18601 $as_echo "yes" >&6; }
18603 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
18610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
18611 $as_echo_n "checking whether d_make_root() is available... " >&6; }
18615 cat confdefs.h
- <<_ACEOF >conftest.c
18618 #include <linux/dcache.h>
18634 cat - <<_ACEOF >conftest.h
18639 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18640 echo "obj-m := conftest.o" >build
/Makefile
18642 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18643 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18644 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18645 (eval $ac_try) 2>&5
18647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18648 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18650 (eval $ac_try) 2>&5
18652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18653 test $ac_status = 0; }; }; then :
18656 $as_echo "$as_me: failed program was:" >&5
18657 sed 's/^/| /' conftest.
$ac_ext >&5
18665 if test $rc -ne 0; then :
18667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18668 $as_echo "no" >&6; }
18671 if test "x$enable_linux_builtin" != xyes
; then
18673 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
18674 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
18676 if test $rc -ne 0; then
18678 for file in fs
/dcache.c
; do
18679 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
18680 "$LINUX/$file" 2>/dev
/null
18682 if test $rc -eq 0; then
18687 if test $export -eq 0; then :
18697 if test $rc -ne 0; then :
18699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18700 $as_echo "no" >&6; }
18704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18705 $as_echo "yes" >&6; }
18707 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
18714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
18715 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
18719 cat confdefs.h
- <<_ACEOF >conftest.c
18722 #include <linux/dcache.h>
18728 d_obtain_alias(NULL);
18738 cat - <<_ACEOF >conftest.h
18743 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18744 echo "obj-m := conftest.o" >build
/Makefile
18746 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18747 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18749 (eval $ac_try) 2>&5
18751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18752 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18754 (eval $ac_try) 2>&5
18756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18757 test $ac_status = 0; }; }; then :
18760 $as_echo "$as_me: failed program was:" >&5
18761 sed 's/^/| /' conftest.
$ac_ext >&5
18769 if test $rc -ne 0; then :
18771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18772 $as_echo "no" >&6; }
18775 if test "x$enable_linux_builtin" != xyes
; then
18777 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
18778 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
18780 if test $rc -ne 0; then
18782 for file in fs
/dcache.c
; do
18783 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
18784 "$LINUX/$file" 2>/dev
/null
18786 if test $rc -eq 0; then
18791 if test $export -eq 0; then :
18801 if test $rc -ne 0; then :
18803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18804 $as_echo "no" >&6; }
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18809 $as_echo "yes" >&6; }
18811 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
18818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
18819 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
18823 cat confdefs.h
- <<_ACEOF >conftest.c
18826 #include <linux/dcache.h>
18832 struct inode *ip = NULL;
18833 d_prune_aliases(ip);
18843 cat - <<_ACEOF >conftest.h
18848 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18849 echo "obj-m := conftest.o" >build
/Makefile
18851 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18852 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18853 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18854 (eval $ac_try) 2>&5
18856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18857 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18858 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18859 (eval $ac_try) 2>&5
18861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18862 test $ac_status = 0; }; }; then :
18865 $as_echo "$as_me: failed program was:" >&5
18866 sed 's/^/| /' conftest.
$ac_ext >&5
18874 if test $rc -ne 0; then :
18876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18877 $as_echo "no" >&6; }
18880 if test "x$enable_linux_builtin" != xyes
; then
18882 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
18883 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
18885 if test $rc -ne 0; then
18887 for file in fs
/dcache.c
; do
18888 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
18889 "$LINUX/$file" 2>/dev
/null
18891 if test $rc -eq 0; then
18896 if test $export -eq 0; then :
18906 if test $rc -ne 0; then :
18908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18909 $as_echo "no" >&6; }
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18914 $as_echo "yes" >&6; }
18916 $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
18923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
18924 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
18928 cat confdefs.h
- <<_ACEOF >conftest.c
18931 #include <linux/dcache.h>
18937 d_set_d_op(NULL, NULL);
18947 cat - <<_ACEOF >conftest.h
18952 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18953 echo "obj-m := conftest.o" >build
/Makefile
18955 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18956 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18958 (eval $ac_try) 2>&5
18960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18961 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18962 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18963 (eval $ac_try) 2>&5
18965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18966 test $ac_status = 0; }; }; then :
18969 $as_echo "$as_me: failed program was:" >&5
18970 sed 's/^/| /' conftest.
$ac_ext >&5
18978 if test $rc -ne 0; then :
18980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18981 $as_echo "no" >&6; }
18984 if test "x$enable_linux_builtin" != xyes
; then
18986 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
18987 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
18989 if test $rc -ne 0; then
18991 for file in fs
/dcache.c
; do
18992 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
18993 "$LINUX/$file" 2>/dev
/null
18995 if test $rc -eq 0; then
19000 if test $export -eq 0; then :
19010 if test $rc -ne 0; then :
19012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19013 $as_echo "no" >&6; }
19017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19018 $as_echo "yes" >&6; }
19020 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
19028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
19029 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
19032 cat confdefs.h
- <<_ACEOF >conftest.c
19035 #include <linux/dcache.h>
19037 int revalidate (struct dentry *dentry,
19038 struct nameidata *nidata) { return 0; }
19040 static const struct dentry_operations
19041 dops __attribute__ ((unused)) = {
19042 .d_revalidate = revalidate,
19058 cat - <<_ACEOF >conftest.h
19063 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19064 echo "obj-m := conftest.o" >build
/Makefile
19066 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19067 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19069 (eval $ac_try) 2>&5
19071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19072 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19073 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19074 (eval $ac_try) 2>&5
19076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19077 test $ac_status = 0; }; }; then :
19079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19080 $as_echo "yes" >&6; }
19082 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
19086 $as_echo "$as_me: failed program was:" >&5
19087 sed 's/^/| /' conftest.
$ac_ext >&5
19089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19090 $as_echo "no" >&6; }
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
19101 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
19104 cat confdefs.h
- <<_ACEOF >conftest.c
19107 #include <linux/dcache.h>
19109 const struct dentry_operations test_d_op = {
19110 .d_revalidate = NULL,
19117 struct dentry d __attribute__ ((unused));
19119 d.d_op = &test_d_op;
19129 cat - <<_ACEOF >conftest.h
19134 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19135 echo "obj-m := conftest.o" >build
/Makefile
19137 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19138 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19139 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19140 (eval $ac_try) 2>&5
19142 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19143 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19145 (eval $ac_try) 2>&5
19147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19148 test $ac_status = 0; }; }; then :
19150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19151 $as_echo "yes" >&6; }
19153 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
19157 $as_echo "$as_me: failed program was:" >&5
19158 sed 's/^/| /' conftest.
$ac_ext >&5
19160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19161 $as_echo "no" >&6; }
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5
19171 $as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
19175 cat confdefs.h
- <<_ACEOF >conftest.c
19178 #include <linux/fs.h>
19184 check_disk_size_change(NULL, NULL);
19194 cat - <<_ACEOF >conftest.h
19199 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19200 echo "obj-m := conftest.o" >build
/Makefile
19202 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19203 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19204 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19205 (eval $ac_try) 2>&5
19207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19208 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19209 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19210 (eval $ac_try) 2>&5
19212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19213 test $ac_status = 0; }; }; then :
19216 $as_echo "$as_me: failed program was:" >&5
19217 sed 's/^/| /' conftest.
$ac_ext >&5
19225 if test $rc -ne 0; then :
19227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19228 $as_echo "no" >&6; }
19231 if test "x$enable_linux_builtin" != xyes
; then
19233 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
19234 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
19236 if test $rc -ne 0; then
19238 for file in fs
/block_dev.c
; do
19239 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
19240 "$LINUX/$file" 2>/dev
/null
19242 if test $rc -eq 0; then
19247 if test $export -eq 0; then :
19257 if test $rc -ne 0; then :
19259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19260 $as_echo "no" >&6; }
19264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19265 $as_echo "yes" >&6; }
19267 $as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h
19274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
19275 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
19279 cat confdefs.h
- <<_ACEOF >conftest.c
19282 #include <linux/mm.h>
19288 truncate_setsize(NULL, 0);
19298 cat - <<_ACEOF >conftest.h
19303 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19304 echo "obj-m := conftest.o" >build
/Makefile
19306 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19307 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19308 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19309 (eval $ac_try) 2>&5
19311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19312 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19313 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19314 (eval $ac_try) 2>&5
19316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19317 test $ac_status = 0; }; }; then :
19320 $as_echo "$as_me: failed program was:" >&5
19321 sed 's/^/| /' conftest.
$ac_ext >&5
19329 if test $rc -ne 0; then :
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19332 $as_echo "no" >&6; }
19335 if test "x$enable_linux_builtin" != xyes
; then
19337 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
19338 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
19340 if test $rc -ne 0; then
19342 for file in mm
/truncate.c
; do
19343 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
19344 "$LINUX/$file" 2>/dev
/null
19346 if test $rc -eq 0; then
19351 if test $export -eq 0; then :
19361 if test $rc -ne 0; then :
19363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19364 $as_echo "no" >&6; }
19368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19369 $as_echo "yes" >&6; }
19371 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
19379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
19380 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
19383 cat confdefs.h
- <<_ACEOF >conftest.c
19386 #include <linux/security.h>
19392 struct inode *ip __attribute__ ((unused)) = NULL;
19393 struct inode *dip __attribute__ ((unused)) = NULL;
19394 const struct qstr *str __attribute__ ((unused)) = NULL;
19395 char *name __attribute__ ((unused)) = NULL;
19396 void *value __attribute__ ((unused)) = NULL;
19397 size_t len __attribute__ ((unused)) = 0;
19399 security_inode_init_security(ip, dip, str, &name, &value, &len);
19409 cat - <<_ACEOF >conftest.h
19414 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19415 echo "obj-m := conftest.o" >build
/Makefile
19417 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19418 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19420 (eval $ac_try) 2>&5
19422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19423 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19424 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19425 (eval $ac_try) 2>&5
19427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19428 test $ac_status = 0; }; }; then :
19430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19431 $as_echo "yes" >&6; }
19433 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
19437 $as_echo "$as_me: failed program was:" >&5
19438 sed 's/^/| /' conftest.
$ac_ext >&5
19440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19441 $as_echo "no" >&6; }
19451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
19452 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
19455 cat confdefs.h
- <<_ACEOF >conftest.c
19458 #include <linux/security.h>
19464 struct inode *ip __attribute__ ((unused)) = NULL;
19465 struct inode *dip __attribute__ ((unused)) = NULL;
19466 const struct qstr *str __attribute__ ((unused)) = NULL;
19467 initxattrs func __attribute__ ((unused)) = NULL;
19469 security_inode_init_security(ip, dip, str, func, NULL);
19479 cat - <<_ACEOF >conftest.h
19484 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19485 echo "obj-m := conftest.o" >build
/Makefile
19487 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19488 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19489 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19490 (eval $ac_try) 2>&5
19492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19493 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19494 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19495 (eval $ac_try) 2>&5
19497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19498 test $ac_status = 0; }; }; then :
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19501 $as_echo "yes" >&6; }
19503 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
19507 $as_echo "$as_me: failed program was:" >&5
19508 sed 's/^/| /' conftest.
$ac_ext >&5
19510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19511 $as_echo "no" >&6; }
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
19521 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
19525 cat confdefs.h
- <<_ACEOF >conftest.c
19528 #include <linux/fs.h>
19534 mount_nodev(NULL, 0, NULL, NULL);
19544 cat - <<_ACEOF >conftest.h
19549 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19550 echo "obj-m := conftest.o" >build
/Makefile
19552 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19553 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19555 (eval $ac_try) 2>&5
19557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19558 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19560 (eval $ac_try) 2>&5
19562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19563 test $ac_status = 0; }; }; then :
19566 $as_echo "$as_me: failed program was:" >&5
19567 sed 's/^/| /' conftest.
$ac_ext >&5
19575 if test $rc -ne 0; then :
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19578 $as_echo "no" >&6; }
19581 if test "x$enable_linux_builtin" != xyes
; then
19583 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
19584 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
19586 if test $rc -ne 0; then
19588 for file in fs
/super.c
; do
19589 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
19590 "$LINUX/$file" 2>/dev
/null
19592 if test $rc -eq 0; then
19597 if test $export -eq 0; then :
19607 if test $rc -ne 0; then :
19609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19610 $as_echo "no" >&6; }
19614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19615 $as_echo "yes" >&6; }
19617 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
19625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
19626 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
19629 cat confdefs.h
- <<_ACEOF >conftest.c
19632 #include <linux/fs.h>
19634 int shrink(struct shrinker *s, struct shrink_control *sc)
19637 static const struct super_block
19638 sb __attribute__ ((unused)) = {
19639 .s_shrink.shrink = shrink,
19640 .s_shrink.seeks = DEFAULT_SEEKS,
19641 .s_shrink.batch = 0,
19657 cat - <<_ACEOF >conftest.h
19662 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19663 echo "obj-m := conftest.o" >build
/Makefile
19665 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19666 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19668 (eval $ac_try) 2>&5
19670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19671 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19672 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19673 (eval $ac_try) 2>&5
19675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19676 test $ac_status = 0; }; }; then :
19678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19679 $as_echo "yes" >&6; }
19681 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
19686 $as_echo "$as_me: failed program was:" >&5
19687 sed 's/^/| /' conftest.
$ac_ext >&5
19689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19690 $as_echo "no" >&6; }
19700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
19701 $as_echo_n "checking whether shrink_control has nid... " >&6; }
19704 cat confdefs.h
- <<_ACEOF >conftest.c
19707 #include <linux/fs.h>
19713 struct shrink_control sc __attribute__ ((unused));
19714 unsigned long scnidsize __attribute__ ((unused)) =
19725 cat - <<_ACEOF >conftest.h
19730 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19731 echo "obj-m := conftest.o" >build
/Makefile
19733 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19734 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19736 (eval $ac_try) 2>&5
19738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19739 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19741 (eval $ac_try) 2>&5
19743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19744 test $ac_status = 0; }; }; then :
19746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19747 $as_echo "yes" >&6; }
19749 $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
19753 $as_echo "$as_me: failed program was:" >&5
19754 sed 's/^/| /' conftest.
$ac_ext >&5
19756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19757 $as_echo "no" >&6; }
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
19768 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
19771 cat confdefs.h
- <<_ACEOF >conftest.c
19774 #include <linux/fs.h>
19780 struct super_block sb __attribute__ ((unused));
19782 INIT_LIST_HEAD(&sb.s_instances);
19792 cat - <<_ACEOF >conftest.h
19797 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19798 echo "obj-m := conftest.o" >build
/Makefile
19800 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19801 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19803 (eval $ac_try) 2>&5
19805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19806 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19808 (eval $ac_try) 2>&5
19810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19811 test $ac_status = 0; }; }; then :
19813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19814 $as_echo "yes" >&6; }
19816 $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
19820 $as_echo "$as_me: failed program was:" >&5
19821 sed 's/^/| /' conftest.
$ac_ext >&5
19823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19824 $as_echo "no" >&6; }
19833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
19834 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
19837 cat confdefs.h
- <<_ACEOF >conftest.c
19840 #include <linux/fs.h>
19846 struct super_block sb __attribute__ ((unused));
19857 cat - <<_ACEOF >conftest.h
19862 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19863 echo "obj-m := conftest.o" >build
/Makefile
19865 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19866 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19867 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19868 (eval $ac_try) 2>&5
19870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19871 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19872 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19873 (eval $ac_try) 2>&5
19875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19876 test $ac_status = 0; }; }; then :
19878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19879 $as_echo "yes" >&6; }
19881 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
19885 $as_echo "$as_me: failed program was:" >&5
19886 sed 's/^/| /' conftest.
$ac_ext >&5
19888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19889 $as_echo "no" >&6; }
19899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
19900 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
19904 cat confdefs.h
- <<_ACEOF >conftest.c
19907 #include <linux/backing-dev.h>
19913 struct backing_dev_info bdi;
19914 char *name = "bdi";
19915 int error __attribute__((unused)) =
19916 bdi_setup_and_register(&bdi, name);
19926 cat - <<_ACEOF >conftest.h
19931 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19932 echo "obj-m := conftest.o" >build
/Makefile
19934 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19935 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19936 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19937 (eval $ac_try) 2>&5
19939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19940 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19941 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19942 (eval $ac_try) 2>&5
19944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19945 test $ac_status = 0; }; }; then :
19948 $as_echo "$as_me: failed program was:" >&5
19949 sed 's/^/| /' conftest.
$ac_ext >&5
19957 if test $rc -ne 0; then :
19959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19960 $as_echo "no" >&6; }
19961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
19962 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
19966 cat confdefs.h
- <<_ACEOF >conftest.c
19969 #include <linux/backing-dev.h>
19975 struct backing_dev_info bdi;
19976 char *name = "bdi";
19977 unsigned int cap = BDI_CAP_MAP_COPY;
19978 int error __attribute__((unused)) =
19979 bdi_setup_and_register(&bdi, name, cap);
19989 cat - <<_ACEOF >conftest.h
19994 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19995 echo "obj-m := conftest.o" >build
/Makefile
19997 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19998 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19999 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20000 (eval $ac_try) 2>&5
20002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20003 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20004 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20005 (eval $ac_try) 2>&5
20007 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20008 test $ac_status = 0; }; }; then :
20011 $as_echo "$as_me: failed program was:" >&5
20012 sed 's/^/| /' conftest.
$ac_ext >&5
20020 if test $rc -ne 0; then :
20022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20023 $as_echo "no" >&6; }
20026 if test "x$enable_linux_builtin" != xyes
; then
20028 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
20029 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
20031 if test $rc -ne 0; then
20033 for file in mm
/backing-dev.c
; do
20034 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
20035 "$LINUX/$file" 2>/dev
/null
20037 if test $rc -eq 0; then
20042 if test $export -eq 0; then :
20052 if test $rc -ne 0; then :
20054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20055 $as_echo "no" >&6; }
20059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20060 $as_echo "yes" >&6; }
20062 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
20070 if test "x$enable_linux_builtin" != xyes
; then
20072 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
20073 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
20075 if test $rc -ne 0; then
20077 for file in mm
/backing-dev.c
; do
20078 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
20079 "$LINUX/$file" 2>/dev
/null
20081 if test $rc -eq 0; then
20086 if test $export -eq 0; then :
20096 if test $rc -ne 0; then :
20098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20099 $as_echo "no" >&6; }
20100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
20101 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
20105 cat confdefs.h
- <<_ACEOF >conftest.c
20108 #include <linux/backing-dev.h>
20114 struct backing_dev_info bdi;
20115 char *name = "bdi";
20116 unsigned int cap = BDI_CAP_MAP_COPY;
20117 int error __attribute__((unused)) =
20118 bdi_setup_and_register(&bdi, name, cap);
20128 cat - <<_ACEOF >conftest.h
20133 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20134 echo "obj-m := conftest.o" >build
/Makefile
20136 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20137 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20138 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20139 (eval $ac_try) 2>&5
20141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20142 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20144 (eval $ac_try) 2>&5
20146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20147 test $ac_status = 0; }; }; then :
20150 $as_echo "$as_me: failed program was:" >&5
20151 sed 's/^/| /' conftest.
$ac_ext >&5
20159 if test $rc -ne 0; then :
20161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20162 $as_echo "no" >&6; }
20165 if test "x$enable_linux_builtin" != xyes
; then
20167 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
20168 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
20170 if test $rc -ne 0; then
20172 for file in mm
/backing-dev.c
; do
20173 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
20174 "$LINUX/$file" 2>/dev
/null
20176 if test $rc -eq 0; then
20181 if test $export -eq 0; then :
20191 if test $rc -ne 0; then :
20193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20194 $as_echo "no" >&6; }
20198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20199 $as_echo "yes" >&6; }
20201 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
20210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20211 $as_echo "yes" >&6; }
20213 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
20221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
20222 $as_echo_n "checking whether set_nlink() is available... " >&6; }
20225 cat confdefs.h
- <<_ACEOF >conftest.c
20228 #include <linux/fs.h>
20235 unsigned int link = 0;
20236 (void) set_nlink(&node, link);
20246 cat - <<_ACEOF >conftest.h
20251 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20252 echo "obj-m := conftest.o" >build
/Makefile
20254 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20255 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20257 (eval $ac_try) 2>&5
20259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20260 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20262 (eval $ac_try) 2>&5
20264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20265 test $ac_status = 0; }; }; then :
20267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20268 $as_echo "yes" >&6; }
20270 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
20274 $as_echo "$as_me: failed program was:" >&5
20275 sed 's/^/| /' conftest.
$ac_ext >&5
20277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20278 $as_echo "no" >&6; }
20288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
20289 $as_echo_n "checking whether elevator_change() is available... " >&6; }
20290 tmp_flags
="$EXTRA_KCFLAGS"
20291 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
20294 cat confdefs.h
- <<_ACEOF >conftest.c
20297 #include <linux/blkdev.h>
20298 #include <linux/elevator.h>
20305 struct request_queue *q = NULL;
20306 char *elevator = NULL;
20307 ret = elevator_change(q, elevator);
20317 cat - <<_ACEOF >conftest.h
20322 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20323 echo "obj-m := conftest.o" >build
/Makefile
20325 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20326 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20327 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20328 (eval $ac_try) 2>&5
20330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20331 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20333 (eval $ac_try) 2>&5
20335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20336 test $ac_status = 0; }; }; then :
20338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20339 $as_echo "yes" >&6; }
20341 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
20345 $as_echo "$as_me: failed program was:" >&5
20346 sed 's/^/| /' conftest.
$ac_ext >&5
20348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20349 $as_echo "no" >&6; }
20357 EXTRA_KCFLAGS
="$tmp_flags"
20359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
20360 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
20363 cat confdefs.h
- <<_ACEOF >conftest.c
20366 #include <linux/fs.h>
20372 struct file_system_type *type = NULL;
20373 int (*test)(struct super_block *,void *) = NULL;
20374 int (*set)(struct super_block *,void *) = NULL;
20377 (void) sget(type, test, set, flags, data);
20387 cat - <<_ACEOF >conftest.h
20392 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20393 echo "obj-m := conftest.o" >build
/Makefile
20395 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20396 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20398 (eval $ac_try) 2>&5
20400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20401 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20402 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20403 (eval $ac_try) 2>&5
20405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20406 test $ac_status = 0; }; }; then :
20408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20409 $as_echo "yes" >&6; }
20411 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
20415 $as_echo "$as_me: failed program was:" >&5
20416 sed 's/^/| /' conftest.
$ac_ext >&5
20418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20419 $as_echo "no" >&6; }
20428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
20429 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
20433 cat confdefs.h
- <<_ACEOF >conftest.c
20436 #include <linux/fs.h>
20442 struct file *fp __attribute__ ((unused)) = NULL;
20443 struct inode *ip __attribute__ ((unused)) = NULL;
20444 loff_t offset __attribute__ ((unused)) = 0;
20445 loff_t maxsize __attribute__ ((unused)) = 0;
20447 lseek_execute(fp, ip, offset, maxsize);
20457 cat - <<_ACEOF >conftest.h
20462 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20463 echo "obj-m := conftest.o" >build
/Makefile
20465 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20466 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20468 (eval $ac_try) 2>&5
20470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20471 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20473 (eval $ac_try) 2>&5
20475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20476 test $ac_status = 0; }; }; then :
20479 $as_echo "$as_me: failed program was:" >&5
20480 sed 's/^/| /' conftest.
$ac_ext >&5
20488 if test $rc -ne 0; then :
20490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20491 $as_echo "no" >&6; }
20494 if test "x$enable_linux_builtin" != xyes
; then
20496 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
20497 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
20499 if test $rc -ne 0; then
20501 for file in fs
/read_write.c
; do
20502 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
20503 "$LINUX/$file" 2>/dev
/null
20505 if test $rc -eq 0; then
20510 if test $export -eq 0; then :
20520 if test $rc -ne 0; then :
20522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20523 $as_echo "no" >&6; }
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20528 $as_echo "yes" >&6; }
20530 $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
20538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
20539 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
20542 cat confdefs.h
- <<_ACEOF >conftest.c
20545 #include <linux/fs.h>
20546 int iterate(struct file *filp, struct dir_context * context)
20549 static const struct file_operations fops
20550 __attribute__ ((unused)) = {
20551 .iterate = iterate,
20567 cat - <<_ACEOF >conftest.h
20572 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20573 echo "obj-m := conftest.o" >build
/Makefile
20575 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20576 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20577 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20578 (eval $ac_try) 2>&5
20580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20581 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20583 (eval $ac_try) 2>&5
20585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20586 test $ac_status = 0; }; }; then :
20588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20589 $as_echo "yes" >&6; }
20591 $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
20595 $as_echo "$as_me: failed program was:" >&5
20596 sed 's/^/| /' conftest.
$ac_ext >&5
20598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20599 $as_echo "no" >&6; }
20601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
20602 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
20605 cat confdefs.h
- <<_ACEOF >conftest.c
20608 #include <linux/fs.h>
20609 int readdir(struct file *filp, void *entry, filldir_t func)
20612 static const struct file_operations fops
20613 __attribute__ ((unused)) = {
20614 .readdir = readdir,
20630 cat - <<_ACEOF >conftest.h
20635 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20636 echo "obj-m := conftest.o" >build
/Makefile
20638 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20639 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20640 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20641 (eval $ac_try) 2>&5
20643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20644 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20646 (eval $ac_try) 2>&5
20648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20649 test $ac_status = 0; }; }; then :
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20652 $as_echo "yes" >&6; }
20654 $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
20658 $as_echo "$as_me: failed program was:" >&5
20659 sed 's/^/| /' conftest.
$ac_ext >&5
20661 as_fn_error $?
"no; file a bug report with ZFSOnLinux" "$LINENO" 5
20678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
20679 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
20682 cat confdefs.h
- <<_ACEOF >conftest.c
20685 #include <linux/fs.h>
20687 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
20689 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
20692 static const struct file_operations
20693 fops __attribute__ ((unused)) = {
20694 .read_iter = test_read,
20695 .write_iter = test_write,
20711 cat - <<_ACEOF >conftest.h
20716 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20717 echo "obj-m := conftest.o" >build
/Makefile
20719 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20720 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20722 (eval $ac_try) 2>&5
20724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20725 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20726 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20727 (eval $ac_try) 2>&5
20729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20730 test $ac_status = 0; }; }; then :
20732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20733 $as_echo "yes" >&6; }
20735 $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
20739 $as_echo "$as_me: failed program was:" >&5
20740 sed 's/^/| /' conftest.
$ac_ext >&5
20742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20743 $as_echo "no" >&6; }
20753 if test "$LINUX_OBJ" != "$LINUX"; then :
20755 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
20761 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
20762 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
20763 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
20770 # Check whether --with-mounthelperdir was given.
20771 if test "${with_mounthelperdir+set}" = set; then :
20772 withval
=$with_mounthelperdir; mounthelperdir
=$withval
20774 mounthelperdir
=$sbindir
20781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
20782 $as_echo_n "checking for udev directories... " >&6; }
20784 # Check whether --with-udevdir was given.
20785 if test "${with_udevdir+set}" = set; then :
20786 withval
=$with_udevdir; udevdir
=$withval
20792 if test "x$udevdir" = xcheck
; then :
20795 path2
=/usr
/lib
/udev
20798 if test -d "$path1"; then :
20802 if test -d "$path2"; then :
20813 # Check whether --with-udevruledir was given.
20814 if test "${with_udevruledir+set}" = set; then :
20815 withval
=$with_udevruledir; udevruledir
=$withval
20817 udevruledir
="${udevdir}/rules.d"
20823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
20824 $as_echo "$udevdir;$udevruledir" >&6; }
20827 # Check whether --enable-systemd was given.
20828 if test "${enable_systemd+set}" = set; then :
20829 enableval
=$enable_systemd;
20836 # Check whether --with-systemdunitdir was given.
20837 if test "${with_systemdunitdir+set}" = set; then :
20838 withval
=$with_systemdunitdir; systemdunitdir
=$withval
20840 systemdunitdir
=/usr
/lib
/systemd
/system
20845 # Check whether --with-systemdpresetdir was given.
20846 if test "${with_systemdpresetdir+set}" = set; then :
20847 withval
=$with_systemdpresetdir; systemdpresetdir
=$withval
20849 systemdpresetdir
=/usr
/lib
/systemd
/system-preset
20854 # Check whether --with-systemdmodulesloaddir was given.
20855 if test "${with_systemdmodulesloaddir+set}" = set; then :
20856 withval
=$with_systemdmodulesloaddir; systemdmoduleloaddir
=$withval
20858 systemdmodulesloaddir
=/usr
/lib
/modules-load.d
20863 if test "x$enable_systemd" = xyes
; then :
20865 ZFS_INIT_SYSTEMD
=systemd
20866 ZFS_MODULE_LOAD
=modules-load.d
20867 modulesloaddir
=$systemdmodulesloaddir
20878 # Check whether --enable-sysvinit was given.
20879 if test "${enable_sysvinit+set}" = set; then :
20880 enableval
=$enable_sysvinit;
20882 enable_sysvinit
=yes
20886 if test "x$enable_sysvinit" = xyes
; then :
20887 ZFS_INIT_SYSV
=init.d
20893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
20894 $as_echo_n "checking for dracut directory... " >&6; }
20896 # Check whether --with-dracutdir was given.
20897 if test "${with_dracutdir+set}" = set; then :
20898 withval
=$with_dracutdir; dracutdir
=$withval
20904 if test "x$dracutdir" = xcheck
; then :
20906 path1
=/usr
/share
/dracut
20907 path2
=/usr
/lib
/dracut
20910 if test -d "$path1"; then :
20914 if test -d "$path2"; then :
20917 dracutdir
="$default"
20925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
20926 $as_echo "$dracutdir" >&6; }
20929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
20930 $as_echo_n "checking for target asm dir... " >&6; }
20931 TARGET_ARCH
=`echo ${target_cpu} | sed -e s/i.86/i386/`
20933 case $TARGET_ARCH in
20935 TARGET_ASM_DIR
=asm-
${TARGET_ARCH}
20938 TARGET_ASM_DIR
=asm-generic
20943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
20944 $as_echo "$TARGET_ASM_DIR" >&6; }
20949 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20950 if test "x$ac_cv_header_zlib_h" = xyes
; then :
20953 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20954 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20956 *** zlib.h missing, zlib-devel package required
20957 See \`config.log' for more details" "$LINENO" 5; }
20962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
20963 $as_echo_n "checking for compress2 in -lz... " >&6; }
20964 if ${ac_cv_lib_z_compress2+:} false
; then :
20965 $as_echo_n "(cached) " >&6
20967 ac_check_lib_save_LIBS
=$LIBS
20969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
20970 /* end confdefs.h. */
20972 /* Override any GCC internal prototype to avoid an error.
20973 Use char because int might match the return type of a GCC
20974 builtin and then its argument prototype would still apply. */
20982 return compress2 ();
20987 if ac_fn_c_try_link
"$LINENO"; then :
20988 ac_cv_lib_z_compress2
=yes
20990 ac_cv_lib_z_compress2
=no
20992 rm -f core conftest.err conftest.
$ac_objext \
20993 conftest
$ac_exeext conftest.
$ac_ext
20994 LIBS
=$ac_check_lib_save_LIBS
20996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
20997 $as_echo "$ac_cv_lib_z_compress2" >&6; }
20998 if test "x$ac_cv_lib_z_compress2" = xyes
; then :
20999 cat >>confdefs.h
<<_ACEOF
21000 #define HAVE_LIBZ 1
21006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21009 *** compress2() missing, zlib-devel package required
21010 See \`config.log' for more details" "$LINENO" 5; }
21014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
21015 $as_echo_n "checking for uncompress in -lz... " >&6; }
21016 if ${ac_cv_lib_z_uncompress+:} false
; then :
21017 $as_echo_n "(cached) " >&6
21019 ac_check_lib_save_LIBS
=$LIBS
21021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21022 /* end confdefs.h. */
21024 /* Override any GCC internal prototype to avoid an error.
21025 Use char because int might match the return type of a GCC
21026 builtin and then its argument prototype would still apply. */
21030 char uncompress ();
21034 return uncompress ();
21039 if ac_fn_c_try_link
"$LINENO"; then :
21040 ac_cv_lib_z_uncompress
=yes
21042 ac_cv_lib_z_uncompress
=no
21044 rm -f core conftest.err conftest.
$ac_objext \
21045 conftest
$ac_exeext conftest.
$ac_ext
21046 LIBS
=$ac_check_lib_save_LIBS
21048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
21049 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
21050 if test "x$ac_cv_lib_z_uncompress" = xyes
; then :
21051 cat >>confdefs.h
<<_ACEOF
21052 #define HAVE_LIBZ 1
21058 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21059 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21061 *** uncompress() missing, zlib-devel package required
21062 See \`config.log' for more details" "$LINENO" 5; }
21066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5
21067 $as_echo_n "checking for crc32 in -lz... " >&6; }
21068 if ${ac_cv_lib_z_crc32+:} false
; then :
21069 $as_echo_n "(cached) " >&6
21071 ac_check_lib_save_LIBS
=$LIBS
21073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21074 /* end confdefs.h. */
21076 /* Override any GCC internal prototype to avoid an error.
21077 Use char because int might match the return type of a GCC
21078 builtin and then its argument prototype would still apply. */
21091 if ac_fn_c_try_link
"$LINENO"; then :
21092 ac_cv_lib_z_crc32
=yes
21094 ac_cv_lib_z_crc32
=no
21096 rm -f core conftest.err conftest.
$ac_objext \
21097 conftest
$ac_exeext conftest.
$ac_ext
21098 LIBS
=$ac_check_lib_save_LIBS
21100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5
21101 $as_echo "$ac_cv_lib_z_crc32" >&6; }
21102 if test "x$ac_cv_lib_z_crc32" = xyes
; then :
21103 cat >>confdefs.h
<<_ACEOF
21104 #define HAVE_LIBZ 1
21110 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21111 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21113 *** crc32() missing, zlib-devel package required
21114 See \`config.log' for more details" "$LINENO" 5; }
21121 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
21127 ac_fn_c_check_header_mongrel
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
21128 if test "x$ac_cv_header_uuid_uuid_h" = xyes
; then :
21131 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21132 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21134 *** uuid/uuid.h missing, libuuid-devel package required
21135 See \`config.log' for more details" "$LINENO" 5; }
21140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
21141 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
21142 if ${ac_cv_lib_uuid_uuid_generate+:} false
; then :
21143 $as_echo_n "(cached) " >&6
21145 ac_check_lib_save_LIBS
=$LIBS
21146 LIBS
="-luuid $LIBS"
21147 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21148 /* end confdefs.h. */
21150 /* Override any GCC internal prototype to avoid an error.
21151 Use char because int might match the return type of a GCC
21152 builtin and then its argument prototype would still apply. */
21156 char uuid_generate ();
21160 return uuid_generate ();
21165 if ac_fn_c_try_link
"$LINENO"; then :
21166 ac_cv_lib_uuid_uuid_generate
=yes
21168 ac_cv_lib_uuid_uuid_generate
=no
21170 rm -f core conftest.err conftest.
$ac_objext \
21171 conftest
$ac_exeext conftest.
$ac_ext
21172 LIBS
=$ac_check_lib_save_LIBS
21174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
21175 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
21176 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
; then :
21177 cat >>confdefs.h
<<_ACEOF
21178 #define HAVE_LIBUUID 1
21181 LIBS
="-luuid $LIBS"
21184 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21185 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21187 *** uuid_generate() missing, libuuid-devel package required
21188 See \`config.log' for more details" "$LINENO" 5; }
21192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5
21193 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
21194 if ${ac_cv_lib_uuid_uuid_is_null+:} false
; then :
21195 $as_echo_n "(cached) " >&6
21197 ac_check_lib_save_LIBS
=$LIBS
21198 LIBS
="-luuid $LIBS"
21199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21200 /* end confdefs.h. */
21202 /* Override any GCC internal prototype to avoid an error.
21203 Use char because int might match the return type of a GCC
21204 builtin and then its argument prototype would still apply. */
21208 char uuid_is_null ();
21212 return uuid_is_null ();
21217 if ac_fn_c_try_link
"$LINENO"; then :
21218 ac_cv_lib_uuid_uuid_is_null
=yes
21220 ac_cv_lib_uuid_uuid_is_null
=no
21222 rm -f core conftest.err conftest.
$ac_objext \
21223 conftest
$ac_exeext conftest.
$ac_ext
21224 LIBS
=$ac_check_lib_save_LIBS
21226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5
21227 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
21228 if test "x$ac_cv_lib_uuid_uuid_is_null" = xyes
; then :
21229 cat >>confdefs.h
<<_ACEOF
21230 #define HAVE_LIBUUID 1
21233 LIBS
="-luuid $LIBS"
21236 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21239 *** uuid_is_null() missing, libuuid-devel package required
21240 See \`config.log' for more details" "$LINENO" 5; }
21247 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
21252 # Check whether --with-blkid was given.
21253 if test "${with_blkid+set}" = set; then :
21254 withval
=$with_blkid;
21261 if test "x$with_blkid" = xyes
; then :
21266 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
21271 if test "x$with_blkid" = xcheck
; then :
21273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
21274 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
21275 if ${ac_cv_lib_blkid_blkid_get_cache+:} false
; then :
21276 $as_echo_n "(cached) " >&6
21278 ac_check_lib_save_LIBS
=$LIBS
21279 LIBS
="-lblkid $LIBS"
21280 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21281 /* end confdefs.h. */
21283 /* Override any GCC internal prototype to avoid an error.
21284 Use char because int might match the return type of a GCC
21285 builtin and then its argument prototype would still apply. */
21289 char blkid_get_cache ();
21293 return blkid_get_cache ();
21298 if ac_fn_c_try_link
"$LINENO"; then :
21299 ac_cv_lib_blkid_blkid_get_cache
=yes
21301 ac_cv_lib_blkid_blkid_get_cache
=no
21303 rm -f core conftest.err conftest.
$ac_objext \
21304 conftest
$ac_exeext conftest.
$ac_ext
21305 LIBS
=$ac_check_lib_save_LIBS
21307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
21308 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
21309 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
; then :
21311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5
21312 $as_echo_n "checking for blkid zfs support... " >&6; }
21315 truncate
-s 64M
$ZFS_DEV
21316 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
21317 dd of
=$ZFS_DEV bs
=1k count
=8 \
21318 seek
=128 conv
=notrunc
&>/dev
/null \
21319 >/dev
/null
2>/dev
/null
21320 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
21321 dd of
=$ZFS_DEV bs
=1k count
=8 \
21322 seek
=132 conv
=notrunc
&>/dev
/null \
21323 >/dev
/null
2>/dev
/null
21324 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
21325 dd of
=$ZFS_DEV bs
=1k count
=8 \
21326 seek
=136 conv
=notrunc
&>/dev
/null \
21327 >/dev
/null
2>/dev
/null
21328 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
21329 dd of
=$ZFS_DEV bs
=1k count
=8 \
21330 seek
=140 conv
=notrunc
&>/dev
/null \
21331 >/dev
/null
2>/dev
/null
21336 if test "$cross_compiling" = yes; then :
21337 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21338 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21339 as_fn_error $?
"cannot run test program while cross compiling
21340 See \`config.log' for more details" "$LINENO" 5; }
21342 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21343 /* end confdefs.h. */
21346 #include <stdlib.h>
21347 #include <blkid/blkid.h>
21356 if (blkid_get_cache(&cache, NULL) < 0)
21359 value = blkid_get_tag_value(cache, "TYPE",
21362 blkid_put_cache(cache);
21366 if (strcmp(value, "zfs_member")) {
21368 blkid_put_cache(cache);
21373 blkid_put_cache(cache);
21379 if ac_fn_c_try_run
"$LINENO"; then :
21382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21383 $as_echo "yes" >&6; }
21387 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
21393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21394 $as_echo "no" >&6; }
21395 if test "x$with_blkid" != xcheck
; then :
21396 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21398 as_fn_error $?
"--with-blkid given but unavailable
21399 See \`config.log' for more details" "$LINENO" 5; }
21403 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21404 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21412 if test "x$with_blkid" != xcheck
; then :
21413 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21414 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21415 as_fn_error $?
"--with-blkid given but unavailable
21416 See \`config.log' for more details" "$LINENO" 5; }
21426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
21427 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
21429 saved_flags
="$CFLAGS"
21430 CFLAGS
="$CFLAGS -Wframe-larger-than=1024"
21432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21433 /* end confdefs.h. */
21443 if ac_fn_c_try_compile
"$LINENO"; then :
21445 FRAME_LARGER_THAN
=-Wframe-larger-than=1024
21446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21447 $as_echo "yes" >&6; }
21452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21453 $as_echo "no" >&6; }
21456 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21458 CFLAGS
="$saved_flags"
21462 if test "x$runstatedir" = x
; then
21463 runstatedir
='${localstatedir}/run'
21467 for ac_func
in mlockall
21469 ac_fn_c_check_func
"$LINENO" "mlockall" "ac_cv_func_mlockall"
21470 if test "x$ac_cv_func_mlockall" = xyes
; then :
21471 cat >>confdefs.h
<<_ACEOF
21472 #define HAVE_MLOCKALL 1
21482 # Check whether --with-linux was given.
21483 if test "${with_linux+set}" = set; then :
21484 withval
=$with_linux; kernelsrc
="$withval"
21489 # Check whether --with-linux-obj was given.
21490 if test "${with_linux_obj+set}" = set; then :
21491 withval
=$with_linux_obj; kernelbuild
="$withval"
21495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
21496 $as_echo_n "checking kernel source directory... " >&6; }
21497 if test -z "$kernelsrc"; then :
21499 if test -e "/lib/modules/$(uname -r)/source"; then :
21501 headersdir
="/lib/modules/$(uname -r)/source"
21502 sourcelink
=$
(readlink
-f "$headersdir")
21504 elif test -e "/lib/modules/$(uname -r)/build"; then :
21506 headersdir
="/lib/modules/$(uname -r)/build"
21507 sourcelink
=$
(readlink
-f "$headersdir")
21511 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
21513 2>/dev
/null |
grep -v obj |
tail -1)
21517 if test -n "$sourcelink" && test -e ${sourcelink}; then :
21519 kernelsrc
=`readlink -f ${sourcelink}`
21523 kernelsrc
="Not found"
21529 if test "$kernelsrc" = "NONE"; then :
21537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
21538 $as_echo "$kernelsrc" >&6; }
21539 if test ! -d "$kernelsrc"; then :
21542 *** Please make sure the kernel devel package for your distribution
21543 *** is installed and then try again. If that fails, you can specify the
21544 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
21548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
21549 $as_echo_n "checking kernel build directory... " >&6; }
21550 if test -z "$kernelbuild"; then :
21552 if test -e "/lib/modules/$(uname -r)/build"; then :
21554 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
21556 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
21558 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
21560 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then :
21562 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
21564 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then :
21566 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
21570 kernelbuild
=${kernelsrc}
21575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
21576 $as_echo "$kernelbuild" >&6; }
21578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
21579 $as_echo_n "checking kernel source version... " >&6; }
21580 utsrelease1
=$kernelbuild/include
/linux
/version.h
21581 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
21582 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
21583 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then :
21585 utsrelease
=linux
/version.h
21587 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then :
21589 utsrelease
=linux
/utsrelease.h
21591 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then :
21593 utsrelease
=generated
/utsrelease.h
21597 if test "$utsrelease"; then :
21599 kernsrcver
=`(echo "#include <$utsrelease>";
21600 echo "kernsrcver=UTS_RELEASE") |
21601 cpp -I $kernelbuild/include |
21602 grep "^kernsrcver=" | cut -d \" -f 2`
21604 if test -z "$kernsrcver"; then :
21606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
21607 $as_echo "Not found" >&6; }
21608 as_fn_error $?
"*** Cannot determine kernel version." "$LINENO" 5
21614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
21615 $as_echo "Not found" >&6; }
21616 if test "x$enable_linux_builtin" != xyes
; then
21617 as_fn_error $?
"*** Cannot find UTS_RELEASE definition." "$LINENO" 5
21620 *** Cannot find UTS_RELEASE definition.
21621 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
21626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
21627 $as_echo "$kernsrcver" >&6; }
21630 LINUX_OBJ
=${kernelbuild}
21631 LINUX_VERSION
=${kernsrcver}
21638 modpost
=$LINUX/scripts
/Makefile.modpost
21639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
21640 $as_echo_n "checking kernel file name for module symbols... " >&6; }
21641 if test "x$enable_linux_builtin" != xyes
-a -f "$modpost"; then :
21643 if grep -q Modules.symvers
$modpost; then :
21645 LINUX_SYMBOLS
=Modules.symvers
21649 LINUX_SYMBOLS
=Module.symvers
21653 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
21656 *** Please make sure the kernel devel package for your distribution
21657 *** is installed. If you are building with a custom kernel, make sure the
21658 *** kernel is configured, built, and the '--with-linux=PATH' configure
21659 *** option refers to the location of the kernel source." "$LINENO" 5
21668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
21669 $as_echo "$LINUX_SYMBOLS" >&6; }
21675 # Check whether --with-spl was given.
21676 if test "${with_spl+set}" = set; then :
21677 withval
=$with_spl; splsrc
="$withval"
21682 # Check whether --with-spl-obj was given.
21683 if test "${with_spl_obj+set}" = set; then :
21684 withval
=$with_spl_obj; splbuild
="$withval"
21689 # Check whether --with-spl-timeout was given.
21690 if test "${with_spl_timeout+set}" = set; then :
21691 withval
=$with_spl_timeout; timeout
="$withval"
21697 splsrc0
="/var/lib/dkms/spl/${VERSION}/build"
21698 splsrc1
="/usr/local/src/spl-${VERSION}/${LINUX_VERSION}"
21699 splsrc2
="/usr/local/src/spl-${VERSION}"
21700 splsrc3
="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
21701 splsrc4
="/usr/src/spl-${VERSION}"
21705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
21706 $as_echo_n "checking spl source directory... " >&6; }
21707 if test -z "${splsrc}"; then :
21709 if test -e "${splsrc0}/spl.release.in"; then :
21713 elif test -e "${splsrc1}/spl.release.in"; then :
21717 elif test -e "${splsrc2}/spl.release.in"; then :
21721 elif test -e "${splsrc3}/spl.release.in"; then :
21723 splsrc
=$
(readlink
-f "${splsrc3}")
21725 elif test -e "${splsrc4}/spl.release.in" ; then :
21729 elif test -e "${splsrc5}/spl.release.in"; then :
21731 splsrc
=$
(readlink
-f "${splsrc5}")
21733 elif test -e "${splsrc6}/spl.release.in" ; then :
21745 if test "$splsrc" = "NONE"; then :
21754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
21755 $as_echo "$splsrc" >&6; }
21756 if test ! -e "$splsrc/spl.release.in"; then :
21759 *** Please make sure the kmod spl devel package for your distribution
21760 *** is installed then try again. If that fails you can specify the
21761 *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5
21765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
21766 $as_echo_n "checking spl build directory... " >&6; }
21768 if test -z "$splbuild"; then :
21770 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
21772 splbuild
="${splsrc}/${LINUX_VERSION}"
21774 elif test -e "${splsrc}/spl_config.h" ; then :
21776 splbuild
="${splsrc}"
21780 splbuild
="Not found"
21785 if test -e "$splbuild/spl_config.h" -o $timeout -le 0; then :
21792 timeout
=$
((timeout-1
))
21797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
21798 $as_echo "$splbuild" >&6; }
21799 if ! test -e "$splbuild/spl_config.h"; then :
21802 *** Please make sure the kmod spl devel <kernel> package for your
21803 *** distribution is installed then try again. If that fails you
21804 *** can specify the location of the spl objects with the
21805 *** '--with-spl-obj=PATH' option." "$LINENO" 5
21809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
21810 $as_echo_n "checking spl source version... " >&6; }
21811 if test -r $splbuild/spl_config.h
&&
21812 fgrep
-q SPL_META_VERSION
$splbuild/spl_config.h
; then :
21815 splsrcver
=`(echo "#include <spl_config.h>";
21816 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
21818 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
21822 if test -z "$splsrcver"; then :
21824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
21825 $as_echo "Not found" >&6; }
21827 *** Cannot determine the version of the spl source.
21828 *** Please prepare the spl source before running this script" "$LINENO" 5
21832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
21833 $as_echo "$splsrcver" >&6; }
21836 SPL_OBJ
=${splbuild}
21837 SPL_VERSION
=${splsrcver}
21843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
21844 $as_echo_n "checking spl file name for module symbols... " >&6; }
21848 if test -r $SPL_OBJ/Module.symvers
; then :
21850 SPL_SYMBOLS
=Module.symvers
21852 elif test -r $SPL_OBJ/Modules.symvers
; then :
21854 SPL_SYMBOLS
=Modules.symvers
21856 elif test -r $SPL_OBJ/module
/Module.symvers
; then :
21858 SPL_SYMBOLS
=Module.symvers
21860 elif test -r $SPL_OBJ/module
/Modules.symvers
; then :
21862 SPL_SYMBOLS
=Modules.symvers
21866 if test $SPL_SYMBOLS != NONE
-o $timeout -le 0; then :
21873 timeout
=$
((timeout-1
))
21878 if test "$SPL_SYMBOLS" = NONE
; then :
21880 SPL_SYMBOLS
=$LINUX_SYMBOLS
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
21885 $as_echo "$SPL_SYMBOLS" >&6; }
21889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
21890 $as_echo_n "checking whether modules can be built... " >&6; }
21893 cat confdefs.h
- <<_ACEOF >conftest.c
21908 cat - <<_ACEOF >conftest.h
21913 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21914 echo "obj-m := conftest.o" >build
/Makefile
21916 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21917 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21918 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21919 (eval $ac_try) 2>&5
21921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21922 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21923 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21924 (eval $ac_try) 2>&5
21926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21927 test $ac_status = 0; }; }; then :
21929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21930 $as_echo "yes" >&6; }
21933 $as_echo "$as_me: failed program was:" >&5
21934 sed 's/^/| /' conftest.
$ac_ext >&5
21936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21937 $as_echo "no" >&6; }
21938 if test "x$enable_linux_builtin" != xyes
; then
21939 as_fn_error $?
"*** Unable to build an empty module." "$LINENO" 5
21942 *** Unable to build an empty module.
21943 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
21954 if test "$cross_compiling" = yes; then :
21955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21957 as_fn_error $?
"cannot run test program while cross compiling
21958 See \`config.log' for more details" "$LINENO" 5; }
21960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
21961 /* end confdefs.h. */
21964 #include "$LINUX/include/linux/license.h"
21970 return !license_is_gpl_compatible("$ZFS_META_LICENSE");
21977 if ac_fn_c_try_run
"$LINENO"; then :
21980 $as_echo "#define ZFS_IS_GPL_COMPATIBLE 1" >>confdefs.h
21984 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
21985 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
21991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
21992 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
21995 cat confdefs.h
- <<_ACEOF >conftest.c
21998 #include <linux/module.h>
22004 #ifndef CONFIG_DEBUG_LOCK_ALLOC
22005 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
22016 cat - <<_ACEOF >conftest.h
22021 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22022 echo "obj-m := conftest.o" >build
/Makefile
22024 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22025 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22026 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22027 (eval $ac_try) 2>&5
22029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22030 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22031 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22032 (eval $ac_try) 2>&5
22034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22035 test $ac_status = 0; }; }; then :
22037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22038 $as_echo "yes" >&6; }
22040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
22041 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
22042 tmp_flags
="$EXTRA_KCFLAGS"
22045 cat confdefs.h
- <<_ACEOF >conftest.c
22048 #include <linux/module.h>
22049 #include <linux/mutex.h>
22051 MODULE_LICENSE("$ZFS_META_LICENSE");
22061 mutex_unlock(&lock);
22071 cat - <<_ACEOF >conftest.h
22076 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22077 echo "obj-m := conftest.o" >build
/Makefile
22079 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22080 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22082 (eval $ac_try) 2>&5
22084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22085 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22087 (eval $ac_try) 2>&5
22089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22090 test $ac_status = 0; }; }; then :
22092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22093 $as_echo "no" >&6; }
22096 $as_echo "$as_me: failed program was:" >&5
22097 sed 's/^/| /' conftest.
$ac_ext >&5
22099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22100 $as_echo "yes" >&6; }
22102 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
22103 *** with the CDDL license and will prevent the module linking stage
22104 *** from succeeding. You must rebuild your kernel without this
22105 *** option enabled." "$LINENO" 5
22113 EXTRA_KCFLAGS
="$tmp_flags"
22117 $as_echo "$as_me: failed program was:" >&5
22118 sed 's/^/| /' conftest.
$ac_ext >&5
22120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22121 $as_echo "no" >&6; }
22134 tmp_flags
="$EXTRA_KCFLAGS"
22135 EXTRA_KCFLAGS
="-I\$(src)"
22137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether DECLARE_EVENT_CLASS() is available" >&5
22138 $as_echo_n "checking whether DECLARE_EVENT_CLASS() is available... " >&6; }
22141 cat confdefs.h
- <<_ACEOF >conftest.c
22144 #include <linux/module.h>
22145 MODULE_LICENSE(ZFS_META_LICENSE);
22147 #define CREATE_TRACE_POINTS
22148 #include "conftest.h"
22154 trace_zfs_autoconf_event_one(1UL);
22155 trace_zfs_autoconf_event_two(2UL);
22165 cat - <<_ACEOF >conftest.h
22167 #if !defined(_CONFTEST_H) || defined(TRACE_HEADER_MULTI_READ)
22168 #define _CONFTEST_H
22170 #undef TRACE_SYSTEM
22171 #define TRACE_SYSTEM zfs
22172 #include <linux/tracepoint.h>
22174 DECLARE_EVENT_CLASS(zfs_autoconf_event_class,
22175 TP_PROTO(unsigned long i),
22178 __field(unsigned long, i)
22183 TP_printk("i = %lu", __entry->i)
22186 #define DEFINE_AUTOCONF_EVENT(name) \
22187 DEFINE_EVENT(zfs_autoconf_event_class, name, \
22188 TP_PROTO(unsigned long i), \
22190 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_one);
22191 DEFINE_AUTOCONF_EVENT(zfs_autoconf_event_two);
22193 #endif /* _CONFTEST_H */
22195 #undef TRACE_INCLUDE_PATH
22196 #define TRACE_INCLUDE_PATH .
22197 #define TRACE_INCLUDE_FILE conftest
22198 #include <trace/define_trace.h>
22203 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22204 echo "obj-m := conftest.o" >build
/Makefile
22206 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22207 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22209 (eval $ac_try) 2>&5
22211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22212 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22213 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22214 (eval $ac_try) 2>&5
22216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22217 test $ac_status = 0; }; }; then :
22219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22220 $as_echo "yes" >&6; }
22222 $as_echo "#define HAVE_DECLARE_EVENT_CLASS 1" >>confdefs.h
22226 $as_echo "$as_me: failed program was:" >&5
22227 sed 's/^/| /' conftest.
$ac_ext >&5
22229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22230 $as_echo "no" >&6; }
22238 EXTRA_KCFLAGS
="$tmp_flags"
22241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
22242 $as_echo_n "checking block device operation prototypes... " >&6; }
22243 tmp_flags
="$EXTRA_KCFLAGS"
22244 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
22247 cat confdefs.h
- <<_ACEOF >conftest.c
22250 #include <linux/blkdev.h>
22252 int blk_open(struct block_device *bdev, fmode_t mode)
22254 int blk_ioctl(struct block_device *bdev, fmode_t mode,
22255 unsigned x, unsigned long y) { return 0; }
22256 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
22257 unsigned x, unsigned long y) { return 0; }
22259 static const struct block_device_operations
22260 bops __attribute__ ((unused)) = {
22263 .ioctl = blk_ioctl,
22264 .compat_ioctl = blk_compat_ioctl,
22280 cat - <<_ACEOF >conftest.h
22285 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22286 echo "obj-m := conftest.o" >build
/Makefile
22288 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22289 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22290 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22291 (eval $ac_try) 2>&5
22293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22294 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22295 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22296 (eval $ac_try) 2>&5
22298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22299 test $ac_status = 0; }; }; then :
22301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
22302 $as_echo "struct block_device" >&6; }
22304 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
22308 $as_echo "$as_me: failed program was:" >&5
22309 sed 's/^/| /' conftest.
$ac_ext >&5
22311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
22312 $as_echo "struct inode" >&6; }
22320 EXTRA_KCFLAGS
="$tmp_flags"
22323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether block_device_operations.release is void" >&5
22324 $as_echo_n "checking whether block_device_operations.release is void... " >&6; }
22325 tmp_flags
="$EXTRA_KCFLAGS"
22326 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
22329 cat confdefs.h
- <<_ACEOF >conftest.c
22332 #include <linux/blkdev.h>
22334 void blk_release(struct gendisk *g, fmode_t mode) { return; }
22336 static const struct block_device_operations
22337 bops __attribute__ ((unused)) = {
22339 .release = blk_release,
22341 .compat_ioctl = NULL,
22357 cat - <<_ACEOF >conftest.h
22362 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22363 echo "obj-m := conftest.o" >build
/Makefile
22365 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22366 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22367 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22368 (eval $ac_try) 2>&5
22370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22371 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22373 (eval $ac_try) 2>&5
22375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22376 test $ac_status = 0; }; }; then :
22378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: void" >&5
22379 $as_echo "void" >&6; }
22381 $as_echo "#define HAVE_BLOCK_DEVICE_OPERATIONS_RELEASE_VOID 1" >>confdefs.h
22385 $as_echo "$as_me: failed program was:" >&5
22386 sed 's/^/| /' conftest.
$ac_ext >&5
22388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: int" >&5
22389 $as_echo "int" >&6; }
22397 EXTRA_KCFLAGS
="$tmp_flags"
22399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
22400 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
22403 cat confdefs.h
- <<_ACEOF >conftest.c
22406 #include <linux/types.h>
22412 fmode_t *ptr __attribute__ ((unused));
22422 cat - <<_ACEOF >conftest.h
22427 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22428 echo "obj-m := conftest.o" >build
/Makefile
22430 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22431 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22433 (eval $ac_try) 2>&5
22435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22436 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22437 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22438 (eval $ac_try) 2>&5
22440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22441 test $ac_status = 0; }; }; then :
22443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22444 $as_echo "yes" >&6; }
22446 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
22450 $as_echo "$as_me: failed program was:" >&5
22451 sed 's/^/| /' conftest.
$ac_ext >&5
22453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22454 $as_echo "no" >&6; }
22464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5
22465 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
22468 cat confdefs.h
- <<_ACEOF >conftest.c
22471 #include <linux/kobject.h>
22477 int val __attribute__ ((unused));
22478 val = KOBJ_NAME_LEN;
22488 cat - <<_ACEOF >conftest.h
22493 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22494 echo "obj-m := conftest.o" >build
/Makefile
22496 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22497 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22499 (eval $ac_try) 2>&5
22501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22502 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22503 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22504 (eval $ac_try) 2>&5
22506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22507 test $ac_status = 0; }; }; then :
22509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22510 $as_echo "yes" >&6; }
22512 $as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h
22516 $as_echo "$as_me: failed program was:" >&5
22517 sed 's/^/| /' conftest.
$ac_ext >&5
22519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22520 $as_echo "no" >&6; }
22530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
22531 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
22534 cat confdefs.h
- <<_ACEOF >conftest.c
22537 #include <linux/fs.h>
22543 struct block_device *bdev = NULL;
22544 (void) blkdev_get(bdev, 0, NULL);
22554 cat - <<_ACEOF >conftest.h
22559 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22560 echo "obj-m := conftest.o" >build
/Makefile
22562 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22563 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22564 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22565 (eval $ac_try) 2>&5
22567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22568 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22570 (eval $ac_try) 2>&5
22572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22573 test $ac_status = 0; }; }; then :
22575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22576 $as_echo "yes" >&6; }
22578 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
22582 $as_echo "$as_me: failed program was:" >&5
22583 sed 's/^/| /' conftest.
$ac_ext >&5
22585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22586 $as_echo "no" >&6; }
22595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
22596 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
22600 cat confdefs.h
- <<_ACEOF >conftest.c
22603 #include <linux/fs.h>
22609 blkdev_get_by_path(NULL, 0, NULL);
22619 cat - <<_ACEOF >conftest.h
22624 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22625 echo "obj-m := conftest.o" >build
/Makefile
22627 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22628 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22630 (eval $ac_try) 2>&5
22632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22633 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22635 (eval $ac_try) 2>&5
22637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22638 test $ac_status = 0; }; }; then :
22641 $as_echo "$as_me: failed program was:" >&5
22642 sed 's/^/| /' conftest.
$ac_ext >&5
22650 if test $rc -ne 0; then :
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22653 $as_echo "no" >&6; }
22656 if test "x$enable_linux_builtin" != xyes
; then
22658 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
22659 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22661 if test $rc -ne 0; then
22663 for file in fs
/block_dev.c
; do
22664 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
22665 "$LINUX/$file" 2>/dev
/null
22667 if test $rc -eq 0; then
22672 if test $export -eq 0; then :
22682 if test $rc -ne 0; then :
22684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22685 $as_echo "no" >&6; }
22689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22690 $as_echo "yes" >&6; }
22692 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
22699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
22700 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
22704 cat confdefs.h
- <<_ACEOF >conftest.c
22707 #include <linux/fs.h>
22713 open_bdev_exclusive(NULL, 0, NULL);
22723 cat - <<_ACEOF >conftest.h
22728 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22729 echo "obj-m := conftest.o" >build
/Makefile
22731 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22732 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22733 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22734 (eval $ac_try) 2>&5
22736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22737 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22738 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22739 (eval $ac_try) 2>&5
22741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22742 test $ac_status = 0; }; }; then :
22745 $as_echo "$as_me: failed program was:" >&5
22746 sed 's/^/| /' conftest.
$ac_ext >&5
22754 if test $rc -ne 0; then :
22756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22757 $as_echo "no" >&6; }
22760 if test "x$enable_linux_builtin" != xyes
; then
22762 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
22763 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22765 if test $rc -ne 0; then
22767 for file in fs
/block_dev.c
; do
22768 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
22769 "$LINUX/$file" 2>/dev
/null
22771 if test $rc -eq 0; then
22776 if test $export -eq 0; then :
22786 if test $rc -ne 0; then :
22788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22789 $as_echo "no" >&6; }
22793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22794 $as_echo "yes" >&6; }
22796 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
22803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() is available" >&5
22804 $as_echo_n "checking whether lookup_bdev() is available... " >&6; }
22808 cat confdefs.h
- <<_ACEOF >conftest.c
22811 #include <linux/fs.h>
22827 cat - <<_ACEOF >conftest.h
22832 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22833 echo "obj-m := conftest.o" >build
/Makefile
22835 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22836 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22838 (eval $ac_try) 2>&5
22840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22841 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22843 (eval $ac_try) 2>&5
22845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22846 test $ac_status = 0; }; }; then :
22849 $as_echo "$as_me: failed program was:" >&5
22850 sed 's/^/| /' conftest.
$ac_ext >&5
22858 if test $rc -ne 0; then :
22860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22861 $as_echo "no" >&6; }
22864 if test "x$enable_linux_builtin" != xyes
; then
22866 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
22867 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22869 if test $rc -ne 0; then
22871 for file in fs
/block_dev.c
; do
22872 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
22873 "$LINUX/$file" 2>/dev
/null
22875 if test $rc -eq 0; then
22880 if test $export -eq 0; then :
22890 if test $rc -ne 0; then :
22892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22893 $as_echo "no" >&6; }
22897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22898 $as_echo "yes" >&6; }
22900 $as_echo "#define HAVE_LOOKUP_BDEV 1" >>confdefs.h
22908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
22909 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
22912 cat confdefs.h
- <<_ACEOF >conftest.c
22915 #include <linux/buffer_head.h>
22921 struct block_device *bdev = NULL;
22922 invalidate_bdev(bdev);
22932 cat - <<_ACEOF >conftest.h
22937 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22938 echo "obj-m := conftest.o" >build
/Makefile
22940 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22941 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22942 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22943 (eval $ac_try) 2>&5
22945 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22946 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22947 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22948 (eval $ac_try) 2>&5
22950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22951 test $ac_status = 0; }; }; then :
22953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22954 $as_echo "yes" >&6; }
22956 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
22960 $as_echo "$as_me: failed program was:" >&5
22961 sed 's/^/| /' conftest.
$ac_ext >&5
22963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22964 $as_echo "no" >&6; }
22974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
22975 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
22976 tmp_flags
="$EXTRA_KCFLAGS"
22977 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
22980 cat confdefs.h
- <<_ACEOF >conftest.c
22983 #include <linux/blkdev.h>
22989 struct block_device *bdev = NULL;
22990 bdev_logical_block_size(bdev);
23000 cat - <<_ACEOF >conftest.h
23005 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23006 echo "obj-m := conftest.o" >build
/Makefile
23008 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23009 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23011 (eval $ac_try) 2>&5
23013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23014 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23016 (eval $ac_try) 2>&5
23018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23019 test $ac_status = 0; }; }; then :
23021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23022 $as_echo "yes" >&6; }
23024 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
23028 $as_echo "$as_me: failed program was:" >&5
23029 sed 's/^/| /' conftest.
$ac_ext >&5
23031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23032 $as_echo "no" >&6; }
23040 EXTRA_KCFLAGS
="$tmp_flags"
23043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
23044 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
23045 tmp_flags
="$EXTRA_KCFLAGS"
23046 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
23049 cat confdefs.h
- <<_ACEOF >conftest.c
23052 #include <linux/blkdev.h>
23058 struct block_device *bdev = NULL;
23059 bdev_physical_block_size(bdev);
23069 cat - <<_ACEOF >conftest.h
23074 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23075 echo "obj-m := conftest.o" >build
/Makefile
23077 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23078 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23080 (eval $ac_try) 2>&5
23082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23083 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23085 (eval $ac_try) 2>&5
23087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23088 test $ac_status = 0; }; }; then :
23090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23091 $as_echo "yes" >&6; }
23093 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
23097 $as_echo "$as_me: failed program was:" >&5
23098 sed 's/^/| /' conftest.
$ac_ext >&5
23100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23101 $as_echo "no" >&6; }
23109 EXTRA_KCFLAGS
="$tmp_flags"
23112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio has bi_iter" >&5
23113 $as_echo_n "checking whether bio has bi_iter... " >&6; }
23116 cat confdefs.h
- <<_ACEOF >conftest.c
23119 #include <linux/bio.h>
23126 bio.bi_iter.bi_sector = 0;
23136 cat - <<_ACEOF >conftest.h
23141 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23142 echo "obj-m := conftest.o" >build
/Makefile
23144 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23145 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23146 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23147 (eval $ac_try) 2>&5
23149 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23150 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23151 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23152 (eval $ac_try) 2>&5
23154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23155 test $ac_status = 0; }; }; then :
23157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23158 $as_echo "yes" >&6; }
23160 $as_echo "#define HAVE_BIO_BVEC_ITER 1" >>confdefs.h
23164 $as_echo "$as_me: failed program was:" >&5
23165 sed 's/^/| /' conftest.
$ac_ext >&5
23167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23168 $as_echo "no" >&6; }
23178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST is defined" >&5
23179 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
23182 cat confdefs.h
- <<_ACEOF >conftest.c
23185 #include <linux/bio.h>
23191 int flags __attribute__ ((unused));
23192 flags = (1 << BIO_RW_FAILFAST);
23202 cat - <<_ACEOF >conftest.h
23207 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23208 echo "obj-m := conftest.o" >build
/Makefile
23210 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23211 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23213 (eval $ac_try) 2>&5
23215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23216 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23217 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23218 (eval $ac_try) 2>&5
23220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23221 test $ac_status = 0; }; }; then :
23223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23224 $as_echo "yes" >&6; }
23226 $as_echo "#define HAVE_BIO_RW_FAILFAST 1" >>confdefs.h
23230 $as_echo "$as_me: failed program was:" >&5
23231 sed 's/^/| /' conftest.
$ac_ext >&5
23233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23234 $as_echo "no" >&6; }
23244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
23245 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
23248 cat confdefs.h
- <<_ACEOF >conftest.c
23251 #include <linux/bio.h>
23257 int flags __attribute__ ((unused));
23258 flags = ((1 << BIO_RW_FAILFAST_DEV) |
23259 (1 << BIO_RW_FAILFAST_TRANSPORT) |
23260 (1 << BIO_RW_FAILFAST_DRIVER));
23270 cat - <<_ACEOF >conftest.h
23275 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23276 echo "obj-m := conftest.o" >build
/Makefile
23278 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23279 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23280 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23281 (eval $ac_try) 2>&5
23283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23284 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23285 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23286 (eval $ac_try) 2>&5
23288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23289 test $ac_status = 0; }; }; then :
23291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23292 $as_echo "yes" >&6; }
23294 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
23298 $as_echo "$as_me: failed program was:" >&5
23299 sed 's/^/| /' conftest.
$ac_ext >&5
23301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23302 $as_echo "no" >&6; }
23312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
23313 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
23316 cat confdefs.h
- <<_ACEOF >conftest.c
23319 #include <linux/bio.h>
23325 int flags __attribute__ ((unused));
23326 flags = REQ_FAILFAST_MASK;
23336 cat - <<_ACEOF >conftest.h
23341 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23342 echo "obj-m := conftest.o" >build
/Makefile
23344 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23345 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23347 (eval $ac_try) 2>&5
23349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23350 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23352 (eval $ac_try) 2>&5
23354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23355 test $ac_status = 0; }; }; then :
23357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23358 $as_echo "yes" >&6; }
23360 $as_echo "#define HAVE_BIO_REQ_FAILFAST_MASK 1" >>confdefs.h
23364 $as_echo "$as_me: failed program was:" >&5
23365 sed 's/^/| /' conftest.
$ac_ext >&5
23367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23368 $as_echo "no" >&6; }
23378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 2 args" >&5
23379 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
23382 cat confdefs.h
- <<_ACEOF >conftest.c
23385 #include <linux/bio.h>
23387 void wanted_end_io(struct bio *bio, int x) { return; }
23389 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
23404 cat - <<_ACEOF >conftest.h
23409 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23410 echo "obj-m := conftest.o" >build
/Makefile
23412 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23413 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23414 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23415 (eval $ac_try) 2>&5
23417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23418 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23420 (eval $ac_try) 2>&5
23422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23423 test $ac_status = 0; }; }; then :
23425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23426 $as_echo "yes" >&6; }
23428 $as_echo "#define HAVE_2ARGS_BIO_END_IO_T 1" >>confdefs.h
23432 $as_echo "$as_me: failed program was:" >&5
23433 sed 's/^/| /' conftest.
$ac_ext >&5
23435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23436 $as_echo "no" >&6; }
23446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_SYNC is defined" >&5
23447 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
23450 cat confdefs.h
- <<_ACEOF >conftest.c
23453 #include <linux/bio.h>
23459 int flags __attribute__ ((unused));
23460 flags = BIO_RW_SYNC;
23470 cat - <<_ACEOF >conftest.h
23475 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23476 echo "obj-m := conftest.o" >build
/Makefile
23478 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23479 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23481 (eval $ac_try) 2>&5
23483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23484 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23485 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23486 (eval $ac_try) 2>&5
23488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23489 test $ac_status = 0; }; }; then :
23491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23492 $as_echo "yes" >&6; }
23494 $as_echo "#define HAVE_BIO_RW_SYNC 1" >>confdefs.h
23498 $as_echo "$as_me: failed program was:" >&5
23499 sed 's/^/| /' conftest.
$ac_ext >&5
23501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23502 $as_echo "no" >&6; }
23512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_SYNCIO is defined" >&5
23513 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
23516 cat confdefs.h
- <<_ACEOF >conftest.c
23519 #include <linux/bio.h>
23525 int flags __attribute__ ((unused));
23526 flags = BIO_RW_SYNCIO;
23536 cat - <<_ACEOF >conftest.h
23541 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23542 echo "obj-m := conftest.o" >build
/Makefile
23544 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23545 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23547 (eval $ac_try) 2>&5
23549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23550 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23551 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23552 (eval $ac_try) 2>&5
23554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23555 test $ac_status = 0; }; }; then :
23557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23558 $as_echo "yes" >&6; }
23560 $as_echo "#define HAVE_BIO_RW_SYNCIO 1" >>confdefs.h
23564 $as_echo "$as_me: failed program was:" >&5
23565 sed 's/^/| /' conftest.
$ac_ext >&5
23567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23568 $as_echo "no" >&6; }
23578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_SYNC is defined" >&5
23579 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
23582 cat confdefs.h
- <<_ACEOF >conftest.c
23585 #include <linux/bio.h>
23591 int flags __attribute__ ((unused));
23602 cat - <<_ACEOF >conftest.h
23607 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23608 echo "obj-m := conftest.o" >build
/Makefile
23610 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23611 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23612 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23613 (eval $ac_try) 2>&5
23615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23616 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23618 (eval $ac_try) 2>&5
23620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23621 test $ac_status = 0; }; }; then :
23623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23624 $as_echo "yes" >&6; }
23626 $as_echo "#define HAVE_REQ_SYNC 1" >>confdefs.h
23630 $as_echo "$as_me: failed program was:" >&5
23631 sed 's/^/| /' conftest.
$ac_ext >&5
23633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23634 $as_echo "no" >&6; }
23644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_end_request() is available" >&5
23645 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
23646 tmp_flags
="$EXTRA_KCFLAGS"
23647 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
23650 cat confdefs.h
- <<_ACEOF >conftest.c
23653 #include <linux/blkdev.h>
23659 struct request *req = NULL;
23660 (void) blk_end_request(req, 0, 0);
23670 cat - <<_ACEOF >conftest.h
23675 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23676 echo "obj-m := conftest.o" >build
/Makefile
23678 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23679 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23681 (eval $ac_try) 2>&5
23683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23684 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23686 (eval $ac_try) 2>&5
23688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23689 test $ac_status = 0; }; }; then :
23691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23692 $as_echo "yes" >&6; }
23694 $as_echo "#define HAVE_BLK_END_REQUEST 1" >>confdefs.h
23698 $as_echo "$as_me: failed program was:" >&5
23699 sed 's/^/| /' conftest.
$ac_ext >&5
23701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23702 $as_echo "no" >&6; }
23711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_end_request() is GPL-only" >&5
23712 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
23715 cat confdefs.h
- <<_ACEOF >conftest.c
23718 #include <linux/module.h>
23719 #include <linux/blkdev.h>
23721 MODULE_LICENSE("$ZFS_META_LICENSE");
23727 struct request *req = NULL;
23728 (void) blk_end_request(req, 0, 0);
23738 cat - <<_ACEOF >conftest.h
23743 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23744 echo "obj-m := conftest.o" >build
/Makefile
23746 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23747 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23749 (eval $ac_try) 2>&5
23751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23752 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23753 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23754 (eval $ac_try) 2>&5
23756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23757 test $ac_status = 0; }; }; then :
23759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23760 $as_echo "no" >&6; }
23763 $as_echo "$as_me: failed program was:" >&5
23764 sed 's/^/| /' conftest.
$ac_ext >&5
23766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23767 $as_echo "yes" >&6; }
23769 $as_echo "#define HAVE_BLK_END_REQUEST_GPL_ONLY 1" >>confdefs.h
23778 EXTRA_KCFLAGS
="$tmp_flags"
23781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
23782 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
23783 tmp_flags
="$EXTRA_KCFLAGS"
23784 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
23787 cat confdefs.h
- <<_ACEOF >conftest.c
23790 #include <linux/blkdev.h>
23796 struct request_queue *q = NULL;
23797 (void) blk_queue_flush(q, REQ_FLUSH);
23807 cat - <<_ACEOF >conftest.h
23812 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23813 echo "obj-m := conftest.o" >build
/Makefile
23815 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23816 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23818 (eval $ac_try) 2>&5
23820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23821 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23822 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23823 (eval $ac_try) 2>&5
23825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23826 test $ac_status = 0; }; }; then :
23828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23829 $as_echo "yes" >&6; }
23831 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
23835 $as_echo "$as_me: failed program was:" >&5
23836 sed 's/^/| /' conftest.
$ac_ext >&5
23838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23839 $as_echo "no" >&6; }
23848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
23849 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
23852 cat confdefs.h
- <<_ACEOF >conftest.c
23855 #include <linux/module.h>
23856 #include <linux/blkdev.h>
23858 MODULE_LICENSE("$ZFS_META_LICENSE");
23864 struct request_queue *q = NULL;
23865 (void) blk_queue_flush(q, REQ_FLUSH);
23875 cat - <<_ACEOF >conftest.h
23880 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23881 echo "obj-m := conftest.o" >build
/Makefile
23883 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23884 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23885 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23886 (eval $ac_try) 2>&5
23888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23889 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23890 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23891 (eval $ac_try) 2>&5
23893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23894 test $ac_status = 0; }; }; then :
23896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23897 $as_echo "no" >&6; }
23900 $as_echo "$as_me: failed program was:" >&5
23901 sed 's/^/| /' conftest.
$ac_ext >&5
23903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23904 $as_echo "yes" >&6; }
23906 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
23915 EXTRA_KCFLAGS
="$tmp_flags"
23918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
23919 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
23920 tmp_flags
="$EXTRA_KCFLAGS"
23921 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
23924 cat confdefs.h
- <<_ACEOF >conftest.c
23927 #include <linux/blkdev.h>
23933 struct request_queue *q = NULL;
23934 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
23944 cat - <<_ACEOF >conftest.h
23949 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23950 echo "obj-m := conftest.o" >build
/Makefile
23952 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23953 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23954 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23955 (eval $ac_try) 2>&5
23957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23958 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23959 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23960 (eval $ac_try) 2>&5
23962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23963 test $ac_status = 0; }; }; then :
23965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23966 $as_echo "yes" >&6; }
23968 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
23972 $as_echo "$as_me: failed program was:" >&5
23973 sed 's/^/| /' conftest.
$ac_ext >&5
23975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23976 $as_echo "no" >&6; }
23984 EXTRA_KCFLAGS
="$tmp_flags"
23987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
23988 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
23989 tmp_flags
="$EXTRA_KCFLAGS"
23990 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
23993 cat confdefs.h
- <<_ACEOF >conftest.c
23996 #include <linux/blkdev.h>
24002 struct request_queue *q = NULL;
24003 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
24013 cat - <<_ACEOF >conftest.h
24018 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24019 echo "obj-m := conftest.o" >build
/Makefile
24021 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24022 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24023 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24024 (eval $ac_try) 2>&5
24026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24027 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24029 (eval $ac_try) 2>&5
24031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24032 test $ac_status = 0; }; }; then :
24034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24035 $as_echo "yes" >&6; }
24037 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
24041 $as_echo "$as_me: failed program was:" >&5
24042 sed 's/^/| /' conftest.
$ac_ext >&5
24044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24045 $as_echo "no" >&6; }
24053 EXTRA_KCFLAGS
="$tmp_flags"
24056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_physical_block_size() is available" >&5
24057 $as_echo_n "checking whether blk_queue_physical_block_size() is available... " >&6; }
24058 tmp_flags
="$EXTRA_KCFLAGS"
24059 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
24062 cat confdefs.h
- <<_ACEOF >conftest.c
24065 #include <linux/blkdev.h>
24071 struct request_queue *q = NULL;
24072 unsigned short block_size = 1;
24073 (void) blk_queue_physical_block_size(q, block_size);
24083 cat - <<_ACEOF >conftest.h
24088 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24089 echo "obj-m := conftest.o" >build
/Makefile
24091 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24092 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24093 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24094 (eval $ac_try) 2>&5
24096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24097 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24098 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24099 (eval $ac_try) 2>&5
24101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24102 test $ac_status = 0; }; }; then :
24104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24105 $as_echo "yes" >&6; }
24107 $as_echo "#define HAVE_BLK_QUEUE_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
24111 $as_echo "$as_me: failed program was:" >&5
24112 sed 's/^/| /' conftest.
$ac_ext >&5
24114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24115 $as_echo "no" >&6; }
24123 EXTRA_KCFLAGS
="$tmp_flags"
24126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_io_opt() is available" >&5
24127 $as_echo_n "checking whether blk_queue_io_opt() is available... " >&6; }
24128 tmp_flags
="$EXTRA_KCFLAGS"
24129 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
24132 cat confdefs.h
- <<_ACEOF >conftest.c
24135 #include <linux/blkdev.h>
24141 struct request_queue *q = NULL;
24142 unsigned int opt = 1;
24143 (void) blk_queue_io_opt(q, opt);
24153 cat - <<_ACEOF >conftest.h
24158 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24159 echo "obj-m := conftest.o" >build
/Makefile
24161 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24162 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24163 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24164 (eval $ac_try) 2>&5
24166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24167 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24168 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24169 (eval $ac_try) 2>&5
24171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24172 test $ac_status = 0; }; }; then :
24174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24175 $as_echo "yes" >&6; }
24177 $as_echo "#define HAVE_BLK_QUEUE_IO_OPT 1" >>confdefs.h
24181 $as_echo "$as_me: failed program was:" >&5
24182 sed 's/^/| /' conftest.
$ac_ext >&5
24184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24185 $as_echo "no" >&6; }
24193 EXTRA_KCFLAGS
="$tmp_flags"
24196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_nonrot() is available" >&5
24197 $as_echo_n "checking whether blk_queue_nonrot() is available... " >&6; }
24198 tmp_flags
="$EXTRA_KCFLAGS"
24199 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
24202 cat confdefs.h
- <<_ACEOF >conftest.c
24205 #include <linux/blkdev.h>
24211 struct request_queue *q = NULL;
24212 (void) blk_queue_nonrot(q);
24222 cat - <<_ACEOF >conftest.h
24227 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24228 echo "obj-m := conftest.o" >build
/Makefile
24230 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24231 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24232 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24233 (eval $ac_try) 2>&5
24235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24236 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24238 (eval $ac_try) 2>&5
24240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24241 test $ac_status = 0; }; }; then :
24243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24244 $as_echo "yes" >&6; }
24246 $as_echo "#define HAVE_BLK_QUEUE_NONROT 1" >>confdefs.h
24250 $as_echo "$as_me: failed program was:" >&5
24251 sed 's/^/| /' conftest.
$ac_ext >&5
24253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24254 $as_echo "no" >&6; }
24262 EXTRA_KCFLAGS
="$tmp_flags"
24265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_discard() is available" >&5
24266 $as_echo_n "checking whether blk_queue_discard() is available... " >&6; }
24267 tmp_flags
="$EXTRA_KCFLAGS"
24268 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
24271 cat confdefs.h
- <<_ACEOF >conftest.c
24274 #include <linux/blkdev.h>
24280 struct request_queue *q = NULL;
24281 (void) blk_queue_discard(q);
24291 cat - <<_ACEOF >conftest.h
24296 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24297 echo "obj-m := conftest.o" >build
/Makefile
24299 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24300 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24301 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24302 (eval $ac_try) 2>&5
24304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24305 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24306 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24307 (eval $ac_try) 2>&5
24309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24310 test $ac_status = 0; }; }; then :
24312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24313 $as_echo "yes" >&6; }
24315 $as_echo "#define HAVE_BLK_QUEUE_DISCARD 1" >>confdefs.h
24319 $as_echo "$as_me: failed program was:" >&5
24320 sed 's/^/| /' conftest.
$ac_ext >&5
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24323 $as_echo "no" >&6; }
24331 EXTRA_KCFLAGS
="$tmp_flags"
24334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_fetch_request() is available" >&5
24335 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
24336 tmp_flags
="$EXTRA_KCFLAGS"
24337 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
24340 cat confdefs.h
- <<_ACEOF >conftest.c
24343 #include <linux/blkdev.h>
24349 struct request_queue *q = NULL;
24350 (void) blk_fetch_request(q);
24360 cat - <<_ACEOF >conftest.h
24365 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24366 echo "obj-m := conftest.o" >build
/Makefile
24368 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24369 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
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; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24375 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24376 (eval $ac_try) 2>&5
24378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24379 test $ac_status = 0; }; }; then :
24381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24382 $as_echo "yes" >&6; }
24384 $as_echo "#define HAVE_BLK_FETCH_REQUEST 1" >>confdefs.h
24388 $as_echo "$as_me: failed program was:" >&5
24389 sed 's/^/| /' conftest.
$ac_ext >&5
24391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24392 $as_echo "no" >&6; }
24400 EXTRA_KCFLAGS
="$tmp_flags"
24403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_requeue_request() is available" >&5
24404 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
24405 tmp_flags
="$EXTRA_KCFLAGS"
24406 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
24409 cat confdefs.h
- <<_ACEOF >conftest.c
24412 #include <linux/blkdev.h>
24418 struct request_queue *q = NULL;
24419 struct request *req = NULL;
24420 blk_requeue_request(q, req);
24430 cat - <<_ACEOF >conftest.h
24435 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24436 echo "obj-m := conftest.o" >build
/Makefile
24438 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24439 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24440 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24441 (eval $ac_try) 2>&5
24443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24444 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24445 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24446 (eval $ac_try) 2>&5
24448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24449 test $ac_status = 0; }; }; then :
24451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24452 $as_echo "yes" >&6; }
24454 $as_echo "#define HAVE_BLK_REQUEUE_REQUEST 1" >>confdefs.h
24458 $as_echo "$as_me: failed program was:" >&5
24459 sed 's/^/| /' conftest.
$ac_ext >&5
24461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24462 $as_echo "no" >&6; }
24470 EXTRA_KCFLAGS
="$tmp_flags"
24473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_bytes() is available" >&5
24474 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
24475 tmp_flags
="$EXTRA_KCFLAGS"
24476 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
24479 cat confdefs.h
- <<_ACEOF >conftest.c
24482 #include <linux/blkdev.h>
24488 struct request *req = NULL;
24489 (void) blk_rq_bytes(req);
24499 cat - <<_ACEOF >conftest.h
24504 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24505 echo "obj-m := conftest.o" >build
/Makefile
24507 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24508 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24509 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24510 (eval $ac_try) 2>&5
24512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24513 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24514 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24515 (eval $ac_try) 2>&5
24517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24518 test $ac_status = 0; }; }; then :
24520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24521 $as_echo "yes" >&6; }
24523 $as_echo "#define HAVE_BLK_RQ_BYTES 1" >>confdefs.h
24527 $as_echo "$as_me: failed program was:" >&5
24528 sed 's/^/| /' conftest.
$ac_ext >&5
24530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24531 $as_echo "no" >&6; }
24540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_bytes() is GPL-only" >&5
24541 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
24544 cat confdefs.h
- <<_ACEOF >conftest.c
24547 #include <linux/module.h>
24548 #include <linux/blkdev.h>
24550 MODULE_LICENSE("$ZFS_META_LICENSE");
24556 struct request *req = NULL;
24557 (void) blk_rq_bytes(req);
24567 cat - <<_ACEOF >conftest.h
24572 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24573 echo "obj-m := conftest.o" >build
/Makefile
24575 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24576 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24577 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24578 (eval $ac_try) 2>&5
24580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24581 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24582 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24583 (eval $ac_try) 2>&5
24585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24586 test $ac_status = 0; }; }; then :
24588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24589 $as_echo "no" >&6; }
24592 $as_echo "$as_me: failed program was:" >&5
24593 sed 's/^/| /' conftest.
$ac_ext >&5
24595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24596 $as_echo "yes" >&6; }
24598 $as_echo "#define HAVE_BLK_RQ_BYTES_GPL_ONLY 1" >>confdefs.h
24607 EXTRA_KCFLAGS
="$tmp_flags"
24610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_pos() is available" >&5
24611 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
24612 tmp_flags
="$EXTRA_KCFLAGS"
24613 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
24616 cat confdefs.h
- <<_ACEOF >conftest.c
24619 #include <linux/blkdev.h>
24625 struct request *req = NULL;
24626 (void) blk_rq_pos(req);
24636 cat - <<_ACEOF >conftest.h
24641 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24642 echo "obj-m := conftest.o" >build
/Makefile
24644 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24645 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24646 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24647 (eval $ac_try) 2>&5
24649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24650 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24651 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24652 (eval $ac_try) 2>&5
24654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24655 test $ac_status = 0; }; }; then :
24657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24658 $as_echo "yes" >&6; }
24660 $as_echo "#define HAVE_BLK_RQ_POS 1" >>confdefs.h
24664 $as_echo "$as_me: failed program was:" >&5
24665 sed 's/^/| /' conftest.
$ac_ext >&5
24667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24668 $as_echo "no" >&6; }
24676 EXTRA_KCFLAGS
="$tmp_flags"
24679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_sectors() is available" >&5
24680 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
24681 tmp_flags
="$EXTRA_KCFLAGS"
24682 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
24685 cat confdefs.h
- <<_ACEOF >conftest.c
24688 #include <linux/blkdev.h>
24694 struct request *req = NULL;
24695 (void) blk_rq_sectors(req);
24705 cat - <<_ACEOF >conftest.h
24710 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24711 echo "obj-m := conftest.o" >build
/Makefile
24713 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24714 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24715 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24716 (eval $ac_try) 2>&5
24718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24719 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24720 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24721 (eval $ac_try) 2>&5
24723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24724 test $ac_status = 0; }; }; then :
24726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24727 $as_echo "yes" >&6; }
24729 $as_echo "#define HAVE_BLK_RQ_SECTORS 1" >>confdefs.h
24733 $as_echo "$as_me: failed program was:" >&5
24734 sed 's/^/| /' conftest.
$ac_ext >&5
24736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24737 $as_echo "no" >&6; }
24745 EXTRA_KCFLAGS
="$tmp_flags"
24748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
24749 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
24750 tmp_flags
="$EXTRA_KCFLAGS"
24751 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
24754 cat confdefs.h
- <<_ACEOF >conftest.c
24757 #include <linux/blkdev.h>
24763 struct gendisk *disk = NULL;
24764 (void) get_disk_ro(disk);
24774 cat - <<_ACEOF >conftest.h
24779 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24780 echo "obj-m := conftest.o" >build
/Makefile
24782 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24783 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24784 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24785 (eval $ac_try) 2>&5
24787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24788 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24789 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24790 (eval $ac_try) 2>&5
24792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24793 test $ac_status = 0; }; }; then :
24795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24796 $as_echo "yes" >&6; }
24798 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
24802 $as_echo "$as_me: failed program was:" >&5
24803 sed 's/^/| /' conftest.
$ac_ext >&5
24805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24806 $as_echo "no" >&6; }
24814 EXTRA_KCFLAGS
="$tmp_flags"
24816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
24817 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
24821 cat confdefs.h
- <<_ACEOF >conftest.c
24824 #include <linux/genhd.h>
24830 get_gendisk(0, NULL);
24840 cat - <<_ACEOF >conftest.h
24845 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24846 echo "obj-m := conftest.o" >build
/Makefile
24848 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24849 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24850 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24851 (eval $ac_try) 2>&5
24853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24854 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24855 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24856 (eval $ac_try) 2>&5
24858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24859 test $ac_status = 0; }; }; then :
24862 $as_echo "$as_me: failed program was:" >&5
24863 sed 's/^/| /' conftest.
$ac_ext >&5
24871 if test $rc -ne 0; then :
24873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24874 $as_echo "no" >&6; }
24877 if test "x$enable_linux_builtin" != xyes
; then
24879 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
24880 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
24882 if test $rc -ne 0; then
24884 for file in block
/genhd.c
; do
24885 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
24886 "$LINUX/$file" 2>/dev
/null
24888 if test $rc -eq 0; then
24893 if test $export -eq 0; then :
24903 if test $rc -ne 0; then :
24905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24906 $as_echo "no" >&6; }
24910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24911 $as_echo "yes" >&6; }
24913 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
24921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rq_is_sync() is available" >&5
24922 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
24923 tmp_flags
="$EXTRA_KCFLAGS"
24924 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
24927 cat confdefs.h
- <<_ACEOF >conftest.c
24930 #include <linux/blkdev.h>
24936 struct request *req = NULL;
24937 (void) rq_is_sync(req);
24947 cat - <<_ACEOF >conftest.h
24952 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
24953 echo "obj-m := conftest.o" >build
/Makefile
24955 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
24956 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
24957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24958 (eval $ac_try) 2>&5
24960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24961 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
24962 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24963 (eval $ac_try) 2>&5
24965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24966 test $ac_status = 0; }; }; then :
24968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24969 $as_echo "yes" >&6; }
24971 $as_echo "#define HAVE_RQ_IS_SYNC 1" >>confdefs.h
24975 $as_echo "$as_me: failed program was:" >&5
24976 sed 's/^/| /' conftest.
$ac_ext >&5
24978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24979 $as_echo "no" >&6; }
24987 EXTRA_KCFLAGS
="$tmp_flags"
24990 tmp_flags
="$EXTRA_KCFLAGS"
24991 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
24993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rq_for_each_segment() wants bio_vec *" >&5
24994 $as_echo_n "checking whether rq_for_each_segment() wants bio_vec *... " >&6; }
24997 cat confdefs.h
- <<_ACEOF >conftest.c
25000 #include <linux/blkdev.h>
25006 struct bio_vec *bv;
25007 struct req_iterator iter;
25008 struct request *req = NULL;
25009 rq_for_each_segment(bv, req, iter) { }
25019 cat - <<_ACEOF >conftest.h
25024 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25025 echo "obj-m := conftest.o" >build
/Makefile
25027 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25028 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25030 (eval $ac_try) 2>&5
25032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25033 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25035 (eval $ac_try) 2>&5
25037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25038 test $ac_status = 0; }; }; then :
25040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25041 $as_echo "yes" >&6; }
25043 $as_echo "#define HAVE_RQ_FOR_EACH_SEGMENT 1" >>confdefs.h
25046 $as_echo "#define HAVE_RQ_FOR_EACH_SEGMENT_BVP 1" >>confdefs.h
25050 $as_echo "$as_me: failed program was:" >&5
25051 sed 's/^/| /' conftest.
$ac_ext >&5
25053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25054 $as_echo "no" >&6; }
25063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rq_for_each_segment() wants bio_vec" >&5
25064 $as_echo_n "checking whether rq_for_each_segment() wants bio_vec... " >&6; }
25067 cat confdefs.h
- <<_ACEOF >conftest.c
25070 #include <linux/blkdev.h>
25077 struct req_iterator iter;
25078 struct request *req = NULL;
25079 rq_for_each_segment(bv, req, iter) { }
25089 cat - <<_ACEOF >conftest.h
25094 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25095 echo "obj-m := conftest.o" >build
/Makefile
25097 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25098 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25100 (eval $ac_try) 2>&5
25102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25103 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25104 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25105 (eval $ac_try) 2>&5
25107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25108 test $ac_status = 0; }; }; then :
25110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25111 $as_echo "yes" >&6; }
25113 $as_echo "#define HAVE_RQ_FOR_EACH_SEGMENT 1" >>confdefs.h
25116 $as_echo "#define HAVE_RQ_FOR_EACH_SEGMENT_BV 1" >>confdefs.h
25120 $as_echo "$as_me: failed program was:" >&5
25121 sed 's/^/| /' conftest.
$ac_ext >&5
25123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25124 $as_echo "no" >&6; }
25133 EXTRA_KCFLAGS
="$tmp_flags"
25136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
25137 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
25140 cat confdefs.h
- <<_ACEOF >conftest.c
25143 #include <linux/blkdev.h>
25149 struct queue_limits ql __attribute__ ((unused));
25151 ql.discard_granularity = 0;
25161 cat - <<_ACEOF >conftest.h
25166 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25167 echo "obj-m := conftest.o" >build
/Makefile
25169 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25170 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25171 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25172 (eval $ac_try) 2>&5
25174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25175 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25176 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25177 (eval $ac_try) 2>&5
25179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25180 test $ac_status = 0; }; }; then :
25182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25183 $as_echo "yes" >&6; }
25185 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
25189 $as_echo "$as_me: failed program was:" >&5
25190 sed 's/^/| /' conftest.
$ac_ext >&5
25192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25193 $as_echo "no" >&6; }
25202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_hander" >&5
25203 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
25206 cat confdefs.h
- <<_ACEOF >conftest.c
25209 #include <linux/fs.h>
25210 #include <linux/xattr.h>
25212 const struct xattr_handler xattr_test_handler = {
25218 const struct xattr_handler *xattr_handlers[] = {
25219 &xattr_test_handler,
25222 const struct super_block sb __attribute__ ((unused)) = {
25223 .s_xattr = xattr_handlers,
25239 cat - <<_ACEOF >conftest.h
25244 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25245 echo "obj-m := conftest.o" >build
/Makefile
25247 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25248 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25250 (eval $ac_try) 2>&5
25252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25253 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25255 (eval $ac_try) 2>&5
25257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25258 test $ac_status = 0; }; }; then :
25260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25261 $as_echo "yes" >&6; }
25263 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
25267 $as_echo "$as_me: failed program was:" >&5
25268 sed 's/^/| /' conftest.
$ac_ext >&5
25270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25271 $as_echo "no" >&6; }
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
25282 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
25285 cat confdefs.h
- <<_ACEOF >conftest.c
25288 #include <linux/xattr.h>
25290 int get(struct dentry *dentry, const char *name,
25291 void *buffer, size_t size, int handler_flags) { return 0; }
25292 static const struct xattr_handler
25293 xops __attribute__ ((unused)) = {
25310 cat - <<_ACEOF >conftest.h
25315 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25316 echo "obj-m := conftest.o" >build
/Makefile
25318 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25319 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25320 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25321 (eval $ac_try) 2>&5
25323 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25324 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25326 (eval $ac_try) 2>&5
25328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25329 test $ac_status = 0; }; }; then :
25331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25332 $as_echo "yes" >&6; }
25334 $as_echo "#define HAVE_DENTRY_XATTR_GET 1" >>confdefs.h
25338 $as_echo "$as_me: failed program was:" >&5
25339 sed 's/^/| /' conftest.
$ac_ext >&5
25341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25342 $as_echo "no" >&6; }
25352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
25353 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
25356 cat confdefs.h
- <<_ACEOF >conftest.c
25359 #include <linux/xattr.h>
25361 int set(struct dentry *dentry, const char *name,
25362 const void *buffer, size_t size, int flags,
25363 int handler_flags) { return 0; }
25364 static const struct xattr_handler
25365 xops __attribute__ ((unused)) = {
25382 cat - <<_ACEOF >conftest.h
25387 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25388 echo "obj-m := conftest.o" >build
/Makefile
25390 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25391 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25392 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25393 (eval $ac_try) 2>&5
25395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25396 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25397 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25398 (eval $ac_try) 2>&5
25400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25401 test $ac_status = 0; }; }; then :
25403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25404 $as_echo "yes" >&6; }
25406 $as_echo "#define HAVE_DENTRY_XATTR_SET 1" >>confdefs.h
25410 $as_echo "$as_me: failed program was:" >&5
25411 sed 's/^/| /' conftest.
$ac_ext >&5
25413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25414 $as_echo "no" >&6; }
25424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->list() wants dentry" >&5
25425 $as_echo_n "checking whether xattr_handler->list() wants dentry... " >&6; }
25428 cat confdefs.h
- <<_ACEOF >conftest.c
25431 #include <linux/xattr.h>
25433 size_t list(struct dentry *dentry, char *list, size_t list_size,
25434 const char *name, size_t name_len, int handler_flags)
25436 static const struct xattr_handler
25437 xops __attribute__ ((unused)) = {
25454 cat - <<_ACEOF >conftest.h
25459 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25460 echo "obj-m := conftest.o" >build
/Makefile
25462 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25463 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25465 (eval $ac_try) 2>&5
25467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25468 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25469 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25470 (eval $ac_try) 2>&5
25472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25473 test $ac_status = 0; }; }; then :
25475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25476 $as_echo "yes" >&6; }
25478 $as_echo "#define HAVE_DENTRY_XATTR_LIST 1" >>confdefs.h
25482 $as_echo "$as_me: failed program was:" >&5
25483 sed 's/^/| /' conftest.
$ac_ext >&5
25485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25486 $as_echo "no" >&6; }
25496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode_owner_or_capable() exists" >&5
25497 $as_echo_n "checking whether inode_owner_or_capable() exists... " >&6; }
25500 cat confdefs.h
- <<_ACEOF >conftest.c
25503 #include <linux/fs.h>
25509 struct inode *ip = NULL;
25510 (void) inode_owner_or_capable(ip);
25520 cat - <<_ACEOF >conftest.h
25525 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25526 echo "obj-m := conftest.o" >build
/Makefile
25528 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25529 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25530 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25531 (eval $ac_try) 2>&5
25533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25534 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25535 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25536 (eval $ac_try) 2>&5
25538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25539 test $ac_status = 0; }; }; then :
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25542 $as_echo "yes" >&6; }
25544 $as_echo "#define HAVE_INODE_OWNER_OR_CAPABLE 1" >>confdefs.h
25548 $as_echo "$as_me: failed program was:" >&5
25549 sed 's/^/| /' conftest.
$ac_ext >&5
25551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25552 $as_echo "no" >&6; }
25553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether is_owner_or_cap() exists" >&5
25554 $as_echo_n "checking whether is_owner_or_cap() exists... " >&6; }
25557 cat confdefs.h
- <<_ACEOF >conftest.c
25560 #include <linux/fs.h>
25561 #include <linux/sched.h>
25567 struct inode *ip = NULL;
25568 (void) is_owner_or_cap(ip);
25578 cat - <<_ACEOF >conftest.h
25583 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25584 echo "obj-m := conftest.o" >build
/Makefile
25586 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25587 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25589 (eval $ac_try) 2>&5
25591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25592 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25594 (eval $ac_try) 2>&5
25596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25597 test $ac_status = 0; }; }; then :
25599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25600 $as_echo "yes" >&6; }
25602 $as_echo "#define HAVE_IS_OWNER_OR_CAP 1" >>confdefs.h
25606 $as_echo "$as_me: failed program was:" >&5
25607 sed 's/^/| /' conftest.
$ac_ext >&5
25609 as_fn_error $?
"no - Please file a bug report at
25610 https://github.com/zfsonlinux/zfs/issues/new" "$LINENO" 5
25627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_from_xattr() needs user_ns" >&5
25628 $as_echo_n "checking whether posix_acl_from_xattr() needs user_ns... " >&6; }
25631 cat confdefs.h
- <<_ACEOF >conftest.c
25634 #include <linux/cred.h>
25635 #include <linux/fs.h>
25636 #include <linux/posix_acl_xattr.h>
25642 posix_acl_from_xattr(&init_user_ns, NULL, 0);
25652 cat - <<_ACEOF >conftest.h
25657 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25658 echo "obj-m := conftest.o" >build
/Makefile
25660 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25661 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25662 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25663 (eval $ac_try) 2>&5
25665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25666 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25668 (eval $ac_try) 2>&5
25670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25671 test $ac_status = 0; }; }; then :
25673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25674 $as_echo "yes" >&6; }
25676 $as_echo "#define HAVE_POSIX_ACL_FROM_XATTR_USERNS 1" >>confdefs.h
25680 $as_echo "$as_me: failed program was:" >&5
25681 sed 's/^/| /' conftest.
$ac_ext >&5
25683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25684 $as_echo "no" >&6; }
25694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is available" >&5
25695 $as_echo_n "checking whether posix_acl_release() is available... " >&6; }
25698 cat confdefs.h
- <<_ACEOF >conftest.c
25701 #include <linux/cred.h>
25702 #include <linux/fs.h>
25703 #include <linux/posix_acl.h>
25709 struct posix_acl* tmp = posix_acl_alloc(1, 0);
25710 posix_acl_release(tmp);
25720 cat - <<_ACEOF >conftest.h
25725 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25726 echo "obj-m := conftest.o" >build
/Makefile
25728 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25729 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25730 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25731 (eval $ac_try) 2>&5
25733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25734 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25735 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25736 (eval $ac_try) 2>&5
25738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25739 test $ac_status = 0; }; }; then :
25741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25742 $as_echo "yes" >&6; }
25744 $as_echo "#define HAVE_POSIX_ACL_RELEASE 1" >>confdefs.h
25748 $as_echo "$as_me: failed program was:" >&5
25749 sed 's/^/| /' conftest.
$ac_ext >&5
25751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25752 $as_echo "no" >&6; }
25761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_release() is GPL-only" >&5
25762 $as_echo_n "checking whether posix_acl_release() is GPL-only... " >&6; }
25765 cat confdefs.h
- <<_ACEOF >conftest.c
25768 #include <linux/cred.h>
25769 #include <linux/fs.h>
25770 #include <linux/posix_acl.h>
25772 MODULE_LICENSE("$ZFS_META_LICENSE");
25778 struct posix_acl* tmp = posix_acl_alloc(1, 0);
25779 posix_acl_release(tmp);
25789 cat - <<_ACEOF >conftest.h
25794 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25795 echo "obj-m := conftest.o" >build
/Makefile
25797 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25798 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25799 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25800 (eval $ac_try) 2>&5
25802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25803 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25804 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25805 (eval $ac_try) 2>&5
25807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25808 test $ac_status = 0; }; }; then :
25810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25811 $as_echo "no" >&6; }
25814 $as_echo "$as_me: failed program was:" >&5
25815 sed 's/^/| /' conftest.
$ac_ext >&5
25817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25818 $as_echo "yes" >&6; }
25820 $as_echo "#define HAVE_POSIX_ACL_RELEASE_GPL_ONLY 1" >>confdefs.h
25831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_chmod exists" >&5
25832 $as_echo_n "checking whether posix_acl_chmod exists... " >&6; }
25835 cat confdefs.h
- <<_ACEOF >conftest.c
25838 #include <linux/fs.h>
25839 #include <linux/posix_acl.h>
25845 posix_acl_chmod(NULL, 0, 0)
25855 cat - <<_ACEOF >conftest.h
25860 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25861 echo "obj-m := conftest.o" >build
/Makefile
25863 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25864 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25865 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25866 (eval $ac_try) 2>&5
25868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25869 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25870 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25871 (eval $ac_try) 2>&5
25873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25874 test $ac_status = 0; }; }; then :
25876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25877 $as_echo "yes" >&6; }
25879 $as_echo "#define HAVE_POSIX_ACL_CHMOD 1" >>confdefs.h
25883 $as_echo "$as_me: failed program was:" >&5
25884 sed 's/^/| /' conftest.
$ac_ext >&5
25886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25887 $as_echo "no" >&6; }
25896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __posix_acl_chmod exists" >&5
25897 $as_echo_n "checking whether __posix_acl_chmod exists... " >&6; }
25900 cat confdefs.h
- <<_ACEOF >conftest.c
25903 #include <linux/fs.h>
25904 #include <linux/posix_acl.h>
25910 __posix_acl_chmod(NULL, 0, 0)
25920 cat - <<_ACEOF >conftest.h
25925 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25926 echo "obj-m := conftest.o" >build
/Makefile
25928 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25929 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25930 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25931 (eval $ac_try) 2>&5
25933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25934 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
25935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25936 (eval $ac_try) 2>&5
25938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25939 test $ac_status = 0; }; }; then :
25941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25942 $as_echo "yes" >&6; }
25944 $as_echo "#define HAVE___POSIX_ACL_CHMOD 1" >>confdefs.h
25948 $as_echo "$as_me: failed program was:" >&5
25949 sed 's/^/| /' conftest.
$ac_ext >&5
25951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25952 $as_echo "no" >&6; }
25962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether inode has i_acl and i_default_acl" >&5
25963 $as_echo_n "checking whether inode has i_acl and i_default_acl... " >&6; }
25966 cat confdefs.h
- <<_ACEOF >conftest.c
25969 #include <linux/fs.h>
25977 ino.i_default_acl = NULL;
25987 cat - <<_ACEOF >conftest.h
25992 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
25993 echo "obj-m := conftest.o" >build
/Makefile
25995 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
25996 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
25997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
25998 (eval $ac_try) 2>&5
26000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26001 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26002 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26003 (eval $ac_try) 2>&5
26005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26006 test $ac_status = 0; }; }; then :
26008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26009 $as_echo "yes" >&6; }
26011 $as_echo "#define HAVE_POSIX_ACL_CACHING 1" >>confdefs.h
26015 $as_echo "$as_me: failed program was:" >&5
26016 sed 's/^/| /' conftest.
$ac_ext >&5
26018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26019 $as_echo "no" >&6; }
26029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_acl_equiv_mode() wants umode_t" >&5
26030 $as_echo_n "checking whether posix_acl_equiv_mode() wants umode_t... " >&6; }
26033 cat confdefs.h
- <<_ACEOF >conftest.c
26036 #include <linux/fs.h>
26037 #include <linux/posix_acl.h>
26044 posix_acl_equiv_mode(NULL,&tmp);
26054 cat - <<_ACEOF >conftest.h
26059 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26060 echo "obj-m := conftest.o" >build
/Makefile
26062 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26063 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26065 (eval $ac_try) 2>&5
26067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26068 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26069 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26070 (eval $ac_try) 2>&5
26072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26073 test $ac_status = 0; }; }; then :
26075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26076 $as_echo "yes" >&6; }
26078 $as_echo "#define HAVE_POSIX_ACL_EQUIV_MODE_UMODE_T 1" >>confdefs.h
26082 $as_echo "$as_me: failed program was:" >&5
26083 sed 's/^/| /' conftest.
$ac_ext >&5
26085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26086 $as_echo "no" >&6; }
26096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() exists" >&5
26097 $as_echo_n "checking whether iops->permission() exists... " >&6; }
26100 cat confdefs.h
- <<_ACEOF >conftest.c
26103 #include <linux/fs.h>
26105 int permission_fn(struct inode *inode, int mask) { return 0; }
26107 static const struct inode_operations
26108 iops __attribute__ ((unused)) = {
26109 .permission = permission_fn,
26125 cat - <<_ACEOF >conftest.h
26130 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26131 echo "obj-m := conftest.o" >build
/Makefile
26133 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26134 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26135 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26136 (eval $ac_try) 2>&5
26138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26139 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26141 (eval $ac_try) 2>&5
26143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26144 test $ac_status = 0; }; }; then :
26146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26147 $as_echo "yes" >&6; }
26149 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
26153 $as_echo "$as_me: failed program was:" >&5
26154 sed 's/^/| /' conftest.
$ac_ext >&5
26156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26157 $as_echo "no" >&6; }
26167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->permission() wants nameidata" >&5
26168 $as_echo_n "checking whether iops->permission() wants nameidata... " >&6; }
26171 cat confdefs.h
- <<_ACEOF >conftest.c
26174 #include <linux/fs.h>
26176 int permission_fn(struct inode *inode, int mask,
26177 struct nameidata *nd) { return 0; }
26179 static const struct inode_operations
26180 iops __attribute__ ((unused)) = {
26181 .permission = permission_fn,
26197 cat - <<_ACEOF >conftest.h
26202 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26203 echo "obj-m := conftest.o" >build
/Makefile
26205 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26206 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26207 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26208 (eval $ac_try) 2>&5
26210 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26211 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26212 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26213 (eval $ac_try) 2>&5
26215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26216 test $ac_status = 0; }; }; then :
26218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26219 $as_echo "yes" >&6; }
26221 $as_echo "#define HAVE_PERMISSION 1" >>confdefs.h
26224 $as_echo "#define HAVE_PERMISSION_WITH_NAMEIDATA 1" >>confdefs.h
26228 $as_echo "$as_me: failed program was:" >&5
26229 sed 's/^/| /' conftest.
$ac_ext >&5
26231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26232 $as_echo "no" >&6; }
26242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() exists" >&5
26243 $as_echo_n "checking whether iops->check_acl() exists... " >&6; }
26246 cat confdefs.h
- <<_ACEOF >conftest.c
26249 #include <linux/fs.h>
26251 int check_acl_fn(struct inode *inode, int mask) { return 0; }
26253 static const struct inode_operations
26254 iops __attribute__ ((unused)) = {
26255 .check_acl = check_acl_fn,
26271 cat - <<_ACEOF >conftest.h
26276 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26277 echo "obj-m := conftest.o" >build
/Makefile
26279 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26280 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26282 (eval $ac_try) 2>&5
26284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26285 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26287 (eval $ac_try) 2>&5
26289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26290 test $ac_status = 0; }; }; then :
26292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26293 $as_echo "yes" >&6; }
26295 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
26299 $as_echo "$as_me: failed program was:" >&5
26300 sed 's/^/| /' conftest.
$ac_ext >&5
26302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26303 $as_echo "no" >&6; }
26313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->check_acl() wants flags" >&5
26314 $as_echo_n "checking whether iops->check_acl() wants flags... " >&6; }
26317 cat confdefs.h
- <<_ACEOF >conftest.c
26320 #include <linux/fs.h>
26322 int check_acl_fn(struct inode *inode, int mask,
26323 unsigned int flags) { return 0; }
26325 static const struct inode_operations
26326 iops __attribute__ ((unused)) = {
26327 .check_acl = check_acl_fn,
26343 cat - <<_ACEOF >conftest.h
26348 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26349 echo "obj-m := conftest.o" >build
/Makefile
26351 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26352 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26353 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26354 (eval $ac_try) 2>&5
26356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26357 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26358 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26359 (eval $ac_try) 2>&5
26361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26362 test $ac_status = 0; }; }; then :
26364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26365 $as_echo "yes" >&6; }
26367 $as_echo "#define HAVE_CHECK_ACL 1" >>confdefs.h
26370 $as_echo "#define HAVE_CHECK_ACL_WITH_FLAGS 1" >>confdefs.h
26374 $as_echo "$as_me: failed program was:" >&5
26375 sed 's/^/| /' conftest.
$ac_ext >&5
26377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26378 $as_echo "no" >&6; }
26388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->get_acl() exists" >&5
26389 $as_echo_n "checking whether iops->get_acl() exists... " >&6; }
26392 cat confdefs.h
- <<_ACEOF >conftest.c
26395 #include <linux/fs.h>
26397 struct posix_acl *get_acl_fn(struct inode *inode, int type)
26400 static const struct inode_operations
26401 iops __attribute__ ((unused)) = {
26402 .get_acl = get_acl_fn,
26418 cat - <<_ACEOF >conftest.h
26423 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26424 echo "obj-m := conftest.o" >build
/Makefile
26426 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26427 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26429 (eval $ac_try) 2>&5
26431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26432 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26433 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26434 (eval $ac_try) 2>&5
26436 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26437 test $ac_status = 0; }; }; then :
26439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26440 $as_echo "yes" >&6; }
26442 $as_echo "#define HAVE_GET_ACL 1" >>confdefs.h
26446 $as_echo "$as_me: failed program was:" >&5
26447 sed 's/^/| /' conftest.
$ac_ext >&5
26449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26450 $as_echo "no" >&6; }
26460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether current_umask exists" >&5
26461 $as_echo_n "checking whether current_umask exists... " >&6; }
26464 cat confdefs.h
- <<_ACEOF >conftest.c
26467 #include <linux/fs.h>
26483 cat - <<_ACEOF >conftest.h
26488 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26489 echo "obj-m := conftest.o" >build
/Makefile
26491 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26492 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26493 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26494 (eval $ac_try) 2>&5
26496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26497 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26498 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26499 (eval $ac_try) 2>&5
26501 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26502 test $ac_status = 0; }; }; then :
26504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26505 $as_echo "yes" >&6; }
26507 $as_echo "#define HAVE_CURRENT_UMASK 1" >>confdefs.h
26511 $as_echo "$as_me: failed program was:" >&5
26512 sed 's/^/| /' conftest.
$ac_ext >&5
26514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26515 $as_echo "no" >&6; }
26525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
26526 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
26530 cat confdefs.h
- <<_ACEOF >conftest.c
26533 #include <linux/fs.h>
26535 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
26536 static struct super_operations sops __attribute__ ((unused)) = {
26537 .show_options = show_options,
26553 cat - <<_ACEOF >conftest.h
26558 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26559 echo "obj-m := conftest.o" >build
/Makefile
26561 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26562 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26564 (eval $ac_try) 2>&5
26566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26567 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26569 (eval $ac_try) 2>&5
26571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26572 test $ac_status = 0; }; }; then :
26574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26575 $as_echo "yes" >&6; }
26577 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
26581 $as_echo "$as_me: failed program was:" >&5
26582 sed 's/^/| /' conftest.
$ac_ext >&5
26584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26585 $as_echo "no" >&6; }
26595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether file_inode() is available" >&5
26596 $as_echo_n "checking whether file_inode() is available... " >&6; }
26599 cat confdefs.h
- <<_ACEOF >conftest.c
26602 #include <linux/fs.h>
26608 struct file *f = NULL;
26619 cat - <<_ACEOF >conftest.h
26624 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26625 echo "obj-m := conftest.o" >build
/Makefile
26627 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26628 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26630 (eval $ac_try) 2>&5
26632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26633 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26634 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26635 (eval $ac_try) 2>&5
26637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26638 test $ac_status = 0; }; }; then :
26640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26641 $as_echo "yes" >&6; }
26643 $as_echo "#define HAVE_FILE_INODE 1" >>confdefs.h
26647 $as_echo "$as_me: failed program was:" >&5
26648 sed 's/^/| /' conftest.
$ac_ext >&5
26650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26651 $as_echo "no" >&6; }
26661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
26662 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
26666 cat confdefs.h
- <<_ACEOF >conftest.c
26669 #include <linux/fs.h>
26671 int test_fsync(struct file *f, struct dentry *dentry, int x)
26674 static const struct file_operations
26675 fops __attribute__ ((unused)) = {
26676 .fsync = test_fsync,
26692 cat - <<_ACEOF >conftest.h
26697 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26698 echo "obj-m := conftest.o" >build
/Makefile
26700 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26701 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26703 (eval $ac_try) 2>&5
26705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26706 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26707 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26708 (eval $ac_try) 2>&5
26710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26711 test $ac_status = 0; }; }; then :
26713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
26714 $as_echo "dentry" >&6; }
26716 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
26720 $as_echo "$as_me: failed program was:" >&5
26721 sed 's/^/| /' conftest.
$ac_ext >&5
26734 cat confdefs.h
- <<_ACEOF >conftest.c
26737 #include <linux/fs.h>
26739 int test_fsync(struct file *f, int x) { return 0; }
26741 static const struct file_operations
26742 fops __attribute__ ((unused)) = {
26743 .fsync = test_fsync,
26759 cat - <<_ACEOF >conftest.h
26764 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26765 echo "obj-m := conftest.o" >build
/Makefile
26767 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26768 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26770 (eval $ac_try) 2>&5
26772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26773 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26775 (eval $ac_try) 2>&5
26777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26778 test $ac_status = 0; }; }; then :
26780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
26781 $as_echo "no dentry" >&6; }
26783 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
26787 $as_echo "$as_me: failed program was:" >&5
26788 sed 's/^/| /' conftest.
$ac_ext >&5
26801 cat confdefs.h
- <<_ACEOF >conftest.c
26804 #include <linux/fs.h>
26806 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
26809 static const struct file_operations
26810 fops __attribute__ ((unused)) = {
26811 .fsync = test_fsync,
26827 cat - <<_ACEOF >conftest.h
26832 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26833 echo "obj-m := conftest.o" >build
/Makefile
26835 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26836 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26837 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26838 (eval $ac_try) 2>&5
26840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26841 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26842 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26843 (eval $ac_try) 2>&5
26845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26846 test $ac_status = 0; }; }; then :
26848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
26849 $as_echo "range" >&6; }
26851 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
26855 $as_echo "$as_me: failed program was:" >&5
26856 sed 's/^/| /' conftest.
$ac_ext >&5
26868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
26869 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
26872 cat confdefs.h
- <<_ACEOF >conftest.c
26875 #include <linux/fs.h>
26876 void evict_inode (struct inode * t) { return; }
26877 static struct super_operations sops __attribute__ ((unused)) = {
26878 .evict_inode = evict_inode,
26894 cat - <<_ACEOF >conftest.h
26899 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26900 echo "obj-m := conftest.o" >build
/Makefile
26902 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26903 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26904 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26905 (eval $ac_try) 2>&5
26907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26908 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26909 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26910 (eval $ac_try) 2>&5
26912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26913 test $ac_status = 0; }; }; then :
26915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26916 $as_echo "yes" >&6; }
26918 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
26922 $as_echo "$as_me: failed program was:" >&5
26923 sed 's/^/| /' conftest.
$ac_ext >&5
26925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26926 $as_echo "no" >&6; }
26936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
26937 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
26940 cat confdefs.h
- <<_ACEOF >conftest.c
26943 #include <linux/fs.h>
26945 void dirty_inode(struct inode *a, int b) { return; }
26947 static const struct super_operations
26948 sops __attribute__ ((unused)) = {
26949 .dirty_inode = dirty_inode,
26965 cat - <<_ACEOF >conftest.h
26970 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
26971 echo "obj-m := conftest.o" >build
/Makefile
26973 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
26974 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
26975 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26976 (eval $ac_try) 2>&5
26978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26979 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
26980 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
26981 (eval $ac_try) 2>&5
26983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26984 test $ac_status = 0; }; }; then :
26986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26987 $as_echo "yes" >&6; }
26989 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
26993 $as_echo "$as_me: failed program was:" >&5
26994 sed 's/^/| /' conftest.
$ac_ext >&5
26996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26997 $as_echo "no" >&6; }
27007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
27008 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
27011 cat confdefs.h
- <<_ACEOF >conftest.c
27014 #include <linux/fs.h>
27016 int nr_cached_objects(struct super_block *sb) { return 0; }
27018 static const struct super_operations
27019 sops __attribute__ ((unused)) = {
27020 .nr_cached_objects = nr_cached_objects,
27036 cat - <<_ACEOF >conftest.h
27041 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27042 echo "obj-m := conftest.o" >build
/Makefile
27044 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27045 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27046 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27047 (eval $ac_try) 2>&5
27049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27050 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27051 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27052 (eval $ac_try) 2>&5
27054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27055 test $ac_status = 0; }; }; then :
27057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27058 $as_echo "yes" >&6; }
27060 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
27064 $as_echo "$as_me: failed program was:" >&5
27065 sed 's/^/| /' conftest.
$ac_ext >&5
27067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27068 $as_echo "no" >&6; }
27078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
27079 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
27082 cat confdefs.h
- <<_ACEOF >conftest.c
27085 #include <linux/fs.h>
27087 void free_cached_objects(struct super_block *sb, int x)
27090 static const struct super_operations
27091 sops __attribute__ ((unused)) = {
27092 .free_cached_objects = free_cached_objects,
27108 cat - <<_ACEOF >conftest.h
27113 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27114 echo "obj-m := conftest.o" >build
/Makefile
27116 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27117 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27119 (eval $ac_try) 2>&5
27121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27122 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27124 (eval $ac_try) 2>&5
27126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27127 test $ac_status = 0; }; }; then :
27129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27130 $as_echo "yes" >&6; }
27132 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
27136 $as_echo "$as_me: failed program was:" >&5
27137 sed 's/^/| /' conftest.
$ac_ext >&5
27139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27140 $as_echo "no" >&6; }
27151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
27152 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
27155 cat confdefs.h
- <<_ACEOF >conftest.c
27158 #include <linux/fs.h>
27160 long test_fallocate(struct file *file, int mode,
27161 loff_t offset, loff_t len) { return 0; }
27163 static const struct file_operations
27164 fops __attribute__ ((unused)) = {
27165 .fallocate = test_fallocate,
27181 cat - <<_ACEOF >conftest.h
27186 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27187 echo "obj-m := conftest.o" >build
/Makefile
27189 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27190 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27192 (eval $ac_try) 2>&5
27194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27195 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27197 (eval $ac_try) 2>&5
27199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27200 test $ac_status = 0; }; }; then :
27202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27203 $as_echo "yes" >&6; }
27205 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
27209 $as_echo "$as_me: failed program was:" >&5
27210 sed 's/^/| /' conftest.
$ac_ext >&5
27212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27213 $as_echo "no" >&6; }
27223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
27224 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
27227 cat confdefs.h
- <<_ACEOF >conftest.c
27230 #include <linux/fs.h>
27232 long test_fallocate(struct inode *inode, int mode,
27233 loff_t offset, loff_t len) { return 0; }
27235 static const struct inode_operations
27236 fops __attribute__ ((unused)) = {
27237 .fallocate = test_fallocate,
27253 cat - <<_ACEOF >conftest.h
27258 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27259 echo "obj-m := conftest.o" >build
/Makefile
27261 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27262 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27263 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27264 (eval $ac_try) 2>&5
27266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27267 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27268 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27269 (eval $ac_try) 2>&5
27271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27272 test $ac_status = 0; }; }; then :
27274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27275 $as_echo "yes" >&6; }
27277 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
27281 $as_echo "$as_me: failed program was:" >&5
27282 sed 's/^/| /' conftest.
$ac_ext >&5
27284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27285 $as_echo "no" >&6; }
27296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
27297 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
27300 cat confdefs.h
- <<_ACEOF >conftest.c
27303 #include <linux/fs.h>
27305 int mkdir(struct inode *inode, struct dentry *dentry,
27306 umode_t umode) { return 0; }
27308 static const struct inode_operations
27309 iops __attribute__ ((unused)) = {
27326 cat - <<_ACEOF >conftest.h
27331 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27332 echo "obj-m := conftest.o" >build
/Makefile
27334 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27335 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27336 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27337 (eval $ac_try) 2>&5
27339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27340 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27341 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27342 (eval $ac_try) 2>&5
27344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27345 test $ac_status = 0; }; }; then :
27347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27348 $as_echo "yes" >&6; }
27350 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
27354 $as_echo "$as_me: failed program was:" >&5
27355 sed 's/^/| /' conftest.
$ac_ext >&5
27357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27358 $as_echo "no" >&6; }
27368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() takes struct nameidata" >&5
27369 $as_echo_n "checking whether iops->lookup() takes struct nameidata... " >&6; }
27372 cat confdefs.h
- <<_ACEOF >conftest.c
27375 #include <linux/fs.h>
27377 struct dentry *inode_lookup(struct inode *inode,
27378 struct dentry *dentry, struct nameidata *nidata)
27381 static const struct inode_operations iops
27382 __attribute__ ((unused)) = {
27383 .lookup = inode_lookup,
27399 cat - <<_ACEOF >conftest.h
27404 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27405 echo "obj-m := conftest.o" >build
/Makefile
27407 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27408 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27409 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27410 (eval $ac_try) 2>&5
27412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27413 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27414 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27415 (eval $ac_try) 2>&5
27417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27418 test $ac_status = 0; }; }; then :
27420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27421 $as_echo "yes" >&6; }
27423 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
27427 $as_echo "$as_me: failed program was:" >&5
27428 sed 's/^/| /' conftest.
$ac_ext >&5
27430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27431 $as_echo "no" >&6; }
27441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() takes struct nameidata" >&5
27442 $as_echo_n "checking whether iops->create() takes struct nameidata... " >&6; }
27445 cat confdefs.h
- <<_ACEOF >conftest.c
27448 #include <linux/fs.h>
27450 #ifdef HAVE_MKDIR_UMODE_T
27451 int inode_create(struct inode *inode ,struct dentry *dentry,
27452 umode_t umode, struct nameidata *nidata) { return 0; }
27454 int inode_create(struct inode *inode,struct dentry *dentry,
27455 int umode, struct nameidata * nidata) { return 0; }
27458 static const struct inode_operations
27459 iops __attribute__ ((unused)) = {
27460 .create = inode_create,
27476 cat - <<_ACEOF >conftest.h
27481 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27482 echo "obj-m := conftest.o" >build
/Makefile
27484 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27485 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27486 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27487 (eval $ac_try) 2>&5
27489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27490 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27492 (eval $ac_try) 2>&5
27494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27495 test $ac_status = 0; }; }; then :
27497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27498 $as_echo "yes" >&6; }
27500 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
27504 $as_echo "$as_me: failed program was:" >&5
27505 sed 's/^/| /' conftest.
$ac_ext >&5
27507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27508 $as_echo "no" >&6; }
27518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
27519 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
27522 cat confdefs.h
- <<_ACEOF >conftest.c
27525 #include <linux/fs.h>
27526 void truncate_range(struct inode *inode, loff_t start,
27527 loff_t end) { return; }
27528 static struct inode_operations iops __attribute__ ((unused)) = {
27529 .truncate_range = truncate_range,
27545 cat - <<_ACEOF >conftest.h
27550 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27551 echo "obj-m := conftest.o" >build
/Makefile
27553 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27554 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27556 (eval $ac_try) 2>&5
27558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27559 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27560 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27561 (eval $ac_try) 2>&5
27563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27564 test $ac_status = 0; }; }; then :
27566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27567 $as_echo "yes" >&6; }
27569 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
27573 $as_echo "$as_me: failed program was:" >&5
27574 sed 's/^/| /' conftest.
$ac_ext >&5
27576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27577 $as_echo "no" >&6; }
27587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
27588 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
27591 cat confdefs.h
- <<_ACEOF >conftest.c
27594 #include <linux/dcache.h>
27595 struct vfsmount *d_automount(struct path *p) { return NULL; }
27596 struct dentry_operations dops __attribute__ ((unused)) = {
27597 .d_automount = d_automount,
27613 cat - <<_ACEOF >conftest.h
27618 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27619 echo "obj-m := conftest.o" >build
/Makefile
27621 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27622 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27623 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27624 (eval $ac_try) 2>&5
27626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27627 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27628 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27629 (eval $ac_try) 2>&5
27631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27632 test $ac_status = 0; }; }; then :
27634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27635 $as_echo "yes" >&6; }
27637 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
27641 $as_echo "$as_me: failed program was:" >&5
27642 sed 's/^/| /' conftest.
$ac_ext >&5
27644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27645 $as_echo "no" >&6; }
27655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
27656 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
27659 cat confdefs.h
- <<_ACEOF >conftest.c
27662 #include <linux/exportfs.h>
27663 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
27664 struct inode *parent) { return 0; }
27665 static struct export_operations eops __attribute__ ((unused))={
27666 .encode_fh = encode_fh,
27682 cat - <<_ACEOF >conftest.h
27687 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27688 echo "obj-m := conftest.o" >build
/Makefile
27690 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27691 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27692 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27693 (eval $ac_try) 2>&5
27695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27696 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27698 (eval $ac_try) 2>&5
27700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27701 test $ac_status = 0; }; }; then :
27703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27704 $as_echo "yes" >&6; }
27706 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
27710 $as_echo "$as_me: failed program was:" >&5
27711 sed 's/^/| /' conftest.
$ac_ext >&5
27713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27714 $as_echo "no" >&6; }
27724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
27725 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
27728 cat confdefs.h
- <<_ACEOF >conftest.c
27731 #include <linux/exportfs.h>
27732 int commit_metadata(struct inode *inode) { return 0; }
27733 static struct export_operations eops __attribute__ ((unused))={
27734 .commit_metadata = commit_metadata,
27750 cat - <<_ACEOF >conftest.h
27755 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27756 echo "obj-m := conftest.o" >build
/Makefile
27758 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27759 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27760 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27761 (eval $ac_try) 2>&5
27763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27764 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27766 (eval $ac_try) 2>&5
27768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27769 test $ac_status = 0; }; }; then :
27771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27772 $as_echo "yes" >&6; }
27774 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
27778 $as_echo "$as_me: failed program was:" >&5
27779 sed 's/^/| /' conftest.
$ac_ext >&5
27781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27782 $as_echo "no" >&6; }
27791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
27792 $as_echo_n "checking whether clear_inode() is available... " >&6; }
27796 cat confdefs.h
- <<_ACEOF >conftest.c
27799 #include <linux/fs.h>
27815 cat - <<_ACEOF >conftest.h
27820 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27821 echo "obj-m := conftest.o" >build
/Makefile
27823 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27824 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27826 (eval $ac_try) 2>&5
27828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27829 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27831 (eval $ac_try) 2>&5
27833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27834 test $ac_status = 0; }; }; then :
27837 $as_echo "$as_me: failed program was:" >&5
27838 sed 's/^/| /' conftest.
$ac_ext >&5
27846 if test $rc -ne 0; then :
27848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27849 $as_echo "no" >&6; }
27852 if test "x$enable_linux_builtin" != xyes
; then
27854 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
27855 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
27857 if test $rc -ne 0; then
27859 for file in fs
/inode.c
; do
27860 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
27861 "$LINUX/$file" 2>/dev
/null
27863 if test $rc -eq 0; then
27868 if test $export -eq 0; then :
27878 if test $rc -ne 0; then :
27880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27881 $as_echo "no" >&6; }
27885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27886 $as_echo "yes" >&6; }
27888 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
27895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
27896 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
27900 cat confdefs.h
- <<_ACEOF >conftest.c
27903 #include <linux/fs.h>
27909 insert_inode_locked(NULL);
27919 cat - <<_ACEOF >conftest.h
27924 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
27925 echo "obj-m := conftest.o" >build
/Makefile
27927 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
27928 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
27929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27930 (eval $ac_try) 2>&5
27932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27933 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
27934 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
27935 (eval $ac_try) 2>&5
27937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27938 test $ac_status = 0; }; }; then :
27941 $as_echo "$as_me: failed program was:" >&5
27942 sed 's/^/| /' conftest.
$ac_ext >&5
27950 if test $rc -ne 0; then :
27952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27953 $as_echo "no" >&6; }
27956 if test "x$enable_linux_builtin" != xyes
; then
27958 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
27959 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
27961 if test $rc -ne 0; then
27963 for file in fs
/inode.c
; do
27964 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
27965 "$LINUX/$file" 2>/dev
/null
27967 if test $rc -eq 0; then
27972 if test $export -eq 0; then :
27982 if test $rc -ne 0; then :
27984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27985 $as_echo "no" >&6; }
27989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27990 $as_echo "yes" >&6; }
27992 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
27999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
28000 $as_echo_n "checking whether d_make_root() is available... " >&6; }
28004 cat confdefs.h
- <<_ACEOF >conftest.c
28007 #include <linux/dcache.h>
28023 cat - <<_ACEOF >conftest.h
28028 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28029 echo "obj-m := conftest.o" >build
/Makefile
28031 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28032 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28033 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28034 (eval $ac_try) 2>&5
28036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28037 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28038 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28039 (eval $ac_try) 2>&5
28041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28042 test $ac_status = 0; }; }; then :
28045 $as_echo "$as_me: failed program was:" >&5
28046 sed 's/^/| /' conftest.
$ac_ext >&5
28054 if test $rc -ne 0; then :
28056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28057 $as_echo "no" >&6; }
28060 if test "x$enable_linux_builtin" != xyes
; then
28062 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
28063 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
28065 if test $rc -ne 0; then
28067 for file in fs
/dcache.c
; do
28068 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
28069 "$LINUX/$file" 2>/dev
/null
28071 if test $rc -eq 0; then
28076 if test $export -eq 0; then :
28086 if test $rc -ne 0; then :
28088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28089 $as_echo "no" >&6; }
28093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28094 $as_echo "yes" >&6; }
28096 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
28103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
28104 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
28108 cat confdefs.h
- <<_ACEOF >conftest.c
28111 #include <linux/dcache.h>
28117 d_obtain_alias(NULL);
28127 cat - <<_ACEOF >conftest.h
28132 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28133 echo "obj-m := conftest.o" >build
/Makefile
28135 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28136 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28137 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28138 (eval $ac_try) 2>&5
28140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28141 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28142 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28143 (eval $ac_try) 2>&5
28145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28146 test $ac_status = 0; }; }; then :
28149 $as_echo "$as_me: failed program was:" >&5
28150 sed 's/^/| /' conftest.
$ac_ext >&5
28158 if test $rc -ne 0; then :
28160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28161 $as_echo "no" >&6; }
28164 if test "x$enable_linux_builtin" != xyes
; then
28166 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
28167 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
28169 if test $rc -ne 0; then
28171 for file in fs
/dcache.c
; do
28172 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
28173 "$LINUX/$file" 2>/dev
/null
28175 if test $rc -eq 0; then
28180 if test $export -eq 0; then :
28190 if test $rc -ne 0; then :
28192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28193 $as_echo "no" >&6; }
28197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28198 $as_echo "yes" >&6; }
28200 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
28207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_prune_aliases() is available" >&5
28208 $as_echo_n "checking whether d_prune_aliases() is available... " >&6; }
28212 cat confdefs.h
- <<_ACEOF >conftest.c
28215 #include <linux/dcache.h>
28221 struct inode *ip = NULL;
28222 d_prune_aliases(ip);
28232 cat - <<_ACEOF >conftest.h
28237 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28238 echo "obj-m := conftest.o" >build
/Makefile
28240 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28241 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28242 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28243 (eval $ac_try) 2>&5
28245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28246 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28247 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28248 (eval $ac_try) 2>&5
28250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28251 test $ac_status = 0; }; }; then :
28254 $as_echo "$as_me: failed program was:" >&5
28255 sed 's/^/| /' conftest.
$ac_ext >&5
28263 if test $rc -ne 0; then :
28265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28266 $as_echo "no" >&6; }
28269 if test "x$enable_linux_builtin" != xyes
; then
28271 grep -q -E '[[:space:]]d_prune_aliases[[:space:]]' \
28272 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
28274 if test $rc -ne 0; then
28276 for file in fs
/dcache.c
; do
28277 grep -q -E "EXPORT_SYMBOL.*(d_prune_aliases)" \
28278 "$LINUX/$file" 2>/dev
/null
28280 if test $rc -eq 0; then
28285 if test $export -eq 0; then :
28295 if test $rc -ne 0; then :
28297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28298 $as_echo "no" >&6; }
28302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28303 $as_echo "yes" >&6; }
28305 $as_echo "#define HAVE_D_PRUNE_ALIASES 1" >>confdefs.h
28312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
28313 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
28317 cat confdefs.h
- <<_ACEOF >conftest.c
28320 #include <linux/dcache.h>
28326 d_set_d_op(NULL, NULL);
28336 cat - <<_ACEOF >conftest.h
28341 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28342 echo "obj-m := conftest.o" >build
/Makefile
28344 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28345 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28347 (eval $ac_try) 2>&5
28349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28350 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28352 (eval $ac_try) 2>&5
28354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28355 test $ac_status = 0; }; }; then :
28358 $as_echo "$as_me: failed program was:" >&5
28359 sed 's/^/| /' conftest.
$ac_ext >&5
28367 if test $rc -ne 0; then :
28369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28370 $as_echo "no" >&6; }
28373 if test "x$enable_linux_builtin" != xyes
; then
28375 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
28376 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
28378 if test $rc -ne 0; then
28380 for file in fs
/dcache.c
; do
28381 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
28382 "$LINUX/$file" 2>/dev
/null
28384 if test $rc -eq 0; then
28389 if test $export -eq 0; then :
28399 if test $rc -ne 0; then :
28401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28402 $as_echo "no" >&6; }
28406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28407 $as_echo "yes" >&6; }
28409 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
28417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
28418 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
28421 cat confdefs.h
- <<_ACEOF >conftest.c
28424 #include <linux/dcache.h>
28426 int revalidate (struct dentry *dentry,
28427 struct nameidata *nidata) { return 0; }
28429 static const struct dentry_operations
28430 dops __attribute__ ((unused)) = {
28431 .d_revalidate = revalidate,
28447 cat - <<_ACEOF >conftest.h
28452 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28453 echo "obj-m := conftest.o" >build
/Makefile
28455 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28456 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28457 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28458 (eval $ac_try) 2>&5
28460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28461 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28463 (eval $ac_try) 2>&5
28465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28466 test $ac_status = 0; }; }; then :
28468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28469 $as_echo "yes" >&6; }
28471 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
28475 $as_echo "$as_me: failed program was:" >&5
28476 sed 's/^/| /' conftest.
$ac_ext >&5
28478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28479 $as_echo "no" >&6; }
28489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
28490 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
28493 cat confdefs.h
- <<_ACEOF >conftest.c
28496 #include <linux/dcache.h>
28498 const struct dentry_operations test_d_op = {
28499 .d_revalidate = NULL,
28506 struct dentry d __attribute__ ((unused));
28508 d.d_op = &test_d_op;
28518 cat - <<_ACEOF >conftest.h
28523 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28524 echo "obj-m := conftest.o" >build
/Makefile
28526 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28527 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28529 (eval $ac_try) 2>&5
28531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28532 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28534 (eval $ac_try) 2>&5
28536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28537 test $ac_status = 0; }; }; then :
28539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28540 $as_echo "yes" >&6; }
28542 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
28546 $as_echo "$as_me: failed program was:" >&5
28547 sed 's/^/| /' conftest.
$ac_ext >&5
28549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28550 $as_echo "no" >&6; }
28559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5
28560 $as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
28564 cat confdefs.h
- <<_ACEOF >conftest.c
28567 #include <linux/fs.h>
28573 check_disk_size_change(NULL, NULL);
28583 cat - <<_ACEOF >conftest.h
28588 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28589 echo "obj-m := conftest.o" >build
/Makefile
28591 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28592 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28594 (eval $ac_try) 2>&5
28596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28597 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28598 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28599 (eval $ac_try) 2>&5
28601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28602 test $ac_status = 0; }; }; then :
28605 $as_echo "$as_me: failed program was:" >&5
28606 sed 's/^/| /' conftest.
$ac_ext >&5
28614 if test $rc -ne 0; then :
28616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28617 $as_echo "no" >&6; }
28620 if test "x$enable_linux_builtin" != xyes
; then
28622 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
28623 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
28625 if test $rc -ne 0; then
28627 for file in fs
/block_dev.c
; do
28628 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
28629 "$LINUX/$file" 2>/dev
/null
28631 if test $rc -eq 0; then
28636 if test $export -eq 0; then :
28646 if test $rc -ne 0; then :
28648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28649 $as_echo "no" >&6; }
28653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28654 $as_echo "yes" >&6; }
28656 $as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h
28663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
28664 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
28668 cat confdefs.h
- <<_ACEOF >conftest.c
28671 #include <linux/mm.h>
28677 truncate_setsize(NULL, 0);
28687 cat - <<_ACEOF >conftest.h
28692 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28693 echo "obj-m := conftest.o" >build
/Makefile
28695 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28696 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28697 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28698 (eval $ac_try) 2>&5
28700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28701 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28703 (eval $ac_try) 2>&5
28705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28706 test $ac_status = 0; }; }; then :
28709 $as_echo "$as_me: failed program was:" >&5
28710 sed 's/^/| /' conftest.
$ac_ext >&5
28718 if test $rc -ne 0; then :
28720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28721 $as_echo "no" >&6; }
28724 if test "x$enable_linux_builtin" != xyes
; then
28726 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
28727 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
28729 if test $rc -ne 0; then
28731 for file in mm
/truncate.c
; do
28732 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
28733 "$LINUX/$file" 2>/dev
/null
28735 if test $rc -eq 0; then
28740 if test $export -eq 0; then :
28750 if test $rc -ne 0; then :
28752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28753 $as_echo "no" >&6; }
28757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28758 $as_echo "yes" >&6; }
28760 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
28768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
28769 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
28772 cat confdefs.h
- <<_ACEOF >conftest.c
28775 #include <linux/security.h>
28781 struct inode *ip __attribute__ ((unused)) = NULL;
28782 struct inode *dip __attribute__ ((unused)) = NULL;
28783 const struct qstr *str __attribute__ ((unused)) = NULL;
28784 char *name __attribute__ ((unused)) = NULL;
28785 void *value __attribute__ ((unused)) = NULL;
28786 size_t len __attribute__ ((unused)) = 0;
28788 security_inode_init_security(ip, dip, str, &name, &value, &len);
28798 cat - <<_ACEOF >conftest.h
28803 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28804 echo "obj-m := conftest.o" >build
/Makefile
28806 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28807 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28809 (eval $ac_try) 2>&5
28811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28812 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28814 (eval $ac_try) 2>&5
28816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28817 test $ac_status = 0; }; }; then :
28819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28820 $as_echo "yes" >&6; }
28822 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
28826 $as_echo "$as_me: failed program was:" >&5
28827 sed 's/^/| /' conftest.
$ac_ext >&5
28829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28830 $as_echo "no" >&6; }
28840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
28841 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
28844 cat confdefs.h
- <<_ACEOF >conftest.c
28847 #include <linux/security.h>
28853 struct inode *ip __attribute__ ((unused)) = NULL;
28854 struct inode *dip __attribute__ ((unused)) = NULL;
28855 const struct qstr *str __attribute__ ((unused)) = NULL;
28856 initxattrs func __attribute__ ((unused)) = NULL;
28858 security_inode_init_security(ip, dip, str, func, NULL);
28868 cat - <<_ACEOF >conftest.h
28873 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28874 echo "obj-m := conftest.o" >build
/Makefile
28876 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28877 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28878 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28879 (eval $ac_try) 2>&5
28881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28882 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28884 (eval $ac_try) 2>&5
28886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28887 test $ac_status = 0; }; }; then :
28889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28890 $as_echo "yes" >&6; }
28892 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
28896 $as_echo "$as_me: failed program was:" >&5
28897 sed 's/^/| /' conftest.
$ac_ext >&5
28899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28900 $as_echo "no" >&6; }
28909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
28910 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
28914 cat confdefs.h
- <<_ACEOF >conftest.c
28917 #include <linux/fs.h>
28923 mount_nodev(NULL, 0, NULL, NULL);
28933 cat - <<_ACEOF >conftest.h
28938 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
28939 echo "obj-m := conftest.o" >build
/Makefile
28941 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
28942 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
28943 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28944 (eval $ac_try) 2>&5
28946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28947 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
28948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
28949 (eval $ac_try) 2>&5
28951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28952 test $ac_status = 0; }; }; then :
28955 $as_echo "$as_me: failed program was:" >&5
28956 sed 's/^/| /' conftest.
$ac_ext >&5
28964 if test $rc -ne 0; then :
28966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28967 $as_echo "no" >&6; }
28970 if test "x$enable_linux_builtin" != xyes
; then
28972 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
28973 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
28975 if test $rc -ne 0; then
28977 for file in fs
/super.c
; do
28978 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
28979 "$LINUX/$file" 2>/dev
/null
28981 if test $rc -eq 0; then
28986 if test $export -eq 0; then :
28996 if test $rc -ne 0; then :
28998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28999 $as_echo "no" >&6; }
29003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29004 $as_echo "yes" >&6; }
29006 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
29014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
29015 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
29018 cat confdefs.h
- <<_ACEOF >conftest.c
29021 #include <linux/fs.h>
29023 int shrink(struct shrinker *s, struct shrink_control *sc)
29026 static const struct super_block
29027 sb __attribute__ ((unused)) = {
29028 .s_shrink.shrink = shrink,
29029 .s_shrink.seeks = DEFAULT_SEEKS,
29030 .s_shrink.batch = 0,
29046 cat - <<_ACEOF >conftest.h
29051 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29052 echo "obj-m := conftest.o" >build
/Makefile
29054 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29055 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29057 (eval $ac_try) 2>&5
29059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29060 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29061 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29062 (eval $ac_try) 2>&5
29064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29065 test $ac_status = 0; }; }; then :
29067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29068 $as_echo "yes" >&6; }
29070 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
29075 $as_echo "$as_me: failed program was:" >&5
29076 sed 's/^/| /' conftest.
$ac_ext >&5
29078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29079 $as_echo "no" >&6; }
29089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether shrink_control has nid" >&5
29090 $as_echo_n "checking whether shrink_control has nid... " >&6; }
29093 cat confdefs.h
- <<_ACEOF >conftest.c
29096 #include <linux/fs.h>
29102 struct shrink_control sc __attribute__ ((unused));
29103 unsigned long scnidsize __attribute__ ((unused)) =
29114 cat - <<_ACEOF >conftest.h
29119 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29120 echo "obj-m := conftest.o" >build
/Makefile
29122 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29123 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29125 (eval $ac_try) 2>&5
29127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29128 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29129 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29130 (eval $ac_try) 2>&5
29132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29133 test $ac_status = 0; }; }; then :
29135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29136 $as_echo "yes" >&6; }
29138 $as_echo "#define SHRINK_CONTROL_HAS_NID 1" >>confdefs.h
29142 $as_echo "$as_me: failed program was:" >&5
29143 sed 's/^/| /' conftest.
$ac_ext >&5
29145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29146 $as_echo "no" >&6; }
29156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_instances list_head" >&5
29157 $as_echo_n "checking whether super_block has s_instances list_head... " >&6; }
29160 cat confdefs.h
- <<_ACEOF >conftest.c
29163 #include <linux/fs.h>
29169 struct super_block sb __attribute__ ((unused));
29171 INIT_LIST_HEAD(&sb.s_instances);
29181 cat - <<_ACEOF >conftest.h
29186 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29187 echo "obj-m := conftest.o" >build
/Makefile
29189 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29190 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29191 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29192 (eval $ac_try) 2>&5
29194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29195 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29197 (eval $ac_try) 2>&5
29199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29200 test $ac_status = 0; }; }; then :
29202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29203 $as_echo "yes" >&6; }
29205 $as_echo "#define HAVE_S_INSTANCES_LIST_HEAD 1" >>confdefs.h
29209 $as_echo "$as_me: failed program was:" >&5
29210 sed 's/^/| /' conftest.
$ac_ext >&5
29212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29213 $as_echo "no" >&6; }
29222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
29223 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
29226 cat confdefs.h
- <<_ACEOF >conftest.c
29229 #include <linux/fs.h>
29235 struct super_block sb __attribute__ ((unused));
29246 cat - <<_ACEOF >conftest.h
29251 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29252 echo "obj-m := conftest.o" >build
/Makefile
29254 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29255 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29256 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29257 (eval $ac_try) 2>&5
29259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29260 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29261 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29262 (eval $ac_try) 2>&5
29264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29265 test $ac_status = 0; }; }; then :
29267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29268 $as_echo "yes" >&6; }
29270 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
29274 $as_echo "$as_me: failed program was:" >&5
29275 sed 's/^/| /' conftest.
$ac_ext >&5
29277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29278 $as_echo "no" >&6; }
29288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 2 args" >&5
29289 $as_echo_n "checking whether bdi_setup_and_register() wants 2 args... " >&6; }
29293 cat confdefs.h
- <<_ACEOF >conftest.c
29296 #include <linux/backing-dev.h>
29302 struct backing_dev_info bdi;
29303 char *name = "bdi";
29304 int error __attribute__((unused)) =
29305 bdi_setup_and_register(&bdi, name);
29315 cat - <<_ACEOF >conftest.h
29320 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29321 echo "obj-m := conftest.o" >build
/Makefile
29323 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29324 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29325 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29326 (eval $ac_try) 2>&5
29328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29329 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29330 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29331 (eval $ac_try) 2>&5
29333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29334 test $ac_status = 0; }; }; then :
29337 $as_echo "$as_me: failed program was:" >&5
29338 sed 's/^/| /' conftest.
$ac_ext >&5
29346 if test $rc -ne 0; then :
29348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29349 $as_echo "no" >&6; }
29350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
29351 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
29355 cat confdefs.h
- <<_ACEOF >conftest.c
29358 #include <linux/backing-dev.h>
29364 struct backing_dev_info bdi;
29365 char *name = "bdi";
29366 unsigned int cap = BDI_CAP_MAP_COPY;
29367 int error __attribute__((unused)) =
29368 bdi_setup_and_register(&bdi, name, cap);
29378 cat - <<_ACEOF >conftest.h
29383 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29384 echo "obj-m := conftest.o" >build
/Makefile
29386 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29387 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29388 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29389 (eval $ac_try) 2>&5
29391 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29392 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29394 (eval $ac_try) 2>&5
29396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29397 test $ac_status = 0; }; }; then :
29400 $as_echo "$as_me: failed program was:" >&5
29401 sed 's/^/| /' conftest.
$ac_ext >&5
29409 if test $rc -ne 0; then :
29411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29412 $as_echo "no" >&6; }
29415 if test "x$enable_linux_builtin" != xyes
; then
29417 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
29418 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
29420 if test $rc -ne 0; then
29422 for file in mm
/backing-dev.c
; do
29423 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
29424 "$LINUX/$file" 2>/dev
/null
29426 if test $rc -eq 0; then
29431 if test $export -eq 0; then :
29441 if test $rc -ne 0; then :
29443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29444 $as_echo "no" >&6; }
29448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29449 $as_echo "yes" >&6; }
29451 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
29459 if test "x$enable_linux_builtin" != xyes
; then
29461 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
29462 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
29464 if test $rc -ne 0; then
29466 for file in mm
/backing-dev.c
; do
29467 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
29468 "$LINUX/$file" 2>/dev
/null
29470 if test $rc -eq 0; then
29475 if test $export -eq 0; then :
29485 if test $rc -ne 0; then :
29487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29488 $as_echo "no" >&6; }
29489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() wants 3 args" >&5
29490 $as_echo_n "checking whether bdi_setup_and_register() wants 3 args... " >&6; }
29494 cat confdefs.h
- <<_ACEOF >conftest.c
29497 #include <linux/backing-dev.h>
29503 struct backing_dev_info bdi;
29504 char *name = "bdi";
29505 unsigned int cap = BDI_CAP_MAP_COPY;
29506 int error __attribute__((unused)) =
29507 bdi_setup_and_register(&bdi, name, cap);
29517 cat - <<_ACEOF >conftest.h
29522 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29523 echo "obj-m := conftest.o" >build
/Makefile
29525 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29526 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29527 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29528 (eval $ac_try) 2>&5
29530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29531 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29533 (eval $ac_try) 2>&5
29535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29536 test $ac_status = 0; }; }; then :
29539 $as_echo "$as_me: failed program was:" >&5
29540 sed 's/^/| /' conftest.
$ac_ext >&5
29548 if test $rc -ne 0; then :
29550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29551 $as_echo "no" >&6; }
29554 if test "x$enable_linux_builtin" != xyes
; then
29556 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
29557 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
29559 if test $rc -ne 0; then
29561 for file in mm
/backing-dev.c
; do
29562 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
29563 "$LINUX/$file" 2>/dev
/null
29565 if test $rc -eq 0; then
29570 if test $export -eq 0; then :
29580 if test $rc -ne 0; then :
29582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29583 $as_echo "no" >&6; }
29587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29588 $as_echo "yes" >&6; }
29590 $as_echo "#define HAVE_3ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
29599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29600 $as_echo "yes" >&6; }
29602 $as_echo "#define HAVE_2ARGS_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
29610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
29611 $as_echo_n "checking whether set_nlink() is available... " >&6; }
29614 cat confdefs.h
- <<_ACEOF >conftest.c
29617 #include <linux/fs.h>
29624 unsigned int link = 0;
29625 (void) set_nlink(&node, link);
29635 cat - <<_ACEOF >conftest.h
29640 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29641 echo "obj-m := conftest.o" >build
/Makefile
29643 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29644 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29645 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29646 (eval $ac_try) 2>&5
29648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29649 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29650 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29651 (eval $ac_try) 2>&5
29653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29654 test $ac_status = 0; }; }; then :
29656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29657 $as_echo "yes" >&6; }
29659 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
29663 $as_echo "$as_me: failed program was:" >&5
29664 sed 's/^/| /' conftest.
$ac_ext >&5
29666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29667 $as_echo "no" >&6; }
29677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
29678 $as_echo_n "checking whether elevator_change() is available... " >&6; }
29679 tmp_flags
="$EXTRA_KCFLAGS"
29680 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
29683 cat confdefs.h
- <<_ACEOF >conftest.c
29686 #include <linux/blkdev.h>
29687 #include <linux/elevator.h>
29694 struct request_queue *q = NULL;
29695 char *elevator = NULL;
29696 ret = elevator_change(q, elevator);
29706 cat - <<_ACEOF >conftest.h
29711 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29712 echo "obj-m := conftest.o" >build
/Makefile
29714 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29715 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29716 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29717 (eval $ac_try) 2>&5
29719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29720 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29721 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29722 (eval $ac_try) 2>&5
29724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29725 test $ac_status = 0; }; }; then :
29727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29728 $as_echo "yes" >&6; }
29730 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
29734 $as_echo "$as_me: failed program was:" >&5
29735 sed 's/^/| /' conftest.
$ac_ext >&5
29737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29738 $as_echo "no" >&6; }
29746 EXTRA_KCFLAGS
="$tmp_flags"
29748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
29749 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
29752 cat confdefs.h
- <<_ACEOF >conftest.c
29755 #include <linux/fs.h>
29761 struct file_system_type *type = NULL;
29762 int (*test)(struct super_block *,void *) = NULL;
29763 int (*set)(struct super_block *,void *) = NULL;
29766 (void) sget(type, test, set, flags, data);
29776 cat - <<_ACEOF >conftest.h
29781 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29782 echo "obj-m := conftest.o" >build
/Makefile
29784 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29785 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29787 (eval $ac_try) 2>&5
29789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29790 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29792 (eval $ac_try) 2>&5
29794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29795 test $ac_status = 0; }; }; then :
29797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29798 $as_echo "yes" >&6; }
29800 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
29804 $as_echo "$as_me: failed program was:" >&5
29805 sed 's/^/| /' conftest.
$ac_ext >&5
29807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29808 $as_echo "no" >&6; }
29817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lseek_execute() is available" >&5
29818 $as_echo_n "checking whether lseek_execute() is available... " >&6; }
29822 cat confdefs.h
- <<_ACEOF >conftest.c
29825 #include <linux/fs.h>
29831 struct file *fp __attribute__ ((unused)) = NULL;
29832 struct inode *ip __attribute__ ((unused)) = NULL;
29833 loff_t offset __attribute__ ((unused)) = 0;
29834 loff_t maxsize __attribute__ ((unused)) = 0;
29836 lseek_execute(fp, ip, offset, maxsize);
29846 cat - <<_ACEOF >conftest.h
29851 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29852 echo "obj-m := conftest.o" >build
/Makefile
29854 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29855 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29856 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29857 (eval $ac_try) 2>&5
29859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29860 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29861 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29862 (eval $ac_try) 2>&5
29864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29865 test $ac_status = 0; }; }; then :
29868 $as_echo "$as_me: failed program was:" >&5
29869 sed 's/^/| /' conftest.
$ac_ext >&5
29877 if test $rc -ne 0; then :
29879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29880 $as_echo "no" >&6; }
29883 if test "x$enable_linux_builtin" != xyes
; then
29885 grep -q -E '[[:space:]]lseek_exclusive[[:space:]]' \
29886 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
29888 if test $rc -ne 0; then
29890 for file in fs
/read_write.c
; do
29891 grep -q -E "EXPORT_SYMBOL.*(lseek_exclusive)" \
29892 "$LINUX/$file" 2>/dev
/null
29894 if test $rc -eq 0; then
29899 if test $export -eq 0; then :
29909 if test $rc -ne 0; then :
29911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29912 $as_echo "no" >&6; }
29916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29917 $as_echo "yes" >&6; }
29919 $as_echo "#define HAVE_LSEEK_EXECUTE 1" >>confdefs.h
29927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->iterate() is available" >&5
29928 $as_echo_n "checking whether fops->iterate() is available... " >&6; }
29931 cat confdefs.h
- <<_ACEOF >conftest.c
29934 #include <linux/fs.h>
29935 int iterate(struct file *filp, struct dir_context * context)
29938 static const struct file_operations fops
29939 __attribute__ ((unused)) = {
29940 .iterate = iterate,
29956 cat - <<_ACEOF >conftest.h
29961 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
29962 echo "obj-m := conftest.o" >build
/Makefile
29964 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
29965 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
29966 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29967 (eval $ac_try) 2>&5
29969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29970 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
29971 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
29972 (eval $ac_try) 2>&5
29974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29975 test $ac_status = 0; }; }; then :
29977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29978 $as_echo "yes" >&6; }
29980 $as_echo "#define HAVE_VFS_ITERATE 1" >>confdefs.h
29984 $as_echo "$as_me: failed program was:" >&5
29985 sed 's/^/| /' conftest.
$ac_ext >&5
29987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29988 $as_echo "no" >&6; }
29990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->readdir() is available" >&5
29991 $as_echo_n "checking whether fops->readdir() is available... " >&6; }
29994 cat confdefs.h
- <<_ACEOF >conftest.c
29997 #include <linux/fs.h>
29998 int readdir(struct file *filp, void *entry, filldir_t func)
30001 static const struct file_operations fops
30002 __attribute__ ((unused)) = {
30003 .readdir = readdir,
30019 cat - <<_ACEOF >conftest.h
30024 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30025 echo "obj-m := conftest.o" >build
/Makefile
30027 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30028 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30030 (eval $ac_try) 2>&5
30032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30033 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30034 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30035 (eval $ac_try) 2>&5
30037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30038 test $ac_status = 0; }; }; then :
30040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30041 $as_echo "yes" >&6; }
30043 $as_echo "#define HAVE_VFS_READDIR 1" >>confdefs.h
30047 $as_echo "$as_me: failed program was:" >&5
30048 sed 's/^/| /' conftest.
$ac_ext >&5
30050 as_fn_error $?
"no; file a bug report with ZFSOnLinux" "$LINENO" 5
30067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->read/write_iter() are available" >&5
30068 $as_echo_n "checking whether fops->read/write_iter() are available... " >&6; }
30071 cat confdefs.h
- <<_ACEOF >conftest.c
30074 #include <linux/fs.h>
30076 ssize_t test_read(struct kiocb *kiocb, struct iov_iter *to)
30078 ssize_t test_write(struct kiocb *kiocb, struct iov_iter *from)
30081 static const struct file_operations
30082 fops __attribute__ ((unused)) = {
30083 .read_iter = test_read,
30084 .write_iter = test_write,
30100 cat - <<_ACEOF >conftest.h
30105 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
30106 echo "obj-m := conftest.o" >build
/Makefile
30108 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
30109 if { ac_try
='cp conftest.c conftest.h build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
30110 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30111 (eval $ac_try) 2>&5
30113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30114 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
30115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
30116 (eval $ac_try) 2>&5
30118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30119 test $ac_status = 0; }; }; then :
30121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30122 $as_echo "yes" >&6; }
30124 $as_echo "#define HAVE_VFS_RW_ITERATE 1" >>confdefs.h
30128 $as_echo "$as_me: failed program was:" >&5
30129 sed 's/^/| /' conftest.
$ac_ext >&5
30131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30132 $as_echo "no" >&6; }
30142 if test "$LINUX_OBJ" != "$LINUX"; then :
30144 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
30150 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
30151 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
30152 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
30159 # Check whether --with-mounthelperdir was given.
30160 if test "${with_mounthelperdir+set}" = set; then :
30161 withval
=$with_mounthelperdir; mounthelperdir
=$withval
30163 mounthelperdir
=$sbindir
30170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev directories" >&5
30171 $as_echo_n "checking for udev directories... " >&6; }
30173 # Check whether --with-udevdir was given.
30174 if test "${with_udevdir+set}" = set; then :
30175 withval
=$with_udevdir; udevdir
=$withval
30181 if test "x$udevdir" = xcheck
; then :
30184 path2
=/usr
/lib
/udev
30187 if test -d "$path1"; then :
30191 if test -d "$path2"; then :
30202 # Check whether --with-udevruledir was given.
30203 if test "${with_udevruledir+set}" = set; then :
30204 withval
=$with_udevruledir; udevruledir
=$withval
30206 udevruledir
="${udevdir}/rules.d"
30212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $udevdir;$udevruledir" >&5
30213 $as_echo "$udevdir;$udevruledir" >&6; }
30216 # Check whether --enable-systemd was given.
30217 if test "${enable_systemd+set}" = set; then :
30218 enableval
=$enable_systemd;
30225 # Check whether --with-systemdunitdir was given.
30226 if test "${with_systemdunitdir+set}" = set; then :
30227 withval
=$with_systemdunitdir; systemdunitdir
=$withval
30229 systemdunitdir
=/usr
/lib
/systemd
/system
30234 # Check whether --with-systemdpresetdir was given.
30235 if test "${with_systemdpresetdir+set}" = set; then :
30236 withval
=$with_systemdpresetdir; systemdpresetdir
=$withval
30238 systemdpresetdir
=/usr
/lib
/systemd
/system-preset
30243 # Check whether --with-systemdmodulesloaddir was given.
30244 if test "${with_systemdmodulesloaddir+set}" = set; then :
30245 withval
=$with_systemdmodulesloaddir; systemdmoduleloaddir
=$withval
30247 systemdmodulesloaddir
=/usr
/lib
/modules-load.d
30252 if test "x$enable_systemd" = xyes
; then :
30254 ZFS_INIT_SYSTEMD
=systemd
30255 ZFS_MODULE_LOAD
=modules-load.d
30256 modulesloaddir
=$systemdmodulesloaddir
30267 # Check whether --enable-sysvinit was given.
30268 if test "${enable_sysvinit+set}" = set; then :
30269 enableval
=$enable_sysvinit;
30271 enable_sysvinit
=yes
30275 if test "x$enable_sysvinit" = xyes
; then :
30276 ZFS_INIT_SYSV
=init.d
30282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dracut directory" >&5
30283 $as_echo_n "checking for dracut directory... " >&6; }
30285 # Check whether --with-dracutdir was given.
30286 if test "${with_dracutdir+set}" = set; then :
30287 withval
=$with_dracutdir; dracutdir
=$withval
30293 if test "x$dracutdir" = xcheck
; then :
30295 path1
=/usr
/share
/dracut
30296 path2
=/usr
/lib
/dracut
30299 if test -d "$path1"; then :
30303 if test -d "$path2"; then :
30306 dracutdir
="$default"
30314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dracutdir" >&5
30315 $as_echo "$dracutdir" >&6; }
30318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
30319 $as_echo_n "checking for target asm dir... " >&6; }
30320 TARGET_ARCH
=`echo ${target_cpu} | sed -e s/i.86/i386/`
30322 case $TARGET_ARCH in
30324 TARGET_ASM_DIR
=asm-
${TARGET_ARCH}
30327 TARGET_ASM_DIR
=asm-generic
30332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
30333 $as_echo "$TARGET_ASM_DIR" >&6; }
30338 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
30339 if test "x$ac_cv_header_zlib_h" = xyes
; then :
30342 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30343 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30345 *** zlib.h missing, zlib-devel package required
30346 See \`config.log' for more details" "$LINENO" 5; }
30351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
30352 $as_echo_n "checking for compress2 in -lz... " >&6; }
30353 if ${ac_cv_lib_z_compress2+:} false
; then :
30354 $as_echo_n "(cached) " >&6
30356 ac_check_lib_save_LIBS
=$LIBS
30358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30359 /* end confdefs.h. */
30361 /* Override any GCC internal prototype to avoid an error.
30362 Use char because int might match the return type of a GCC
30363 builtin and then its argument prototype would still apply. */
30371 return compress2 ();
30376 if ac_fn_c_try_link
"$LINENO"; then :
30377 ac_cv_lib_z_compress2
=yes
30379 ac_cv_lib_z_compress2
=no
30381 rm -f core conftest.err conftest.
$ac_objext \
30382 conftest
$ac_exeext conftest.
$ac_ext
30383 LIBS
=$ac_check_lib_save_LIBS
30385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
30386 $as_echo "$ac_cv_lib_z_compress2" >&6; }
30387 if test "x$ac_cv_lib_z_compress2" = xyes
; then :
30388 cat >>confdefs.h
<<_ACEOF
30389 #define HAVE_LIBZ 1
30395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30396 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30398 *** compress2() missing, zlib-devel package required
30399 See \`config.log' for more details" "$LINENO" 5; }
30403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
30404 $as_echo_n "checking for uncompress in -lz... " >&6; }
30405 if ${ac_cv_lib_z_uncompress+:} false
; then :
30406 $as_echo_n "(cached) " >&6
30408 ac_check_lib_save_LIBS
=$LIBS
30410 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30411 /* end confdefs.h. */
30413 /* Override any GCC internal prototype to avoid an error.
30414 Use char because int might match the return type of a GCC
30415 builtin and then its argument prototype would still apply. */
30419 char uncompress ();
30423 return uncompress ();
30428 if ac_fn_c_try_link
"$LINENO"; then :
30429 ac_cv_lib_z_uncompress
=yes
30431 ac_cv_lib_z_uncompress
=no
30433 rm -f core conftest.err conftest.
$ac_objext \
30434 conftest
$ac_exeext conftest.
$ac_ext
30435 LIBS
=$ac_check_lib_save_LIBS
30437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
30438 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
30439 if test "x$ac_cv_lib_z_uncompress" = xyes
; then :
30440 cat >>confdefs.h
<<_ACEOF
30441 #define HAVE_LIBZ 1
30447 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30450 *** uncompress() missing, zlib-devel package required
30451 See \`config.log' for more details" "$LINENO" 5; }
30455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5
30456 $as_echo_n "checking for crc32 in -lz... " >&6; }
30457 if ${ac_cv_lib_z_crc32+:} false
; then :
30458 $as_echo_n "(cached) " >&6
30460 ac_check_lib_save_LIBS
=$LIBS
30462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30463 /* end confdefs.h. */
30465 /* Override any GCC internal prototype to avoid an error.
30466 Use char because int might match the return type of a GCC
30467 builtin and then its argument prototype would still apply. */
30480 if ac_fn_c_try_link
"$LINENO"; then :
30481 ac_cv_lib_z_crc32
=yes
30483 ac_cv_lib_z_crc32
=no
30485 rm -f core conftest.err conftest.
$ac_objext \
30486 conftest
$ac_exeext conftest.
$ac_ext
30487 LIBS
=$ac_check_lib_save_LIBS
30489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5
30490 $as_echo "$ac_cv_lib_z_crc32" >&6; }
30491 if test "x$ac_cv_lib_z_crc32" = xyes
; then :
30492 cat >>confdefs.h
<<_ACEOF
30493 #define HAVE_LIBZ 1
30499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30502 *** crc32() missing, zlib-devel package required
30503 See \`config.log' for more details" "$LINENO" 5; }
30510 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
30516 ac_fn_c_check_header_mongrel
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
30517 if test "x$ac_cv_header_uuid_uuid_h" = xyes
; then :
30520 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30523 *** uuid/uuid.h missing, libuuid-devel package required
30524 See \`config.log' for more details" "$LINENO" 5; }
30529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
30530 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
30531 if ${ac_cv_lib_uuid_uuid_generate+:} false
; then :
30532 $as_echo_n "(cached) " >&6
30534 ac_check_lib_save_LIBS
=$LIBS
30535 LIBS
="-luuid $LIBS"
30536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30537 /* end confdefs.h. */
30539 /* Override any GCC internal prototype to avoid an error.
30540 Use char because int might match the return type of a GCC
30541 builtin and then its argument prototype would still apply. */
30545 char uuid_generate ();
30549 return uuid_generate ();
30554 if ac_fn_c_try_link
"$LINENO"; then :
30555 ac_cv_lib_uuid_uuid_generate
=yes
30557 ac_cv_lib_uuid_uuid_generate
=no
30559 rm -f core conftest.err conftest.
$ac_objext \
30560 conftest
$ac_exeext conftest.
$ac_ext
30561 LIBS
=$ac_check_lib_save_LIBS
30563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
30564 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
30565 if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
; then :
30566 cat >>confdefs.h
<<_ACEOF
30567 #define HAVE_LIBUUID 1
30570 LIBS
="-luuid $LIBS"
30573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30576 *** uuid_generate() missing, libuuid-devel package required
30577 See \`config.log' for more details" "$LINENO" 5; }
30581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5
30582 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
30583 if ${ac_cv_lib_uuid_uuid_is_null+:} false
; then :
30584 $as_echo_n "(cached) " >&6
30586 ac_check_lib_save_LIBS
=$LIBS
30587 LIBS
="-luuid $LIBS"
30588 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30589 /* end confdefs.h. */
30591 /* Override any GCC internal prototype to avoid an error.
30592 Use char because int might match the return type of a GCC
30593 builtin and then its argument prototype would still apply. */
30597 char uuid_is_null ();
30601 return uuid_is_null ();
30606 if ac_fn_c_try_link
"$LINENO"; then :
30607 ac_cv_lib_uuid_uuid_is_null
=yes
30609 ac_cv_lib_uuid_uuid_is_null
=no
30611 rm -f core conftest.err conftest.
$ac_objext \
30612 conftest
$ac_exeext conftest.
$ac_ext
30613 LIBS
=$ac_check_lib_save_LIBS
30615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5
30616 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
30617 if test "x$ac_cv_lib_uuid_uuid_is_null" = xyes
; then :
30618 cat >>confdefs.h
<<_ACEOF
30619 #define HAVE_LIBUUID 1
30622 LIBS
="-luuid $LIBS"
30625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30628 *** uuid_is_null() missing, libuuid-devel package required
30629 See \`config.log' for more details" "$LINENO" 5; }
30636 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
30641 # Check whether --with-blkid was given.
30642 if test "${with_blkid+set}" = set; then :
30643 withval
=$with_blkid;
30650 if test "x$with_blkid" = xyes
; then :
30655 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
30660 if test "x$with_blkid" = xcheck
; then :
30662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
30663 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
30664 if ${ac_cv_lib_blkid_blkid_get_cache+:} false
; then :
30665 $as_echo_n "(cached) " >&6
30667 ac_check_lib_save_LIBS
=$LIBS
30668 LIBS
="-lblkid $LIBS"
30669 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30670 /* end confdefs.h. */
30672 /* Override any GCC internal prototype to avoid an error.
30673 Use char because int might match the return type of a GCC
30674 builtin and then its argument prototype would still apply. */
30678 char blkid_get_cache ();
30682 return blkid_get_cache ();
30687 if ac_fn_c_try_link
"$LINENO"; then :
30688 ac_cv_lib_blkid_blkid_get_cache
=yes
30690 ac_cv_lib_blkid_blkid_get_cache
=no
30692 rm -f core conftest.err conftest.
$ac_objext \
30693 conftest
$ac_exeext conftest.
$ac_ext
30694 LIBS
=$ac_check_lib_save_LIBS
30696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
30697 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
30698 if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
; then :
30700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5
30701 $as_echo_n "checking for blkid zfs support... " >&6; }
30704 truncate
-s 64M
$ZFS_DEV
30705 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
30706 dd of
=$ZFS_DEV bs
=1k count
=8 \
30707 seek
=128 conv
=notrunc
&>/dev
/null \
30708 >/dev
/null
2>/dev
/null
30709 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
30710 dd of
=$ZFS_DEV bs
=1k count
=8 \
30711 seek
=132 conv
=notrunc
&>/dev
/null \
30712 >/dev
/null
2>/dev
/null
30713 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
30714 dd of
=$ZFS_DEV bs
=1k count
=8 \
30715 seek
=136 conv
=notrunc
&>/dev
/null \
30716 >/dev
/null
2>/dev
/null
30717 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
30718 dd of
=$ZFS_DEV bs
=1k count
=8 \
30719 seek
=140 conv
=notrunc
&>/dev
/null \
30720 >/dev
/null
2>/dev
/null
30725 if test "$cross_compiling" = yes; then :
30726 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30728 as_fn_error $?
"cannot run test program while cross compiling
30729 See \`config.log' for more details" "$LINENO" 5; }
30731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30732 /* end confdefs.h. */
30735 #include <stdlib.h>
30736 #include <blkid/blkid.h>
30745 if (blkid_get_cache(&cache, NULL) < 0)
30748 value = blkid_get_tag_value(cache, "TYPE",
30751 blkid_put_cache(cache);
30755 if (strcmp(value, "zfs_member")) {
30757 blkid_put_cache(cache);
30762 blkid_put_cache(cache);
30768 if ac_fn_c_try_run
"$LINENO"; then :
30771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30772 $as_echo "yes" >&6; }
30776 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
30782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30783 $as_echo "no" >&6; }
30784 if test "x$with_blkid" != xcheck
; then :
30785 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30787 as_fn_error $?
"--with-blkid given but unavailable
30788 See \`config.log' for more details" "$LINENO" 5; }
30792 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
30793 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
30801 if test "x$with_blkid" != xcheck
; then :
30802 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30803 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30804 as_fn_error $?
"--with-blkid given but unavailable
30805 See \`config.log' for more details" "$LINENO" 5; }
30815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
30816 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
30818 saved_flags
="$CFLAGS"
30819 CFLAGS
="$CFLAGS -Wframe-larger-than=1024"
30821 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
30822 /* end confdefs.h. */
30832 if ac_fn_c_try_compile
"$LINENO"; then :
30834 FRAME_LARGER_THAN
=-Wframe-larger-than=1024
30835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30836 $as_echo "yes" >&6; }
30841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30842 $as_echo "no" >&6; }
30845 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
30847 CFLAGS
="$saved_flags"
30851 if test "x$runstatedir" = x
; then
30852 runstatedir
='${localstatedir}/run'
30856 for ac_func
in mlockall
30858 ac_fn_c_check_func
"$LINENO" "mlockall" "ac_cv_func_mlockall"
30859 if test "x$ac_cv_func_mlockall" = xyes
; then :
30860 cat >>confdefs.h
<<_ACEOF
30861 #define HAVE_MLOCKALL 1
30870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
30871 $as_echo "Error!" >&6; }
30872 as_fn_error $?
"Bad value \"$ZFS_CONFIG\" for --with-config,
30873 user kernel|user|all|srpm" "$LINENO" 5 ;;
30876 if test "$ZFS_CONFIG" = user
-o "$ZFS_CONFIG" = all
; then
30878 CONFIG_USER_FALSE
='#'
30880 CONFIG_USER_TRUE
='#'
30884 if test "$ZFS_CONFIG" = kernel
-o "$ZFS_CONFIG" = all
&&
30885 test "x$enable_linux_builtin" != xyes
; then
30886 CONFIG_KERNEL_TRUE
=
30887 CONFIG_KERNEL_FALSE
='#'
30889 CONFIG_KERNEL_TRUE
='#'
30890 CONFIG_KERNEL_FALSE
=
30895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
30896 $as_echo_n "checking whether debugging is enabled... " >&6; }
30897 # Check whether --enable-debug was given.
30898 if test "${enable_debug+set}" = set; then :
30899 enableval
=$enable_debug;
30905 if test "x$enable_debug" = xyes
; then :
30907 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG -Werror"
30908 HOSTCFLAGS
="${HOSTCFLAGS} -DDEBUG -Werror"
30909 DEBUG_CFLAGS
="-DDEBUG -Werror"
30910 DEBUG_STACKFLAGS
="-fstack-check"
30911 DEBUG_ZFS
="_with_debug"
30913 $as_echo "#define ZFS_DEBUG 1" >>confdefs.h
30918 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DNDEBUG "
30919 HOSTCFLAGS
="${HOSTCFLAGS} -DNDEBUG "
30920 DEBUG_CFLAGS
="-DNDEBUG"
30921 DEBUG_STACKFLAGS
=""
30922 DEBUG_ZFS
="_without_debug"
30929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
30930 $as_echo "$enable_debug" >&6; }
30933 # Check whether --enable-debug-dmu-tx was given.
30934 if test "${enable_debug_dmu_tx+set}" = set; then :
30935 enableval
=$enable_debug_dmu_tx;
30937 enable_debug_dmu_tx
=no
30941 if test "x$enable_debug_dmu_tx" = xyes
; then :
30943 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG_DMU_TX"
30944 DEBUG_DMU_TX
="_with_debug_dmu_tx"
30946 $as_echo "#define DEBUG_DMU_TX 1" >>confdefs.h
30951 DEBUG_DMU_TX
="_without_debug_dmu_tx"
30956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dmu tx validation is enabled" >&5
30957 $as_echo_n "checking whether dmu tx validation is enabled... " >&6; }
30958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_dmu_tx" >&5
30959 $as_echo "$enable_debug_dmu_tx" >&6; }
30962 ac_config_files
="$ac_config_files Makefile dracut/Makefile dracut/90zfs/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 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"
30965 cat >confcache
<<\_ACEOF
30966 # This file is a shell script that caches the results of configure
30967 # tests run on this system so they can be shared between configure
30968 # scripts and configure runs, see configure's option --config-cache.
30969 # It is not useful on other systems. If it contains results you don't
30970 # want to keep, you may remove or edit it.
30972 # config.status only pays attention to the cache file if you give it
30973 # the --recheck option to rerun configure.
30975 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30976 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30977 # following values.
30981 # The following way of writing the cache mishandles newlines in values,
30982 # but we know of no workaround that is simple, portable, and efficient.
30983 # So, we kill variables containing newlines.
30984 # Ultrix sh set writes to stderr and can't be redirected directly,
30985 # and sets the high bit in the cache file unless we assign to the vars.
30987 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30988 eval ac_val
=\$
$ac_var
30992 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30993 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30996 _ | IFS | as_nl
) ;; #(
30997 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
30998 *) { eval $ac_var=; unset $ac_var;} ;;
31004 case $as_nl`(ac_space=' '; set) 2>&1` in #(
31005 *${as_nl}ac_space
=\
*)
31006 # `set' does not quote correctly, so add quotes: double-quote
31007 # substitution turns \\\\ into \\, and sed turns \\ into \.
31010 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31013 # `set' quotes correctly as required by POSIX, so do not add quotes.
31014 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
31023 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31025 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31027 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
31028 if test -w "$cache_file"; then
31029 if test "x$cache_file" != "x/dev/null"; then
31030 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
31031 $as_echo "$as_me: updating cache $cache_file" >&6;}
31032 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
31033 cat confcache
>"$cache_file"
31035 case $cache_file in #(
31037 mv -f confcache
"$cache_file"$$
&&
31038 mv -f "$cache_file"$$
"$cache_file" ;; #(
31040 mv -f confcache
"$cache_file" ;;
31045 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
31046 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
31051 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
31052 # Let make expand exec_prefix.
31053 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
31055 DEFS
=-DHAVE_CONFIG_H
31060 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
31061 # 1. Remove the extension, and $U if already installed.
31062 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
31063 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
31064 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
31065 # will be set to the directory where LIBOBJS objects are built.
31066 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
31067 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
31069 LIBOBJS
=$ac_libobjs
31071 LTLIBOBJS
=$ac_ltlibobjs
31074 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
31075 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
31076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31078 if test -n "$EXEEXT"; then
31080 am__EXEEXT_FALSE
='#'
31082 am__EXEEXT_TRUE
='#'
31086 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
31087 as_fn_error $?
"conditional \"AMDEP\" was never defined.
31088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31090 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31091 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
31092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31094 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
31095 as_fn_error $?
"conditional \"am__fastdepCCAS\" was never defined.
31096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31098 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
31099 as_fn_error $?
"conditional \"CONFIG_USER\" was never defined.
31100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31102 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
31103 as_fn_error $?
"conditional \"CONFIG_KERNEL\" was never defined.
31104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31107 : "${CONFIG_STATUS=./config.status}"
31109 ac_clean_files_save
=$ac_clean_files
31110 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
31111 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31112 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
31114 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31116 # Generated by $as_me.
31117 # Run this file to recreate the current configuration.
31118 # Compiler output produced by configure, useful for debugging
31119 # configure, is in config.log if it exists.
31122 ac_cs_recheck=false
31125 SHELL=\${CONFIG_SHELL-$SHELL}
31128 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
31129 ## -------------------- ##
31130 ## M4sh Initialization. ##
31131 ## -------------------- ##
31133 # Be more Bourne compatible
31134 DUALCASE
=1; export DUALCASE
# for MKS sh
31135 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
31138 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31139 # is contrary to our usage. Disable this feature.
31140 alias -g '${1+"$@"}'='"$@"'
31141 setopt NO_GLOB_SUBST
31143 case `(set -o) 2>/dev/null` in #(
31155 # Printing a long string crashes Solaris 7 /usr/bin/printf.
31156 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
31157 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
31158 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
31159 # Prefer a ksh shell builtin over an external printf program on Solaris,
31160 # but without wasting forks for bash or zsh.
31161 if test -z "$BASH_VERSION$ZSH_VERSION" \
31162 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
31163 as_echo='print
-r --'
31164 as_echo_n='print
-rn --'
31165 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
31166 as_echo='printf %s
\n'
31167 as_echo_n='printf %s
'
31169 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
31170 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
31171 as_echo_n='/usr
/ucb
/echo -n'
31173 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
31174 as_echo_n_body='eval
31178 expr "X$arg" : "X\\(.*\\)$as_nl";
31179 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
31181 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
31183 export as_echo_n_body
31184 as_echo_n='sh
-c $as_echo_n_body as_echo
'
31186 export as_echo_body
31187 as_echo='sh
-c $as_echo_body as_echo
'
31190 # The user is always right.
31191 if test "${PATH_SEPARATOR+set}" != set; then
31193 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31194 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31201 # We need space, tab and new line, in precisely that order. Quoting is
31202 # there to prevent editors from complaining about space-tab.
31203 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31204 # splitting by setting IFS to empty value.)
31207 # Find who we are. Look in the path if we contain no directory separator.
31210 *[\\/]* ) as_myself=$0 ;;
31211 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31212 for as_dir in $PATH
31215 test -z "$as_dir" && as_dir=.
31216 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
31222 # We did not find ourselves, most probably we were run as `sh COMMAND'
31223 # in which case we are not to be found in the path.
31224 if test "x$as_myself" = x
; then
31227 if test ! -f "$as_myself"; then
31228 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31232 # Unset variables that we do not need and which cause bugs (e.g. in
31233 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
31234 # suppresses any "Segmentation fault" message there. '((' could
31235 # trigger a bug in pdksh 5.2.14.
31236 for as_var
in BASH_ENV ENV MAIL MAILPATH
31237 do eval test x\
${$as_var+set} = xset \
31238 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
31251 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
31254 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31255 # ----------------------------------------
31256 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31257 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31258 # script with STATUS, using 1 if that was 0.
31261 as_status
=$1; test $as_status -eq 0 && as_status
=1
31263 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
31264 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31266 $as_echo "$as_me: error: $2" >&2
31267 as_fn_exit
$as_status
31271 # as_fn_set_status STATUS
31272 # -----------------------
31273 # Set $? to STATUS, without forking.
31274 as_fn_set_status
()
31277 } # as_fn_set_status
31279 # as_fn_exit STATUS
31280 # -----------------
31281 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31285 as_fn_set_status
$1
31291 # Portably unset VAR.
31294 { eval $1=; unset $1;}
31296 as_unset
=as_fn_unset
31297 # as_fn_append VAR VALUE
31298 # ----------------------
31299 # Append the text in VALUE to the end of the definition contained in VAR. Take
31300 # advantage of any shell optimizations that allow amortized linear growth over
31301 # repeated appends, instead of the typical quadratic growth present in naive
31303 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
31304 eval 'as_fn_append ()
31315 # as_fn_arith ARG...
31316 # ------------------
31317 # Perform arithmetic evaluation on the ARGs, and store the result in the
31318 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31319 # must be portable across $(()) and expr.
31320 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
31321 eval 'as_fn_arith ()
31328 as_val
=`expr "$@" || test $? -eq 1`
31333 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
31334 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
31340 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31341 as_basename
=basename
31346 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
31352 as_me
=`$as_basename -- "$0" ||
31353 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31354 X"$0" : 'X\(//\)$' \| \
31355 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31357 sed '/^.*\/\([^/][^/]*\)\/*$/{
31371 # Avoid depending upon Character Ranges.
31372 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
31373 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31374 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
31375 as_cr_digits
='0123456789'
31376 as_cr_alnum
=$as_cr_Letters$as_cr_digits
31378 ECHO_C
= ECHO_N
= ECHO_T
=
31379 case `echo -n x` in #(((((
31381 case `echo 'xy\c'` in
31382 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
31384 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
31391 rm -f conf$$ conf$$.exe conf$$.
file
31392 if test -d conf$$.dir
; then
31393 rm -f conf$$.dir
/conf$$.
file
31396 mkdir conf$$.dir
2>/dev
/null
31398 if (echo >conf$$.
file) 2>/dev
/null
; then
31399 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
31401 # ... but there are two gotchas:
31402 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31403 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31404 # In both cases, we have to default to `cp -p'.
31405 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
31407 elif ln conf$$.
file conf$$
2>/dev
/null
; then
31415 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
31416 rmdir conf$$.dir
2>/dev
/null
31421 # Create "$as_dir" as a directory, including parents if necessary.
31426 -*) as_dir
=.
/$as_dir;;
31428 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
31432 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31433 *) as_qdir
=$as_dir;;
31435 as_dirs
="'$as_qdir' $as_dirs"
31436 as_dir
=`$as_dirname -- "$as_dir" ||
31437 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31438 X"$as_dir" : 'X\(//\)[^/]' \| \
31439 X"$as_dir" : 'X\(//\)$' \| \
31440 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31441 $as_echo X"$as_dir" |
31442 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31446 /^X\(\/\/\)[^/].*/{
31459 test -d "$as_dir" && break
31461 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
31462 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
31466 if mkdir
-p .
2>/dev
/null
; then
31467 as_mkdir_p
='mkdir -p "$as_dir"'
31469 test -d .
/-p && rmdir .
/-p
31473 if test -x / >/dev
/null
2>&1; then
31474 as_test_x
='test -x'
31476 if ls -dL / >/dev
/null
2>&1; then
31483 if test -d "$1"; then
31489 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
31490 ???[sx]*):;;*)false;;esac;fi
31494 as_executable_p
=$as_test_x
31496 # Sed expression to map a string onto a valid CPP name.
31497 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31499 # Sed expression to map a string onto a valid variable name.
31500 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31504 ## ----------------------------------- ##
31505 ## Main body of $CONFIG_STATUS script. ##
31506 ## ----------------------------------- ##
31508 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
31510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31511 # Save the log message, to keep $0 and so on meaningful, and to
31512 # report actual input values of CONFIG_FILES etc. instead of their
31513 # values after options handling.
31515 This file was extended by zfs $as_me 0.6.4.2, which was
31516 generated by GNU Autoconf 2.68. Invocation command line was
31518 CONFIG_FILES = $CONFIG_FILES
31519 CONFIG_HEADERS = $CONFIG_HEADERS
31520 CONFIG_LINKS = $CONFIG_LINKS
31521 CONFIG_COMMANDS = $CONFIG_COMMANDS
31524 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31529 case $ac_config_files in *"
31530 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
31533 case $ac_config_headers in *"
31534 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
31538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31539 # Files that config.status was made for.
31540 config_files="$ac_config_files"
31541 config_headers="$ac_config_headers"
31542 config_commands="$ac_config_commands"
31546 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31548 \`$as_me' instantiates files and other configuration actions
31549 from templates according to the current configuration. Unless the files
31550 and actions are specified as TAGs, all are instantiated by default.
31552 Usage: $0 [OPTION]... [TAG]...
31554 -h, --help print this help, then exit
31555 -V, --version print version number and configuration settings, then exit
31556 --config print configuration, then exit
31557 -q, --quiet, --silent
31558 do not print progress messages
31559 -d, --debug don't remove temporary files
31560 --recheck update $as_me by reconfiguring in the same conditions
31561 --file=FILE[:TEMPLATE]
31562 instantiate the configuration file FILE
31563 --header=FILE[:TEMPLATE]
31564 instantiate the configuration header FILE
31566 Configuration files:
31569 Configuration headers:
31572 Configuration commands:
31575 Report bugs to the package provider."
31578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31579 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
31581 zfs config.status 0.6.4.2
31582 configured by $0, generated by GNU Autoconf 2.68,
31583 with options \\"\$ac_cs_config\\"
31585 Copyright (C) 2010 Free Software Foundation, Inc.
31586 This config.status script is free software; the Free Software Foundation
31587 gives unlimited permission to copy, distribute and modify it."
31594 test -n "\$AWK" || AWK=awk
31597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31598 # The default lists apply if the user does not specify any file.
31604 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
31605 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
31609 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
31621 # Handling of the options.
31622 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
31624 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
31625 $as_echo "$ac_cs_version"; exit ;;
31626 --config |
--confi |
--conf |
--con |
--co |
--c )
31627 $as_echo "$ac_cs_config"; exit ;;
31628 --debug |
--debu |
--deb |
--de |
--d |
-d )
31630 --file |
--fil |
--fi |
--f )
31633 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31634 '') as_fn_error $?
"missing file argument" ;;
31636 as_fn_append CONFIG_FILES
" '$ac_optarg'"
31637 ac_need_defaults
=false
;;
31638 --header |
--heade |
--head |
--hea )
31641 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31643 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
31644 ac_need_defaults
=false
;;
31646 # Conflict between --help and --header
31647 as_fn_error $?
"ambiguous option: \`$1'
31648 Try \`$0 --help' for more information.";;
31649 --help |
--hel |
-h )
31650 $as_echo "$ac_cs_usage"; exit ;;
31651 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
31652 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
31655 # This is an error.
31656 -*) as_fn_error $?
"unrecognized option: \`$1'
31657 Try \`$0 --help' for more information." ;;
31659 *) as_fn_append ac_config_targets
" $1"
31660 ac_need_defaults
=false
;;
31666 ac_configure_extra_args
=
31668 if $ac_cs_silent; then
31670 ac_configure_extra_args
="$ac_configure_extra_args --silent"
31674 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31675 if \$ac_cs_recheck; then
31676 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31678 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
31679 CONFIG_SHELL='$SHELL'
31680 export CONFIG_SHELL
31685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31689 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31690 ## Running $as_me. ##
31696 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31700 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
31703 # The HP-UX ksh and POSIX shell print the target directory to stdout
31704 # if CDPATH is set.
31705 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31707 sed_quote_subst='$sed_quote_subst'
31708 double_quote_subst='$double_quote_subst'
31709 delay_variable_subst='$delay_variable_subst'
31710 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
31711 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
31712 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
31713 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
31714 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
31715 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
31716 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
31717 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
31718 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
31719 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
31720 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
31721 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
31722 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
31723 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
31724 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
31725 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
31726 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
31727 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
31728 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
31729 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
31730 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
31731 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
31732 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
31733 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
31734 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
31735 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
31736 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
31737 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
31738 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
31739 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
31740 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
31741 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
31742 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
31743 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
31744 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
31745 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
31746 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
31747 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
31748 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
31749 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
31750 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
31751 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
31752 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
31753 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
31754 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
31755 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31756 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31757 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
31758 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
31759 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
31760 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
31761 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
31762 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
31763 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
31764 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
31765 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
31766 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"`'
31767 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
31768 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
31769 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
31770 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
31771 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
31772 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
31773 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
31774 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
31775 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
31776 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
31777 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
31778 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
31779 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
31780 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
31781 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
31782 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
31783 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
31784 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
31785 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31786 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
31787 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
31788 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
31789 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
31790 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
31791 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
31792 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
31793 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
31794 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31795 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
31796 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
31797 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
31798 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
31799 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
31800 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
31801 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
31802 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
31803 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
31804 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
31805 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
31806 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
31807 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
31808 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
31809 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
31810 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
31811 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
31812 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
31813 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
31814 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
31815 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
31816 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
31817 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
31818 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
31819 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
31820 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
31821 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
31822 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
31823 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
31824 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
31825 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
31826 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
31827 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
31828 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
31829 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
31830 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
31831 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
31832 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
31833 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
31834 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
31835 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
31836 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
31837 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
31838 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
31839 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
31842 LTCFLAGS='$LTCFLAGS'
31843 compiler='$compiler_DEFAULT'
31845 # A function that is used when there is no print builtin or printf.
31846 func_fallback_echo ()
31848 eval 'cat <<_LTECHO_EOF
31853 # Quote evaled strings.
31868 deplibs_check_method \
31873 sharedlib_from_linklib_cmd \
31876 archiver_list_spec \
31882 lt_cv_sys_global_symbol_pipe \
31883 lt_cv_sys_global_symbol_to_cdecl \
31884 lt_cv_sys_global_symbol_to_c_name_address \
31885 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
31886 nm_file_list_spec \
31887 lt_prog_compiler_no_builtin_flag \
31888 lt_prog_compiler_pic \
31889 lt_prog_compiler_wl \
31890 lt_prog_compiler_static \
31891 lt_cv_prog_compiler_c_o \
31900 export_dynamic_flag_spec \
31901 whole_archive_flag_spec \
31902 compiler_needs_object \
31904 allow_undefined_flag \
31905 no_undefined_flag \
31906 hardcode_libdir_flag_spec \
31907 hardcode_libdir_separator \
31911 variables_saved_for_relink \
31913 library_names_spec \
31915 install_override_mode \
31919 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31920 *[\\\\\\\`\\"\\\$]*)
31921 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
31924 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31929 # Double-quote double-evaled strings.
31930 for var in reload_cmds \
31931 old_postinstall_cmds \
31932 old_postuninstall_cmds \
31934 extract_expsyms_cmds \
31935 old_archive_from_new_cmds \
31936 old_archive_from_expsyms_cmds \
31938 archive_expsym_cmds \
31940 module_expsym_cmds \
31941 export_symbols_cmds \
31945 postuninstall_cmds \
31947 sys_lib_search_path_spec \
31948 sys_lib_dlsearch_path_spec; do
31949 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
31950 *[\\\\\\\`\\"\\\$]*)
31951 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
31954 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
31959 ac_aux_dir='$ac_aux_dir'
31960 xsi_shell='$xsi_shell'
31961 lt_shell_append='$lt_shell_append'
31963 # See if we are running on zsh, and set the options which allow our
31964 # commands through without removal of \ escapes INIT.
31965 if test -n "\${ZSH_VERSION+set}" ; then
31966 setopt NO_GLOB_SUBST
31972 TIMESTAMP='$TIMESTAMP'
31981 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
31983 # Handling of arguments.
31984 for ac_config_target
in $ac_config_targets
31986 case $ac_config_target in
31987 "zfs_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS zfs_config.h" ;;
31988 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
31989 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
31990 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
31991 "dracut/Makefile") CONFIG_FILES
="$CONFIG_FILES dracut/Makefile" ;;
31992 "dracut/90zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES dracut/90zfs/Makefile" ;;
31993 "udev/Makefile") CONFIG_FILES
="$CONFIG_FILES udev/Makefile" ;;
31994 "udev/rules.d/Makefile") CONFIG_FILES
="$CONFIG_FILES udev/rules.d/Makefile" ;;
31995 "etc/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/Makefile" ;;
31996 "etc/init.d/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/init.d/Makefile" ;;
31997 "etc/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/zfs/Makefile" ;;
31998 "etc/systemd/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/systemd/Makefile" ;;
31999 "etc/systemd/system/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/systemd/system/Makefile" ;;
32000 "etc/modules-load.d/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/modules-load.d/Makefile" ;;
32001 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
32002 "man/man1/Makefile") CONFIG_FILES
="$CONFIG_FILES man/man1/Makefile" ;;
32003 "man/man5/Makefile") CONFIG_FILES
="$CONFIG_FILES man/man5/Makefile" ;;
32004 "man/man8/Makefile") CONFIG_FILES
="$CONFIG_FILES man/man8/Makefile" ;;
32005 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
32006 "lib/libspl/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/Makefile" ;;
32007 "lib/libspl/asm-generic/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
32008 "lib/libspl/asm-i386/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
32009 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
32010 "lib/libspl/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/Makefile" ;;
32011 "lib/libspl/include/ia32/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
32012 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
32013 "lib/libspl/include/rpc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
32014 "lib/libspl/include/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
32015 "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
32016 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
32017 "lib/libspl/include/util/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
32018 "lib/libavl/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libavl/Makefile" ;;
32019 "lib/libefi/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libefi/Makefile" ;;
32020 "lib/libnvpair/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libnvpair/Makefile" ;;
32021 "lib/libunicode/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libunicode/Makefile" ;;
32022 "lib/libuutil/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libuutil/Makefile" ;;
32023 "lib/libzpool/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libzpool/Makefile" ;;
32024 "lib/libzfs/libzfs.pc") CONFIG_FILES
="$CONFIG_FILES lib/libzfs/libzfs.pc" ;;
32025 "lib/libzfs/libzfs_core.pc") CONFIG_FILES
="$CONFIG_FILES lib/libzfs/libzfs_core.pc" ;;
32026 "lib/libzfs/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libzfs/Makefile" ;;
32027 "lib/libzfs_core/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libzfs_core/Makefile" ;;
32028 "lib/libshare/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libshare/Makefile" ;;
32029 "cmd/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/Makefile" ;;
32030 "cmd/zdb/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zdb/Makefile" ;;
32031 "cmd/zhack/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zhack/Makefile" ;;
32032 "cmd/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zfs/Makefile" ;;
32033 "cmd/zinject/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zinject/Makefile" ;;
32034 "cmd/zpool/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpool/Makefile" ;;
32035 "cmd/zstreamdump/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zstreamdump/Makefile" ;;
32036 "cmd/ztest/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/ztest/Makefile" ;;
32037 "cmd/zpios/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpios/Makefile" ;;
32038 "cmd/mount_zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
32039 "cmd/fsck_zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/fsck_zfs/Makefile" ;;
32040 "cmd/zvol_id/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
32041 "cmd/vdev_id/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/vdev_id/Makefile" ;;
32042 "cmd/arcstat/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/arcstat/Makefile" ;;
32043 "cmd/dbufstat/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/dbufstat/Makefile" ;;
32044 "cmd/arc_summary/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/arc_summary/Makefile" ;;
32045 "cmd/zed/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zed/Makefile" ;;
32046 "contrib/Makefile") CONFIG_FILES
="$CONFIG_FILES contrib/Makefile" ;;
32047 "contrib/bash_completion.d/Makefile") CONFIG_FILES
="$CONFIG_FILES contrib/bash_completion.d/Makefile" ;;
32048 "module/Makefile") CONFIG_FILES
="$CONFIG_FILES module/Makefile" ;;
32049 "module/avl/Makefile") CONFIG_FILES
="$CONFIG_FILES module/avl/Makefile" ;;
32050 "module/nvpair/Makefile") CONFIG_FILES
="$CONFIG_FILES module/nvpair/Makefile" ;;
32051 "module/unicode/Makefile") CONFIG_FILES
="$CONFIG_FILES module/unicode/Makefile" ;;
32052 "module/zcommon/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zcommon/Makefile" ;;
32053 "module/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zfs/Makefile" ;;
32054 "module/zpios/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zpios/Makefile" ;;
32055 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
32056 "include/linux/Makefile") CONFIG_FILES
="$CONFIG_FILES include/linux/Makefile" ;;
32057 "include/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/Makefile" ;;
32058 "include/sys/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fs/Makefile" ;;
32059 "include/sys/fm/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/Makefile" ;;
32060 "include/sys/fm/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
32061 "scripts/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/Makefile" ;;
32062 "scripts/zpios-profile/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
32063 "scripts/zpios-test/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
32064 "scripts/zpool-config/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
32065 "scripts/common.sh") CONFIG_FILES
="$CONFIG_FILES scripts/common.sh" ;;
32066 "rpm/Makefile") CONFIG_FILES
="$CONFIG_FILES rpm/Makefile" ;;
32067 "rpm/redhat/Makefile") CONFIG_FILES
="$CONFIG_FILES rpm/redhat/Makefile" ;;
32068 "rpm/redhat/zfs.spec") CONFIG_FILES
="$CONFIG_FILES rpm/redhat/zfs.spec" ;;
32069 "rpm/redhat/zfs-kmod.spec") CONFIG_FILES
="$CONFIG_FILES rpm/redhat/zfs-kmod.spec" ;;
32070 "rpm/redhat/zfs-dkms.spec") CONFIG_FILES
="$CONFIG_FILES rpm/redhat/zfs-dkms.spec" ;;
32071 "rpm/generic/Makefile") CONFIG_FILES
="$CONFIG_FILES rpm/generic/Makefile" ;;
32072 "rpm/generic/zfs.spec") CONFIG_FILES
="$CONFIG_FILES rpm/generic/zfs.spec" ;;
32073 "rpm/generic/zfs-kmod.spec") CONFIG_FILES
="$CONFIG_FILES rpm/generic/zfs-kmod.spec" ;;
32074 "rpm/generic/zfs-dkms.spec") CONFIG_FILES
="$CONFIG_FILES rpm/generic/zfs-dkms.spec" ;;
32075 "zfs-script-config.sh") CONFIG_FILES
="$CONFIG_FILES zfs-script-config.sh" ;;
32076 "zfs.release") CONFIG_FILES
="$CONFIG_FILES zfs.release" ;;
32078 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
32083 # If the user did not use the arguments to specify the items to instantiate,
32084 # then the envvar interface is used. Set only those that are not.
32085 # We use the long form for the default assignment because of an extremely
32086 # bizarre bug on SunOS 4.1.3.
32087 if $ac_need_defaults; then
32088 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
32089 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
32090 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
32093 # Have a temporary directory for convenience. Make it in the build tree
32094 # simply because there is no reason against having it here, and in addition,
32095 # creating and moving files from /tmp can sometimes cause problems.
32096 # Hook for its removal unless debugging.
32097 # Note that there is a small window in which the directory will not be cleaned:
32098 # after its creation but before its name has been assigned to `$tmp'.
32102 trap 'exit_status=$?
32103 : "${ac_tmp:=$tmp}"
32104 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
32106 trap 'as_fn_exit 1' 1 2 13 15
32108 # Create a (secure) tmp directory for tmp files.
32111 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
32115 tmp
=.
/conf$$
-$RANDOM
32116 (umask 077 && mkdir
"$tmp")
32117 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
32120 # Set up the scripts for CONFIG_FILES section.
32121 # No need to generate them if there are no CONFIG_FILES.
32122 # This happens for instance with `./config.status config.h'.
32123 if test -n "$CONFIG_FILES"; then
32126 ac_cr
=`echo X | tr X '\015'`
32127 # On cygwin, bash can eat \r inside `` if the user requested igncr.
32128 # But we know of no other shell where ac_cr would be empty at this
32129 # point, so we can use a bashism as a fallback.
32130 if test "x$ac_cr" = x
; then
32131 eval ac_cr
=\$
\'\\r
\'
32133 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
32134 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
32137 ac_cs_awk_cr
=$ac_cr
32140 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
32145 echo "cat >conf$$subs.awk <<_ACEOF" &&
32146 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
32148 } >conf$$subs.sh ||
32149 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
32150 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
32152 for ac_last_try in false false false false false :; do
32153 . ./conf$$subs.sh ||
32154 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
32156 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
32157 if test $ac_delim_n = $ac_delim_num; then
32159 elif $ac_last_try; then
32160 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
32162 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
32165 rm -f conf$$subs.sh
32167 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32168 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
32172 s/^/S["/; s
/!.
*/"]=/
32182 s/\(.\{148\}\)..*/\1/
32184 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
32189 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
32196 s/\(.\{148\}\)..*/\1/
32198 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
32202 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
32207 ' <conf$$subs.awk | sed '
32212 ' >>$CONFIG_STATUS || ac_write_fail=1
32213 rm -f conf$$subs.awk
32214 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32216 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
32217 for (key in S) S_is_set[key] = 1
32223 nfields = split(line, field, "@
")
32225 len = length(field[1])
32226 for (i = 2; i < nfields; i++) {
32228 keylen = length(key)
32229 if (S_is_set[key]) {
32231 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
32232 len += length(value) + length(field[++i])
32243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32244 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
32245 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
32248 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
32249 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
32252 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
32253 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
32254 # trailing colons and then remove the whole line if VPATH becomes empty
32255 # (actually we leave an empty line to preserve line numbers).
32256 if test "x
$srcdir" = x.; then
32257 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
32275 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32276 fi # test -n "$CONFIG_FILES"
32278 # Set up the scripts for CONFIG_HEADERS section.
32279 # No need to generate them if there are no CONFIG_HEADERS.
32280 # This happens for instance with `./config.status Makefile'.
32281 if test -n "$CONFIG_HEADERS"; then
32282 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
32286 # Transform confdefs.h into an awk script `defines.awk', embedded as
32287 # here-document in config.status, that substitutes the proper values into
32288 # config.h.in to produce config.h.
32290 # Create a delimiter string that does not exist in confdefs.h, to ease
32291 # handling of long lines.
32293 for ac_last_try in false false :; do
32294 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
32295 if test -z "$ac_tt"; then
32297 elif $ac_last_try; then
32298 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
32300 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
32304 # For the awk script, D is an array of macro values keyed by name,
32305 # likewise P contains macro parameters if any. Preserve backslash
32306 # newline sequences.
32308 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
32310 s/.\{148\}/&'"$ac_delim"'/g
32313 s/^[ ]*#[ ]*define[ ][ ]*/ /
32320 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
32322 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
32326 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
32327 D["\
1"]=" \
3\\\\\\n
"\\/p
32329 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
32334 s/.\{148\}/&'"$ac_delim"'/g
32339 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
32342 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
32344 ' <confdefs.h | sed '
32345 s/'"$ac_delim"'/"\\\
32346 "/g' >>$CONFIG_STATUS || ac_write_fail=1
32348 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32349 for (key in D) D_is_set[key] = 1
32352 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
32354 split(line, arg, " ")
32355 if (arg[1] == "#") {
32359 defundef
= substr
(arg
[1], 2)
32362 split(mac1
, mac2
, "(") #)
32364 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
32365 if (D_is_set
[macro
]) {
32366 # Preserve the white space surrounding the "#".
32367 print prefix
"define", macro P
[macro
] D
[macro
]
32370 # Replace #undef with comments. This is necessary, for example,
32371 # in the case of _POSIX_SOURCE, which is predefined and required
32372 # on some systems where configure will not decide to define it.
32373 if (defundef
== "undef") {
32374 print
"/*", prefix defundef
, macro
, "*/"
32382 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32383 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
32384 fi # test -n "$CONFIG_HEADERS"
32387 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
32392 :[FHLC
]) ac_mode
=$ac_tag; continue;;
32394 case $ac_mode$ac_tag in
32396 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
32397 :[FH
]-) ac_tag
=-:-;;
32398 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
32415 -) ac_f
="$ac_tmp/stdin";;
32416 *) # Look for the file first in the build tree, then in the source tree
32417 # (if the path is not absolute). The absolute path cannot be DOS-style,
32418 # because $ac_f cannot contain `:'.
32422 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
32424 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32426 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32427 as_fn_append ac_file_inputs
" '$ac_f'"
32430 # Let's still pretend it is `configure' which instantiates (i.e., don't
32431 # use $as_me), people would be surprised to read:
32432 # /* config.h. Generated by config.status. */
32433 configure_input
='Generated from '`
32434 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32436 if test x
"$ac_file" != x-
; then
32437 configure_input
="$ac_file. $configure_input"
32438 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32439 $as_echo "$as_me: creating $ac_file" >&6;}
32441 # Neutralize special characters interpreted by sed in replacement strings.
32442 case $configure_input in #(
32443 *\
&* |
*\|
* |
*\\* )
32444 ac_sed_conf_input
=`$as_echo "$configure_input" |
32445 sed 's/[\\\\&|]/\\\\&/g'`;; #(
32446 *) ac_sed_conf_input
=$configure_input;;
32450 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
32451 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
32456 ac_dir
=`$as_dirname -- "$ac_file" ||
32457 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32458 X"$ac_file" : 'X\(//\)[^/]' \| \
32459 X"$ac_file" : 'X\(//\)$' \| \
32460 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32461 $as_echo X"$ac_file" |
32462 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32466 /^X\(\/\/\)[^/].*/{
32479 as_dir
="$ac_dir"; as_fn_mkdir_p
32483 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
32485 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
32486 # A ".." for each directory in $ac_dir_suffix.
32487 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32488 case $ac_top_builddir_sub in
32489 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
32490 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
32493 ac_abs_top_builddir
=$ac_pwd
32494 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
32495 # for backward compatibility:
32496 ac_top_builddir
=$ac_top_build_prefix
32499 .
) # We are building in place.
32501 ac_top_srcdir
=$ac_top_builddir_sub
32502 ac_abs_top_srcdir
=$ac_pwd ;;
32503 [\\/]* | ?
:[\\/]* ) # Absolute name.
32504 ac_srcdir
=$srcdir$ac_dir_suffix;
32505 ac_top_srcdir
=$srcdir
32506 ac_abs_top_srcdir
=$srcdir ;;
32507 *) # Relative name.
32508 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
32509 ac_top_srcdir
=$ac_top_build_prefix$srcdir
32510 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
32512 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
32522 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
32523 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
32525 ac_MKDIR_P
=$MKDIR_P
32527 [\\/$
]* | ?
:[\\/]* ) ;;
32528 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
32532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32533 # If the template does not know about datarootdir, expand it.
32534 # FIXME: This hack should be removed a few years after 2.60.
32535 ac_datarootdir_hack
=; ac_datarootdir_seen
=
32546 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32547 *datarootdir
*) ac_datarootdir_seen
=yes;;
32548 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
32549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32550 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32553 ac_datarootdir_hack='
32554 s&@datadir@&$datadir&g
32555 s&@docdir@&$docdir&g
32556 s&@infodir@&$infodir&g
32557 s&@localedir@&$localedir&g
32558 s&@mandir@&$mandir&g
32559 s&\\\${datarootdir}&$datarootdir&g' ;;
32563 # Neutralize VPATH when `$srcdir' = `.'.
32564 # Shell code in configure.ac might set extrasub.
32565 # FIXME: do we really want to maintain this feature?
32566 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32567 ac_sed_extra="$ac_vpsub
32570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
32572 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
32573 s|@configure_input@|
$ac_sed_conf_input|
;t t
32574 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
32575 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
32576 s
&@srcdir@
&$ac_srcdir&;t t
32577 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
32578 s
&@top_srcdir@
&$ac_top_srcdir&;t t
32579 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
32580 s
&@builddir@
&$ac_builddir&;t t
32581 s
&@abs_builddir@
&$ac_abs_builddir&;t t
32582 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
32583 s
&@INSTALL@
&$ac_INSTALL&;t t
32584 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
32585 $ac_datarootdir_hack
32587 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
32588 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
32590 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32591 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
32592 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
32593 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
32594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
32595 which seems to be undefined. Please make sure it is defined" >&5
32596 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
32597 which seems to be undefined. Please make sure it is defined" >&2;}
32599 rm -f "$ac_tmp/stdin"
32601 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32602 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32604 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32610 if test x"$ac_file" != x-; then
32612 $as_echo "/* $configure_input */" \
32613 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32614 } >"$ac_tmp/config.h" \
32615 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32616 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32617 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32618 $as_echo "$as_me: $ac_file is unchanged" >&6;}
32621 mv "$ac_tmp/config.h" "$ac_file" \
32622 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32625 $as_echo "/* $configure_input */" \
32626 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32627 || as_fn_error $? "could not create -" "$LINENO" 5
32629 # Compute "$ac_file"'s index
in $config_headers.
32632 for _am_header
in $config_headers :; do
32633 case $_am_header in
32634 $_am_arg |
$_am_arg:* )
32637 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
32640 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
32641 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32642 X"$_am_arg" : 'X\(//\)[^/]' \| \
32643 X"$_am_arg" : 'X\(//\)$' \| \
32644 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
32645 $as_echo X"$_am_arg" |
32646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32650 /^X\(\/\/\)[^/].*/{
32662 s/.*/./; q'`/stamp-h
$_am_stamp_count
32665 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32666 $as_echo "$as_me: executing $ac_file commands" >&6;}
32671 case $ac_file$ac_mode in
32673 (mv zfs_config.h zfs_config.h.tmp
&&
32674 awk -f ${ac_srcdir}/config
/config.
awk zfs_config.h.tmp
>zfs_config.h
&&
32675 rm zfs_config.h.tmp
) ||
exit 1 ;;
32676 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
32677 # Autoconf 2.62 quotes --file arguments for eval, but not when files
32678 # are listed without --file. Let's play safe and only enable the eval
32679 # if we detect the quoting.
32680 case $CONFIG_FILES in
32681 *\'*) eval set x
"$CONFIG_FILES" ;;
32682 *) set x
$CONFIG_FILES ;;
32687 # Strip MF so we end up with the name of the file.
32688 mf
=`echo "$mf" | sed -e 's/:.*$//'`
32689 # Check whether this is an Automake generated Makefile or not.
32690 # We used to match only the files named `Makefile.in', but
32691 # some people rename them; so instead we look at the file content.
32692 # Grep'ing the first line is not enough: some people post-process
32693 # each Makefile.in and add a new line on top of each file to say so.
32694 # Grep'ing the whole file is not good either: AIX grep has a line
32695 # limit of 2048, but all sed's we know have understand at least 4000.
32696 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
32697 dirpart
=`$as_dirname -- "$mf" ||
32698 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32699 X"$mf" : 'X\(//\)[^/]' \| \
32700 X"$mf" : 'X\(//\)$' \| \
32701 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
32703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32707 /^X\(\/\/\)[^/].*/{
32723 # Extract the definition of DEPDIR, am__include, and am__quote
32724 # from the Makefile without running `make'.
32725 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
32726 test -z "$DEPDIR" && continue
32727 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
32728 test -z "am__include" && continue
32729 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
32730 # When using ansi2knr, U may be empty or an underscore; expand it
32731 U
=`sed -n 's/^U = //p' < "$mf"`
32732 # Find all dependency output files, they are included files with
32733 # $(DEPDIR) in their names. We invoke sed twice because it is the
32734 # simplest approach to changing $(DEPDIR) to its actual value in the
32736 for file in `sed -n "
32737 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
32738 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
32739 # Make sure the directory exists.
32740 test -f "$dirpart/$file" && continue
32741 fdir
=`$as_dirname -- "$file" ||
32742 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32743 X"$file" : 'X\(//\)[^/]' \| \
32744 X"$file" : 'X\(//\)$' \| \
32745 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
32746 $as_echo X"$file" |
32747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32751 /^X\(\/\/\)[^/].*/{
32764 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
32765 # echo "creating $dirpart/$file"
32766 echo '# dummy' > "$dirpart/$file"
32773 # See if we are running on zsh, and set the options which allow our
32774 # commands through without removal of \ escapes.
32775 if test -n "${ZSH_VERSION+set}" ; then
32776 setopt NO_GLOB_SUBST
32779 cfgfile
="${ofile}T"
32780 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
32783 cat <<_LT_EOF >> "$cfgfile"
32786 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
32787 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
32788 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
32789 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
32791 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
32792 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
32794 # Written by Gordon Matzigkeit, 1996
32796 # This file is part of GNU Libtool.
32798 # GNU Libtool is free software; you can redistribute it and/or
32799 # modify it under the terms of the GNU General Public License as
32800 # published by the Free Software Foundation; either version 2 of
32801 # the License, or (at your option) any later version.
32803 # As a special exception to the GNU General Public License,
32804 # if you distribute this file as part of a program or library that
32805 # is built using GNU Libtool, you may include this file under the
32806 # same distribution terms that you use for the rest of that program.
32808 # GNU Libtool is distributed in the hope that it will be useful,
32809 # but WITHOUT ANY WARRANTY; without even the implied warranty of
32810 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32811 # GNU General Public License for more details.
32813 # You should have received a copy of the GNU General Public License
32814 # along with GNU Libtool; see the file COPYING. If not, a copy
32815 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
32816 # obtained by writing to the Free Software Foundation, Inc.,
32817 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
32820 # The names of the tagged configurations supported by this script.
32823 # ### BEGIN LIBTOOL CONFIG
32825 # Which release of libtool.m4 was used?
32826 macro_version=$macro_version
32827 macro_revision=$macro_revision
32829 # Whether or not to build shared libraries.
32830 build_libtool_libs=$enable_shared
32832 # Whether or not to build static libraries.
32833 build_old_libs=$enable_static
32835 # What type of objects to build.
32838 # Whether or not to optimize for fast installation.
32839 fast_install=$enable_fast_install
32841 # Shell to use when invoking shell scripts.
32844 # An echo program that protects backslashes.
32847 # The PATH separator for the build system.
32848 PATH_SEPARATOR=$lt_PATH_SEPARATOR
32851 host_alias=$host_alias
32855 # The build system.
32856 build_alias=$build_alias
32860 # A sed program that does not truncate output.
32863 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
32864 Xsed="\$SED -e 1s/^X//"
32866 # A grep program that handles long lines.
32872 # A literal string matcher.
32875 # A BSD- or MS-compatible name lister.
32878 # Whether we need soft or hard links.
32881 # What is the maximum length of a command?
32882 max_cmd_len=$max_cmd_len
32884 # Object file suffix (normally "o").
32887 # Executable file suffix (normally "").
32890 # whether the shell understands "unset".
32893 # turn spaces into newlines.
32896 # turn newlines into spaces.
32899 # convert \$build file names to \$host format.
32900 to_host_file_cmd=$lt_cv_to_host_file_cmd
32902 # convert \$build files to toolchain format.
32903 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
32905 # An object symbol dumper.
32906 OBJDUMP=$lt_OBJDUMP
32908 # Method to check whether dependent libraries are shared objects.
32909 deplibs_check_method=$lt_deplibs_check_method
32911 # Command to use when deplibs_check_method = "file_magic".
32912 file_magic_cmd=$lt_file_magic_cmd
32914 # How to find potential files when deplibs_check_method = "file_magic".
32915 file_magic_glob=$lt_file_magic_glob
32917 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
32918 want_nocaseglob=$lt_want_nocaseglob
32920 # DLL creation program.
32921 DLLTOOL=$lt_DLLTOOL
32923 # Command to associate shared and link libraries.
32924 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
32929 # Flags to create an archive.
32930 AR_FLAGS=$lt_AR_FLAGS
32932 # How to feed a file listing to the archiver.
32933 archiver_list_spec=$lt_archiver_list_spec
32935 # A symbol stripping program.
32938 # Commands used to install an old-style archive.
32940 old_postinstall_cmds=$lt_old_postinstall_cmds
32941 old_postuninstall_cmds=$lt_old_postuninstall_cmds
32943 # Whether to use a lock for old archive extraction.
32944 lock_old_archive_extraction=$lock_old_archive_extraction
32949 # LTCC compiler flags.
32950 LTCFLAGS=$lt_CFLAGS
32952 # Take the output of nm and produce a listing of raw symbols and C names.
32953 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
32955 # Transform the output of nm in a proper C declaration.
32956 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
32958 # Transform the output of nm in a C name address pair.
32959 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
32961 # Transform the output of nm in a C name address pair when lib prefix is needed.
32962 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
32964 # Specify filename containing input files for \$NM.
32965 nm_file_list_spec=$lt_nm_file_list_spec
32967 # The root where to search for dependent libraries,and in which our libraries should be installed.
32968 lt_sysroot=$lt_sysroot
32970 # The name of the directory that contains temporary libtool files.
32973 # Used to examine libraries when file_magic_cmd begins with "file".
32974 MAGIC_CMD=$MAGIC_CMD
32976 # Must we lock files when doing compilation?
32977 need_locks=$lt_need_locks
32980 MANIFEST_TOOL=$lt_MANIFEST_TOOL
32982 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
32983 DSYMUTIL=$lt_DSYMUTIL
32985 # Tool to change global to local symbols on Mac OS X.
32988 # Tool to manipulate fat objects and archives on Mac OS X.
32991 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
32994 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
32995 OTOOL64=$lt_OTOOL64
32997 # Old archive suffix (normally "a").
33000 # Shared library suffix (normally ".so").
33001 shrext_cmds=$lt_shrext_cmds
33003 # The commands to extract the exported symbol list from a shared archive.
33004 extract_expsyms_cmds=$lt_extract_expsyms_cmds
33006 # Variables whose values should be saved in libtool wrapper scripts and
33007 # restored at link time.
33008 variables_saved_for_relink=$lt_variables_saved_for_relink
33010 # Do we need the "lib" prefix for modules?
33011 need_lib_prefix=$need_lib_prefix
33013 # Do we need a version for libraries?
33014 need_version=$need_version
33016 # Library versioning type.
33017 version_type=$version_type
33019 # Shared library runtime path variable.
33020 runpath_var=$runpath_var
33022 # Shared library path variable.
33023 shlibpath_var=$shlibpath_var
33025 # Is shlibpath searched before the hard-coded library search path?
33026 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
33028 # Format of library name prefix.
33029 libname_spec=$lt_libname_spec
33031 # List of archive names. First name is the real one, the rest are links.
33032 # The last name is the one that the linker finds with -lNAME
33033 library_names_spec=$lt_library_names_spec
33035 # The coded name of the library, if different from the real name.
33036 soname_spec=$lt_soname_spec
33038 # Permission mode override for installation of shared libraries.
33039 install_override_mode=$lt_install_override_mode
33041 # Command to use after installation of a shared archive.
33042 postinstall_cmds=$lt_postinstall_cmds
33044 # Command to use after uninstallation of a shared archive.
33045 postuninstall_cmds=$lt_postuninstall_cmds
33047 # Commands used to finish a libtool library installation in a directory.
33048 finish_cmds=$lt_finish_cmds
33050 # As "finish_cmds", except a single script fragment to be evaled but
33052 finish_eval=$lt_finish_eval
33054 # Whether we should hardcode library paths into libraries.
33055 hardcode_into_libs=$hardcode_into_libs
33057 # Compile-time system search path for libraries.
33058 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
33060 # Run-time system search path for libraries.
33061 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
33063 # Whether dlopen is supported.
33064 dlopen_support=$enable_dlopen
33066 # Whether dlopen of programs is supported.
33067 dlopen_self=$enable_dlopen_self
33069 # Whether dlopen of statically linked programs is supported.
33070 dlopen_self_static=$enable_dlopen_self_static
33072 # Commands to strip libraries.
33073 old_striplib=$lt_old_striplib
33074 striplib=$lt_striplib
33077 # The linker used to build libraries.
33080 # How to create reloadable object files.
33081 reload_flag=$lt_reload_flag
33082 reload_cmds=$lt_reload_cmds
33084 # Commands used to build an old-style archive.
33085 old_archive_cmds=$lt_old_archive_cmds
33087 # A language specific compiler.
33090 # Is the compiler the GNU compiler?
33093 # Compiler flag to turn off builtin functions.
33094 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
33096 # Additional compiler flags for building library objects.
33097 pic_flag=$lt_lt_prog_compiler_pic
33099 # How to pass a linker flag through the compiler.
33100 wl=$lt_lt_prog_compiler_wl
33102 # Compiler flag to prevent dynamic linking.
33103 link_static_flag=$lt_lt_prog_compiler_static
33105 # Does compiler simultaneously support -c and -o options?
33106 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
33108 # Whether or not to add -lc for building shared libraries.
33109 build_libtool_need_lc=$archive_cmds_need_lc
33111 # Whether or not to disallow shared libs when runtime libs are static.
33112 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
33114 # Compiler flag to allow reflexive dlopens.
33115 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
33117 # Compiler flag to generate shared objects directly from archives.
33118 whole_archive_flag_spec=$lt_whole_archive_flag_spec
33120 # Whether the compiler copes with passing no objects directly.
33121 compiler_needs_object=$lt_compiler_needs_object
33123 # Create an old-style archive from a shared archive.
33124 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
33126 # Create a temporary old-style archive to link instead of a shared archive.
33127 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
33129 # Commands used to build a shared archive.
33130 archive_cmds=$lt_archive_cmds
33131 archive_expsym_cmds=$lt_archive_expsym_cmds
33133 # Commands used to build a loadable module if different from building
33134 # a shared archive.
33135 module_cmds=$lt_module_cmds
33136 module_expsym_cmds=$lt_module_expsym_cmds
33138 # Whether we are building with GNU ld or not.
33139 with_gnu_ld=$lt_with_gnu_ld
33141 # Flag that allows shared libraries with undefined symbols to be built.
33142 allow_undefined_flag=$lt_allow_undefined_flag
33144 # Flag that enforces no undefined symbols.
33145 no_undefined_flag=$lt_no_undefined_flag
33147 # Flag to hardcode \$libdir into a binary during linking.
33148 # This must work even if \$libdir does not exist
33149 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
33151 # Whether we need a single "-rpath" flag with a separated argument.
33152 hardcode_libdir_separator=$lt_hardcode_libdir_separator
33154 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33155 # DIR into the resulting binary.
33156 hardcode_direct=$hardcode_direct
33158 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
33159 # DIR into the resulting binary and the resulting library dependency is
33160 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
33161 # library is relocated.
33162 hardcode_direct_absolute=$hardcode_direct_absolute
33164 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
33165 # into the resulting binary.
33166 hardcode_minus_L=$hardcode_minus_L
33168 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
33169 # into the resulting binary.
33170 hardcode_shlibpath_var=$hardcode_shlibpath_var
33172 # Set to "yes" if building a shared library automatically hardcodes DIR
33173 # into the library and all subsequent libraries and executables linked
33175 hardcode_automatic=$hardcode_automatic
33177 # Set to yes if linker adds runtime paths of dependent libraries
33178 # to runtime path list.
33179 inherit_rpath=$inherit_rpath
33181 # Whether libtool must link a program against all its dependency libraries.
33182 link_all_deplibs=$link_all_deplibs
33184 # Set to "yes" if exported symbols are required.
33185 always_export_symbols=$always_export_symbols
33187 # The commands to list exported symbols.
33188 export_symbols_cmds=$lt_export_symbols_cmds
33190 # Symbols that should not be listed in the preloaded symbols.
33191 exclude_expsyms=$lt_exclude_expsyms
33193 # Symbols that must always be exported.
33194 include_expsyms=$lt_include_expsyms
33196 # Commands necessary for linking programs (against libraries) with templates.
33197 prelink_cmds=$lt_prelink_cmds
33199 # Commands necessary for finishing linking programs.
33200 postlink_cmds=$lt_postlink_cmds
33202 # Specify filename containing input files.
33203 file_list_spec=$lt_file_list_spec
33205 # How to hardcode a shared library path into an executable.
33206 hardcode_action=$hardcode_action
33208 # ### END LIBTOOL CONFIG
33214 cat <<\_LT_EOF
>> "$cfgfile"
33215 # AIX sometimes has problems with the GCC collect2 program. For some
33216 # reason, if we set the COLLECT_NAMES environment variable, the problems
33217 # vanish in a puff of smoke.
33218 if test "X${COLLECT_NAMES+set}" != Xset
; then
33220 export COLLECT_NAMES
33227 ltmain
="$ac_aux_dir/ltmain.sh"
33230 # We use sed instead of cat because bash on DJGPP gets confused if
33231 # if finds mixed CR/LF and LF-only lines. Since sed operates in
33232 # text mode, it properly converts lines to CR/LF. This bash problem
33233 # is reportedly fixed, but why not run on old versions too?
33234 sed '$q' "$ltmain" >> "$cfgfile" \
33235 ||
(rm -f "$cfgfile"; exit 1)
33237 if test x
"$xsi_shell" = xyes
; then
33238 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
33242 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33243 \ * ) func_dirname_result="${3}" ;;\
33245 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
33246 && mv -f "$cfgfile.tmp" "$cfgfile" \
33247 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33248 test 0 -eq $? || _lt_function_replace_fail
=:
33251 sed -e '/^func_basename ()$/,/^} # func_basename /c\
33254 \ func_basename_result="${1##*/}"\
33255 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
33256 && mv -f "$cfgfile.tmp" "$cfgfile" \
33257 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33258 test 0 -eq $? || _lt_function_replace_fail
=:
33261 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
33262 func_dirname_and_basename ()\
33265 \ */*) func_dirname_result="${1%/*}${2}" ;;\
33266 \ * ) func_dirname_result="${3}" ;;\
33268 \ func_basename_result="${1##*/}"\
33269 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
33270 && mv -f "$cfgfile.tmp" "$cfgfile" \
33271 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33272 test 0 -eq $? || _lt_function_replace_fail
=:
33275 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
33278 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
33279 \ # positional parameters, so assign one to ordinary parameter first.\
33280 \ func_stripname_result=${3}\
33281 \ func_stripname_result=${func_stripname_result#"${1}"}\
33282 \ func_stripname_result=${func_stripname_result%"${2}"}\
33283 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
33284 && mv -f "$cfgfile.tmp" "$cfgfile" \
33285 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33286 test 0 -eq $? || _lt_function_replace_fail
=:
33289 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
33290 func_split_long_opt ()\
33292 \ func_split_long_opt_name=${1%%=*}\
33293 \ func_split_long_opt_arg=${1#*=}\
33294 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
33295 && mv -f "$cfgfile.tmp" "$cfgfile" \
33296 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33297 test 0 -eq $? || _lt_function_replace_fail
=:
33300 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
33301 func_split_short_opt ()\
33303 \ func_split_short_opt_arg=${1#??}\
33304 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
33305 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
33306 && mv -f "$cfgfile.tmp" "$cfgfile" \
33307 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33308 test 0 -eq $? || _lt_function_replace_fail
=:
33311 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
33315 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
33316 \ *) func_lo2o_result=${1} ;;\
33318 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
33319 && mv -f "$cfgfile.tmp" "$cfgfile" \
33320 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33321 test 0 -eq $? || _lt_function_replace_fail
=:
33324 sed -e '/^func_xform ()$/,/^} # func_xform /c\
33327 func_xform_result=${1%.*}.lo\
33328 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
33329 && mv -f "$cfgfile.tmp" "$cfgfile" \
33330 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33331 test 0 -eq $? || _lt_function_replace_fail
=:
33334 sed -e '/^func_arith ()$/,/^} # func_arith /c\
33337 func_arith_result=$(( $* ))\
33338 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
33339 && mv -f "$cfgfile.tmp" "$cfgfile" \
33340 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33341 test 0 -eq $? || _lt_function_replace_fail
=:
33344 sed -e '/^func_len ()$/,/^} # func_len /c\
33347 func_len_result=${#1}\
33348 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
33349 && mv -f "$cfgfile.tmp" "$cfgfile" \
33350 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33351 test 0 -eq $? || _lt_function_replace_fail
=:
33355 if test x
"$lt_shell_append" = xyes
; then
33356 sed -e '/^func_append ()$/,/^} # func_append /c\
33359 eval "${1}+=\\${2}"\
33360 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
33361 && mv -f "$cfgfile.tmp" "$cfgfile" \
33362 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33363 test 0 -eq $? || _lt_function_replace_fail
=:
33366 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
33367 func_append_quoted ()\
33369 \ func_quote_for_eval "${2}"\
33370 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
33371 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
33372 && mv -f "$cfgfile.tmp" "$cfgfile" \
33373 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33374 test 0 -eq $? || _lt_function_replace_fail
=:
33377 # Save a `func_append' function call where possible by direct use of '+='
33378 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
33379 && mv -f "$cfgfile.tmp" "$cfgfile" \
33380 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33381 test 0 -eq $? || _lt_function_replace_fail
=:
33383 # Save a `func_append' function call even when '+=' is not available
33384 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
33385 && mv -f "$cfgfile.tmp" "$cfgfile" \
33386 ||
(rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
33387 test 0 -eq $? || _lt_function_replace_fail
=:
33390 if test x
"$_lt_function_replace_fail" = x
":"; then
33391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
33392 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
33396 mv -f "$cfgfile" "$ofile" ||
33397 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
33408 ac_clean_files
=$ac_clean_files_save
33410 test $ac_write_fail = 0 ||
33411 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
33414 # configure is writing to config.log, and then calls config.status.
33415 # config.status does its own redirection, appending to config.log.
33416 # Unfortunately, on DOS this fails, as config.log is still kept open
33417 # by configure, so config.status won't be able to write to it; its
33418 # output is simply discarded. So we exec the FD to /dev/null,
33419 # effectively closing config.log, so it can be properly (re)opened and
33420 # appended to by config.status. When coming back to configure, we
33421 # need to make the FD available again.
33422 if test "$no_create" != yes; then
33424 ac_config_status_args
=
33425 test "$silent" = yes &&
33426 ac_config_status_args
="$ac_config_status_args --quiet"
33428 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
33430 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33431 # would make configure fail if this is the last instruction.
33432 $ac_cs_success || as_fn_exit
1
33434 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
33435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
33436 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}