2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.67.
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.
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x
; then
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var
in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\
${$as_var+set} = xset \
121 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
134 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x
; then
137 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 case \`(set -o) 2>/dev/null\` in #(
153 as_required
="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev
/null
; then :
180 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
185 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
188 test -z "$as_dir" && as_dir
=.
192 for as_base
in sh bash ksh sh5
; do
193 # Try only shells that exist, to save several forks.
194 as_shell
=$as_dir/$as_base
195 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
197 CONFIG_SHELL
=$as_shell as_have_required
=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
206 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$SHELL as_have_required
=yes
213 if test "x$CONFIG_SHELL" != x
; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
219 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224 if test x
$as_have_required = xno
; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x
${ZSH_VERSION+set} = xset
; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
240 SHELL
=${CONFIG_SHELL-/bin/sh}
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE
= GREP_OPTIONS
=
244 unset CLICOLOR_FORCE GREP_OPTIONS
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
251 # Portably unset VAR.
254 { eval $1=; unset $1;}
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 # Create "$as_dir" as a directory, including parents if necessary.
283 -*) as_dir
=.
/$as_dir;;
285 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
289 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 as_dirs
="'$as_qdir' $as_dirs"
293 as_dir
=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316 test -d "$as_dir" && break
318 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
319 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
330 eval 'as_fn_append ()
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
354 as_val
=`expr "$@" || test $? -eq 1`
359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
360 # ----------------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with STATUS, using 1 if that was 0.
366 as_status
=$1; test $as_status -eq 0 && as_status
=1
368 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit
$as_status
375 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
382 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
394 as_me
=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399 sed '/^.*\/\([^/][^/]*\)\/*$/{
413 # Avoid depending upon Character Ranges.
414 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
415 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
417 as_cr_digits
='0123456789'
418 as_cr_alnum
=$as_cr_Letters$as_cr_digits
421 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
422 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441 chmod +x
"$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
444 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this).
448 # Exit status is that of the last command.
452 ECHO_C
= ECHO_N
= ECHO_T
=
453 case `echo -n x` in #(((((
455 case `echo 'xy\c'` in
456 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
465 rm -f conf$$ conf$$.exe conf$$.
file
466 if test -d conf$$.dir
; then
467 rm -f conf$$.dir
/conf$$.
file
470 mkdir conf$$.dir
2>/dev
/null
472 if (echo >conf$$.
file) 2>/dev
/null
; then
473 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
475 # ... but there are two gotchas:
476 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478 # In both cases, we have to default to `cp -p'.
479 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
481 elif ln conf$$.
file conf$$
2>/dev
/null
; then
489 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
490 rmdir conf$$.dir
2>/dev
/null
492 if mkdir
-p .
2>/dev
/null
; then
493 as_mkdir_p
='mkdir -p "$as_dir"'
495 test -d .
/-p && rmdir .
/-p
499 if test -x / >/dev
/null
2>&1; then
502 if ls -dL / >/dev
/null
2>&1; then
509 if test -d "$1"; then
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
516 ???[sx]*):;;*)false;;esac;fi
520 as_executable_p
=$as_test_x
522 # Sed expression to map a string onto a valid CPP name.
523 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530 # Check that we are running under the correct shell.
531 SHELL
=${CONFIG_SHELL-/bin/sh}
535 # Remove one level of quotation (which was required for Make).
536 ECHO
=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541 if test "X$1" = X--no-reexec
; then
542 # Discard the --no-reexec flag, and continue.
544 elif test "X$1" = X--fallback-echo
; then
545 # Avoid inline document here, it may be left over
547 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548 # Yippee, $ECHO works!
551 # Restart under the correct shell.
552 exec $SHELL "$0" --no-reexec ${1+"$@"}
555 if test "X$1" = X--fallback-echo
; then
556 # used as fallback echo
564 # The HP-UX ksh and POSIX shell print the target directory to stdout
566 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
568 if test -z "$lt_ECHO"; then
569 if test "X${echo_test_string+set}" != Xset
; then
570 # find a string as large as possible, as long as the shell can cope with it
571 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573 if { echo_test_string
=`eval $cmd`; } 2>/dev
/null
&&
574 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev
/null
581 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582 echo_testing_string
=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583 test "X$echo_testing_string" = "X$echo_test_string"; then
586 # The Solaris, AIX, and Digital Unix default echo programs unquote
587 # backslashes. This makes it impossible to quote backslashes using
588 # echo "$something" | sed 's/\\/\\\\/g'
590 # So, first we look for a working echo in the user's PATH.
592 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
593 for dir
in $PATH /usr
/ucb
; do
595 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
596 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598 test "X$echo_testing_string" = "X$echo_test_string"; then
605 if test "X$ECHO" = Xecho
; then
606 # We didn't find a better echo, so look for alternatives.
607 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608 echo_testing_string
=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
610 # This shell has a builtin print -r that does the trick.
612 elif { test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext; } &&
613 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
614 # If we have ksh, try running configure again with it.
615 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
616 export ORIGINAL_CONFIG_SHELL
617 CONFIG_SHELL
=/bin
/ksh
619 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624 echo_testing_string
=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625 test "X$echo_testing_string" = "X$echo_test_string"; then
628 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629 test "X$echo_testing_string" = 'X\t' &&
630 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
634 SHELL
="$CONFIG_SHELL"
636 ECHO
="$CONFIG_SHELL $0 --fallback-echo"
637 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638 test "X$echo_testing_string" = 'X\t' &&
639 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640 test "X$echo_testing_string" = "X$echo_test_string"; then
641 ECHO
="$CONFIG_SHELL $0 --fallback-echo"
643 # maybe with a smaller string...
646 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev
/null
654 if test "$prev" != 'sed 50q "$0"'; then
655 echo_test_string
=`eval $prev`
656 export echo_test_string
657 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659 # Oops. We lost completely, so just stick with echo.
668 # Copy echo and quote the copy suitably for passing to libtool from
669 # the Makefile, instead of quoting the original, which is used later.
671 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672 lt_ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
678 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
682 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
683 # so uname gets run too.
684 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
689 ac_default_prefix
=/usr
/local
691 ac_config_libobj_dir
=.
698 # Identity of this package.
706 # Factoring default headers for most tests.
707 ac_includes_default
="\
709 #ifdef HAVE_SYS_TYPES_H
710 # include <sys/types.h>
712 #ifdef HAVE_SYS_STAT_H
713 # include <sys/stat.h>
719 # ifdef HAVE_STDLIB_H
724 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
729 #ifdef HAVE_STRINGS_H
730 # include <strings.h>
732 #ifdef HAVE_INTTYPES_H
733 # include <inttypes.h>
742 ac_subst_vars
='am__EXEEXT_FALSE
772 NO_UNUSED_BUT_SET_VARIABLE
803 am__fastdepCCAS_FALSE
852 INSTALL_STRIP_PROGRAM
870 MAINTAINER_MODE_FALSE
922 program_transform_name
935 enable_option_checking
936 enable_maintainer_mode
938 enable_dependency_tracking
961 ac_precious_vars
='build_alias
974 # Initialize some variables set by options.
976 ac_init_version
=false
977 ac_unrecognized_opts
=
979 # The variables have the same names as the options, with
980 # dashes changed to underlines.
988 program_transform_name
=s
,x
,x
,
996 # Installation directory options.
997 # These are left unexpanded so users can "make install exec_prefix=/foo"
998 # and all the variables that are supposed to be based on exec_prefix
999 # by default will actually change.
1000 # Use braces instead of parens because sh, perl, etc. also accept them.
1001 # (The list follows the same order as the GNU Coding Standards.)
1002 bindir
='${exec_prefix}/bin'
1003 sbindir
='${exec_prefix}/sbin'
1004 libexecdir
='${exec_prefix}/libexec'
1005 datarootdir
='${prefix}/share'
1006 datadir
='${datarootdir}'
1007 sysconfdir
='${prefix}/etc'
1008 sharedstatedir
='${prefix}/com'
1009 localstatedir
='${prefix}/var'
1010 includedir
='${prefix}/include'
1011 oldincludedir
='/usr/include'
1012 docdir
='${datarootdir}/doc/${PACKAGE}'
1013 infodir
='${datarootdir}/info'
1018 libdir
='${exec_prefix}/lib'
1019 localedir
='${datarootdir}/locale'
1020 mandir
='${datarootdir}/man'
1026 # If the previous option needs an argument, assign it.
1027 if test -n "$ac_prev"; then
1028 eval $ac_prev=\
$ac_option
1034 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1039 # Accept the important Cygnus configure options, so we can diagnose typos.
1041 case $ac_dashdash$ac_option in
1045 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1047 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1048 bindir
=$ac_optarg ;;
1050 -build |
--build |
--buil |
--bui |
--bu)
1051 ac_prev
=build_alias
;;
1052 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1053 build_alias
=$ac_optarg ;;
1055 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1056 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1057 ac_prev
=cache_file
;;
1058 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1059 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1060 cache_file
=$ac_optarg ;;
1062 --config-cache |
-C)
1063 cache_file
=config.cache
;;
1065 -datadir |
--datadir |
--datadi |
--datad)
1067 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1068 datadir
=$ac_optarg ;;
1070 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1071 |
--dataroo |
--dataro |
--datar)
1072 ac_prev
=datarootdir
;;
1073 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1074 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1075 datarootdir
=$ac_optarg ;;
1077 -disable-* |
--disable-*)
1078 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1081 as_fn_error $?
"invalid feature name: $ac_useropt"
1082 ac_useropt_orig
=$ac_useropt
1083 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1086 "enable_
$ac_useropt"
1088 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1089 ac_unrecognized_sep
=', ';;
1091 eval enable_
$ac_useropt=no
;;
1093 -docdir |
--docdir |
--docdi |
--doc |
--do)
1095 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1096 docdir
=$ac_optarg ;;
1098 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1100 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1101 dvidir
=$ac_optarg ;;
1103 -enable-* |
--enable-*)
1104 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1105 # Reject names that are not valid shell variable names.
1106 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1107 as_fn_error $?
"invalid feature name: $ac_useropt"
1108 ac_useropt_orig
=$ac_useropt
1109 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110 case $ac_user_opts in
1112 "enable_
$ac_useropt"
1114 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1115 ac_unrecognized_sep
=', ';;
1117 eval enable_
$ac_useropt=\
$ac_optarg ;;
1119 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1120 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1121 |
--exec |
--exe |
--ex)
1122 ac_prev
=exec_prefix
;;
1123 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1124 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1125 |
--exec=* |
--exe=* |
--ex=*)
1126 exec_prefix
=$ac_optarg ;;
1128 -gas |
--gas |
--ga |
--g)
1129 # Obsolete; use --with-gas.
1132 -help |
--help |
--hel |
--he |
-h)
1133 ac_init_help
=long
;;
1134 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1135 ac_init_help
=recursive
;;
1136 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1137 ac_init_help
=short
;;
1139 -host |
--host |
--hos |
--ho)
1140 ac_prev
=host_alias
;;
1141 -host=* |
--host=* |
--hos=* |
--ho=*)
1142 host_alias
=$ac_optarg ;;
1144 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1146 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1148 htmldir
=$ac_optarg ;;
1150 -includedir |
--includedir |
--includedi |
--included |
--include \
1151 |
--includ |
--inclu |
--incl |
--inc)
1152 ac_prev
=includedir
;;
1153 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1154 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1155 includedir
=$ac_optarg ;;
1157 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1159 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1160 infodir
=$ac_optarg ;;
1162 -libdir |
--libdir |
--libdi |
--libd)
1164 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1165 libdir
=$ac_optarg ;;
1167 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1168 |
--libexe |
--libex |
--libe)
1169 ac_prev
=libexecdir
;;
1170 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1171 |
--libexe=* |
--libex=* |
--libe=*)
1172 libexecdir
=$ac_optarg ;;
1174 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1175 ac_prev
=localedir
;;
1176 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1177 localedir
=$ac_optarg ;;
1179 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1180 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1181 ac_prev
=localstatedir
;;
1182 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1183 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1184 localstatedir
=$ac_optarg ;;
1186 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1188 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1189 mandir
=$ac_optarg ;;
1191 -nfp |
--nfp |
--nf)
1192 # Obsolete; use --without-fp.
1195 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1196 |
--no-cr |
--no-c |
-n)
1199 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1200 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1203 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1204 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1205 |
--oldin |
--oldi |
--old |
--ol |
--o)
1206 ac_prev
=oldincludedir
;;
1207 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1208 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1209 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1210 oldincludedir
=$ac_optarg ;;
1212 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1214 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1215 prefix
=$ac_optarg ;;
1217 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1218 |
--program-pre |
--program-pr |
--program-p)
1219 ac_prev
=program_prefix
;;
1220 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1221 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1222 program_prefix
=$ac_optarg ;;
1224 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1225 |
--program-suf |
--program-su |
--program-s)
1226 ac_prev
=program_suffix
;;
1227 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1228 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1229 program_suffix
=$ac_optarg ;;
1231 -program-transform-name |
--program-transform-name \
1232 |
--program-transform-nam |
--program-transform-na \
1233 |
--program-transform-n |
--program-transform- \
1234 |
--program-transform |
--program-transfor \
1235 |
--program-transfo |
--program-transf \
1236 |
--program-trans |
--program-tran \
1237 |
--progr-tra |
--program-tr |
--program-t)
1238 ac_prev
=program_transform_name
;;
1239 -program-transform-name=* |
--program-transform-name=* \
1240 |
--program-transform-nam=* |
--program-transform-na=* \
1241 |
--program-transform-n=* |
--program-transform-=* \
1242 |
--program-transform=* |
--program-transfor=* \
1243 |
--program-transfo=* |
--program-transf=* \
1244 |
--program-trans=* |
--program-tran=* \
1245 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1246 program_transform_name
=$ac_optarg ;;
1248 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1250 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1251 pdfdir
=$ac_optarg ;;
1253 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1255 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1258 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1259 |
-silent |
--silent |
--silen |
--sile |
--sil)
1262 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1264 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1266 sbindir
=$ac_optarg ;;
1268 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1269 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1270 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1272 ac_prev
=sharedstatedir
;;
1273 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1274 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1275 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1277 sharedstatedir
=$ac_optarg ;;
1279 -site |
--site |
--sit)
1281 -site=* |
--site=* |
--sit=*)
1284 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1286 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1287 srcdir
=$ac_optarg ;;
1289 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1290 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1291 ac_prev
=sysconfdir
;;
1292 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1293 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1294 sysconfdir
=$ac_optarg ;;
1296 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1297 ac_prev
=target_alias
;;
1298 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1299 target_alias
=$ac_optarg ;;
1301 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1304 -version |
--version |
--versio |
--versi |
--vers |
-V)
1305 ac_init_version
=: ;;
1308 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1311 as_fn_error $?
"invalid package name: $ac_useropt"
1312 ac_useropt_orig
=$ac_useropt
1313 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1314 case $ac_user_opts in
1318 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1319 ac_unrecognized_sep
=', ';;
1321 eval with_
$ac_useropt=\
$ac_optarg ;;
1323 -without-* |
--without-*)
1324 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1325 # Reject names that are not valid shell variable names.
1326 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1327 as_fn_error $?
"invalid package name: $ac_useropt"
1328 ac_useropt_orig
=$ac_useropt
1329 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1330 case $ac_user_opts in
1334 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1335 ac_unrecognized_sep
=', ';;
1337 eval with_
$ac_useropt=no
;;
1340 # Obsolete; use --with-x.
1343 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1344 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1345 ac_prev
=x_includes
;;
1346 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1347 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1348 x_includes
=$ac_optarg ;;
1350 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1351 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1352 ac_prev
=x_libraries
;;
1353 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1354 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1355 x_libraries
=$ac_optarg ;;
1357 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1358 Try \`$0 --help' for more information"
1362 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1363 # Reject names that are not valid shell variable names.
1364 case $ac_envvar in #(
1365 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1366 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1368 eval $ac_envvar=\
$ac_optarg
1369 export $ac_envvar ;;
1372 # FIXME: should be removed in autoconf 3.0.
1373 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1374 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1375 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1376 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1382 if test -n "$ac_prev"; then
1383 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1384 as_fn_error $?
"missing argument to $ac_option"
1387 if test -n "$ac_unrecognized_opts"; then
1388 case $enable_option_checking in
1390 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1391 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1395 # Check all directory arguments for consistency.
1396 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1397 datadir sysconfdir sharedstatedir localstatedir includedir \
1398 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1399 libdir localedir mandir
1401 eval ac_val
=\$
$ac_var
1402 # Remove trailing slashes.
1405 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1406 eval $ac_var=\
$ac_val;;
1408 # Be sure to have absolute directory names.
1410 [\\/$
]* | ?
:[\\/]* ) continue;;
1411 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1413 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1416 # There might be people who depend on the old broken behavior: `$host'
1417 # used to hold the argument of --host etc.
1418 # FIXME: To remove some day.
1421 target
=$target_alias
1423 # FIXME: To remove some day.
1424 if test "x$host_alias" != x
; then
1425 if test "x$build_alias" = x
; then
1426 cross_compiling
=maybe
1427 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1428 If a cross compiler is detected then cross compile mode will be used" >&2
1429 elif test "x$build_alias" != "x$host_alias"; then
1435 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1437 test "$silent" = yes && exec 6>/dev
/null
1440 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1441 ac_ls_di
=`ls -di .` &&
1442 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1443 as_fn_error $?
"working directory cannot be determined"
1444 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1445 as_fn_error $?
"pwd does not report name of working directory"
1448 # Find the source files, if location was not specified.
1449 if test -z "$srcdir"; then
1450 ac_srcdir_defaulted
=yes
1451 # Try the directory containing this script, then the parent directory.
1452 ac_confdir
=`$as_dirname -- "$as_myself" ||
1453 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1454 X"$as_myself" : 'X\(//\)[^/]' \| \
1455 X"$as_myself" : 'X\(//\)$' \| \
1456 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1457 $as_echo X"$as_myself" |
1458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1476 if test ! -r "$srcdir/$ac_unique_file"; then
1480 ac_srcdir_defaulted
=no
1482 if test ! -r "$srcdir/$ac_unique_file"; then
1483 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1484 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1486 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1488 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1490 # When building in place, set srcdir=.
1491 if test "$ac_abs_confdir" = "$ac_pwd"; then
1494 # Remove unnecessary trailing slashes from srcdir.
1495 # Double slashes in file names in object file debugging info
1496 # mess up M-x gdb in Emacs.
1498 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1500 for ac_var
in $ac_precious_vars; do
1501 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1502 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1503 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1504 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1508 # Report the --help message.
1510 if test "$ac_init_help" = "long"; then
1511 # Omit some internal or obsolete options to make the list less imposing.
1512 # This message is too long to be a string in the A/UX 3.1 sh.
1514 \`configure' configures this package to adapt to many kinds of systems.
1516 Usage: $0 [OPTION]... [VAR=VALUE]...
1518 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1519 VAR=VALUE. See below for descriptions of some of the useful variables.
1521 Defaults for the options are specified in brackets.
1524 -h, --help display this help and exit
1525 --help=short display options specific to this package
1526 --help=recursive display the short help of all the included packages
1527 -V, --version display version information and exit
1528 -q, --quiet, --silent do not print \`checking ...' messages
1529 --cache-file=FILE cache test results in FILE [disabled]
1530 -C, --config-cache alias for \`--cache-file=config.cache'
1531 -n, --no-create do not create output files
1532 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1534 Installation directories:
1535 --prefix=PREFIX install architecture-independent files in PREFIX
1536 [$ac_default_prefix]
1537 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1540 By default, \`make install' will install all the files in
1541 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1542 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1543 for instance \`--prefix=\$HOME'.
1545 For better control, use the options below.
1547 Fine tuning of the installation directories:
1548 --bindir=DIR user executables [EPREFIX/bin]
1549 --sbindir=DIR system admin executables [EPREFIX/sbin]
1550 --libexecdir=DIR program executables [EPREFIX/libexec]
1551 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1552 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1553 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1554 --libdir=DIR object code libraries [EPREFIX/lib]
1555 --includedir=DIR C header files [PREFIX/include]
1556 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1557 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1558 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1559 --infodir=DIR info documentation [DATAROOTDIR/info]
1560 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1561 --mandir=DIR man documentation [DATAROOTDIR/man]
1562 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1563 --htmldir=DIR html documentation [DOCDIR]
1564 --dvidir=DIR dvi documentation [DOCDIR]
1565 --pdfdir=DIR pdf documentation [DOCDIR]
1566 --psdir=DIR ps documentation [DOCDIR]
1572 --program-prefix=PREFIX prepend PREFIX to installed program names
1573 --program-suffix=SUFFIX append SUFFIX to installed program names
1574 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1577 --build=BUILD configure
for building on BUILD
[guessed
]
1578 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1579 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1583 if test -n "$ac_init_help"; then
1588 --disable-option-checking ignore unrecognized
--enable/--with options
1589 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1590 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1591 --enable-maintainer-mode enable make rules and dependencies not useful
1592 (and sometimes confusing
) to the casual installer
1593 --enable-silent-rules less verbose build output
(undo
: `make V=1')
1594 --disable-silent-rules verbose build output (undo: `make V
=0')
1595 --disable-dependency-tracking speeds up one-time build
1596 --enable-dependency-tracking do not reject slow dependency extractors
1597 --enable-shared[=PKGS] build shared libraries [default=yes]
1598 --enable-static[=PKGS] build static libraries [default=yes]
1599 --enable-fast-install[=PKGS]
1600 optimize for fast installation [default=yes]
1601 --disable-libtool-lock avoid locking (might break parallel builds)
1602 --enable-linux-builtin Configure for builtin in-tree kernel modules
1604 --enable-debug Enable generic debug support [default=no]
1605 --enable-debug-dmu-tx Enable dmu tx validation [default=no]
1608 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1609 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1610 --with-pic try to use only PIC/non-PIC objects [default=use
1612 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1613 --with-spec=SPEC Spec files 'generic|fedora
'
1614 --with-config=CONFIG Config file 'kernel|user|all|srpm
'
1615 --with-linux=PATH Path to kernel source
1616 --with-linux-obj=PATH Path to kernel build objects
1617 --with-spl=PATH Path to spl source
1618 --with-spl-obj=PATH Path to spl build objects
1619 --with-spl-timeout=SECS Wait SECS for symvers file to appear [default=0]
1620 --with-udevdir=DIR install udev helpers [[EPREFIX/lib/udev]]
1621 --with-udevruledir=DIR install udev rules [[UDEVDIR/rules.d]]
1622 --with-dracutdir=DIR install dracut helpers [[EPREFIX/lib/dracut]]
1623 --with-blkid support blkid caching [default=check]
1624 --with-selinux support selinux [default=check]
1626 Some influential environment variables:
1627 CC C compiler command
1628 CFLAGS C compiler flags
1629 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1630 nonstandard directory <lib dir>
1631 LIBS libraries to pass to the linker, e.g. -l<library>
1632 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1633 you have headers in a nonstandard directory <include dir>
1635 CCAS assembler compiler command (defaults to CC)
1636 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1638 Use these variables to override the choices made by `configure' or to
help
1639 it to
find libraries and programs with nonstandard names
/locations.
1641 Report bugs to the package provider.
1646 if test "$ac_init_help" = "recursive"; then
1647 # If there are subdirs, report their specific --help.
1648 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1649 test -d "$ac_dir" ||
1650 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1655 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1657 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1658 # A ".." for each directory in $ac_dir_suffix.
1659 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1660 case $ac_top_builddir_sub in
1661 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1662 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1665 ac_abs_top_builddir
=$ac_pwd
1666 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1667 # for backward compatibility:
1668 ac_top_builddir
=$ac_top_build_prefix
1671 .
) # We are building in place.
1673 ac_top_srcdir
=$ac_top_builddir_sub
1674 ac_abs_top_srcdir
=$ac_pwd ;;
1675 [\\/]* | ?
:[\\/]* ) # Absolute name.
1676 ac_srcdir
=$srcdir$ac_dir_suffix;
1677 ac_top_srcdir
=$srcdir
1678 ac_abs_top_srcdir
=$srcdir ;;
1680 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1681 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1682 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1684 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1686 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1687 # Check for guested configure.
1688 if test -f "$ac_srcdir/configure.gnu"; then
1690 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1691 elif test -f "$ac_srcdir/configure"; then
1693 $SHELL "$ac_srcdir/configure" --help=recursive
1695 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1697 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1701 test -n "$ac_init_help" && exit $ac_status
1702 if $ac_init_version; then
1705 generated by GNU Autoconf
2.67
1707 Copyright
(C
) 2010 Free Software Foundation
, Inc.
1708 This configure
script is free software
; the Free Software Foundation
1709 gives unlimited permission to copy
, distribute and modify it.
1714 ## ------------------------ ##
1715 ## Autoconf initialization. ##
1716 ## ------------------------ ##
1718 # ac_fn_c_try_compile LINENO
1719 # --------------------------
1720 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1721 ac_fn_c_try_compile
()
1723 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1724 rm -f conftest.
$ac_objext
1725 if { { ac_try
="$ac_compile"
1727 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731 $as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_compile") 2>conftest.err
1734 if test -s conftest.err; then
1735 grep -v '^ *+' conftest.err >conftest.er1
1736 cat conftest.er1 >&5
1737 mv -f conftest.er1 conftest.err
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } && {
1741 test -z "$ac_c_werror_flag" ||
1742 test ! -s conftest.err
1743 } && test -s conftest.$ac_objext; then :
1746 $as_echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1751 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1752 as_fn_set_status $ac_retval
1754 } # ac_fn_c_try_compile
1756 # ac_fn_c_try_link LINENO
1757 # -----------------------
1758 # Try to link conftest.$ac_ext, and return whether this succeeded.
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 rm -f conftest.$ac_objext conftest$ac_exeext
1763 if { { ac_try="$ac_link"
1765 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1766 *) ac_try_echo
=$ac_try;;
1768 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1769 $as_echo "$ac_try_echo"; } >&5
1770 (eval "$ac_link") 2>conftest.err
1772 if test -s conftest.err
; then
1773 grep -v '^ *+' conftest.err
>conftest.er1
1774 cat conftest.er1
>&5
1775 mv -f conftest.er1 conftest.err
1777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1778 test $ac_status = 0; } && {
1779 test -z "$ac_c_werror_flag" ||
1780 test ! -s conftest.err
1781 } && test -s conftest
$ac_exeext && {
1782 test "$cross_compiling" = yes ||
1783 $as_test_x conftest
$ac_exeext
1787 $as_echo "$as_me: failed program was:" >&5
1788 sed 's/^/| /' conftest.
$ac_ext >&5
1792 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1793 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1794 # interfere with the next link command; also delete a directory that is
1795 # left behind by Apple's compiler. We do this before executing the actions.
1796 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1797 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1798 as_fn_set_status
$ac_retval
1800 } # ac_fn_c_try_link
1802 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1803 # -------------------------------------------------------
1804 # Tests whether HEADER exists and can be compiled using the include files in
1805 # INCLUDES, setting the cache variable VAR accordingly.
1806 ac_fn_c_check_header_compile
()
1808 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810 $as_echo_n "checking for $2... " >&6; }
1811 if eval "test \"\${$3+set}\"" = set; then :
1812 $as_echo_n "(cached) " >&6
1814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1815 /* end confdefs.h. */
1819 if ac_fn_c_try_compile
"$LINENO"; then :
1824 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1828 $as_echo "$ac_res" >&6; }
1829 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1831 } # ac_fn_c_check_header_compile
1833 # ac_fn_c_try_cpp LINENO
1834 # ----------------------
1835 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1838 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1839 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1841 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } > conftest.i && {
1855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1856 test ! -s conftest.err
1860 $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1865 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1866 as_fn_set_status $ac_retval
1870 # ac_fn_c_try_run LINENO
1871 # ----------------------
1872 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1873 # that executables *can* be run.
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 if { { ac_try="$ac_link"
1879 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1880 *) ac_try_echo
=$ac_try;;
1882 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_link") 2>&5
1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1888 { { case "(($ac_try" in
1889 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1890 *) ac_try_echo=$ac_try;;
1892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 $as_echo "$ac_try_echo"; } >&5
1894 (eval "$ac_try") 2>&5
1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897 test $ac_status = 0; }; }; then :
1900 $as_echo "$as_me: program exited with status $ac_status" >&5
1901 $as_echo "$as_me: failed program was:" >&5
1902 sed 's/^/| /' conftest.$ac_ext >&5
1904 ac_retval=$ac_status
1906 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1907 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1908 as_fn_set_status $ac_retval
1912 # ac_fn_c_check_func LINENO FUNC VAR
1913 # ----------------------------------
1914 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1915 ac_fn_c_check_func ()
1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919 $as_echo_n "checking for $2... " >&6; }
1920 if eval "test \"\${$3+set}\"" = set; then :
1921 $as_echo_n "(cached) " >&6
1923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1924 /* end confdefs.h. */
1925 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1927 #define $2 innocuous_$2
1929 /* System header to define __stub macros and hopefully few prototypes,
1930 which can conflict with char $2 (); below.
1931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1932 <limits.h> exists even on freestanding compilers. */
1935 # include <limits.h>
1937 # include <assert.h>
1942 /* Override any GCC internal prototype to avoid an error.
1943 Use char because int might match the return type of a GCC
1944 builtin and then its argument prototype would still apply. */
1949 /* The GNU C library defines this for functions which it implements
1950 to always fail with ENOSYS. Some functions are actually named
1951 something starting with __ and the normal name is an alias. */
1952 #if defined __stub_$2 || defined __stub___$2
1964 if ac_fn_c_try_link "$LINENO"; then :
1969 rm -f core conftest.err conftest.$ac_objext \
1970 conftest$ac_exeext conftest.$ac_ext
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1974 $as_echo "$ac_res" >&6; }
1975 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1977 } # ac_fn_c_check_func
1979 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1980 # -------------------------------------------------------
1981 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1982 # the include files in INCLUDES and setting the cache variable VAR
1984 ac_fn_c_check_header_mongrel ()
1986 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1987 if eval "test \"\${$3+set}\"" = set; then :
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1989 $as_echo_n "checking for $2... " >&6; }
1990 if eval "test \"\${$3+set}\"" = set; then :
1991 $as_echo_n "(cached) " >&6
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1997 # Is the header compilable?
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1999 $as_echo_n "checking $2 usability... " >&6; }
2000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2001 /* end confdefs.h. */
2005 if ac_fn_c_try_compile "$LINENO"; then :
2006 ac_header_compiler=yes
2008 ac_header_compiler=no
2010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2012 $as_echo "$ac_header_compiler" >&6; }
2014 # Is the header present?
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2016 $as_echo_n "checking $2 presence... " >&6; }
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018 /* end confdefs.h. */
2021 if ac_fn_c_try_cpp "$LINENO"; then :
2022 ac_header_preproc=yes
2024 ac_header_preproc=no
2026 rm -f conftest.err conftest.i conftest.$ac_ext
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2028 $as_echo "$ac_header_preproc" >&6; }
2030 # So? What about this header?
2031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2034 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2036 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2040 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2042 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2044 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2046 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2048 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2052 $as_echo_n "checking for $2... " >&6; }
2053 if eval "test \"\${$3+set}\"" = set; then :
2054 $as_echo_n "(cached) " >&6
2056 eval "$3=\$ac_header_compiler"
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2060 $as_echo "$ac_res" >&6; }
2062 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2064 } # ac_fn_c_check_header_mongrel
2065 cat >config.log <<_ACEOF
2066 This file contains any messages produced by compilers while
2067 running configure, to aid debugging if configure makes a mistake.
2069 It was created by $as_me, which was
2070 generated by GNU Autoconf 2.67. Invocation command line was
2082 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
2083 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
2084 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
2085 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
2086 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
2088 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
2089 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
2091 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
2092 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
2093 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
2094 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
2095 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
2096 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
2097 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
2101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2105 test -z "$as_dir" && as_dir=.
2106 $as_echo "PATH: $as_dir"
2122 # Keep a trace of the command line.
2123 # Strip out --no-create and --no-recursion so they do not pile up.
2124 # Strip out --silent because we don't want to record it for future runs.
2125 # Also quote any args containing shell meta-characters.
2126 # Make two passes to allow for proper duplicate-argument suppression.
2130 ac_must_keep_next=false
2136 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2137 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2138 | -silent | --silent | --silen | --sile | --sil)
2141 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2144 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2146 as_fn_append ac_configure_args1 " '$ac_arg'"
2147 if test $ac_must_keep_next = true; then
2148 ac_must_keep_next=false # Got value, back to normal.
2151 *=* | --config-cache | -C | -disable-* | --disable-* \
2152 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2153 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2154 | -with-* | --with-* | -without-* | --without-* | --x)
2155 case "$ac_configure_args0 " in
2156 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2159 -* ) ac_must_keep_next=true ;;
2162 as_fn_append ac_configure_args " '$ac_arg'"
2167 { ac_configure_args0=; unset ac_configure_args0;}
2168 { ac_configure_args1=; unset ac_configure_args1;}
2170 # When interrupted or exit'd, cleanup temporary files, and complete
2171 # config.log. We remove comments because anyway the quotes in there
2172 # would cause problems or look ugly.
2173 # WARNING: Use '\'' to represent an apostrophe within the trap.
2174 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2175 trap 'exit_status=$?
2176 # Save into config.log some information that might help in debugging.
2180 $as_echo "## ---------------- ##
2181 ## Cache variables. ##
2182 ## ---------------- ##"
2184 # The following way of writing the cache mishandles newlines in values,
2186 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2187 eval ac_val=\$$ac_var
2191 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2192 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2195 _ | IFS | as_nl) ;; #(
2196 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2197 *) { eval $ac_var=; unset $ac_var;} ;;
2202 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2203 *${as_nl}ac_space=\ *)
2205 "s/'\''/'\''\\\\'\'''\''/g;
2206 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2209 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2216 $as_echo "## ----------------- ##
2217 ## Output variables. ##
2218 ## ----------------- ##"
2220 for ac_var in $ac_subst_vars
2222 eval ac_val=\$$ac_var
2224 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2226 $as_echo "$ac_var='\''$ac_val'\''"
2230 if test -n "$ac_subst_files"; then
2231 $as_echo "## ------------------- ##
2232 ## File substitutions. ##
2233 ## ------------------- ##"
2235 for ac_var in $ac_subst_files
2237 eval ac_val=\$$ac_var
2239 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2241 $as_echo "$ac_var='\''$ac_val'\''"
2246 if test -s confdefs.h; then
2247 $as_echo "## ----------- ##
2254 test "$ac_signal" != 0 &&
2255 $as_echo "$as_me: caught signal $ac_signal"
2256 $as_echo "$as_me: exit $exit_status"
2258 rm -f core *.core core.conftest.* &&
2259 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2262 for ac_signal in 1 2 13 15; do
2263 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2267 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2268 rm -f -r conftest* confdefs.h
2270 $as_echo "/* confdefs.h */" > confdefs.h
2272 # Predefined preprocessor variables.
2274 cat >>confdefs.h <<_ACEOF
2275 #define PACKAGE_NAME "$PACKAGE_NAME"
2278 cat >>confdefs.h <<_ACEOF
2279 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2282 cat >>confdefs.h <<_ACEOF
2283 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2286 cat >>confdefs.h <<_ACEOF
2287 #define PACKAGE_STRING "$PACKAGE_STRING"
2290 cat >>confdefs.h <<_ACEOF
2291 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2294 cat >>confdefs.h <<_ACEOF
2295 #define PACKAGE_URL "$PACKAGE_URL"
2299 # Let the site file select an alternate cache file if it wants to.
2300 # Prefer an explicitly selected file to automatically selected ones.
2303 if test -n "$CONFIG_SITE"; then
2304 # We do not want a PATH search for config.site.
2305 case $CONFIG_SITE in #((
2306 -*) ac_site_file1=./$CONFIG_SITE;;
2307 */*) ac_site_file1=$CONFIG_SITE;;
2308 *) ac_site_file1=./$CONFIG_SITE;;
2310 elif test "x$prefix" != xNONE; then
2311 ac_site_file1=$prefix/share/config.site
2312 ac_site_file2=$prefix/etc/config.site
2314 ac_site_file1=$ac_default_prefix/share/config.site
2315 ac_site_file2=$ac_default_prefix/etc/config.site
2317 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2319 test "x$ac_site_file" = xNONE && continue
2320 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2322 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2323 sed 's/^/| /' "$ac_site_file" >&5
2325 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2327 as_fn_error $? "failed to load site
script $ac_site_file
2328 See \
`config.log' for more details" "$LINENO" 5 ; }
2332 if test -r "$cache_file"; then
2333 # Some versions of bash will fail to source /dev/null (special files
2334 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2335 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2337 $as_echo "$as_me: loading cache $cache_file" >&6;}
2339 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2340 *) . "./$cache_file";;
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2345 $as_echo "$as_me: creating cache $cache_file" >&6;}
2349 # Check that the precious variables saved in the cache have kept the same
2351 ac_cache_corrupted=false
2352 for ac_var in $ac_precious_vars; do
2353 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2354 eval ac_new_set=\$ac_env_${ac_var}_set
2355 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2356 eval ac_new_val=\$ac_env_${ac_var}_value
2357 case $ac_old_set,$ac_new_set in
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2360 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2361 ac_cache_corrupted=: ;;
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2364 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2365 ac_cache_corrupted=: ;;
2368 if test "x$ac_old_val" != "x$ac_new_val"; then
2369 # differences in whitespace do not lead to failure.
2370 ac_old_val_w=`echo x
$ac_old_val`
2371 ac_new_val_w=`echo x
$ac_new_val`
2372 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2374 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2375 ac_cache_corrupted=:
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2378 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2379 eval $ac_var=\$ac_old_val
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2382 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2384 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2387 # Pass precious variables to config.status.
2388 if test "$ac_new_set" = set; then
2390 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2391 *) ac_arg=$ac_var=$ac_new_val ;;
2393 case " $ac_configure_args " in
2394 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2395 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2399 if $ac_cache_corrupted; then
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2403 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2404 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2406 ## -------------------- ##
2407 ## Main body of script. ##
2408 ## -------------------- ##
2411 ac_cpp='$CPP $CPPFLAGS'
2412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2418 ac_cpp='$CPP $CPPFLAGS'
2419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking metadata" >&5
2428 $as_echo_n "checking metadata... " >&6; }
2431 _zfs_ac_meta_type="none"
2432 if test -f "$META"; then
2433 _zfs_ac_meta_type="META file"
2435 ZFS_META_NAME=`perl
-n\
2436 -e "BEGIN { \\$key=shift @ARGV; }"\
2437 -e "next unless s/^\s*\\$key[:=]//i;"\
2438 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2441 -e "s/^(['\"])(.*)\1/\\$2/;"\
2443 -e "END { print \\$val if defined \\$val; }"\
2444 '(?:NAME|PROJECT|PACKAGE)' $META`;
2445 if test -n "$ZFS_META_NAME"; then
2447 cat >>confdefs.h <<_ACEOF
2448 #define ZFS_META_NAME "$ZFS_META_NAME"
2454 ZFS_META_VERSION=`perl
-n\
2455 -e "BEGIN { \\$key=shift @ARGV; }"\
2456 -e "next unless s/^\s*\\$key[:=]//i;"\
2457 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2460 -e "s/^(['\"])(.*)\1/\\$2/;"\
2462 -e "END { print \\$val if defined \\$val; }"\
2464 if test -n "$ZFS_META_VERSION"; then
2466 cat >>confdefs.h <<_ACEOF
2467 #define ZFS_META_VERSION "$ZFS_META_VERSION"
2473 ZFS_META_RELEASE=`perl
-n\
2474 -e "BEGIN { \\$key=shift @ARGV; }"\
2475 -e "next unless s/^\s*\\$key[:=]//i;"\
2476 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2479 -e "s/^(['\"])(.*)\1/\\$2/;"\
2481 -e "END { print \\$val if defined \\$val; }"\
2483 if git rev-parse --git-dir > /dev/null 2>&1; then
2484 _match="${ZFS_META_NAME}-${ZFS_META_VERSION}*"
2485 _alias=$(git describe --match=${_match} 2>/dev/null)
2486 _release=$(echo ${_alias}|cut -f3- -d'-'|sed 's/-/_/g')
2487 if test -n "${_release}"; then
2488 ZFS_META_RELEASE=${_release}
2489 _zfs_ac_meta_type="git describe"
2493 if test -n "$ZFS_META_RELEASE"; then
2495 cat >>confdefs.h <<_ACEOF
2496 #define ZFS_META_RELEASE "$ZFS_META_RELEASE"
2501 RELEASE="$ZFS_META_RELEASE"
2505 ZFS_META_LICENSE=`perl
-n\
2506 -e "BEGIN { \\$key=shift @ARGV; }"\
2507 -e "next unless s/^\s*\\$key[:=]//i;"\
2508 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2511 -e "s/^(['\"])(.*)\1/\\$2/;"\
2513 -e "END { print \\$val if defined \\$val; }"\
2515 if test -n "$ZFS_META_LICENSE"; then
2517 cat >>confdefs.h <<_ACEOF
2518 #define ZFS_META_LICENSE "$ZFS_META_LICENSE"
2524 if test -n "$ZFS_META_NAME" -a -n "$ZFS_META_VERSION"; then
2525 ZFS_META_ALIAS="$ZFS_META_NAME-$ZFS_META_VERSION"
2526 test -n "$ZFS_META_RELEASE" &&
2527 ZFS_META_ALIAS="$ZFS_META_ALIAS-$ZFS_META_RELEASE"
2529 cat >>confdefs.h <<_ACEOF
2530 #define ZFS_META_ALIAS "$ZFS_META_ALIAS"
2536 ZFS_META_DATA=`perl
-n\
2537 -e "BEGIN { \\$key=shift @ARGV; }"\
2538 -e "next unless s/^\s*\\$key[:=]//i;"\
2539 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2542 -e "s/^(['\"])(.*)\1/\\$2/;"\
2544 -e "END { print \\$val if defined \\$val; }"\
2546 if test -n "$ZFS_META_DATA"; then
2548 cat >>confdefs.h <<_ACEOF
2549 #define ZFS_META_DATA "$ZFS_META_DATA"
2555 ZFS_META_AUTHOR=`perl
-n\
2556 -e "BEGIN { \\$key=shift @ARGV; }"\
2557 -e "next unless s/^\s*\\$key[:=]//i;"\
2558 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2561 -e "s/^(['\"])(.*)\1/\\$2/;"\
2563 -e "END { print \\$val if defined \\$val; }"\
2565 if test -n "$ZFS_META_AUTHOR"; then
2567 cat >>confdefs.h <<_ACEOF
2568 #define ZFS_META_AUTHOR "$ZFS_META_AUTHOR"
2575 ZFS_META_LT_CURRENT=`perl
-n\
2576 -e "BEGIN { \\$key=shift @ARGV; }"\
2577 -e "next unless s/^\s*\\$key[:=]//i;"\
2578 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2581 -e "s/^(['\"])(.*)\1/\\$2/;"\
2583 -e "END { print \\$val if defined \\$val; }"\
2584 'LT_CURRENT' $META`;
2585 ZFS_META_LT_REVISION=`perl
-n\
2586 -e "BEGIN { \\$key=shift @ARGV; }"\
2587 -e "next unless s/^\s*\\$key[:=]//i;"\
2588 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2591 -e "s/^(['\"])(.*)\1/\\$2/;"\
2593 -e "END { print \\$val if defined \\$val; }"\
2594 'LT_REVISION' $META`;
2595 ZFS_META_LT_AGE=`perl
-n\
2596 -e "BEGIN { \\$key=shift @ARGV; }"\
2597 -e "next unless s/^\s*\\$key[:=]//i;"\
2598 -e "s/^((?:[^'\"#]*(?:(['\"])[^\2]*\2)*)*)#.*/\\$1/;"\
2601 -e "s/^(['\"])(.*)\1/\\$2/;"\
2603 -e "END { print \\$val if defined \\$val; }"\
2605 if test -n "$ZFS_META_LT_CURRENT" \
2606 -o -n "$ZFS_META_LT_REVISION" \
2607 -o -n "$ZFS_META_LT_AGE"; then
2608 test -n "$ZFS_META_LT_CURRENT" || ZFS_META_LT_CURRENT="0"
2609 test -n "$ZFS_META_LT_REVISION" || ZFS_META_LT_REVISION="0"
2610 test -n "$ZFS_META_LT_AGE" || ZFS_META_LT_AGE="0"
2612 cat >>confdefs.h <<_ACEOF
2613 #define ZFS_META_LT_CURRENT "$ZFS_META_LT_CURRENT"
2617 cat >>confdefs.h <<_ACEOF
2618 #define ZFS_META_LT_REVISION "$ZFS_META_LT_REVISION"
2622 cat >>confdefs.h <<_ACEOF
2623 #define ZFS_META_LT_AGE "$ZFS_META_LT_AGE"
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_zfs_ac_meta_type" >&5
2633 $as_echo "$_zfs_ac_meta_type" >&6; }
2637 for ac_dir in config "$srcdir"/config; do
2638 if test -f "$ac_dir/install-sh"; then
2640 ac_install_sh="$ac_aux_dir/install-sh -c"
2642 elif test -f "$ac_dir/install.sh"; then
2644 ac_install_sh="$ac_aux_dir/install.sh -c"
2646 elif test -f "$ac_dir/shtool"; then
2648 ac_install_sh="$ac_aux_dir/shtool install -c"
2652 if test -z "$ac_aux_dir"; then
2653 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2656 # These three variables are undocumented and unsupported,
2657 # and are intended to be withdrawn in a future Autoconf release.
2658 # They can cause serious problems if a builder's source tree is in a directory
2659 # whose full name contains unusual characters.
2660 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2661 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2662 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2665 # Make sure we can run config.sub.
2666 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2667 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2670 $as_echo_n "checking build system type... " >&6; }
2671 if test "${ac_cv_build+set}" = set; then :
2672 $as_echo_n "(cached) " >&6
2674 ac_build_alias=$build_alias
2675 test "x$ac_build_alias" = x &&
2676 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2677 test "x$ac_build_alias" = x &&
2678 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2679 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2680 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2684 $as_echo "$ac_cv_build" >&6; }
2685 case $ac_cv_build in
2687 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
2690 ac_save_IFS=$IFS; IFS='-'
2696 # Remember, the first character of IFS is used to create $*,
2697 # except with old shells:
2700 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2704 $as_echo_n "checking host system type... " >&6; }
2705 if test "${ac_cv_host+set}" = set; then :
2706 $as_echo_n "(cached) " >&6
2708 if test "x$host_alias" = x; then
2709 ac_cv_host=$ac_cv_build
2711 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2712 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2717 $as_echo "$ac_cv_host" >&6; }
2720 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
2723 ac_save_IFS=$IFS; IFS='-'
2729 # Remember, the first character of IFS is used to create $*,
2730 # except with old shells:
2733 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2737 $as_echo_n "checking target system type... " >&6; }
2738 if test "${ac_cv_target+set}" = set; then :
2739 $as_echo_n "(cached) " >&6
2741 if test "x$target_alias" = x; then
2742 ac_cv_target=$ac_cv_host
2744 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2745 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2750 $as_echo "$ac_cv_target" >&6; }
2751 case $ac_cv_target in
2753 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
2755 target=$ac_cv_target
2756 ac_save_IFS=$IFS; IFS='-'
2762 # Remember, the first character of IFS is used to create $*,
2763 # except with old shells:
2766 case $target_os in *\ *) target_os=`echo "$target_os" |
sed 's/ /-/g'`;; esac
2769 # The aliases save the names the user supplied, while $host etc.
2770 # will get canonicalized.
2771 test -n "$target_alias" &&
2772 test "$program_prefix$program_suffix$program_transform_name" = \
2774 program_prefix=${target_alias}-
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2778 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2779 # Check whether --enable-maintainer-mode was given.
2780 if test "${enable_maintainer_mode+set}" = set; then :
2781 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2783 USE_MAINTAINER_MODE=no
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2787 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2788 if test $USE_MAINTAINER_MODE = yes; then
2789 MAINTAINER_MODE_TRUE=
2790 MAINTAINER_MODE_FALSE='#'
2792 MAINTAINER_MODE_TRUE='#'
2793 MAINTAINER_MODE_FALSE=
2796 MAINT=$MAINTAINER_MODE_TRUE
2799 # Check whether --enable-silent-rules was given.
2800 if test "${enable_silent_rules+set}" = set; then :
2801 enableval=$enable_silent_rules;
2804 case $enable_silent_rules in
2805 yes) AM_DEFAULT_VERBOSITY=0;;
2806 no) AM_DEFAULT_VERBOSITY=1;;
2807 *) AM_DEFAULT_VERBOSITY=1;;
2811 am__api_version='1.11'
2813 # Find a good install program. We prefer a C program (faster),
2814 # so one script is as good as another. But avoid the broken or
2815 # incompatible versions:
2816 # SysV /etc/install, /usr/sbin/install
2817 # SunOS /usr/etc/install
2818 # IRIX /sbin/install
2820 # AmigaOS /C/install, which installs bootblocks on floppy discs
2821 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2822 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2823 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2824 # OS/2's system install, which has a completely different semantic
2825 # ./install, which can be erroneously created by make from ./install.sh.
2826 # Reject install programs that cannot install multiple files.
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2828 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2829 if test -z "$INSTALL"; then
2830 if test "${ac_cv_path_install+set}" = set; then :
2831 $as_echo_n "(cached) " >&6
2833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2837 test -z "$as_dir" && as_dir=.
2838 # Account for people who put trailing slashes in PATH elements.
2839 case $as_dir/ in #((
2840 ./ | .// | /[cC]/* | \
2841 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2842 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2845 # OSF1 and SCO ODT 3.0 have their own names for install.
2846 # Don't use installbsd from OSF since it installs stuff as root
2848 for ac_prog in ginstall scoinst install; do
2849 for ac_exec_ext in '' $ac_executable_extensions; do
2850 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2851 if test $ac_prog = install &&
2852 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2853 # AIX install. It has an incompatible calling convention.
2855 elif test $ac_prog = install &&
2856 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2857 # program-specific install script used by HP pwplus--don't use.
2860 rm -rf conftest.one conftest.two conftest.dir
2861 echo one > conftest.one
2862 echo two > conftest.two
2864 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2865 test -s conftest.one && test -s conftest.two &&
2866 test -s conftest.dir/conftest.one &&
2867 test -s conftest.dir/conftest.two
2869 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2882 rm -rf conftest.one conftest.two conftest.dir
2885 if test "${ac_cv_path_install+set}" = set; then
2886 INSTALL=$ac_cv_path_install
2888 # As a last resort, use the slow shell script. Don't cache a
2889 # value for INSTALL within a source directory, because that will
2890 # break other packages using the cache if that directory is
2891 # removed, or if the value is a relative name.
2892 INSTALL=$ac_install_sh
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2896 $as_echo "$INSTALL" >&6; }
2898 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2899 # It thinks the first close brace ends the variable substitution.
2900 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2902 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2904 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2907 $as_echo_n "checking whether build environment is sane... " >&6; }
2910 echo timestamp > conftest.file
2911 # Reject unsafe characters in $srcdir or the absolute working directory
2912 # name. Accept space and tab only in the latter.
2916 *[\\\"\#\$\&\'\`$am_lf]*)
2917 as_fn_error $?
"unsafe absolute working directory name" "$LINENO" 5 ;;
2920 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2921 as_fn_error $?
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2924 # Do `set' in a subshell so we don't clobber the current shell's
2925 # arguments. Must try -L first in case configure is actually a
2926 # symlink; some systems play weird games with the mod time of symlinks
2927 # (eg FreeBSD returns the mod time of the symlink's containing
2930 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2931 if test "$*" = "X"; then
2933 set X
`ls -t "$srcdir/configure" conftest.file`
2936 if test "$*" != "X $srcdir/configure conftest.file" \
2937 && test "$*" != "X conftest.file $srcdir/configure"; then
2939 # If neither matched, then we have a broken ls. This can happen
2940 # if, for instance, CONFIG_SHELL is bash and it inherits a
2941 # broken ls alias from the environment. This has actually
2942 # happened. Such a system could not be considered "sane".
2943 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2944 alias in your environment" "$LINENO" 5
2947 test "$2" = conftest.
file
2953 as_fn_error $?
"newly created file is older than distributed files!
2954 Check your system clock" "$LINENO" 5
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2957 $as_echo "yes" >&6; }
2958 test "$program_prefix" != NONE
&&
2959 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2960 # Use a double $ so make ignores it.
2961 test "$program_suffix" != NONE
&&
2962 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2963 # Double any \ or $.
2964 # By default was `s,x,x', remove it if useless.
2965 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2966 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2968 # expand $ac_aux_dir to an absolute path
2969 am_aux_dir
=`cd $ac_aux_dir && pwd`
2971 if test x
"${MISSING+set}" != xset
; then
2974 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2976 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2979 # Use eval to expand $SHELL
2980 if eval "$MISSING --run true"; then
2981 am_missing_run
="$MISSING --run "
2984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2985 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2988 if test x
"${install_sh}" != xset
; then
2991 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2993 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2997 # Installed binaries are usually stripped using `strip' when the user
2998 # run `make install-strip'. However `strip' might not be the right
2999 # tool to use in cross-compilation environments, therefore Automake
3000 # will honor the `STRIP' environment variable to overrule this program.
3001 if test "$cross_compiling" != no
; then
3002 if test -n "$ac_tool_prefix"; then
3003 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3004 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3006 $as_echo_n "checking for $ac_word... " >&6; }
3007 if test "${ac_cv_prog_STRIP+set}" = set; then :
3008 $as_echo_n "(cached) " >&6
3010 if test -n "$STRIP"; then
3011 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
3013 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3017 test -z "$as_dir" && as_dir
=.
3018 for ac_exec_ext
in '' $ac_executable_extensions; do
3019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3020 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
3021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3030 STRIP
=$ac_cv_prog_STRIP
3031 if test -n "$STRIP"; then
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3033 $as_echo "$STRIP" >&6; }
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3036 $as_echo "no" >&6; }
3041 if test -z "$ac_cv_prog_STRIP"; then
3043 # Extract the first word of "strip", so it can be a program name with args.
3044 set dummy strip
; ac_word
=$2
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3046 $as_echo_n "checking for $ac_word... " >&6; }
3047 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3048 $as_echo_n "(cached) " >&6
3050 if test -n "$ac_ct_STRIP"; then
3051 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
3053 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3057 test -z "$as_dir" && as_dir
=.
3058 for ac_exec_ext
in '' $ac_executable_extensions; do
3059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3060 ac_cv_prog_ac_ct_STRIP
="strip"
3061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3070 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
3071 if test -n "$ac_ct_STRIP"; then
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3073 $as_echo "$ac_ct_STRIP" >&6; }
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3076 $as_echo "no" >&6; }
3079 if test "x$ac_ct_STRIP" = x
; then
3082 case $cross_compiling:$ac_tool_warned in
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3085 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3086 ac_tool_warned
=yes ;;
3091 STRIP
="$ac_cv_prog_STRIP"
3095 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3098 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3099 if test -z "$MKDIR_P"; then
3100 if test "${ac_cv_path_mkdir+set}" = set; then :
3101 $as_echo_n "(cached) " >&6
3103 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3104 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
3107 test -z "$as_dir" && as_dir
=.
3108 for ac_prog
in mkdir gmkdir
; do
3109 for ac_exec_ext
in '' $ac_executable_extensions; do
3110 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
3111 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3112 'mkdir (GNU coreutils) '* | \
3113 'mkdir (coreutils) '* | \
3114 'mkdir (fileutils) '4.1*)
3115 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
3125 test -d .
/--version && rmdir .
/--version
3126 if test "${ac_cv_path_mkdir+set}" = set; then
3127 MKDIR_P
="$ac_cv_path_mkdir -p"
3129 # As a last resort, use the slow shell script. Don't cache a
3130 # value for MKDIR_P within a source directory, because that will
3131 # break other packages using the cache if that directory is
3132 # removed, or if the value is a relative name.
3133 MKDIR_P
="$ac_install_sh -d"
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3137 $as_echo "$MKDIR_P" >&6; }
3141 [\\/$
]* | ?
:[\\/]*) ;;
3142 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
3145 for ac_prog
in gawk mawk nawk
awk
3147 # Extract the first word of "$ac_prog", so it can be a program name with args.
3148 set dummy
$ac_prog; ac_word
=$2
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3150 $as_echo_n "checking for $ac_word... " >&6; }
3151 if test "${ac_cv_prog_AWK+set}" = set; then :
3152 $as_echo_n "(cached) " >&6
3154 if test -n "$AWK"; then
3155 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
3157 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3161 test -z "$as_dir" && as_dir
=.
3162 for ac_exec_ext
in '' $ac_executable_extensions; do
3163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3164 ac_cv_prog_AWK
="$ac_prog"
3165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3175 if test -n "$AWK"; then
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3177 $as_echo "$AWK" >&6; }
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3180 $as_echo "no" >&6; }
3184 test -n "$AWK" && break
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3188 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3190 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3191 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
3192 $as_echo_n "(cached) " >&6
3194 cat >conftest.
make <<\_ACEOF
3197 @
echo '@@@%%%=$(MAKE)=@@@%%%'
3199 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3200 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3202 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
3204 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
3208 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3210 $as_echo "yes" >&6; }
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3214 $as_echo "no" >&6; }
3215 SET_MAKE
="MAKE=${MAKE-make}"
3218 rm -rf .tst
2>/dev
/null
3219 mkdir .tst
2>/dev
/null
3220 if test -d .tst
; then
3225 rmdir .tst
2>/dev
/null
3227 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3228 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3229 # is not polluted with repeated "-I."
3230 am__isrc
=' -I$(srcdir)'
3231 # test to see if srcdir already configured
3232 if test -f $srcdir/config.status
; then
3233 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3237 # test whether we have cygpath
3238 if test -z "$CYGPATH_W"; then
3239 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
3240 CYGPATH_W
='cygpath -w'
3247 # Define the identity of the package.
3248 PACKAGE
=$ZFS_META_NAME
3249 VERSION
=$ZFS_META_VERSION
3252 cat >>confdefs.h
<<_ACEOF
3253 #define PACKAGE "$PACKAGE"
3257 cat >>confdefs.h
<<_ACEOF
3258 #define VERSION "$VERSION"
3261 # Some tools Automake needs.
3263 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3266 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
3269 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3272 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
3275 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
3277 # We need awk for the "check" target. The system "awk" is bad on
3279 # Always define AMTAR for backward compatibility.
3281 AMTAR
=${AMTAR-"${am_missing_run}tar"}
3283 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
3289 ac_config_headers
="$ac_config_headers zfs_config.h"
3294 ac_cpp
='$CPP $CPPFLAGS'
3295 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3296 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3297 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3298 if test -n "$ac_tool_prefix"; then
3299 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3300 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3302 $as_echo_n "checking for $ac_word... " >&6; }
3303 if test "${ac_cv_prog_CC+set}" = set; then :
3304 $as_echo_n "(cached) " >&6
3306 if test -n "$CC"; then
3307 ac_cv_prog_CC
="$CC" # Let the user override the test.
3309 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3313 test -z "$as_dir" && as_dir
=.
3314 for ac_exec_ext
in '' $ac_executable_extensions; do
3315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3316 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
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 "$ac_cv_prog_CC"; then
3339 # Extract the first word of "gcc", so it can be a program name with args.
3340 set dummy gcc
; ac_word
=$2
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3342 $as_echo_n "checking for $ac_word... " >&6; }
3343 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3344 $as_echo_n "(cached) " >&6
3346 if test -n "$ac_ct_CC"; then
3347 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3349 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3353 test -z "$as_dir" && as_dir
=.
3354 for ac_exec_ext
in '' $ac_executable_extensions; do
3355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3356 ac_cv_prog_ac_ct_CC
="gcc"
3357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3366 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3367 if test -n "$ac_ct_CC"; then
3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3369 $as_echo "$ac_ct_CC" >&6; }
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3372 $as_echo "no" >&6; }
3375 if test "x$ac_ct_CC" = x
; then
3378 case $cross_compiling:$ac_tool_warned in
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3381 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3382 ac_tool_warned
=yes ;;
3390 if test -z "$CC"; then
3391 if test -n "$ac_tool_prefix"; then
3392 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3393 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3395 $as_echo_n "checking for $ac_word... " >&6; }
3396 if test "${ac_cv_prog_CC+set}" = set; then :
3397 $as_echo_n "(cached) " >&6
3399 if test -n "$CC"; then
3400 ac_cv_prog_CC
="$CC" # Let the user override the test.
3402 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3406 test -z "$as_dir" && as_dir
=.
3407 for ac_exec_ext
in '' $ac_executable_extensions; do
3408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3409 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3420 if test -n "$CC"; then
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3422 $as_echo "$CC" >&6; }
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3425 $as_echo "no" >&6; }
3431 if test -z "$CC"; then
3432 # Extract the first word of "cc", so it can be a program name with args.
3433 set dummy cc
; ac_word
=$2
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3435 $as_echo_n "checking for $ac_word... " >&6; }
3436 if test "${ac_cv_prog_CC+set}" = set; then :
3437 $as_echo_n "(cached) " >&6
3439 if test -n "$CC"; then
3440 ac_cv_prog_CC
="$CC" # Let the user override the test.
3443 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3447 test -z "$as_dir" && as_dir
=.
3448 for ac_exec_ext
in '' $ac_executable_extensions; do
3449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3450 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3451 ac_prog_rejected
=yes
3455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3462 if test $ac_prog_rejected = yes; then
3463 # We found a bogon in the path, so make sure we never use it.
3464 set dummy
$ac_cv_prog_CC
3466 if test $# != 0; then
3467 # We chose a different compiler from the bogus one.
3468 # However, it has the same basename, so the bogon will be chosen
3469 # first if we set CC to just the basename; use the full file name.
3471 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3477 if test -n "$CC"; then
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3479 $as_echo "$CC" >&6; }
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3482 $as_echo "no" >&6; }
3487 if test -z "$CC"; then
3488 if test -n "$ac_tool_prefix"; then
3489 for ac_prog
in cl.exe
3491 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3492 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3494 $as_echo_n "checking for $ac_word... " >&6; }
3495 if test "${ac_cv_prog_CC+set}" = set; then :
3496 $as_echo_n "(cached) " >&6
3498 if test -n "$CC"; then
3499 ac_cv_prog_CC
="$CC" # Let the user override the test.
3501 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3505 test -z "$as_dir" && as_dir
=.
3506 for ac_exec_ext
in '' $ac_executable_extensions; do
3507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3508 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3519 if test -n "$CC"; then
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3521 $as_echo "$CC" >&6; }
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3524 $as_echo "no" >&6; }
3528 test -n "$CC" && break
3531 if test -z "$CC"; then
3533 for ac_prog
in cl.exe
3535 # Extract the first word of "$ac_prog", so it can be a program name with args.
3536 set dummy
$ac_prog; ac_word
=$2
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3538 $as_echo_n "checking for $ac_word... " >&6; }
3539 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3540 $as_echo_n "(cached) " >&6
3542 if test -n "$ac_ct_CC"; then
3543 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3545 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3549 test -z "$as_dir" && as_dir
=.
3550 for ac_exec_ext
in '' $ac_executable_extensions; do
3551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3552 ac_cv_prog_ac_ct_CC
="$ac_prog"
3553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3562 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3563 if test -n "$ac_ct_CC"; then
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3565 $as_echo "$ac_ct_CC" >&6; }
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3568 $as_echo "no" >&6; }
3572 test -n "$ac_ct_CC" && break
3575 if test "x$ac_ct_CC" = x
; then
3578 case $cross_compiling:$ac_tool_warned in
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3581 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3582 ac_tool_warned
=yes ;;
3591 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3593 as_fn_error $?
"no acceptable C compiler found in \$PATH
3594 See \`config.log' for more details" "$LINENO" 5 ; }
3596 # Provide some information about the compiler.
3597 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3600 for ac_option
in --version -v -V -qversion; do
3601 { { ac_try
="$ac_compiler $ac_option >&5"
3603 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3607 $as_echo "$ac_try_echo"; } >&5
3608 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3610 if test -s conftest.err; then
3612 ... rest of stderr output deleted ...
3613 10q' conftest.err >conftest.er1
3614 cat conftest.er1 >&5
3616 rm -f conftest.er1 conftest.err
3617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3618 test $ac_status = 0; }
3621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3622 /* end confdefs.h. */
3632 ac_clean_files_save=$ac_clean_files
3633 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3634 # Try to create an executable without -o first, disregard a.out.
3635 # It will help us diagnose broken compilers, and finding out an intuition
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3638 $as_echo_n "checking whether the C compiler works... " >&6; }
3639 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3641 # The possible output files:
3642 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3645 for ac_file in $ac_files
3648 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3649 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3654 if { { ac_try="$ac_link_default"
3656 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3657 *) ac_try_echo
=$ac_try;;
3659 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3660 $as_echo "$ac_try_echo"; } >&5
3661 (eval "$ac_link_default") 2>&5
3663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3664 test $ac_status = 0; }; then :
3665 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3666 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3667 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3668 # so that the user can short-circuit this test for compilers unknown to
3670 for ac_file
in $ac_files ''
3672 test -f "$ac_file" ||
continue
3674 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3677 # We found the default executable, but exeext='' is most
3681 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3683 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3685 # We set ac_cv_exeext here because the later test for it is not
3686 # safe: cross compilers may not add the suffix if given an `-o'
3687 # argument, so we may need to know it at that point already.
3688 # Even if this section looks crufty: it has the advantage of
3695 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3700 if test -z "$ac_file"; then :
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3702 $as_echo "no" >&6; }
3703 $as_echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.
$ac_ext >&5
3706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3708 as_fn_error
77 "C compiler cannot create executables
3709 See \`config.log' for more details" "$LINENO" 5 ; }
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3712 $as_echo "yes" >&6; }
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3715 $as_echo_n "checking for C compiler default output file name... " >&6; }
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3717 $as_echo "$ac_file" >&6; }
3718 ac_exeext
=$ac_cv_exeext
3720 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3721 ac_clean_files
=$ac_clean_files_save
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3723 $as_echo_n "checking for suffix of executables... " >&6; }
3724 if { { ac_try
="$ac_link"
3726 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3727 *) ac_try_echo=$ac_try;;
3729 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3730 $as_echo "$ac_try_echo"; } >&5
3731 (eval "$ac_link") 2>&5
3733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3734 test $ac_status = 0; }; then :
3735 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3736 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3737 # work properly (i.e., refer to `conftest.exe'), while it won't with
3739 for ac_file
in conftest.exe conftest conftest.
*; do
3740 test -f "$ac_file" ||
continue
3742 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3743 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3749 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3751 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3752 See \`config.log' for more details" "$LINENO" 5 ; }
3754 rm -f conftest conftest
$ac_cv_exeext
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3756 $as_echo "$ac_cv_exeext" >&6; }
3758 rm -f conftest.
$ac_ext
3759 EXEEXT
=$ac_cv_exeext
3761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3762 /* end confdefs.h. */
3767 FILE *f = fopen ("conftest.out", "w");
3768 return ferror (f) || fclose (f) != 0;
3774 ac_clean_files
="$ac_clean_files conftest.out"
3775 # Check that the compiler produces executables we can run. If not, either
3776 # the compiler is broken, or we cross compile.
3777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3778 $as_echo_n "checking whether we are cross compiling... " >&6; }
3779 if test "$cross_compiling" != yes; then
3780 { { ac_try
="$ac_link"
3782 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3783 *) ac_try_echo=$ac_try;;
3785 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3786 $as_echo "$ac_try_echo"; } >&5
3787 (eval "$ac_link") 2>&5
3789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3790 test $ac_status = 0; }
3791 if { ac_try='./conftest$ac_cv_exeext'
3792 { { case "(($ac_try" in
3793 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3794 *) ac_try_echo
=$ac_try;;
3796 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3797 $as_echo "$ac_try_echo"; } >&5
3798 (eval "$ac_try") 2>&5
3800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3801 test $ac_status = 0; }; }; then
3804 if test "$cross_compiling" = maybe
; then
3807 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3808 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3809 as_fn_error $?
"cannot run C compiled programs.
3810 If you meant to cross compile, use \`--host'.
3811 See \`config.log' for more details" "$LINENO" 5 ; }
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3816 $as_echo "$cross_compiling" >&6; }
3818 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3819 ac_clean_files
=$ac_clean_files_save
3820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3821 $as_echo_n "checking for suffix of object files... " >&6; }
3822 if test "${ac_cv_objext+set}" = set; then :
3823 $as_echo_n "(cached) " >&6
3825 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3826 /* end confdefs.h. */
3836 rm -f conftest.o conftest.obj
3837 if { { ac_try
="$ac_compile"
3839 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3840 *) ac_try_echo=$ac_try;;
3842 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3843 $as_echo "$ac_try_echo"; } >&5
3844 (eval "$ac_compile") 2>&5
3846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3847 test $ac_status = 0; }; then :
3848 for ac_file in conftest.o conftest.obj conftest.*; do
3849 test -f "$ac_file" || continue;
3851 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3852 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3857 $as_echo "$as_me: failed program was:" >&5
3858 sed 's/^/| /' conftest.$ac_ext >&5
3860 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3861 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3862 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3863 See \
`config.log' for more details" "$LINENO" 5 ; }
3865 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3868 $as_echo "$ac_cv_objext" >&6; }
3869 OBJEXT=$ac_cv_objext
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3872 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3873 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3874 $as_echo_n "(cached) " >&6
3876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3890 if ac_fn_c_try_compile "$LINENO"; then :
3895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3896 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3900 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3901 if test $ac_compiler_gnu = yes; then
3906 ac_test_CFLAGS=${CFLAGS+set}
3907 ac_save_CFLAGS=$CFLAGS
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3909 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3910 if test "${ac_cv_prog_cc_g+set}" = set; then :
3911 $as_echo_n "(cached) " >&6
3913 ac_save_c_werror_flag=$ac_c_werror_flag
3914 ac_c_werror_flag=yes
3917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3918 /* end confdefs.h. */
3928 if ac_fn_c_try_compile "$LINENO"; then :
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933 /* end confdefs.h. */
3943 if ac_fn_c_try_compile "$LINENO"; then :
3946 ac_c_werror_flag=$ac_save_c_werror_flag
3948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3949 /* end confdefs.h. */
3959 if ac_fn_c_try_compile "$LINENO"; then :
3962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967 ac_c_werror_flag=$ac_save_c_werror_flag
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3970 $as_echo "$ac_cv_prog_cc_g" >&6; }
3971 if test "$ac_test_CFLAGS" = set; then
3972 CFLAGS=$ac_save_CFLAGS
3973 elif test $ac_cv_prog_cc_g = yes; then
3974 if test "$GCC" = yes; then
3980 if test "$GCC" = yes; then
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3987 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3988 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3989 $as_echo_n "(cached) " >&6
3991 ac_cv_prog_cc_c89=no
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
3997 #include <sys/types.h>
3998 #include <sys/stat.h>
3999 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4000 struct buf { int x; };
4001 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4002 static char *e (p, i)
4008 static char *f (char * (*g) (char **, int), char **p, ...)
4013 s = g (p, va_arg (v,int));
4018 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4019 function prototypes and stuff, but not '\xHH' hex character constants.
4020 These don't provoke an error unfortunately, instead are silently treated
4021 as 'x'. The following induces an error, until -std is added to get
4022 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4023 array size at least. It's necessary to write '\x00'==0 to get something
4024 that's true only with -std. */
4025 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4027 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4028 inside strings and character constants. */
4030 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4032 int test (int i, double x);
4033 struct s1 {int (*f) (int a);};
4034 struct s2 {int (*f) (double a);};
4035 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4041 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4046 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4047 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4049 CC="$ac_save_CC $ac_arg"
4050 if ac_fn_c_try_compile "$LINENO"; then :
4051 ac_cv_prog_cc_c89=$ac_arg
4053 rm -f core conftest.err conftest.$ac_objext
4054 test "x$ac_cv_prog_cc_c89" != "xno" && break
4056 rm -f conftest.$ac_ext
4061 case "x$ac_cv_prog_cc_c89" in
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4064 $as_echo "none needed" >&6; } ;;
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4067 $as_echo "unsupported" >&6; } ;;
4069 CC="$CC $ac_cv_prog_cc_c89"
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4071 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4073 if test "x$ac_cv_prog_cc_c89" != xno; then :
4078 ac_cpp='$CPP $CPPFLAGS'
4079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4082 DEPDIR="${am__leading_dot}deps"
4084 ac_config_commands="$ac_config_commands depfiles"
4087 am_make=${MAKE-make}
4088 cat > confinc << 'END'
4090 @echo this is the am__doit target
4093 # If we don't find an include directive, just comment out the code.
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4095 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4099 # First try GNU make style include.
4100 echo "include confinc" > confmf
4101 # Ignore all kinds of additional output from `make'.
4102 case `$am_make -s -f confmf 2> /dev/null` in #(
4103 *the\ am__doit\ target*)
4109 # Now try BSD make style include.
4110 if test "$am__include" = "#"; then
4111 echo '.include
"confinc"' > confmf
4112 case `$am_make -s -f confmf 2> /dev/null` in #(
4113 *the\ am__doit\ target*)
4114 am__include=.include
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4123 $as_echo "$_am_result" >&6; }
4124 rm -f confinc confmf
4126 # Check whether --enable-dependency-tracking was given.
4127 if test "${enable_dependency_tracking+set}" = set; then :
4128 enableval=$enable_dependency_tracking;
4131 if test "x$enable_dependency_tracking" != xno; then
4132 am_depcomp="$ac_aux_dir/depcomp"
4135 if test "x$enable_dependency_tracking" != xno
; then
4145 depcc
="$CC" am_compiler_list
=
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4148 $as_echo_n "checking dependency style of $depcc... " >&6; }
4149 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4150 $as_echo_n "(cached) " >&6
4152 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4153 # We make a subdir and do the tests there. Otherwise we can end up
4154 # making bogus files that we don't know about and never remove. For
4155 # instance it was reported that on HP-UX the gcc test will end up
4156 # making a dummy file named `D' -- because `-MD' means `put the output
4159 # Copy depcomp to subdir because otherwise we won't find it if we're
4160 # using a relative directory.
4161 cp "$am_depcomp" conftest.dir
4163 # We will build objects and dependencies in a subdirectory because
4164 # it helps to detect inapplicable dependency modes. For instance
4165 # both Tru64's cc and ICC support -MD to output dependencies as a
4166 # side effect of compilation, but ICC will put the dependencies in
4167 # the current directory while Tru64 will put them in the object
4171 am_cv_CC_dependencies_compiler_type
=none
4172 if test "$am_compiler_list" = ""; then
4173 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4176 case " $depcc " in #(
4177 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
4180 for depmode
in $am_compiler_list; do
4181 # Setup a source with many dependencies, because some compilers
4182 # like to wrap large dependency lists on column 80 (with \), and
4183 # we should not choose a depcomp mode which is confused by this.
4185 # We need to recreate these files for each test, as the compiler may
4186 # overwrite some of them when testing with obscure command lines.
4187 # This happens at least with the AIX C compiler.
4189 for i
in 1 2 3 4 5 6; do
4190 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4191 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4192 # Solaris 8's {/usr,}/bin/sh.
4193 touch sub
/conftst
$i.h
4195 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4197 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4198 # mode. It turns out that the SunPro C++ compiler does not properly
4199 # handle `-M -o', and we need to detect this. Also, some Intel
4200 # versions had trouble with output in subdirs
4201 am__obj
=sub
/conftest.
${OBJEXT-o}
4202 am__minus_obj
="-o $am__obj"
4205 # This depmode causes a compiler race in universal mode.
4206 test "$am__universal" = false ||
continue
4209 # after this tag, mechanisms are not by side-effect, so they'll
4210 # only be used when explicitly requested
4211 if test "x$enable_dependency_tracking" = xyes
; then
4217 msvisualcpp | msvcmsys
)
4218 # This compiler won't grok `-c -o', but also, the minuso test has
4219 # not run yet. These depmodes are late enough in the game, and
4220 # so weak that their functioning should not be impacted.
4221 am__obj
=conftest.
${OBJEXT-o}
4226 if depmode
=$depmode \
4227 source=sub
/conftest.c object
=$am__obj \
4228 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4229 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4230 >/dev
/null
2>conftest.err
&&
4231 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4232 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4233 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4234 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4235 # icc doesn't choke on unknown options, it will just issue warnings
4236 # or remarks (even with -Werror). So we grep stderr for any message
4237 # that says an option was ignored or not supported.
4238 # When given -MP, icc 7.0 and 7.1 complain thusly:
4239 # icc: Command line warning: ignoring option '-M'; no argument required
4240 # The diagnosis changed in icc 8.0:
4241 # icc: Command line remark: option '-MP' not supported
4242 if (grep 'ignoring option' conftest.err ||
4243 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4244 am_cv_CC_dependencies_compiler_type
=$depmode
4253 am_cv_CC_dependencies_compiler_type
=none
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4258 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4259 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4262 test "x$enable_dependency_tracking" != xno \
4263 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4265 am__fastdepCC_FALSE
='#'
4267 am__fastdepCC_TRUE
='#'
4268 am__fastdepCC_FALSE
=
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4275 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4280 macro_version
='2.2.6b'
4281 macro_revision
='1.3017'
4295 ltmain
="$ac_aux_dir/ltmain.sh"
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4298 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4299 if test "${ac_cv_path_SED+set}" = set; then :
4300 $as_echo_n "(cached) " >&6
4302 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
4303 for ac_i
in 1 2 3 4 5 6 7; do
4304 ac_script
="$ac_script$as_nl$ac_script"
4306 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
4307 { ac_script
=; unset ac_script
;}
4308 if test -z "$SED"; then
4309 ac_path_SED_found
=false
4310 # Loop through the user's path and test for each of PROGNAME-LIST
4311 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4315 test -z "$as_dir" && as_dir
=.
4316 for ac_prog
in sed gsed
; do
4317 for ac_exec_ext
in '' $ac_executable_extensions; do
4318 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4319 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } ||
continue
4320 # Check for GNU ac_path_SED and select it if it is found.
4321 # Check for GNU $ac_path_SED
4322 case `"$ac_path_SED" --version 2>&1` in
4324 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4327 $as_echo_n 0123456789 >"conftest.in"
4330 cat "conftest.in" "conftest.in" >"conftest.tmp"
4331 mv "conftest.tmp" "conftest.in"
4332 cp "conftest.in" "conftest.nl"
4333 $as_echo '' >> "conftest.nl"
4334 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4335 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4336 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4337 if test $ac_count -gt ${ac_path_SED_max-0}; then
4338 # Best one so far, save it but keep looking for a better one
4339 ac_cv_path_SED
="$ac_path_SED"
4340 ac_path_SED_max
=$ac_count
4342 # 10*(2^10) chars as input seems more than enough
4343 test $ac_count -gt 10 && break
4345 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4348 $ac_path_SED_found && break 3
4353 if test -z "$ac_cv_path_SED"; then
4354 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4362 $as_echo "$ac_cv_path_SED" >&6; }
4363 SED
="$ac_cv_path_SED"
4366 test -z "$SED" && SED
=sed
4367 Xsed
="$SED -e 1s/^X//"
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4380 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4381 if test "${ac_cv_path_GREP+set}" = set; then :
4382 $as_echo_n "(cached) " >&6
4384 if test -z "$GREP"; then
4385 ac_path_GREP_found
=false
4386 # Loop through the user's path and test for each of PROGNAME-LIST
4387 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4388 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4391 test -z "$as_dir" && as_dir
=.
4392 for ac_prog
in grep ggrep
; do
4393 for ac_exec_ext
in '' $ac_executable_extensions; do
4394 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4395 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4396 # Check for GNU ac_path_GREP and select it if it is found.
4397 # Check for GNU $ac_path_GREP
4398 case `"$ac_path_GREP" --version 2>&1` in
4400 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4403 $as_echo_n 0123456789 >"conftest.in"
4406 cat "conftest.in" "conftest.in" >"conftest.tmp"
4407 mv "conftest.tmp" "conftest.in"
4408 cp "conftest.in" "conftest.nl"
4409 $as_echo 'GREP' >> "conftest.nl"
4410 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4411 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4412 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4413 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4414 # Best one so far, save it but keep looking for a better one
4415 ac_cv_path_GREP
="$ac_path_GREP"
4416 ac_path_GREP_max
=$ac_count
4418 # 10*(2^10) chars as input seems more than enough
4419 test $ac_count -gt 10 && break
4421 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4424 $ac_path_GREP_found && break 3
4429 if test -z "$ac_cv_path_GREP"; then
4430 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4433 ac_cv_path_GREP
=$GREP
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4438 $as_echo "$ac_cv_path_GREP" >&6; }
4439 GREP
="$ac_cv_path_GREP"
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4443 $as_echo_n "checking for egrep... " >&6; }
4444 if test "${ac_cv_path_EGREP+set}" = set; then :
4445 $as_echo_n "(cached) " >&6
4447 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4448 then ac_cv_path_EGREP
="$GREP -E"
4450 if test -z "$EGREP"; then
4451 ac_path_EGREP_found
=false
4452 # Loop through the user's path and test for each of PROGNAME-LIST
4453 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4454 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4457 test -z "$as_dir" && as_dir
=.
4458 for ac_prog
in egrep; do
4459 for ac_exec_ext
in '' $ac_executable_extensions; do
4460 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4461 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4462 # Check for GNU ac_path_EGREP and select it if it is found.
4463 # Check for GNU $ac_path_EGREP
4464 case `"$ac_path_EGREP" --version 2>&1` in
4466 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4469 $as_echo_n 0123456789 >"conftest.in"
4472 cat "conftest.in" "conftest.in" >"conftest.tmp"
4473 mv "conftest.tmp" "conftest.in"
4474 cp "conftest.in" "conftest.nl"
4475 $as_echo 'EGREP' >> "conftest.nl"
4476 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4477 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4478 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4479 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4480 # Best one so far, save it but keep looking for a better one
4481 ac_cv_path_EGREP
="$ac_path_EGREP"
4482 ac_path_EGREP_max
=$ac_count
4484 # 10*(2^10) chars as input seems more than enough
4485 test $ac_count -gt 10 && break
4487 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4490 $ac_path_EGREP_found && break 3
4495 if test -z "$ac_cv_path_EGREP"; then
4496 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4499 ac_cv_path_EGREP
=$EGREP
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4505 $as_echo "$ac_cv_path_EGREP" >&6; }
4506 EGREP
="$ac_cv_path_EGREP"
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4510 $as_echo_n "checking for fgrep... " >&6; }
4511 if test "${ac_cv_path_FGREP+set}" = set; then :
4512 $as_echo_n "(cached) " >&6
4514 if echo 'ab*c' |
$GREP -F 'ab*c' >/dev
/null
2>&1
4515 then ac_cv_path_FGREP
="$GREP -F"
4517 if test -z "$FGREP"; then
4518 ac_path_FGREP_found
=false
4519 # Loop through the user's path and test for each of PROGNAME-LIST
4520 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4521 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4524 test -z "$as_dir" && as_dir
=.
4525 for ac_prog
in fgrep
; do
4526 for ac_exec_ext
in '' $ac_executable_extensions; do
4527 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
4528 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } ||
continue
4529 # Check for GNU ac_path_FGREP and select it if it is found.
4530 # Check for GNU $ac_path_FGREP
4531 case `"$ac_path_FGREP" --version 2>&1` in
4533 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
4536 $as_echo_n 0123456789 >"conftest.in"
4539 cat "conftest.in" "conftest.in" >"conftest.tmp"
4540 mv "conftest.tmp" "conftest.in"
4541 cp "conftest.in" "conftest.nl"
4542 $as_echo 'FGREP' >> "conftest.nl"
4543 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4544 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4545 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4546 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4547 # Best one so far, save it but keep looking for a better one
4548 ac_cv_path_FGREP
="$ac_path_FGREP"
4549 ac_path_FGREP_max
=$ac_count
4551 # 10*(2^10) chars as input seems more than enough
4552 test $ac_count -gt 10 && break
4554 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4557 $ac_path_FGREP_found && break 3
4562 if test -z "$ac_cv_path_FGREP"; then
4563 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4566 ac_cv_path_FGREP
=$FGREP
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4572 $as_echo "$ac_cv_path_FGREP" >&6; }
4573 FGREP
="$ac_cv_path_FGREP"
4576 test -z "$GREP" && GREP
=grep
4596 # Check whether --with-gnu-ld was given.
4597 if test "${with_gnu_ld+set}" = set; then :
4598 withval
=$with_gnu_ld; test "$withval" = no || with_gnu_ld
=yes
4604 if test "$GCC" = yes; then
4605 # Check if gcc -print-prog-name=ld gives a path.
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4607 $as_echo_n "checking for ld used by $CC... " >&6; }
4610 # gcc leaves a trailing carriage return which upsets mingw
4611 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4613 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
4616 # Accept absolute paths.
4618 re_direlt
='/[^/][^/]*/\.\./'
4619 # Canonicalize the pathname of ld
4620 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4621 while $ECHO "$ac_prog" |
$GREP "$re_direlt" > /dev
/null
2>&1; do
4622 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4624 test -z "$LD" && LD
="$ac_prog"
4627 # If it fails, then pretend we aren't using GCC.
4631 # If it is relative, then search for the first ld in PATH.
4635 elif test "$with_gnu_ld" = yes; then
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4637 $as_echo_n "checking for GNU ld... " >&6; }
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4640 $as_echo_n "checking for non-GNU ld... " >&6; }
4642 if test "${lt_cv_path_LD+set}" = set; then :
4643 $as_echo_n "(cached) " >&6
4645 if test -z "$LD"; then
4646 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4647 for ac_dir
in $PATH; do
4649 test -z "$ac_dir" && ac_dir
=.
4650 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
4651 lt_cv_path_LD
="$ac_dir/$ac_prog"
4652 # Check to see if the program is GNU ld. I'd rather use --version,
4653 # but apparently some variants of GNU ld only accept -v.
4654 # Break only if it was the GNU/non-GNU ld that we prefer.
4655 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4656 *GNU
* |
*'with BFD'*)
4657 test "$with_gnu_ld" != no
&& break
4660 test "$with_gnu_ld" != yes && break
4667 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
4672 if test -n "$LD"; then
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4674 $as_echo "$LD" >&6; }
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4677 $as_echo "no" >&6; }
4679 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4681 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4682 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4683 $as_echo_n "(cached) " >&6
4685 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4686 case `$LD -v 2>&1 </dev/null` in
4687 *GNU
* |
*'with BFD'*)
4688 lt_cv_prog_gnu_ld
=yes
4691 lt_cv_prog_gnu_ld
=no
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4696 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4697 with_gnu_ld
=$lt_cv_prog_gnu_ld
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4708 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4709 if test "${lt_cv_path_NM+set}" = set; then :
4710 $as_echo_n "(cached) " >&6
4712 if test -n "$NM"; then
4713 # Let the user override the test.
4716 lt_nm_to_check
="${ac_tool_prefix}nm"
4717 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4718 lt_nm_to_check
="$lt_nm_to_check nm"
4720 for lt_tmp_nm
in $lt_nm_to_check; do
4721 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
4722 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
4724 test -z "$ac_dir" && ac_dir
=.
4725 tmp_nm
="$ac_dir/$lt_tmp_nm"
4726 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
4727 # Check to see if the nm accepts a BSD-compat flag.
4728 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4729 # nm: unknown option "B" ignored
4730 # Tru64's nm complains that /dev/null is an invalid object file
4731 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4732 */dev
/null
* |
*'Invalid file or object type'*)
4733 lt_cv_path_NM
="$tmp_nm -B"
4737 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4739 lt_cv_path_NM
="$tmp_nm -p"
4743 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4744 continue # so that we can try to find one that supports BSD flags
4753 : ${lt_cv_path_NM=no}
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4757 $as_echo "$lt_cv_path_NM" >&6; }
4758 if test "$lt_cv_path_NM" != "no"; then
4761 # Didn't find any BSD compatible name lister, look for dumpbin.
4762 if test -n "$ac_tool_prefix"; then
4763 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
4765 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4766 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4768 $as_echo_n "checking for $ac_word... " >&6; }
4769 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4770 $as_echo_n "(cached) " >&6
4772 if test -n "$DUMPBIN"; then
4773 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
4775 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4779 test -z "$as_dir" && as_dir
=.
4780 for ac_exec_ext
in '' $ac_executable_extensions; do
4781 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4782 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
4783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4792 DUMPBIN
=$ac_cv_prog_DUMPBIN
4793 if test -n "$DUMPBIN"; then
4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4795 $as_echo "$DUMPBIN" >&6; }
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4798 $as_echo "no" >&6; }
4802 test -n "$DUMPBIN" && break
4805 if test -z "$DUMPBIN"; then
4806 ac_ct_DUMPBIN
=$DUMPBIN
4807 for ac_prog
in "dumpbin -symbols" "link -dump -symbols"
4809 # Extract the first word of "$ac_prog", so it can be a program name with args.
4810 set dummy
$ac_prog; ac_word
=$2
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4812 $as_echo_n "checking for $ac_word... " >&6; }
4813 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4814 $as_echo_n "(cached) " >&6
4816 if test -n "$ac_ct_DUMPBIN"; then
4817 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
4819 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4823 test -z "$as_dir" && as_dir
=.
4824 for ac_exec_ext
in '' $ac_executable_extensions; do
4825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4826 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
4827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4836 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
4837 if test -n "$ac_ct_DUMPBIN"; then
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4839 $as_echo "$ac_ct_DUMPBIN" >&6; }
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4842 $as_echo "no" >&6; }
4846 test -n "$ac_ct_DUMPBIN" && break
4849 if test "x$ac_ct_DUMPBIN" = x
; then
4852 case $cross_compiling:$ac_tool_warned in
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4855 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4856 ac_tool_warned
=yes ;;
4858 DUMPBIN
=$ac_ct_DUMPBIN
4863 if test "$DUMPBIN" != ":"; then
4867 test -z "$NM" && NM
=nm
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4875 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4876 if test "${lt_cv_nm_interface+set}" = set; then :
4877 $as_echo_n "(cached) " >&6
4879 lt_cv_nm_interface
="BSD nm"
4880 echo "int some_variable = 0;" > conftest.
$ac_ext
4881 (eval echo "\"\$as_me:4881: $ac_compile\"" >&5)
4882 (eval "$ac_compile" 2>conftest.err
)
4883 cat conftest.err
>&5
4884 (eval echo "\"\$as_me:4884: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4885 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
4886 cat conftest.err
>&5
4887 (eval echo "\"\$as_me:4887: output\"" >&5)
4888 cat conftest.out
>&5
4889 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
4890 lt_cv_nm_interface
="MS dumpbin"
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4895 $as_echo "$lt_cv_nm_interface" >&6; }
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4898 $as_echo_n "checking whether ln -s works... " >&6; }
4900 if test "$LN_S" = "ln -s"; then
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4902 $as_echo "yes" >&6; }
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4905 $as_echo "no, using $LN_S" >&6; }
4908 # find the maximum length of command line arguments
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4910 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4911 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4912 $as_echo_n "(cached) " >&6
4919 # On DJGPP, this test can blow up pretty badly due to problems in libc
4920 # (any single argument exceeding 2000 bytes causes a buffer overrun
4921 # during glob expansion). Even if it were fixed, the result of this
4922 # check would be larger than it should be.
4923 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
4927 # Under GNU Hurd, this test is not required because there is
4928 # no limit to the length of command line arguments.
4929 # Libtool will interpret -1 as no limit whatsoever
4930 lt_cv_sys_max_cmd_len
=-1;
4933 cygwin
* | mingw
* | cegcc
*)
4934 # On Win9x/ME, this test blows up -- it succeeds, but takes
4935 # about 5 minutes as the teststring grows exponentially.
4936 # Worse, since 9x/ME are not pre-emptively multitasking,
4937 # you end up with a "frozen" computer, even though with patience
4938 # the test eventually succeeds (with a max line length of 256k).
4939 # Instead, let's just punt: use the minimum linelength reported by
4940 # all of the supported platforms: 8192 (on NT/2K/XP).
4941 lt_cv_sys_max_cmd_len
=8192;
4945 # On AmigaOS with pdksh, this test takes hours, literally.
4946 # So we just punt and use a minimum line length of 8192.
4947 lt_cv_sys_max_cmd_len
=8192;
4950 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
4951 # This has been around since 386BSD, at least. Likely further.
4952 if test -x /sbin
/sysctl
; then
4953 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
4954 elif test -x /usr
/sbin
/sysctl
; then
4955 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
4957 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
4959 # And add a safety zone
4960 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4961 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4965 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4966 lt_cv_sys_max_cmd_len
=196608
4970 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4971 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4972 # nice to cause kernel panics so lets avoid the loop below.
4973 # First set a reasonable default.
4974 lt_cv_sys_max_cmd_len
=16384
4976 if test -x /sbin
/sysconfig
; then
4977 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4978 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
4983 lt_cv_sys_max_cmd_len
=102400
4985 sysv5
* | sco5v6
* | sysv4.2uw2
*)
4986 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4987 if test -n "$kargmax"; then
4988 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
4990 lt_cv_sys_max_cmd_len
=32768
4994 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
4995 if test -n "$lt_cv_sys_max_cmd_len"; then
4996 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
4997 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
4999 # Make teststring a little bigger before we do anything with it.
5000 # a 1K string should be a reasonable start.
5001 for i
in 1 2 3 4 5 6 7 8 ; do
5002 teststring
=$teststring$teststring
5004 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
5005 # If test is not a shell built-in, we'll probably end up computing a
5006 # maximum length that is only half of the actual maximum length, but
5008 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5009 = "XX$teststring$teststring"; } >/dev
/null
2>&1 &&
5010 test $i != 17 # 1/2 MB should be enough
5013 teststring
=$teststring$teststring
5015 # Only check the string length outside the loop.
5016 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
5018 # Add a significant safety factor because C++ compilers can tack on
5019 # massive amounts of additional arguments before passing them to the
5020 # linker. It appears as though 1/2 is a usable value.
5021 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
5028 if test -n $lt_cv_sys_max_cmd_len ; then
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5030 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5033 $as_echo "none" >&6; }
5035 max_cmd_len
=$lt_cv_sys_max_cmd_len
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5047 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5048 # Try some XSI features
5051 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5053 && eval 'test $(( 1 + 1 )) -eq 2 \
5054 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $xsi_shell" >&5
5057 $as_echo "$xsi_shell" >&6; }
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands
\"+=\"" >&5
5061 $as_echo_n "checking whether the shell understands
\"+=\"...
" >&6; }
5063 ( foo=bar; set foo baz; eval "$1+=\
$2" && test "$foo" = barbaz ) \
5065 && lt_shell_append=yes
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_shell_append" >&5
5067 $as_echo "$lt_shell_append" >&6; }
5070 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5080 # test EBCDIC or ASCII
5081 case `echo X|tr X '\101'` in
5082 A) # ASCII based system
5083 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5084 lt_SP2NL='tr \040 \012'
5085 lt_NL2SP='tr \015\012 \040\040'
5087 *) # EBCDIC based system
5088 lt_SP2NL='tr \100 \n'
5089 lt_NL2SP='tr \r\n \100\100'
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $LD option to reload object files
" >&5
5102 $as_echo_n "checking
for $LD option to reload object files...
" >&6; }
5103 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5104 $as_echo_n "(cached
) " >&6
5106 lt_cv_ld_reload_flag='-r'
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_reload_flag" >&5
5109 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5110 reload_flag=$lt_cv_ld_reload_flag
5111 case $reload_flag in
5113 *) reload_flag=" $reload_flag" ;;
5115 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5118 if test "$GCC" = yes; then
5119 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5121 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5134 if test -n "$ac_tool_prefix"; then
5135 # Extract the first word of "${ac_tool_prefix}objdump
", so it can be a program name with args.
5136 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5138 $as_echo_n "checking
for $ac_word...
" >&6; }
5139 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5140 $as_echo_n "(cached
) " >&6
5142 if test -n "$OBJDUMP"; then
5143 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 test -z "$as_dir" && as_dir=.
5150 for ac_exec_ext in '' $ac_executable_extensions; do
5151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5152 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump
"
5153 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5162 OBJDUMP=$ac_cv_prog_OBJDUMP
5163 if test -n "$OBJDUMP"; then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
5165 $as_echo "$OBJDUMP" >&6; }
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5168 $as_echo "no
" >&6; }
5173 if test -z "$ac_cv_prog_OBJDUMP"; then
5174 ac_ct_OBJDUMP=$OBJDUMP
5175 # Extract the first word of "objdump
", so it can be a program name with args.
5176 set dummy objdump; ac_word=$2
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5178 $as_echo_n "checking
for $ac_word...
" >&6; }
5179 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5180 $as_echo_n "(cached
) " >&6
5182 if test -n "$ac_ct_OBJDUMP"; then
5183 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5189 test -z "$as_dir" && as_dir=.
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5192 ac_cv_prog_ac_ct_OBJDUMP="objdump
"
5193 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5202 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5203 if test -n "$ac_ct_OBJDUMP"; then
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OBJDUMP" >&5
5205 $as_echo "$ac_ct_OBJDUMP" >&6; }
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5208 $as_echo "no
" >&6; }
5211 if test "x
$ac_ct_OBJDUMP" = x; then
5214 case $cross_compiling:$ac_tool_warned in
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5217 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5218 ac_tool_warned=yes ;;
5220 OBJDUMP=$ac_ct_OBJDUMP
5223 OBJDUMP="$ac_cv_prog_OBJDUMP"
5226 test -z "$OBJDUMP" && OBJDUMP=objdump
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries
" >&5
5237 $as_echo_n "checking how to recognize dependent libraries...
" >&6; }
5238 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5239 $as_echo_n "(cached
) " >&6
5241 lt_cv_file_magic_cmd='$MAGIC_CMD'
5242 lt_cv_file_magic_test_file=
5243 lt_cv_deplibs_check_method='unknown'
5244 # Need to set the preceding variable on all platforms that support
5245 # interlibrary dependencies.
5246 # 'none' -- dependencies not supported.
5247 # `unknown' -- same as none, but documents that we really don't know.
5248 # 'pass_all' -- all dependencies passed with no checks.
5249 # 'test_compile' -- check by making test program.
5250 # 'file_magic [[regex]]' -- check by looking for files in library path
5251 # which responds to the $file_magic_cmd with a given extended regex.
5252 # If you have `file' or equivalent on your system and you're not sure
5253 # whether `pass_all' will *always* work, you probably want this one.
5257 lt_cv_deplibs_check_method=pass_all
5261 lt_cv_deplibs_check_method=pass_all
5265 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5266 lt_cv_file_magic_cmd='/usr/bin/file -L'
5267 lt_cv_file_magic_test_file=/shlib/libc.so
5271 # func_win32_libid is a shell function defined in ltmain.sh
5272 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5273 lt_cv_file_magic_cmd='func_win32_libid'
5277 # Base MSYS/MinGW do not provide the 'file' command needed by
5278 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5279 # unless we find 'file', for example because we are cross-compiling.
5280 if ( file / ) >/dev/null 2>&1; then
5281 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5282 lt_cv_file_magic_cmd='func_win32_libid'
5284 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5285 lt_cv_file_magic_cmd='$OBJDUMP -f'
5290 # use the weaker test based on 'objdump'. See mingw*.
5291 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5292 lt_cv_file_magic_cmd='$OBJDUMP -f'
5295 darwin* | rhapsody*)
5296 lt_cv_deplibs_check_method=pass_all
5299 freebsd* | dragonfly*)
5300 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5303 # Not sure whether the presence of OpenBSD here was a mistake.
5304 # Let's accept both of them until this is cleared up.
5305 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5306 lt_cv_file_magic_cmd=/usr/bin/file
5307 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5311 lt_cv_deplibs_check_method=pass_all
5316 lt_cv_deplibs_check_method=pass_all
5319 hpux10.20* | hpux11*)
5320 lt_cv_file_magic_cmd=/usr/bin/file
5323 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5324 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5327 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5328 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5331 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5332 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5338 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5339 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5342 irix5* | irix6* | nonstopux*)
5344 *-32|*"-32 ") libmagic=32-bit;;
5345 *-n32|*"-n32 ") libmagic=N32;;
5346 *-64|*"-64 ") libmagic=64-bit;;
5347 *) libmagic=never-match;;
5349 lt_cv_deplibs_check_method=pass_all
5352 # This must be Linux ELF.
5353 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5354 lt_cv_deplibs_check_method=pass_all
5357 netbsd* | netbsdelf*-gnu)
5358 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5359 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5361 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5366 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5367 lt_cv_file_magic_cmd=/usr/bin/file
5368 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5372 lt_cv_deplibs_check_method=pass_all
5376 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8
-powerpc"; then
5377 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5379 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5383 osf3* | osf4* | osf5*)
5384 lt_cv_deplibs_check_method=pass_all
5388 lt_cv_deplibs_check_method=pass_all
5392 lt_cv_deplibs_check_method=pass_all
5395 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5396 lt_cv_deplibs_check_method=pass_all
5400 case $host_vendor in
5402 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]'
5403 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5406 lt_cv_deplibs_check_method=pass_all
5409 lt_cv_file_magic_cmd='/bin/file'
5410 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5413 lt_cv_file_magic_cmd='/bin/file'
5414 lt_cv_deplibs_check_method="file_magic ELF
[0-9][0-9]*-bit [LM
]SB dynamic lib
"
5415 lt_cv_file_magic_test_file=/lib/libc.so
5418 lt_cv_deplibs_check_method=pass_all
5421 lt_cv_deplibs_check_method=pass_all
5427 lt_cv_deplibs_check_method=pass_all
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_deplibs_check_method" >&5
5433 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5434 file_magic_cmd=$lt_cv_file_magic_cmd
5435 deplibs_check_method=$lt_cv_deplibs_check_method
5436 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5449 if test -n "$ac_tool_prefix"; then
5450 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5451 set dummy ${ac_tool_prefix}ar; ac_word=$2
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5453 $as_echo_n "checking
for $ac_word...
" >&6; }
5454 if test "${ac_cv_prog_AR+set}" = set; then :
5455 $as_echo_n "(cached
) " >&6
5457 if test -n "$AR"; then
5458 ac_cv_prog_AR="$AR" # Let the user override the test.
5460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 test -z "$as_dir" && as_dir=.
5465 for ac_exec_ext in '' $ac_executable_extensions; do
5466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5467 ac_cv_prog_AR="${ac_tool_prefix}ar"
5468 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5478 if test -n "$AR"; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
5480 $as_echo "$AR" >&6; }
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5483 $as_echo "no
" >&6; }
5488 if test -z "$ac_cv_prog_AR"; then
5490 # Extract the first word of "ar", so it can be a program name with args.
5491 set dummy ar; ac_word=$2
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5493 $as_echo_n "checking
for $ac_word...
" >&6; }
5494 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5495 $as_echo_n "(cached
) " >&6
5497 if test -n "$ac_ct_AR"; then
5498 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5504 test -z "$as_dir" && as_dir=.
5505 for ac_exec_ext in '' $ac_executable_extensions; do
5506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5507 ac_cv_prog_ac_ct_AR="ar"
5508 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5517 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5518 if test -n "$ac_ct_AR"; then
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
5520 $as_echo "$ac_ct_AR" >&6; }
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5523 $as_echo "no
" >&6; }
5526 if test "x
$ac_ct_AR" = x; then
5529 case $cross_compiling:$ac_tool_warned in
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5532 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5533 ac_tool_warned=yes ;;
5541 test -z "$AR" && AR=ar
5542 test -z "$AR_FLAGS" && AR_FLAGS=cru
5554 if test -n "$ac_tool_prefix"; then
5555 # Extract the first word of "${ac_tool_prefix}strip
", so it can be a program name with args.
5556 set dummy ${ac_tool_prefix}strip; ac_word=$2
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5558 $as_echo_n "checking
for $ac_word...
" >&6; }
5559 if test "${ac_cv_prog_STRIP+set}" = set; then :
5560 $as_echo_n "(cached
) " >&6
5562 if test -n "$STRIP"; then
5563 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5569 test -z "$as_dir" && as_dir=.
5570 for ac_exec_ext in '' $ac_executable_extensions; do
5571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5572 ac_cv_prog_STRIP="${ac_tool_prefix}strip
"
5573 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5582 STRIP=$ac_cv_prog_STRIP
5583 if test -n "$STRIP"; then
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
5585 $as_echo "$STRIP" >&6; }
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5588 $as_echo "no
" >&6; }
5593 if test -z "$ac_cv_prog_STRIP"; then
5595 # Extract the first word of "strip
", so it can be a program name with args.
5596 set dummy strip; ac_word=$2
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5598 $as_echo_n "checking
for $ac_word...
" >&6; }
5599 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5600 $as_echo_n "(cached
) " >&6
5602 if test -n "$ac_ct_STRIP"; then
5603 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 test -z "$as_dir" && as_dir=.
5610 for ac_exec_ext in '' $ac_executable_extensions; do
5611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5612 ac_cv_prog_ac_ct_STRIP="strip
"
5613 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5622 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5623 if test -n "$ac_ct_STRIP"; then
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_STRIP" >&5
5625 $as_echo "$ac_ct_STRIP" >&6; }
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5628 $as_echo "no
" >&6; }
5631 if test "x
$ac_ct_STRIP" = x; then
5634 case $cross_compiling:$ac_tool_warned in
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5637 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5638 ac_tool_warned=yes ;;
5643 STRIP="$ac_cv_prog_STRIP"
5646 test -z "$STRIP" && STRIP=:
5653 if test -n "$ac_tool_prefix"; then
5654 # Extract the first word of "${ac_tool_prefix}ranlib
", so it can be a program name with args.
5655 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5657 $as_echo_n "checking
for $ac_word...
" >&6; }
5658 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5659 $as_echo_n "(cached
) " >&6
5661 if test -n "$RANLIB"; then
5662 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5668 test -z "$as_dir" && as_dir=.
5669 for ac_exec_ext in '' $ac_executable_extensions; do
5670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5671 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib
"
5672 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5681 RANLIB=$ac_cv_prog_RANLIB
5682 if test -n "$RANLIB"; then
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
5684 $as_echo "$RANLIB" >&6; }
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5687 $as_echo "no
" >&6; }
5692 if test -z "$ac_cv_prog_RANLIB"; then
5693 ac_ct_RANLIB=$RANLIB
5694 # Extract the first word of "ranlib
", so it can be a program name with args.
5695 set dummy ranlib; ac_word=$2
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
5697 $as_echo_n "checking
for $ac_word...
" >&6; }
5698 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5699 $as_echo_n "(cached
) " >&6
5701 if test -n "$ac_ct_RANLIB"; then
5702 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5708 test -z "$as_dir" && as_dir=.
5709 for ac_exec_ext in '' $ac_executable_extensions; do
5710 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5711 ac_cv_prog_ac_ct_RANLIB="ranlib
"
5712 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
5721 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5722 if test -n "$ac_ct_RANLIB"; then
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_RANLIB" >&5
5724 $as_echo "$ac_ct_RANLIB" >&6; }
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
5727 $as_echo "no
" >&6; }
5730 if test "x
$ac_ct_RANLIB" = x; then
5733 case $cross_compiling:$ac_tool_warned in
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
5736 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
5737 ac_tool_warned=yes ;;
5739 RANLIB=$ac_ct_RANLIB
5742 RANLIB="$ac_cv_prog_RANLIB"
5745 test -z "$RANLIB" && RANLIB=:
5752 # Determine commands to create old-style static archives.
5753 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5754 old_postinstall_cmds='chmod 644 $oldlib'
5755 old_postuninstall_cmds=
5757 if test -n "$RANLIB"; then
5760 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB -t \
$oldlib"
5763 old_postinstall_cmds="$old_postinstall_cmds~\
$RANLIB \
$oldlib"
5766 old_archive_cmds="$old_archive_cmds~\
$RANLIB \
$oldlib"
5802 # If no C compiler was specified, use CC.
5805 # If no C compiler flags were specified, use CFLAGS.
5806 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5808 # Allow CC to be a program name with arguments.
5812 # Check for command to grab the raw symbol name followed by C symbol from nm.
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
command to parse
$NM output from
$compiler object
" >&5
5814 $as_echo_n "checking
command to parse
$NM output from
$compiler object...
" >&6; }
5815 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5816 $as_echo_n "(cached
) " >&6
5819 # These are sane defaults that work on at least a few old systems.
5820 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5822 # Character class describing NM global symbol codes.
5823 symcode='[BCDEGRST]'
5825 # Regexp to match symbols that can be accessed directly from C.
5826 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5828 # Define system-specific variables.
5833 cygwin* | mingw* | pw32* | cegcc*)
5834 symcode='[ABCDGISTW]'
5837 if test "$host_cpu" = ia64; then
5838 symcode='[ABCDEGRST]'
5842 symcode='[BCDEGRST]'
5845 symcode='[BCDEGQRST]'
5856 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5864 # If we're using GNU nm, then use its standard symbol codes.
5865 case `$NM -V 2>&1` in
5866 *GNU* | *'with BFD'*)
5867 symcode='[ABCDGIRSTW]' ;;
5870 # Transform an extracted symbol line into a proper C declaration.
5871 # Some systems (esp. on ia64) link data and code symbols differently,
5872 # so use this general approach.
5873 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5875 # Transform an extracted symbol line into symbol name and symbol address
5876 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5877 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'"
5879 # Handle CRLF in mingw tool chain
5883 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5887 # Try without a prefix underscore, then with it.
5888 for ac_symprfx in "" "_
"; do
5890 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5891 symxfrm="\\1 $ac_symprfx\\2 \\2"
5893 # Write the raw and C identifiers.
5894 if test "$lt_cv_nm_interface" = "MS dumpbin
"; then
5895 # Fake it for dumpbin and say T for any non-static function
5896 # and D for any global variable.
5897 # Also find C++ and __fastcall symbols from MSVC++,
5898 # which start with @ or ?.
5899 lt_cv_sys_global_symbol_pipe="$AWK '"\
5900 " {last_section=section; section=\$ 3};"\
5901 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5902 " \$ 0!~/External *\|/{next};"\
5903 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5904 " {if(hide[section]) next};"\
5905 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5906 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5907 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5908 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5909 " ' prfx
=^
$ac_symprfx"
5911 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5914 # Check to see that the pipe works correctly.
5918 cat > conftest.$ac_ext <<_LT_EOF
5923 void nm_test_func(void);
5924 void nm_test_func(void){}
5928 int main(){nm_test_var='a';nm_test_func();return(0);}
5931 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5932 (eval $ac_compile) 2>&5
5934 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5935 test $ac_status = 0; }; then
5936 # Now try to grab the symbols.
5938 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist\""; } >&5
5939 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5941 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5942 test $ac_status = 0; } && test -s "$nlist"; then
5943 # Try sorting and uniquifying the output.
5944 if sort "$nlist" | uniq > "$nlist"T; then
5945 mv -f "$nlist"T "$nlist"
5950 # Make sure that we snagged all the symbols we need.
5951 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5952 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5953 cat <<_LT_EOF > conftest.$ac_ext
5959 # Now generate the symbol file.
5960 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5962 cat <<_LT_EOF >> conftest.$ac_ext
5964 /* The mapping between symbol names and symbols. */
5969 lt__PROGRAM__LTX_preloaded_symbols[] =
5971 { "@PROGRAM@
", (void *) 0 },
5973 $SED "s
/^
$symcode$symcode* \
(.
*\
) \
(.
*\
)$
/ {\"\
2\", (void
*) \
&\
2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5974 cat <<\_LT_EOF >> conftest.$ac_ext
5978 /* This works around a problem in FreeBSD linker */
5979 #ifdef FREEBSD_WORKAROUND
5980 static const void *lt_preloaded_setup() {
5981 return lt__PROGRAM__LTX_preloaded_symbols;
5989 # Now try linking the two files.
5990 mv conftest.$ac_objext conftstm.$ac_objext
5991 lt_save_LIBS="$LIBS"
5992 lt_save_CFLAGS="$CFLAGS"
5993 LIBS="conftstm.
$ac_objext"
5994 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5995 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5996 (eval $ac_link) 2>&5
5998 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
5999 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6002 LIBS="$lt_save_LIBS"
6003 CFLAGS="$lt_save_CFLAGS"
6005 echo "cannot
find nm_test_func
in $nlist" >&5
6008 echo "cannot
find nm_test_var
in $nlist" >&5
6011 echo "cannot run
$lt_cv_sys_global_symbol_pipe" >&5
6014 echo "$progname: failed program was
:" >&5
6015 cat conftest.$ac_ext >&5
6017 rm -rf conftest* conftst*
6019 # Do not use the global_symbol_pipe unless it works.
6020 if test "$pipe_works" = yes; then
6023 lt_cv_sys_global_symbol_pipe=
6029 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6030 lt_cv_sys_global_symbol_to_cdecl=
6032 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: failed
" >&5
6034 $as_echo "failed
" >&6; }
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: ok
" >&5
6037 $as_echo "ok
" >&6; }
6062 # Check whether --enable-libtool-lock was given.
6063 if test "${enable_libtool_lock+set}" = set; then :
6064 enableval=$enable_libtool_lock;
6067 test "x
$enable_libtool_lock" != xno && enable_libtool_lock=yes
6069 # Some flags need to be propagated to the compiler or linker for good
6073 # Find out which ABI we are using.
6074 echo 'int i;' > conftest.$ac_ext
6075 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6076 (eval $ac_compile) 2>&5
6078 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6079 test $ac_status = 0; }; then
6080 case `/usr/bin/file conftest.$ac_objext` in
6092 # Find out which ABI we are using.
6093 echo '#line 6093 "configure
"' > conftest.$ac_ext
6094 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6095 (eval $ac_compile) 2>&5
6097 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6098 test $ac_status = 0; }; then
6099 if test "$lt_cv_prog_gnu_ld" = yes; then
6100 case `/usr/bin/file conftest.$ac_objext` in
6102 LD="${LD-ld} -melf32bsmip"
6105 LD="${LD-ld} -melf32bmipn32"
6108 LD="${LD-ld} -melf64bmip"
6112 case `/usr/bin/file conftest.$ac_objext` in
6128 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6129 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6130 # Find out which ABI we are using.
6131 echo 'int i;' > conftest.$ac_ext
6132 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6133 (eval $ac_compile) 2>&5
6135 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6136 test $ac_status = 0; }; then
6137 case `/usr/bin/file conftest.o` in
6140 x86_64-*kfreebsd*-gnu)
6141 LD="${LD-ld} -m elf_i386_fbsd
"
6144 LD="${LD-ld} -m elf_i386
"
6146 ppc64-*linux*|powerpc64-*linux*)
6147 LD="${LD-ld} -m elf32ppclinux
"
6150 LD="${LD-ld} -m elf_s390
"
6153 LD="${LD-ld} -m elf32_sparc
"
6159 x86_64-*kfreebsd*-gnu)
6160 LD="${LD-ld} -m elf_x86_64_fbsd
"
6163 LD="${LD-ld} -m elf_x86_64
"
6165 ppc*-*linux*|powerpc*-*linux*)
6166 LD="${LD-ld} -m elf64ppc
"
6168 s390*-*linux*|s390*-*tpf*)
6169 LD="${LD-ld} -m elf64_s390
"
6172 LD="${LD-ld} -m elf64_sparc
"
6182 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6183 SAVE_CFLAGS="$CFLAGS"
6184 CFLAGS="$CFLAGS -belf"
6185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs
-belf" >&5
6186 $as_echo_n "checking whether the C compiler needs
-belf...
" >&6; }
6187 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6188 $as_echo_n "(cached
) " >&6
6191 ac_cpp='$CPP $CPPFLAGS'
6192 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6193 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6194 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6197 /* end confdefs.h. */
6207 if ac_fn_c_try_link "$LINENO"; then :
6208 lt_cv_cc_needs_belf=yes
6210 lt_cv_cc_needs_belf=no
6212 rm -f core conftest.err conftest.$ac_objext \
6213 conftest$ac_exeext conftest.$ac_ext
6215 ac_cpp='$CPP $CPPFLAGS'
6216 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6217 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6218 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_cc_needs_belf" >&5
6222 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6223 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6224 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6225 CFLAGS="$SAVE_CFLAGS"
6229 # Find out which ABI we are using.
6230 echo 'int i;' > conftest.$ac_ext
6231 if { { eval echo "\"\
$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6232 (eval $ac_compile) 2>&5
6234 $as_echo "$as_me:${as_lineno-$LINENO}: \$?
= $ac_status" >&5
6235 test $ac_status = 0; }; then
6236 case `/usr/bin/file conftest.o` in
6238 case $lt_cv_prog_gnu_ld in
6239 yes*) LD="${LD-ld} -m elf64_sparc
" ;;
6241 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6253 need_locks="$enable_libtool_lock"
6257 rhapsody* | darwin*)
6258 if test -n "$ac_tool_prefix"; then
6259 # Extract the first word of "${ac_tool_prefix}dsymutil
", so it can be a program name with args.
6260 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6262 $as_echo_n "checking
for $ac_word...
" >&6; }
6263 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6264 $as_echo_n "(cached
) " >&6
6266 if test -n "$DSYMUTIL"; then
6267 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6273 test -z "$as_dir" && as_dir=.
6274 for ac_exec_ext in '' $ac_executable_extensions; do
6275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6276 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil
"
6277 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6286 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6287 if test -n "$DSYMUTIL"; then
6288 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
6289 $as_echo "$DSYMUTIL" >&6; }
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6292 $as_echo "no
" >&6; }
6297 if test -z "$ac_cv_prog_DSYMUTIL"; then
6298 ac_ct_DSYMUTIL=$DSYMUTIL
6299 # Extract the first word of "dsymutil
", so it can be a program name with args.
6300 set dummy dsymutil; ac_word=$2
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6302 $as_echo_n "checking
for $ac_word...
" >&6; }
6303 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6304 $as_echo_n "(cached
) " >&6
6306 if test -n "$ac_ct_DSYMUTIL"; then
6307 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6313 test -z "$as_dir" && as_dir=.
6314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6316 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil
"
6317 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6326 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6327 if test -n "$ac_ct_DSYMUTIL"; then
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_DSYMUTIL" >&5
6329 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6332 $as_echo "no
" >&6; }
6335 if test "x
$ac_ct_DSYMUTIL" = x; then
6338 case $cross_compiling:$ac_tool_warned in
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6341 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6342 ac_tool_warned=yes ;;
6344 DSYMUTIL=$ac_ct_DSYMUTIL
6347 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6350 if test -n "$ac_tool_prefix"; then
6351 # Extract the first word of "${ac_tool_prefix}nmedit
", so it can be a program name with args.
6352 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6354 $as_echo_n "checking
for $ac_word...
" >&6; }
6355 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6356 $as_echo_n "(cached
) " >&6
6358 if test -n "$NMEDIT"; then
6359 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6365 test -z "$as_dir" && as_dir=.
6366 for ac_exec_ext in '' $ac_executable_extensions; do
6367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6368 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit
"
6369 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6378 NMEDIT=$ac_cv_prog_NMEDIT
6379 if test -n "$NMEDIT"; then
6380 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NMEDIT" >&5
6381 $as_echo "$NMEDIT" >&6; }
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6384 $as_echo "no
" >&6; }
6389 if test -z "$ac_cv_prog_NMEDIT"; then
6390 ac_ct_NMEDIT=$NMEDIT
6391 # Extract the first word of "nmedit
", so it can be a program name with args.
6392 set dummy nmedit; ac_word=$2
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6394 $as_echo_n "checking
for $ac_word...
" >&6; }
6395 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6396 $as_echo_n "(cached
) " >&6
6398 if test -n "$ac_ct_NMEDIT"; then
6399 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6405 test -z "$as_dir" && as_dir=.
6406 for ac_exec_ext in '' $ac_executable_extensions; do
6407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6408 ac_cv_prog_ac_ct_NMEDIT="nmedit
"
6409 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6418 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6419 if test -n "$ac_ct_NMEDIT"; then
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_NMEDIT" >&5
6421 $as_echo "$ac_ct_NMEDIT" >&6; }
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6424 $as_echo "no
" >&6; }
6427 if test "x
$ac_ct_NMEDIT" = x; then
6430 case $cross_compiling:$ac_tool_warned in
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6433 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6434 ac_tool_warned=yes ;;
6436 NMEDIT=$ac_ct_NMEDIT
6439 NMEDIT="$ac_cv_prog_NMEDIT"
6442 if test -n "$ac_tool_prefix"; then
6443 # Extract the first word of "${ac_tool_prefix}lipo
", so it can be a program name with args.
6444 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6446 $as_echo_n "checking
for $ac_word...
" >&6; }
6447 if test "${ac_cv_prog_LIPO+set}" = set; then :
6448 $as_echo_n "(cached
) " >&6
6450 if test -n "$LIPO"; then
6451 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457 test -z "$as_dir" && as_dir=.
6458 for ac_exec_ext in '' $ac_executable_extensions; do
6459 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6460 ac_cv_prog_LIPO="${ac_tool_prefix}lipo
"
6461 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6470 LIPO=$ac_cv_prog_LIPO
6471 if test -n "$LIPO"; then
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
6473 $as_echo "$LIPO" >&6; }
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6476 $as_echo "no
" >&6; }
6481 if test -z "$ac_cv_prog_LIPO"; then
6483 # Extract the first word of "lipo
", so it can be a program name with args.
6484 set dummy lipo; ac_word=$2
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6486 $as_echo_n "checking
for $ac_word...
" >&6; }
6487 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6488 $as_echo_n "(cached
) " >&6
6490 if test -n "$ac_ct_LIPO"; then
6491 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 test -z "$as_dir" && as_dir=.
6498 for ac_exec_ext in '' $ac_executable_extensions; do
6499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6500 ac_cv_prog_ac_ct_LIPO="lipo
"
6501 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6510 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6511 if test -n "$ac_ct_LIPO"; then
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_LIPO" >&5
6513 $as_echo "$ac_ct_LIPO" >&6; }
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6516 $as_echo "no
" >&6; }
6519 if test "x
$ac_ct_LIPO" = x; then
6522 case $cross_compiling:$ac_tool_warned in
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6525 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6526 ac_tool_warned=yes ;;
6531 LIPO="$ac_cv_prog_LIPO"
6534 if test -n "$ac_tool_prefix"; then
6535 # Extract the first word of "${ac_tool_prefix}otool
", so it can be a program name with args.
6536 set dummy ${ac_tool_prefix}otool; ac_word=$2
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6538 $as_echo_n "checking
for $ac_word...
" >&6; }
6539 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6540 $as_echo_n "(cached
) " >&6
6542 if test -n "$OTOOL"; then
6543 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549 test -z "$as_dir" && as_dir=.
6550 for ac_exec_ext in '' $ac_executable_extensions; do
6551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6552 ac_cv_prog_OTOOL="${ac_tool_prefix}otool
"
6553 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6562 OTOOL=$ac_cv_prog_OTOOL
6563 if test -n "$OTOOL"; then
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
6565 $as_echo "$OTOOL" >&6; }
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6568 $as_echo "no
" >&6; }
6573 if test -z "$ac_cv_prog_OTOOL"; then
6575 # Extract the first word of "otool
", so it can be a program name with args.
6576 set dummy otool; ac_word=$2
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6578 $as_echo_n "checking
for $ac_word...
" >&6; }
6579 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6580 $as_echo_n "(cached
) " >&6
6582 if test -n "$ac_ct_OTOOL"; then
6583 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589 test -z "$as_dir" && as_dir=.
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6592 ac_cv_prog_ac_ct_OTOOL="otool
"
6593 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6602 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6603 if test -n "$ac_ct_OTOOL"; then
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL" >&5
6605 $as_echo "$ac_ct_OTOOL" >&6; }
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6608 $as_echo "no
" >&6; }
6611 if test "x
$ac_ct_OTOOL" = x; then
6614 case $cross_compiling:$ac_tool_warned in
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6617 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6618 ac_tool_warned=yes ;;
6623 OTOOL="$ac_cv_prog_OTOOL"
6626 if test -n "$ac_tool_prefix"; then
6627 # Extract the first word of "${ac_tool_prefix}otool64
", so it can be a program name with args.
6628 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6630 $as_echo_n "checking
for $ac_word...
" >&6; }
6631 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6632 $as_echo_n "(cached
) " >&6
6634 if test -n "$OTOOL64"; then
6635 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641 test -z "$as_dir" && as_dir=.
6642 for ac_exec_ext in '' $ac_executable_extensions; do
6643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6644 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64
"
6645 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6654 OTOOL64=$ac_cv_prog_OTOOL64
6655 if test -n "$OTOOL64"; then
6656 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL64" >&5
6657 $as_echo "$OTOOL64" >&6; }
6659 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6660 $as_echo "no
" >&6; }
6665 if test -z "$ac_cv_prog_OTOOL64"; then
6666 ac_ct_OTOOL64=$OTOOL64
6667 # Extract the first word of "otool64
", so it can be a program name with args.
6668 set dummy otool64; ac_word=$2
6669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
6670 $as_echo_n "checking
for $ac_word...
" >&6; }
6671 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6672 $as_echo_n "(cached
) " >&6
6674 if test -n "$ac_ct_OTOOL64"; then
6675 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 test -z "$as_dir" && as_dir=.
6682 for ac_exec_ext in '' $ac_executable_extensions; do
6683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6684 ac_cv_prog_ac_ct_OTOOL64="otool64
"
6685 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
6694 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6695 if test -n "$ac_ct_OTOOL64"; then
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_OTOOL64" >&5
6697 $as_echo "$ac_ct_OTOOL64" >&6; }
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
6700 $as_echo "no
" >&6; }
6703 if test "x
$ac_ct_OTOOL64" = x; then
6706 case $cross_compiling:$ac_tool_warned in
6708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
6709 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
6710 ac_tool_warned=yes ;;
6712 OTOOL64=$ac_ct_OTOOL64
6715 OTOOL64="$ac_cv_prog_OTOOL64"
6744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -single_module linker flag
" >&5
6745 $as_echo_n "checking
for -single_module linker flag...
" >&6; }
6746 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6747 $as_echo_n "(cached
) " >&6
6749 lt_cv_apple_cc_single_mod=no
6750 if test -z "${LT_MULTI_MODULE}"; then
6751 # By default we will add the -single_module flag. You can override
6752 # by either setting the environment variable LT_MULTI_MODULE
6753 # non-empty at configure time, or by adding -multi_module to the
6755 rm -rf libconftest.dylib*
6756 echo "int foo
(void
){return 1;}" > conftest.c
6757 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6758 -dynamiclib -Wl,-single_module conftest.c
" >&5
6759 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6760 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6762 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6763 lt_cv_apple_cc_single_mod=yes
6765 cat conftest.err >&5
6767 rm -rf libconftest.dylib*
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_apple_cc_single_mod" >&5
6772 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -exported_symbols_list linker flag
" >&5
6774 $as_echo_n "checking
for -exported_symbols_list linker flag...
" >&6; }
6775 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6776 $as_echo_n "(cached
) " >&6
6778 lt_cv_ld_exported_symbols_list=no
6779 save_LDFLAGS=$LDFLAGS
6780 echo "_main
" > conftest.sym
6781 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym
"
6782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783 /* end confdefs.h. */
6793 if ac_fn_c_try_link "$LINENO"; then :
6794 lt_cv_ld_exported_symbols_list=yes
6796 lt_cv_ld_exported_symbols_list=no
6798 rm -f core conftest.err conftest.$ac_objext \
6799 conftest$ac_exeext conftest.$ac_ext
6800 LDFLAGS="$save_LDFLAGS"
6803 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $lt_cv_ld_exported_symbols_list" >&5
6804 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6806 rhapsody* | darwin1.[012])
6807 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6809 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6810 darwin*) # darwin 5.x on
6811 # if running on 10.5 or later, the deployment target defaults
6812 # to the OS version, if on x86, and 10.4, the deployment
6813 # target defaults to 10.4. Don't you love it?
6814 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6815 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6816 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6818 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6820 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6824 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6825 _lt_dar_single_mod='$single_module'
6827 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6828 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6830 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6832 if test "$DSYMUTIL" != ":"; then
6833 _lt_dsymutil='~$DSYMUTIL $lib || :'
6841 ac_cpp='$CPP $CPPFLAGS'
6842 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6843 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6844 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor
" >&5
6846 $as_echo_n "checking how to run the C preprocessor...
" >&6; }
6847 # On Suns, sometimes $CPP names a directory.
6848 if test -n "$CPP" && test -d "$CPP"; then
6851 if test -z "$CPP"; then
6852 if test "${ac_cv_prog_CPP+set}" = set; then :
6853 $as_echo_n "(cached
) " >&6
6855 # Double quotes because CPP needs to be expanded
6856 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
6859 for ac_c_preproc_warn_flag in '' yes
6861 # Use a header file that comes with gcc, so configuring glibc
6862 # with a fresh cross-compiler works.
6863 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6864 # <limits.h> exists even on freestanding compilers.
6865 # On the NeXT, cc -E runs the code through the compiler's parser,
6866 # not just through cpp. "Syntax error
" is here to catch this case.
6867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6868 /* end confdefs.h. */
6870 # include <limits.h>
6872 # include <assert.h>
6876 if ac_fn_c_try_cpp "$LINENO"; then :
6879 # Broken: fails on valid input.
6882 rm -f conftest.err conftest.i conftest.$ac_ext
6884 # OK, works on sane cases. Now check whether nonexistent headers
6885 # can be detected and how.
6886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6887 /* end confdefs.h. */
6888 #include <ac_nonexistent.h>
6890 if ac_fn_c_try_cpp "$LINENO"; then :
6891 # Broken: success on invalid input.
6894 # Passes both tests.
6898 rm -f conftest.err conftest.i conftest.$ac_ext
6901 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6902 rm -f conftest.i conftest.err conftest.$ac_ext
6903 if $ac_preproc_ok; then :
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CPP" >&5
6916 $as_echo "$CPP" >&6; }
6918 for ac_c_preproc_warn_flag in '' yes
6920 # Use a header file that comes with gcc, so configuring glibc
6921 # with a fresh cross-compiler works.
6922 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6923 # <limits.h> exists even on freestanding compilers.
6924 # On the NeXT, cc -E runs the code through the compiler's parser,
6925 # not just through cpp. "Syntax error
" is here to catch this case.
6926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927 /* end confdefs.h. */
6929 # include <limits.h>
6931 # include <assert.h>
6935 if ac_fn_c_try_cpp "$LINENO"; then :
6938 # Broken: fails on valid input.
6941 rm -f conftest.err conftest.i conftest.$ac_ext
6943 # OK, works on sane cases. Now check whether nonexistent headers
6944 # can be detected and how.
6945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6946 /* end confdefs.h. */
6947 #include <ac_nonexistent.h>
6949 if ac_fn_c_try_cpp "$LINENO"; then :
6950 # Broken: success on invalid input.
6953 # Passes both tests.
6957 rm -f conftest.err conftest.i conftest.$ac_ext
6960 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6961 rm -f conftest.i conftest.err conftest.$ac_ext
6962 if $ac_preproc_ok; then :
6965 { { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
6966 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6967 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6968 See \`config.log' for more details
" "$LINENO" 5 ; }
6972 ac_cpp='$CPP $CPPFLAGS'
6973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ANSI C header files
" >&5
6979 $as_echo_n "checking
for ANSI C header files...
" >&6; }
6980 if test "${ac_cv_header_stdc+set}" = set; then :
6981 $as_echo_n "(cached
) " >&6
6983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984 /* end confdefs.h. */
6998 if ac_fn_c_try_compile "$LINENO"; then :
6999 ac_cv_header_stdc=yes
7001 ac_cv_header_stdc=no
7003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7005 if test $ac_cv_header_stdc = yes; then
7006 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7008 /* end confdefs.h. */
7012 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7013 $EGREP "memchr
" >/dev/null 2>&1; then :
7016 ac_cv_header_stdc=no
7022 if test $ac_cv_header_stdc = yes; then
7023 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7025 /* end confdefs.h. */
7029 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
7030 $EGREP "free
" >/dev/null 2>&1; then :
7033 ac_cv_header_stdc=no
7039 if test $ac_cv_header_stdc = yes; then
7040 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7041 if test "$cross_compiling" = yes; then :
7044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7045 /* end confdefs.h. */
7048 #if ((' ' & 0x0FF) == 0x020)
7049 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7050 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7052 # define ISLOWER(c) \
7053 (('a' <= (c) && (c) <= 'i') \
7054 || ('j' <= (c) && (c) <= 'r') \
7055 || ('s' <= (c) && (c) <= 'z'))
7056 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7059 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7064 for (i = 0; i < 256; i++)
7065 if (XOR (islower (i), ISLOWER (i))
7066 || toupper (i) != TOUPPER (i))
7071 if ac_fn_c_try_run "$LINENO"; then :
7074 ac_cv_header_stdc=no
7076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7077 conftest.$ac_objext conftest.beam conftest.$ac_ext
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_header_stdc" >&5
7083 $as_echo "$ac_cv_header_stdc" >&6; }
7084 if test $ac_cv_header_stdc = yes; then
7086 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7090 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7091 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
7092 inttypes.h stdint.h unistd.h
7094 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7095 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7097 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7098 cat >>confdefs.h
<<_ACEOF
7099 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7107 for ac_header
in dlfcn.h
7109 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7111 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
7112 cat >>confdefs.h
<<_ACEOF
7113 #define HAVE_DLFCN_H 1
7132 # Check whether --enable-shared was given.
7133 if test "${enable_shared+set}" = set; then :
7134 enableval
=$enable_shared; p
=${PACKAGE-default}
7136 yes) enable_shared
=yes ;;
7137 no
) enable_shared
=no
;;
7140 # Look at the argument we got. We use all the common list separators.
7141 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7142 for pkg
in $enableval; do
7144 if test "X$pkg" = "X$p"; then
7163 # Check whether --enable-static was given.
7164 if test "${enable_static+set}" = set; then :
7165 enableval
=$enable_static; p
=${PACKAGE-default}
7167 yes) enable_static
=yes ;;
7168 no
) enable_static
=no
;;
7171 # Look at the argument we got. We use all the common list separators.
7172 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7173 for pkg
in $enableval; do
7175 if test "X$pkg" = "X$p"; then
7195 # Check whether --with-pic was given.
7196 if test "${with_pic+set}" = set; then :
7197 withval
=$with_pic; pic_mode
="$withval"
7203 test -z "$pic_mode" && pic_mode
=default
7211 # Check whether --enable-fast-install was given.
7212 if test "${enable_fast_install+set}" = set; then :
7213 enableval
=$enable_fast_install; p
=${PACKAGE-default}
7215 yes) enable_fast_install
=yes ;;
7216 no
) enable_fast_install
=no
;;
7218 enable_fast_install
=no
7219 # Look at the argument we got. We use all the common list separators.
7220 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
7221 for pkg
in $enableval; do
7223 if test "X$pkg" = "X$p"; then
7224 enable_fast_install
=yes
7231 enable_fast_install
=yes
7244 # This can be used to rebuild libtool when needed
7245 LIBTOOL_DEPS
="$ltmain"
7247 # Always use our own libtool.
7248 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
7274 test -z "$LN_S" && LN_S
="ln -s"
7289 if test -n "${ZSH_VERSION+set}" ; then
7290 setopt NO_GLOB_SUBST
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7294 $as_echo_n "checking for objdir... " >&6; }
7295 if test "${lt_cv_objdir+set}" = set; then :
7296 $as_echo_n "(cached) " >&6
7298 rm -f .libs
2>/dev
/null
7299 mkdir .libs
2>/dev
/null
7300 if test -d .libs
; then
7303 # MS-DOS does not allow filenames that begin with a dot.
7306 rmdir .libs
2>/dev
/null
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7309 $as_echo "$lt_cv_objdir" >&6; }
7310 objdir
=$lt_cv_objdir
7316 cat >>confdefs.h
<<_ACEOF
7317 #define LT_OBJDIR "$lt_cv_objdir/"
7338 # AIX sometimes has problems with the GCC collect2 program. For some
7339 # reason, if we set the COLLECT_NAMES environment variable, the problems
7340 # vanish in a puff of smoke.
7341 if test "X${COLLECT_NAMES+set}" != Xset
; then
7343 export COLLECT_NAMES
7348 # Sed substitution that helps us do robust quoting. It backslashifies
7349 # metacharacters that are still active within double-quoted strings.
7350 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
7352 # Same as above, but do not quote variable references.
7353 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
7355 # Sed substitution to delay expansion of an escaped shell variable in a
7356 # double_quote_subst'ed string.
7357 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
7359 # Sed substitution to delay expansion of an escaped single quote.
7360 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
7362 # Sed substitution to avoid accidental globbing in evaled expressions
7363 no_glob_subst
='s/\*/\\\*/g'
7367 can_build_shared
=yes
7369 # All known linkers require a `.a' archive for static linking (except MSVC,
7370 # which needs '.lib').
7373 with_gnu_ld
="$lt_cv_prog_gnu_ld"
7376 old_CFLAGS
="$CFLAGS"
7378 # Set sane defaults for various variables
7379 test -z "$CC" && CC
=cc
7380 test -z "$LTCC" && LTCC
=$CC
7381 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
7382 test -z "$LD" && LD
=ld
7383 test -z "$ac_objext" && ac_objext
=o
7385 for cc_temp
in $compiler""; do
7387 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7388 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7393 cc_basename
=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7396 # Only perform the check for file, if the check method requires it
7397 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
7398 case $deplibs_check_method in
7400 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7402 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7403 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7404 $as_echo_n "(cached) " >&6
7408 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7411 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7412 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7413 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7414 for ac_dir
in $ac_dummy; do
7416 test -z "$ac_dir" && ac_dir
=.
7417 if test -f $ac_dir/${ac_tool_prefix}file; then
7418 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
7419 if test -n "$file_magic_test_file"; then
7420 case $deplibs_check_method in
7422 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7423 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7424 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7425 $EGREP "$file_magic_regex" > /dev
/null
; then
7430 *** Warning: the command libtool uses to detect shared libraries,
7431 *** $file_magic_cmd, produces output that libtool cannot recognize.
7432 *** The result is that libtool may fail to recognize shared libraries
7433 *** as such. This will affect the creation of libtool libraries that
7434 *** depend on shared libraries, but programs linked with such libtool
7435 *** libraries will work regardless of this problem. Nevertheless, you
7436 *** may want to report the problem to your system manager and/or to
7437 *** bug-libtool@gnu.org
7447 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7452 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7453 if test -n "$MAGIC_CMD"; then
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7455 $as_echo "$MAGIC_CMD" >&6; }
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7458 $as_echo "no" >&6; }
7465 if test -z "$lt_cv_path_MAGIC_CMD"; then
7466 if test -n "$ac_tool_prefix"; then
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7468 $as_echo_n "checking for file... " >&6; }
7469 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7470 $as_echo_n "(cached) " >&6
7474 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7477 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7478 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7479 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7480 for ac_dir
in $ac_dummy; do
7482 test -z "$ac_dir" && ac_dir
=.
7483 if test -f $ac_dir/file; then
7484 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
7485 if test -n "$file_magic_test_file"; then
7486 case $deplibs_check_method in
7488 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7489 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7490 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7491 $EGREP "$file_magic_regex" > /dev
/null
; then
7496 *** Warning: the command libtool uses to detect shared libraries,
7497 *** $file_magic_cmd, produces output that libtool cannot recognize.
7498 *** The result is that libtool may fail to recognize shared libraries
7499 *** as such. This will affect the creation of libtool libraries that
7500 *** depend on shared libraries, but programs linked with such libtool
7501 *** libraries will work regardless of this problem. Nevertheless, you
7502 *** may want to report the problem to your system manager and/or to
7503 *** bug-libtool@gnu.org
7513 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7518 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7519 if test -n "$MAGIC_CMD"; then
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7521 $as_echo "$MAGIC_CMD" >&6; }
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524 $as_echo "no" >&6; }
7537 # Use C for the default configuration in the libtool script
7541 ac_cpp
='$CPP $CPPFLAGS'
7542 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7543 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7544 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7547 # Source file extension for C test sources.
7550 # Object file extension for compiled C test sources.
7554 # Code to be used in simple compile tests
7555 lt_simple_compile_test_code
="int some_variable = 0;"
7557 # Code to be used in simple link tests
7558 lt_simple_link_test_code
='int main(){return(0);}'
7566 # If no C compiler was specified, use CC.
7569 # If no C compiler flags were specified, use CFLAGS.
7570 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
7572 # Allow CC to be a program name with arguments.
7575 # Save the default compiler, since it gets overwritten when the other
7576 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7577 compiler_DEFAULT
=$CC
7579 # save warnings/boilerplate of simple test code
7580 ac_outfile
=conftest.
$ac_objext
7581 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
7582 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7583 _lt_compiler_boilerplate
=`cat conftest.err`
7586 ac_outfile
=conftest.
$ac_objext
7587 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
7588 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7589 _lt_linker_boilerplate
=`cat conftest.err`
7593 if test -n "$compiler"; then
7595 lt_prog_compiler_no_builtin_flag
=
7597 if test "$GCC" = yes; then
7598 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7601 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7602 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7603 $as_echo_n "(cached) " >&6
7605 lt_cv_prog_compiler_rtti_exceptions
=no
7606 ac_outfile
=conftest.
$ac_objext
7607 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7608 lt_compiler_flag
="-fno-rtti -fno-exceptions"
7609 # Insert the option either (1) after the last *FLAGS variable, or
7610 # (2) before a word containing "conftest.", or (3) at the end.
7611 # Note that $ac_compile itself does not contain backslashes and begins
7612 # with a dollar sign (not a hyphen), so the echo should work correctly.
7613 # The option is referenced via a variable to avoid confusing sed.
7614 lt_compile
=`echo "$ac_compile" | $SED \
7615 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7616 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7617 -e 's:$: $lt_compiler_flag:'`
7618 (eval echo "\"\$as_me:7618: $lt_compile\"" >&5)
7619 (eval "$lt_compile" 2>conftest.err
)
7621 cat conftest.err
>&5
7622 echo "$as_me:7622: \$? = $ac_status" >&5
7623 if (exit $ac_status) && test -s "$ac_outfile"; then
7624 # The compiler can only warn and ignore the option if not recognized
7625 # So say no if there are warnings other than the usual output.
7626 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7627 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7628 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7629 lt_cv_prog_compiler_rtti_exceptions
=yes
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7636 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7638 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
7639 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7651 lt_prog_compiler_wl
=
7652 lt_prog_compiler_pic
=
7653 lt_prog_compiler_static
=
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7656 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7658 if test "$GCC" = yes; then
7659 lt_prog_compiler_wl
='-Wl,'
7660 lt_prog_compiler_static
='-static'
7664 # All AIX code is PIC.
7665 if test "$host_cpu" = ia64
; then
7666 # AIX 5 now supports IA64 processor
7667 lt_prog_compiler_static
='-Bstatic'
7674 # see comment about AmigaOS4 .so support
7675 lt_prog_compiler_pic
='-fPIC'
7678 # FIXME: we need at least 68020 code to build shared libraries, but
7679 # adding the `-m68020' flag to GCC prevents building anything better,
7681 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
7686 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
7687 # PIC is the default for these OSes.
7690 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
7691 # This hack is so that the source file can tell whether it is being
7692 # built for inclusion in a dll (and should export symbols for example).
7693 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7694 # (--disable-auto-import) libraries
7695 lt_prog_compiler_pic
='-DDLL_EXPORT'
7698 darwin
* | rhapsody
*)
7699 # PIC is the default on this platform
7700 # Common symbols not allowed in MH_DYLIB files
7701 lt_prog_compiler_pic
='-fno-common'
7705 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7706 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7707 # sets the default TLS model and affects inlining.
7713 lt_prog_compiler_pic
='-fPIC'
7719 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7720 # Instead, we relocate shared libraries at runtime.
7724 # Just because we use GCC doesn't mean we suddenly get shared libraries
7725 # on systems that don't support them.
7726 lt_prog_compiler_can_build_shared
=no
7731 # QNX uses GNU C++, but need to define -shared option too, otherwise
7733 lt_prog_compiler_pic
='-fPIC -shared'
7737 if test -d /usr
/nec
; then
7738 lt_prog_compiler_pic
=-Kconform_pic
7743 lt_prog_compiler_pic
='-fPIC'
7747 # PORTME Check for flag to pass linker flags through the system compiler.
7750 lt_prog_compiler_wl
='-Wl,'
7751 if test "$host_cpu" = ia64
; then
7752 # AIX 5 now supports IA64 processor
7753 lt_prog_compiler_static
='-Bstatic'
7755 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
7759 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
7760 # This hack is so that the source file can tell whether it is being
7761 # built for inclusion in a dll (and should export symbols for example).
7762 lt_prog_compiler_pic
='-DDLL_EXPORT'
7765 hpux9
* | hpux10
* | hpux11
*)
7766 lt_prog_compiler_wl
='-Wl,'
7767 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7774 lt_prog_compiler_pic
='+Z'
7777 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7778 lt_prog_compiler_static
='${wl}-a ${wl}archive'
7781 irix5
* | irix6
* | nonstopux
*)
7782 lt_prog_compiler_wl
='-Wl,'
7783 # PIC (with -KPIC) is the default.
7784 lt_prog_compiler_static
='-non_shared'
7787 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
7788 case $cc_basename in
7789 # old Intel for x86_64 which still supported -KPIC.
7791 lt_prog_compiler_wl
='-Wl,'
7792 lt_prog_compiler_pic
='-KPIC'
7793 lt_prog_compiler_static
='-static'
7795 # icc used to be incompatible with GCC.
7796 # ICC 10 doesn't accept -KPIC any more.
7798 lt_prog_compiler_wl
='-Wl,'
7799 lt_prog_compiler_pic
='-fPIC'
7800 lt_prog_compiler_static
='-static'
7802 # Lahey Fortran 8.1.
7804 lt_prog_compiler_wl
='-Wl,'
7805 lt_prog_compiler_pic
='--shared'
7806 lt_prog_compiler_static
='--static'
7808 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
7809 # Portland Group compilers (*not* the Pentium gcc compiler,
7810 # which looks to be a dead project)
7811 lt_prog_compiler_wl
='-Wl,'
7812 lt_prog_compiler_pic
='-fpic'
7813 lt_prog_compiler_static
='-Bstatic'
7816 lt_prog_compiler_wl
='-Wl,'
7817 # All Alpha code is PIC.
7818 lt_prog_compiler_static
='-non_shared'
7821 # IBM XL C 8.0/Fortran 10.1 on PPC
7822 lt_prog_compiler_wl
='-Wl,'
7823 lt_prog_compiler_pic
='-qpic'
7824 lt_prog_compiler_static
='-qstaticlink'
7827 case `$CC -V 2>&1 | sed 5q` in
7830 lt_prog_compiler_pic
='-KPIC'
7831 lt_prog_compiler_static
='-Bstatic'
7832 lt_prog_compiler_wl
='-Wl,'
7835 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7836 lt_prog_compiler_pic
='-KPIC'
7837 lt_prog_compiler_static
='-Bstatic'
7838 lt_prog_compiler_wl
=''
7846 lt_prog_compiler_pic
='-KPIC'
7847 lt_prog_compiler_static
='-Bstatic'
7851 # QNX uses GNU C++, but need to define -shared option too, otherwise
7853 lt_prog_compiler_pic
='-fPIC -shared'
7856 osf3
* | osf4
* | osf5
*)
7857 lt_prog_compiler_wl
='-Wl,'
7858 # All OSF/1 code is PIC.
7859 lt_prog_compiler_static
='-non_shared'
7863 lt_prog_compiler_static
='-non_shared'
7867 lt_prog_compiler_pic
='-KPIC'
7868 lt_prog_compiler_static
='-Bstatic'
7869 case $cc_basename in
7871 lt_prog_compiler_wl
='-Qoption ld ';;
7873 lt_prog_compiler_wl
='-Wl,';;
7878 lt_prog_compiler_wl
='-Qoption ld '
7879 lt_prog_compiler_pic
='-PIC'
7880 lt_prog_compiler_static
='-Bstatic'
7883 sysv4 | sysv4.2uw2
* | sysv4.3
*)
7884 lt_prog_compiler_wl
='-Wl,'
7885 lt_prog_compiler_pic
='-KPIC'
7886 lt_prog_compiler_static
='-Bstatic'
7890 if test -d /usr
/nec
;then
7891 lt_prog_compiler_pic
='-Kconform_pic'
7892 lt_prog_compiler_static
='-Bstatic'
7896 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
7897 lt_prog_compiler_wl
='-Wl,'
7898 lt_prog_compiler_pic
='-KPIC'
7899 lt_prog_compiler_static
='-Bstatic'
7903 lt_prog_compiler_wl
='-Wl,'
7904 lt_prog_compiler_can_build_shared
=no
7908 lt_prog_compiler_pic
='-pic'
7909 lt_prog_compiler_static
='-Bstatic'
7913 lt_prog_compiler_can_build_shared
=no
7919 # For platforms which do not support PIC, -DPIC is meaningless:
7921 lt_prog_compiler_pic
=
7924 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7928 $as_echo "$lt_prog_compiler_pic" >&6; }
7936 # Check to make sure the PIC flag actually works.
7938 if test -n "$lt_prog_compiler_pic"; then
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7940 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7941 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7942 $as_echo_n "(cached) " >&6
7944 lt_cv_prog_compiler_pic_works
=no
7945 ac_outfile
=conftest.
$ac_objext
7946 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7947 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
7948 # Insert the option either (1) after the last *FLAGS variable, or
7949 # (2) before a word containing "conftest.", or (3) at the end.
7950 # Note that $ac_compile itself does not contain backslashes and begins
7951 # with a dollar sign (not a hyphen), so the echo should work correctly.
7952 # The option is referenced via a variable to avoid confusing sed.
7953 lt_compile
=`echo "$ac_compile" | $SED \
7954 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7955 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7956 -e 's:$: $lt_compiler_flag:'`
7957 (eval echo "\"\$as_me:7957: $lt_compile\"" >&5)
7958 (eval "$lt_compile" 2>conftest.err
)
7960 cat conftest.err
>&5
7961 echo "$as_me:7961: \$? = $ac_status" >&5
7962 if (exit $ac_status) && test -s "$ac_outfile"; then
7963 # The compiler can only warn and ignore the option if not recognized
7964 # So say no if there are warnings other than the usual output.
7965 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7966 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7967 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7968 lt_cv_prog_compiler_pic_works
=yes
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7975 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7977 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
7978 case $lt_prog_compiler_pic in
7980 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
7983 lt_prog_compiler_pic
=
7984 lt_prog_compiler_can_build_shared
=no
7995 # Check to make sure the static flag actually works.
7997 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7999 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8000 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8001 $as_echo_n "(cached) " >&6
8003 lt_cv_prog_compiler_static_works
=no
8004 save_LDFLAGS
="$LDFLAGS"
8005 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
8006 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
8007 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
8008 # The linker can only warn and ignore the option if not recognized
8009 # So say no if there are warnings
8010 if test -s conftest.err
; then
8011 # Append any errors to the config.log.
8012 cat conftest.err
1>&5
8013 $ECHO "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
8014 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
8015 if diff conftest.exp conftest.er2
>/dev
/null
; then
8016 lt_cv_prog_compiler_static_works
=yes
8019 lt_cv_prog_compiler_static_works
=yes
8023 LDFLAGS
="$save_LDFLAGS"
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8027 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8029 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
8032 lt_prog_compiler_static
=
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8042 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8043 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8044 $as_echo_n "(cached) " >&6
8046 lt_cv_prog_compiler_c_o
=no
8047 $RM -r conftest
2>/dev
/null
8051 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8053 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8054 # Insert the option either (1) after the last *FLAGS variable, or
8055 # (2) before a word containing "conftest.", or (3) at the end.
8056 # Note that $ac_compile itself does not contain backslashes and begins
8057 # with a dollar sign (not a hyphen), so the echo should work correctly.
8058 lt_compile
=`echo "$ac_compile" | $SED \
8059 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8060 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8061 -e 's:$: $lt_compiler_flag:'`
8062 (eval echo "\"\$as_me:8062: $lt_compile\"" >&5)
8063 (eval "$lt_compile" 2>out
/conftest.err
)
8065 cat out
/conftest.err
>&5
8066 echo "$as_me:8066: \$? = $ac_status" >&5
8067 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8069 # The compiler can only warn and ignore the option if not recognized
8070 # So say no if there are warnings
8071 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
8072 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8073 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8074 lt_cv_prog_compiler_c_o
=yes
8079 # SGI C++ compiler will create directory out/ii_files/ for
8080 # template instantiation
8081 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8082 $RM out
/* && rmdir out
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8089 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8097 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8098 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8099 $as_echo_n "(cached) " >&6
8101 lt_cv_prog_compiler_c_o
=no
8102 $RM -r conftest
2>/dev
/null
8106 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8108 lt_compiler_flag
="-o out/conftest2.$ac_objext"
8109 # Insert the option either (1) after the last *FLAGS variable, or
8110 # (2) before a word containing "conftest.", or (3) at the end.
8111 # Note that $ac_compile itself does not contain backslashes and begins
8112 # with a dollar sign (not a hyphen), so the echo should work correctly.
8113 lt_compile
=`echo "$ac_compile" | $SED \
8114 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8115 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8116 -e 's:$: $lt_compiler_flag:'`
8117 (eval echo "\"\$as_me:8117: $lt_compile\"" >&5)
8118 (eval "$lt_compile" 2>out
/conftest.err
)
8120 cat out
/conftest.err
>&5
8121 echo "$as_me:8121: \$? = $ac_status" >&5
8122 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
8124 # The compiler can only warn and ignore the option if not recognized
8125 # So say no if there are warnings
8126 $ECHO "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
8127 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
8128 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
8129 lt_cv_prog_compiler_c_o
=yes
8134 # SGI C++ compiler will create directory out/ii_files/ for
8135 # template instantiation
8136 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
8137 $RM out
/* && rmdir out
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8144 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8149 hard_links
="nottested"
8150 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
8151 # do not overwrite the value of need_locks provided by the user
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8153 $as_echo_n "checking if we can lock with hard links... " >&6; }
8156 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8158 ln conftest.a conftest.b
2>&5 || hard_links
=no
8159 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8161 $as_echo "$hard_links" >&6; }
8162 if test "$hard_links" = no
; then
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8164 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8177 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8180 allow_undefined_flag
=
8181 always_export_symbols
=no
8183 archive_expsym_cmds
=
8184 compiler_needs_object
=no
8185 enable_shared_with_static_runtimes
=no
8186 export_dynamic_flag_spec
=
8187 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8188 hardcode_automatic
=no
8190 hardcode_direct_absolute
=no
8191 hardcode_libdir_flag_spec
=
8192 hardcode_libdir_flag_spec_ld
=
8193 hardcode_libdir_separator
=
8195 hardcode_shlibpath_var
=unsupported
8197 link_all_deplibs
=unknown
8200 old_archive_from_new_cmds
=
8201 old_archive_from_expsyms_cmds
=
8202 thread_safe_flag_spec
=
8203 whole_archive_flag_spec
=
8204 # include_expsyms should be a list of space-separated symbols to be *always*
8205 # included in the symbol list
8207 # exclude_expsyms can be an extended regexp of symbols to exclude
8208 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8209 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8210 # as well as any symbol that contains `d'.
8211 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8212 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8213 # platforms (ab)use it in PIC code, but their linkers get confused if
8214 # the symbol is explicitly referenced. Since portable code cannot
8215 # rely on this symbol name, it's probably fine to never include it in
8216 # preloaded symbol tables.
8217 # Exclude shared library initialization/finalization symbols.
8218 extract_expsyms_cmds
=
8221 cygwin
* | mingw
* | pw32
* | cegcc
*)
8222 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8223 # When not using gcc, we currently assume that we are using
8224 # Microsoft Visual C++.
8225 if test "$GCC" != yes; then
8230 # we just hope/assume this is gcc and not c89 (= MSVC++)
8236 linux
* | k
*bsd
*-gnu)
8242 if test "$with_gnu_ld" = yes; then
8243 # If archive_cmds runs LD, not CC, wlarc should be empty
8246 # Set some defaults for GNU ld with shared library support. These
8247 # are reset later if shared libraries are not supported. Putting them
8248 # here allows them to be overridden if necessary.
8249 runpath_var
=LD_RUN_PATH
8250 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8251 export_dynamic_flag_spec
='${wl}--export-dynamic'
8252 # ancient GNU ld didn't support --whole-archive et. al.
8253 if $LD --help 2>&1 |
$GREP 'no-whole-archive' > /dev
/null
; then
8254 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8256 whole_archive_flag_spec
=
8258 supports_anon_versioning
=no
8259 case `$LD -v 2>&1` in
8260 *GNU\ gold
*) supports_anon_versioning
=yes ;;
8261 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
8262 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
8263 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
8264 *\
2.11.
*) ;; # other 2.11 versions
8265 *) supports_anon_versioning
=yes ;;
8268 # See if GNU ld supports shared libraries.
8271 # On AIX/PPC, the GNU linker is very broken
8272 if test "$host_cpu" != ia64
; then
8276 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8277 *** to be unable to reliably create shared libraries on AIX.
8278 *** Therefore, libtool is disabling shared libraries support. If you
8279 *** really care for shared libraries, you may want to modify your PATH
8280 *** so that a non-GNU linker is found, and then restart.
8289 # see comment about AmigaOS4 .so support
8290 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8291 archive_expsym_cmds
=''
8294 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)'
8295 hardcode_libdir_flag_spec
='-L$libdir'
8296 hardcode_minus_L
=yes
8302 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8303 allow_undefined_flag
=unsupported
8304 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8305 # support --undefined. This deserves some investigation. FIXME
8306 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8312 cygwin
* | mingw
* | pw32
* | cegcc
*)
8313 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8314 # as there is no search path for DLLs.
8315 hardcode_libdir_flag_spec
='-L$libdir'
8316 allow_undefined_flag
=unsupported
8317 always_export_symbols
=no
8318 enable_shared_with_static_runtimes
=yes
8319 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8321 if $LD --help 2>&1 |
$GREP 'auto-import' > /dev
/null
; then
8322 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8323 # If the export-symbols file already is a .def file (1st line
8324 # is EXPORTS), use it as is; otherwise, prepend...
8325 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8326 cp $export_symbols $output_objdir/$soname.def;
8328 echo EXPORTS > $output_objdir/$soname.def;
8329 cat $export_symbols >> $output_objdir/$soname.def;
8331 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8339 hardcode_shlibpath_var
=no
8340 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8341 export_dynamic_flag_spec
='${wl}-E'
8342 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8343 # Instead, shared libraries are loaded at an image base (0x10000000 by
8344 # default) and relocated if they conflict, which is a slow very memory
8345 # consuming and fragmenting process. To avoid this, we pick a random,
8346 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8347 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8348 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8349 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'
8352 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
8354 if test "$host_os" = linux-dietlibc
; then
8355 case $cc_basename in
8356 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
8359 if $LD --help 2>&1 |
$EGREP ': supported targets:.* elf' > /dev
/null \
8360 && test "$tmp_diet" = no
8363 tmp_sharedflag
='-shared'
8364 case $cc_basename,$host_cpu in
8365 pgcc
*) # Portland Group C compiler
8366 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8367 tmp_addflag
=' $pic_flag'
8369 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
8370 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8371 tmp_addflag
=' $pic_flag -Mnomain' ;;
8372 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8373 tmp_addflag
=' -i_dynamic' ;;
8374 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8375 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8376 ifc
* | ifort
*) # Intel Fortran compiler
8377 tmp_addflag
=' -nofor_main' ;;
8378 lf95
*) # Lahey Fortran 8.1
8379 whole_archive_flag_spec
=
8380 tmp_sharedflag
='--shared' ;;
8381 xl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8382 tmp_sharedflag
='-qmkshrobj'
8385 case `$CC -V 2>&1 | sed 5q` in
8386 *Sun\ C
*) # Sun C 5.9
8387 whole_archive_flag_spec
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8388 compiler_needs_object
=yes
8389 tmp_sharedflag
='-G' ;;
8390 *Sun\ F
*) # Sun Fortran 8.3
8391 tmp_sharedflag
='-G' ;;
8393 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8395 if test "x$supports_anon_versioning" = xyes
; then
8396 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8397 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8398 echo "local: *; };" >> $output_objdir/$libname.ver~
8399 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8402 case $cc_basename in
8404 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8405 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
8406 hardcode_libdir_flag_spec
=
8407 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8408 archive_cmds
='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8409 if test "x$supports_anon_versioning" = xyes
; then
8410 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
8411 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8412 echo "local: *; };" >> $output_objdir/$libname.ver~
8413 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8422 netbsd
* | netbsdelf
*-gnu)
8423 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
8424 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8427 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8428 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8433 if $LD -v 2>&1 |
$GREP 'BFD 2\.8' > /dev
/null
; then
8437 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8438 *** create shared libraries on Solaris systems. Therefore, libtool
8439 *** is disabling shared libraries support. We urge you to upgrade GNU
8440 *** binutils to release 2.9.1 or newer. Another option is to modify
8441 *** your PATH or compiler configuration so that the native linker is
8442 *** used, and then restart.
8445 elif $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8446 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8447 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8453 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8454 case `$LD -v 2>&1` in
8455 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
8459 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8460 *** reliably create shared libraries on SCO systems. Therefore, libtool
8461 *** is disabling shared libraries support. We urge you to upgrade GNU
8462 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8463 *** your PATH or compiler configuration so that the native linker is
8464 *** used, and then restart.
8469 # For security reasons, it is highly recommended that you always
8470 # use absolute paths for naming shared libraries, and exclude the
8471 # DT_RUNPATH tag from executables and libraries. But doing so
8472 # requires that you compile everything twice, which is a pain.
8473 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8474 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8475 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8476 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8485 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8488 hardcode_shlibpath_var
=no
8492 if $LD --help 2>&1 |
$GREP ': supported targets:.* elf' > /dev
/null
; then
8493 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8494 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8501 if test "$ld_shlibs" = no
; then
8503 hardcode_libdir_flag_spec
=
8504 export_dynamic_flag_spec
=
8505 whole_archive_flag_spec
=
8508 # PORTME fill in a description of your system's linker (not GNU ld)
8511 allow_undefined_flag
=unsupported
8512 always_export_symbols
=yes
8513 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'
8514 # Note: this linker hardcodes the directories in LIBPATH if there
8515 # are no directories specified by -L.
8516 hardcode_minus_L
=yes
8517 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8518 # Neither direct hardcoding nor static linking is supported with a
8520 hardcode_direct
=unsupported
8525 if test "$host_cpu" = ia64
; then
8526 # On IA64, the linker does run time linking by default, so we don't
8527 # have to do anything special.
8528 aix_use_runtimelinking
=no
8529 exp_sym_flag
='-Bexport'
8532 # If we're using GNU nm, then we don't want the "-C" option.
8533 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8534 if $NM -V 2>&1 |
$GREP 'GNU' > /dev
/null
; then
8535 export_symbols_cmds
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8537 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'
8539 aix_use_runtimelinking
=no
8541 # Test if we are trying to use run time linking or normal
8542 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8543 # need to do runtime linking.
8544 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
8545 for ld_flag
in $LDFLAGS; do
8546 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
8547 aix_use_runtimelinking
=yes
8554 exp_sym_flag
='-bexport'
8555 no_entry_flag
='-bnoentry'
8558 # When large executables or shared objects are built, AIX ld can
8559 # have problems creating the table of contents. If linking a library
8560 # or program results in "error TOC overflow" add -mminimal-toc to
8561 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8562 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8566 hardcode_direct_absolute
=yes
8567 hardcode_libdir_separator
=':'
8568 link_all_deplibs
=yes
8569 file_list_spec
='${wl}-f,'
8571 if test "$GCC" = yes; then
8572 case $host_os in aix4.
[012]|aix4.
[012].
*)
8573 # We only want to do this on AIX 4.2 and lower, the check
8574 # below for broken collect2 doesn't work under 4.3+
8575 collect2name
=`${CC} -print-prog-name=collect2`
8576 if test -f "$collect2name" &&
8577 strings "$collect2name" |
$GREP resolve_lib_name
>/dev
/null
8579 # We have reworked collect2
8582 # We have old collect2
8583 hardcode_direct
=unsupported
8584 # It fails to find uninstalled libraries when the uninstalled
8585 # path is not listed in the libpath. Setting hardcode_minus_L
8586 # to unsupported forces relinking
8587 hardcode_minus_L
=yes
8588 hardcode_libdir_flag_spec
='-L$libdir'
8589 hardcode_libdir_separator
=
8593 shared_flag
='-shared'
8594 if test "$aix_use_runtimelinking" = yes; then
8595 shared_flag
="$shared_flag "'${wl}-G'
8600 if test "$host_cpu" = ia64
; then
8601 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8602 # chokes on -Wl,-G. The following line is correct:
8605 if test "$aix_use_runtimelinking" = yes; then
8606 shared_flag
='${wl}-G'
8608 shared_flag
='${wl}-bM:SRE'
8613 export_dynamic_flag_spec
='${wl}-bexpall'
8614 # It seems that -bexpall does not export symbols beginning with
8615 # underscore (_), so it is better to generate a list of symbols to export.
8616 always_export_symbols
=yes
8617 if test "$aix_use_runtimelinking" = yes; then
8618 # Warning - without using the other runtime loading flags (-brtl),
8619 # -berok will link without error, but may produce a broken library.
8620 allow_undefined_flag
='-berok'
8621 # Determine the default libpath from the value encoded in an
8623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8624 /* end confdefs.h. */
8634 if ac_fn_c_try_link
"$LINENO"; then :
8636 lt_aix_libpath_sed
='
8637 /Import File Strings/,/^$/ {
8643 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8644 # Check for a 64-bit object if we didn't find anything.
8645 if test -z "$aix_libpath"; then
8646 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8649 rm -f core conftest.err conftest.
$ac_objext \
8650 conftest
$ac_exeext conftest.
$ac_ext
8651 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
8653 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
8654 archive_expsym_cmds
='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8656 if test "$host_cpu" = ia64
; then
8657 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
8658 allow_undefined_flag
="-z nodefs"
8659 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"
8661 # Determine the default libpath from the value encoded in an
8663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8664 /* end confdefs.h. */
8674 if ac_fn_c_try_link
"$LINENO"; then :
8676 lt_aix_libpath_sed
='
8677 /Import File Strings/,/^$/ {
8683 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8684 # Check for a 64-bit object if we didn't find anything.
8685 if test -z "$aix_libpath"; then
8686 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8689 rm -f core conftest.err conftest.
$ac_objext \
8690 conftest
$ac_exeext conftest.
$ac_ext
8691 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
8693 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
8694 # Warning - without using the other run time loading flags,
8695 # -berok will link without error, but may produce a broken library.
8696 no_undefined_flag
=' ${wl}-bernotok'
8697 allow_undefined_flag
=' ${wl}-berok'
8698 # Exported symbols can be pulled into shared objects from archives
8699 whole_archive_flag_spec
='$convenience'
8700 archive_cmds_need_lc
=yes
8701 # This is similar to how AIX traditionally builds its shared libraries.
8702 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'
8710 # see comment about AmigaOS4 .so support
8711 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8712 archive_expsym_cmds
=''
8715 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)'
8716 hardcode_libdir_flag_spec
='-L$libdir'
8717 hardcode_minus_L
=yes
8723 export_dynamic_flag_spec
=-rdynamic
8726 cygwin
* | mingw
* | pw32
* | cegcc
*)
8727 # When not using gcc, we currently assume that we are using
8728 # Microsoft Visual C++.
8729 # hardcode_libdir_flag_spec is actually meaningless, as there is
8730 # no search path for DLLs.
8731 hardcode_libdir_flag_spec
=' '
8732 allow_undefined_flag
=unsupported
8733 # Tell ltmain to make .lib files, not .a files.
8735 # Tell ltmain to make .dll files, not .so files.
8737 # FIXME: Setting linknames here is a bad hack.
8738 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8739 # The linker will automatically build a .lib file if we build a DLL.
8740 old_archive_from_new_cmds
='true'
8741 # FIXME: Should let the user specify the lib program.
8742 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
8743 fix_srcfile_path
='`cygpath -w "$srcfile"`'
8744 enable_shared_with_static_runtimes
=yes
8747 darwin
* | rhapsody
*)
8750 archive_cmds_need_lc
=no
8752 hardcode_automatic
=yes
8753 hardcode_shlibpath_var
=unsupported
8754 whole_archive_flag_spec
=''
8755 link_all_deplibs
=yes
8756 allow_undefined_flag
="$_lt_dar_allow_undefined"
8757 case $cc_basename in
8758 ifort
*) _lt_dar_can_shared
=yes ;;
8759 *) _lt_dar_can_shared
=$GCC ;;
8761 if test "$_lt_dar_can_shared" = "yes"; then
8762 output_verbose_link_cmd
=echo
8763 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8764 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8765 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}"
8766 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}"
8775 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8776 hardcode_libdir_flag_spec
='-L$libdir'
8777 hardcode_shlibpath_var
=no
8784 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8785 # support. Future versions do this automatically, but an explicit c++rt0.o
8786 # does not break anything, and helps significantly (at the cost of a little
8789 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8790 hardcode_libdir_flag_spec
='-R$libdir'
8792 hardcode_shlibpath_var
=no
8795 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8797 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8799 hardcode_minus_L
=yes
8800 hardcode_shlibpath_var
=no
8803 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8804 freebsd
* | dragonfly
*)
8805 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8806 hardcode_libdir_flag_spec
='-R$libdir'
8808 hardcode_shlibpath_var
=no
8812 if test "$GCC" = yes; then
8813 archive_cmds
='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8815 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'
8817 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8818 hardcode_libdir_separator
=:
8821 # hardcode_minus_L: Not really in the search PATH,
8822 # but as the default location of the library.
8823 hardcode_minus_L
=yes
8824 export_dynamic_flag_spec
='${wl}-E'
8828 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8829 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8831 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8833 if test "$with_gnu_ld" = no
; then
8834 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8835 hardcode_libdir_flag_spec_ld
='+b $libdir'
8836 hardcode_libdir_separator
=:
8838 hardcode_direct_absolute
=yes
8839 export_dynamic_flag_spec
='${wl}-E'
8840 # hardcode_minus_L: Not really in the search PATH,
8841 # but as the default location of the library.
8842 hardcode_minus_L
=yes
8847 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8850 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8853 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8856 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8862 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8865 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8868 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8872 if test "$with_gnu_ld" = no
; then
8873 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8874 hardcode_libdir_separator
=:
8879 hardcode_shlibpath_var
=no
8883 hardcode_direct_absolute
=yes
8884 export_dynamic_flag_spec
='${wl}-E'
8886 # hardcode_minus_L: Not really in the search PATH,
8887 # but as the default location of the library.
8888 hardcode_minus_L
=yes
8894 irix5
* | irix6
* | nonstopux
*)
8895 if test "$GCC" = yes; then
8896 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8897 # Try to use the -exported_symbol ld option, if it does not
8898 # work, assume that -exports_file does not work either and
8899 # implicitly export all symbols.
8900 save_LDFLAGS
="$LDFLAGS"
8901 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8903 /* end confdefs.h. */
8906 if ac_fn_c_try_link
"$LINENO"; then :
8907 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
8910 rm -f core conftest.err conftest.
$ac_objext \
8911 conftest
$ac_exeext conftest.
$ac_ext
8912 LDFLAGS
="$save_LDFLAGS"
8914 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8915 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
8917 archive_cmds_need_lc
='no'
8918 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8919 hardcode_libdir_separator
=:
8921 link_all_deplibs
=yes
8924 netbsd
* | netbsdelf
*-gnu)
8925 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
8926 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8928 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8930 hardcode_libdir_flag_spec
='-R$libdir'
8932 hardcode_shlibpath_var
=no
8936 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8938 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8939 hardcode_libdir_separator
=:
8940 hardcode_shlibpath_var
=no
8947 if test -f /usr
/libexec
/ld.so
; then
8949 hardcode_shlibpath_var
=no
8950 hardcode_direct_absolute
=yes
8951 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8952 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8953 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8954 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8955 export_dynamic_flag_spec
='${wl}-E'
8958 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
8959 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8960 hardcode_libdir_flag_spec
='-R$libdir'
8963 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8964 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8974 hardcode_libdir_flag_spec
='-L$libdir'
8975 hardcode_minus_L
=yes
8976 allow_undefined_flag
=unsupported
8977 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'
8978 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8982 if test "$GCC" = yes; then
8983 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8984 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8986 allow_undefined_flag
=' -expect_unresolved \*'
8987 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
8989 archive_cmds_need_lc
='no'
8990 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8991 hardcode_libdir_separator
=:
8994 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
8995 if test "$GCC" = yes; then
8996 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8997 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8998 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9000 allow_undefined_flag
=' -expect_unresolved \*'
9001 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9002 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~
9003 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9005 # Both c and cxx compiler support -rpath directly
9006 hardcode_libdir_flag_spec
='-rpath $libdir'
9008 archive_cmds_need_lc
='no'
9009 hardcode_libdir_separator
=:
9013 no_undefined_flag
=' -z defs'
9014 if test "$GCC" = yes; then
9016 archive_cmds
='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9017 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9018 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9020 case `$CC -V 2>&1` in
9023 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9024 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9025 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9029 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9030 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9031 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9035 hardcode_libdir_flag_spec
='-R$libdir'
9036 hardcode_shlibpath_var
=no
9038 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
9040 # The compiler driver will combine and reorder linker options,
9041 # but understands `-z linker_flag'. GCC discards it without `$wl',
9042 # but is careful enough not to reorder.
9043 # Supported since Solaris 2.6 (maybe 2.5.1?)
9044 if test "$GCC" = yes; then
9045 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9047 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
9051 link_all_deplibs
=yes
9055 if test "x$host_vendor" = xsequent
; then
9056 # Use $CC to link under sequent, because it throws in some extra .o
9057 # files that make .init and .fini sections work.
9058 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9060 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9062 hardcode_libdir_flag_spec
='-L$libdir'
9064 hardcode_minus_L
=yes
9065 hardcode_shlibpath_var
=no
9069 case $host_vendor in
9071 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9072 hardcode_direct
=yes # is this really true???
9075 ## LD is ld it makes a PLAMLIB
9076 ## CC just makes a GrossModule.
9077 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9078 reload_cmds
='$CC -r -o $output$reload_objs'
9082 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9083 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
9086 runpath_var
='LD_RUN_PATH'
9087 hardcode_shlibpath_var
=no
9091 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9092 hardcode_shlibpath_var
=no
9093 export_dynamic_flag_spec
='-Bexport'
9097 if test -d /usr
/nec
; then
9098 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9099 hardcode_shlibpath_var
=no
9100 runpath_var
=LD_RUN_PATH
9101 hardcode_runpath_var
=yes
9106 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
9107 no_undefined_flag
='${wl}-z,text'
9108 archive_cmds_need_lc
=no
9109 hardcode_shlibpath_var
=no
9110 runpath_var
='LD_RUN_PATH'
9112 if test "$GCC" = yes; then
9113 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9114 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9116 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9117 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9121 sysv5
* | sco3.2v5
* | sco5v6
*)
9122 # Note: We can NOT use -z defs as we might desire, because we do not
9123 # link with -lc, and that would cause any symbols used from libc to
9124 # always be unresolved, which means just about no library would
9125 # ever link correctly. If we're not using GNU ld we use -z text
9126 # though, which does catch some bad symbols but isn't as heavy-handed
9128 no_undefined_flag
='${wl}-z,text'
9129 allow_undefined_flag
='${wl}-z,nodefs'
9130 archive_cmds_need_lc
=no
9131 hardcode_shlibpath_var
=no
9132 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
9133 hardcode_libdir_separator
=':'
9134 link_all_deplibs
=yes
9135 export_dynamic_flag_spec
='${wl}-Bexport'
9136 runpath_var
='LD_RUN_PATH'
9138 if test "$GCC" = yes; then
9139 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9140 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9142 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9143 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9148 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9149 hardcode_libdir_flag_spec
='-L$libdir'
9150 hardcode_shlibpath_var
=no
9158 if test x
$host_vendor = xsni
; then
9160 sysv4 | sysv4.2uw2
* | sysv4.3
* | sysv5
*)
9161 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9168 $as_echo "$ld_shlibs" >&6; }
9169 test "$ld_shlibs" = no
&& can_build_shared
=no
9171 with_gnu_ld
=$with_gnu_ld
9188 # Do we need to explicitly link libc?
9190 case "x$archive_cmds_need_lc" in
9192 # Assume -lc should be added
9193 archive_cmds_need_lc
=yes
9195 if test "$enable_shared" = yes && test "$GCC" = yes; then
9196 case $archive_cmds in
9198 # FIXME: we may have to deal with multi-command sequences.
9201 # Test whether the compiler implicitly links with -lc since on some
9202 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9203 # to ld, don't add -lc before -lgcc.
9204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9205 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9207 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9210 (eval $ac_compile) 2>&5
9212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9213 test $ac_status = 0; } 2>conftest.err
; then
9216 libobjs
=conftest.
$ac_objext
9218 wl
=$lt_prog_compiler_wl
9219 pic_flag
=$lt_prog_compiler_pic
9225 lt_save_allow_undefined_flag
=$allow_undefined_flag
9226 allow_undefined_flag
=
9227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9228 (eval $archive_cmds 2\
>\
&1 \|
$GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
9230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9231 test $ac_status = 0; }
9233 archive_cmds_need_lc
=no
9235 archive_cmds_need_lc
=yes
9237 allow_undefined_flag
=$lt_save_allow_undefined_flag
9239 cat conftest.err
1>&5
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9243 $as_echo "$archive_cmds_need_lc" >&6; }
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9407 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9409 if test "$GCC" = yes; then
9411 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
9412 *) lt_awk_arg
="/^libraries:/" ;;
9414 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9415 if $ECHO "$lt_search_path_spec" |
$GREP ';' >/dev
/null
; then
9416 # if the path contains ";" then we assume it to be the separator
9417 # otherwise default to the standard path separator (i.e. ":") - it is
9418 # assumed that no part of a normal pathname contains ";" but that should
9419 # okay in the real world where ";" in dirpaths is itself problematic.
9420 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9422 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9424 # Ok, now we have the path, separated by spaces, we can step through it
9425 # and add multilib dir if necessary.
9426 lt_tmp_lt_search_path_spec
=
9427 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9428 for lt_sys_path
in $lt_search_path_spec; do
9429 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9430 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9432 test -d "$lt_sys_path" && \
9433 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
9436 lt_search_path_spec
=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9437 BEGIN {RS=" "; FS="/|\n";} {
9440 for (lt_i = NF; lt_i > 0; lt_i--) {
9441 if ($lt_i != "" && $lt_i != ".") {
9442 if ($lt_i == "..") {
9445 if (lt_count == 0) {
9446 lt_foo="/" $lt_i lt_foo;
9453 if (lt_foo != "") { lt_freq[lt_foo]++; }
9454 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9456 sys_lib_search_path_spec
=`$ECHO $lt_search_path_spec`
9458 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
9461 libname_spec
='lib$name'
9469 shlibpath_overrides_runpath
=unknown
9471 dynamic_linker
="$host_os ld.so"
9472 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
9473 need_lib_prefix
=unknown
9474 hardcode_into_libs
=no
9476 # when you set need_version to no, make sure it does not cause -set_version
9477 # flags to be left without arguments
9478 need_version
=unknown
9483 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
9484 shlibpath_var
=LIBPATH
9486 # AIX 3 has no versioning support, so we append a major version to the name.
9487 soname_spec
='${libname}${release}${shared_ext}$major'
9494 hardcode_into_libs
=yes
9495 if test "$host_cpu" = ia64
; then
9496 # AIX 5 supports IA64
9497 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9498 shlibpath_var
=LD_LIBRARY_PATH
9500 # With GCC up to 2.95.x, collect2 would create an import file
9501 # for dependence libraries. The import file would start with
9502 # the line `#! .'. This would cause the generated library to
9503 # depend on `.', always an invalid library. This was fixed in
9504 # development snapshots of GCC prior to 3.0.
9506 aix4 | aix4.
[01] | aix4.
[01].
*)
9507 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9509 echo '#endif'; } |
${CC} -E - |
$GREP yes > /dev
/null
; then
9516 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9517 # soname into executable. Probably we can add versioning support to
9518 # collect2, so additional links can be useful in future.
9519 if test "$aix_use_runtimelinking" = yes; then
9520 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9521 # instead of lib<name>.a to let people know that these are not
9522 # typical AIX shared libraries.
9523 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9525 # We preserve .a as extension for shared libraries through AIX4.2
9526 # and later when we are not doing run time linking.
9527 library_names_spec
='${libname}${release}.a $libname.a'
9528 soname_spec
='${libname}${release}${shared_ext}$major'
9530 shlibpath_var
=LIBPATH
9537 # Since July 2007 AmigaOS4 officially supports .so libraries.
9538 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9539 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9542 library_names_spec
='$libname.ixlibrary $libname.a'
9543 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9544 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
9550 library_names_spec
='${libname}${shared_ext}'
9551 dynamic_linker
="$host_os ld.so"
9552 shlibpath_var
=LIBRARY_PATH
9558 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9559 soname_spec
='${libname}${release}${shared_ext}$major'
9560 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
9561 shlibpath_var
=LD_LIBRARY_PATH
9562 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9563 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
9564 # the default ld.so.conf also contains /usr/contrib/lib and
9565 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9566 # libtool to hard-code these into programs
9569 cygwin
* | mingw
* | pw32
* | cegcc
*)
9570 version_type
=windows
9575 case $GCC,$host_os in
9576 yes,cygwin
* |
yes,mingw
* |
yes,pw32
* |
yes,cegcc
*)
9577 library_names_spec
='$libname.dll.a'
9578 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9579 postinstall_cmds
='base_file=`basename \${file}`~
9580 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9581 dldir=$destdir/`dirname \$dlpath`~
9582 test -d \$dldir || mkdir -p \$dldir~
9583 $install_prog $dir/$dlname \$dldir/$dlname~
9584 chmod a+x \$dldir/$dlname~
9585 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9586 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9588 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9589 dlpath=$dir/\$dldll~
9591 shlibpath_overrides_runpath
=yes
9595 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9596 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9597 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
9600 # MinGW DLLs use traditional 'lib' prefix
9601 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9602 sys_lib_search_path_spec
=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9603 if $ECHO "$sys_lib_search_path_spec" |
$GREP ';[c-zC-Z]:/' >/dev
/null
; then
9604 # It is most probably a Windows format PATH printed by
9605 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9606 # path with ; separators, and with drive letters. We can handle the
9607 # drive letters (cygwin fileutils understands them), so leave them,
9608 # especially as we might pass files found there to a mingw objdump,
9609 # which wouldn't understand a cygwinified path. Ahh.
9610 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9612 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9616 # pw32 DLLs use 'pw' prefix rather than 'lib'
9617 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9623 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9626 dynamic_linker
='Win32 ld.exe'
9627 # FIXME: first we should search . and the directory the executable is in
9631 darwin
* | rhapsody
*)
9632 dynamic_linker
="$host_os dyld"
9636 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9637 soname_spec
='${libname}${release}${major}$shared_ext'
9638 shlibpath_overrides_runpath
=yes
9639 shlibpath_var
=DYLD_LIBRARY_PATH
9640 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
9642 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
9643 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
9650 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9651 soname_spec
='${libname}${release}${shared_ext}$major'
9652 shlibpath_var
=LD_LIBRARY_PATH
9659 freebsd
* | dragonfly
*)
9660 # DragonFly does not have aout. When/if they implement a new
9661 # versioning mechanism, adjust this.
9662 if test -x /usr
/bin
/objformat
; then
9663 objformat
=`/usr/bin/objformat`
9666 freebsd
[123]*) objformat
=aout
;;
9670 version_type
=freebsd-
$objformat
9671 case $version_type in
9673 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9678 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9682 shlibpath_var
=LD_LIBRARY_PATH
9685 shlibpath_overrides_runpath
=yes
9687 freebsd3.
[01]* | freebsdelf3.
[01]*)
9688 shlibpath_overrides_runpath
=yes
9689 hardcode_into_libs
=yes
9691 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
9692 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
9693 shlibpath_overrides_runpath
=no
9694 hardcode_into_libs
=yes
9696 *) # from 4.6 on, and DragonFly
9697 shlibpath_overrides_runpath
=yes
9698 hardcode_into_libs
=yes
9707 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9708 soname_spec
='${libname}${release}${shared_ext}$major'
9709 shlibpath_var
=LD_LIBRARY_PATH
9710 hardcode_into_libs
=yes
9713 hpux9
* | hpux10
* | hpux11
*)
9714 # Give a soname corresponding to the major version so that dld.sl refuses to
9715 # link against other versions.
9722 hardcode_into_libs
=yes
9723 dynamic_linker
="$host_os dld.so"
9724 shlibpath_var
=LD_LIBRARY_PATH
9725 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
9726 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9727 soname_spec
='${libname}${release}${shared_ext}$major'
9728 if test "X$HPUX_IA64_MODE" = X32
; then
9729 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9731 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
9733 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
9737 hardcode_into_libs
=yes
9738 dynamic_linker
="$host_os dld.sl"
9739 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
9740 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
9741 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9742 soname_spec
='${libname}${release}${shared_ext}$major'
9743 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9744 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
9748 dynamic_linker
="$host_os dld.sl"
9749 shlibpath_var
=SHLIB_PATH
9750 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
9751 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9752 soname_spec
='${libname}${release}${shared_ext}$major'
9755 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9756 postinstall_cmds
='chmod 555 $lib'
9763 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9764 soname_spec
='${libname}${release}${shared_ext}$major'
9765 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
9766 shlibpath_var
=LD_LIBRARY_PATH
9767 shlibpath_overrides_runpath
=no
9768 hardcode_into_libs
=yes
9771 irix5
* | irix6
* | nonstopux
*)
9773 nonstopux
*) version_type
=nonstopux
;;
9775 if test "$lt_cv_prog_gnu_ld" = yes; then
9783 soname_spec
='${libname}${release}${shared_ext}$major'
9784 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9786 irix5
* | nonstopux
*)
9790 case $LD in # libtool.m4 will add one of these switches to LD
9791 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
9792 libsuff
= shlibsuff
= libmagic
=32-bit;;
9793 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
9794 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
9795 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
9796 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
9797 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
9801 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
9802 shlibpath_overrides_runpath
=no
9803 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9804 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
9805 hardcode_into_libs
=yes
9808 # No shared lib support for Linux oldld, aout, or coff.
9809 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
9813 # This must be Linux ELF.
9814 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9818 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9819 soname_spec
='${libname}${release}${shared_ext}$major'
9820 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9821 shlibpath_var
=LD_LIBRARY_PATH
9822 shlibpath_overrides_runpath
=no
9823 # Some binutils ld are patched to set DT_RUNPATH
9824 save_LDFLAGS
=$LDFLAGS
9826 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9827 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9828 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9829 /* end confdefs.h. */
9839 if ac_fn_c_try_link
"$LINENO"; then :
9840 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null |
grep "RUNPATH.*$libdir" >/dev
/null
; then :
9841 shlibpath_overrides_runpath
=yes
9844 rm -f core conftest.err conftest.
$ac_objext \
9845 conftest
$ac_exeext conftest.
$ac_ext
9846 LDFLAGS
=$save_LDFLAGS
9849 # This implies no fast_install, which is unacceptable.
9850 # Some rework will be needed to allow for fast_install
9851 # before this can be enabled.
9852 hardcode_into_libs
=yes
9854 # Append ld.so.conf contents to the search path
9855 if test -f /etc
/ld.so.conf
; then
9856 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;/^$/d' | tr '\n' ' '`
9857 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
9860 # We used to test for /lib/ld.so.1 and disable shared libraries on
9861 # powerpc, because MkLinux only supported shared libraries with the
9862 # GNU dynamic linker. Since this was broken with cross compilers,
9863 # most powerpc-linux boxes support dynamic linking these days and
9864 # people can always --disable-shared, the test was removed, and we
9865 # assume the GNU/Linux dynamic linker is in use.
9866 dynamic_linker
='GNU/Linux ld.so'
9873 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9874 soname_spec
='${libname}${release}${shared_ext}$major'
9875 shlibpath_var
=LD_LIBRARY_PATH
9876 shlibpath_overrides_runpath
=no
9877 hardcode_into_libs
=yes
9878 dynamic_linker
='NetBSD ld.elf_so'
9885 if echo __ELF__ |
$CC -E - |
$GREP __ELF__
>/dev
/null
; then
9886 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9887 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9888 dynamic_linker
='NetBSD (a.out) ld.so'
9890 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9891 soname_spec
='${libname}${release}${shared_ext}$major'
9892 dynamic_linker
='NetBSD ld.elf_so'
9894 shlibpath_var
=LD_LIBRARY_PATH
9895 shlibpath_overrides_runpath
=yes
9896 hardcode_into_libs
=yes
9901 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9902 shlibpath_var
=LD_LIBRARY_PATH
9903 shlibpath_overrides_runpath
=yes
9910 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9911 soname_spec
='${libname}${release}${shared_ext}$major'
9912 shlibpath_var
=LD_LIBRARY_PATH
9913 shlibpath_overrides_runpath
=no
9914 hardcode_into_libs
=yes
9915 dynamic_linker
='ldqnx.so'
9920 sys_lib_dlsearch_path_spec
="/usr/lib"
9922 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9924 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
9925 *) need_version
=no
;;
9927 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9928 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9929 shlibpath_var
=LD_LIBRARY_PATH
9930 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9932 openbsd2.
[89] | openbsd2.
[89].
*)
9933 shlibpath_overrides_runpath
=no
9936 shlibpath_overrides_runpath
=yes
9940 shlibpath_overrides_runpath
=yes
9945 libname_spec
='$name'
9948 library_names_spec
='$libname${shared_ext} $libname.a'
9949 dynamic_linker
='OS/2 ld.exe'
9950 shlibpath_var
=LIBPATH
9953 osf3
* | osf4
* | osf5
*)
9957 soname_spec
='${libname}${release}${shared_ext}$major'
9958 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9959 shlibpath_var
=LD_LIBRARY_PATH
9960 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9961 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
9972 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9973 soname_spec
='${libname}${release}${shared_ext}$major'
9974 shlibpath_var
=LD_LIBRARY_PATH
9975 shlibpath_overrides_runpath
=yes
9976 hardcode_into_libs
=yes
9977 # ldd complains unless libraries are executable
9978 postinstall_cmds
='chmod +x $lib'
9983 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9984 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9985 shlibpath_var
=LD_LIBRARY_PATH
9986 shlibpath_overrides_runpath
=yes
9987 if test "$with_gnu_ld" = yes; then
9995 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9996 soname_spec
='${libname}${release}${shared_ext}$major'
9997 shlibpath_var
=LD_LIBRARY_PATH
9998 case $host_vendor in
10000 shlibpath_overrides_runpath
=no
10002 runpath_var
=LD_RUN_PATH
10010 shlibpath_overrides_runpath
=no
10011 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10017 if test -d /usr
/nec
;then
10019 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10020 soname_spec
='$libname${shared_ext}.$major'
10021 shlibpath_var
=LD_LIBRARY_PATH
10025 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10026 version_type
=freebsd-elf
10029 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10030 soname_spec
='${libname}${release}${shared_ext}$major'
10031 shlibpath_var
=LD_LIBRARY_PATH
10032 shlibpath_overrides_runpath
=yes
10033 hardcode_into_libs
=yes
10034 if test "$with_gnu_ld" = yes; then
10035 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10037 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10040 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10044 sys_lib_dlsearch_path_spec
='/usr/lib'
10048 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10052 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10053 shlibpath_var
=LD_LIBRARY_PATH
10054 shlibpath_overrides_runpath
=no
10055 hardcode_into_libs
=yes
10060 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10061 soname_spec
='${libname}${release}${shared_ext}$major'
10062 shlibpath_var
=LD_LIBRARY_PATH
10069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10070 $as_echo "$dynamic_linker" >&6; }
10071 test "$dynamic_linker" = no
&& can_build_shared
=no
10073 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10074 if test "$GCC" = yes; then
10075 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10078 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10079 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
10081 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10082 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10172 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10174 if test -n "$hardcode_libdir_flag_spec" ||
10175 test -n "$runpath_var" ||
10176 test "X$hardcode_automatic" = "Xyes" ; then
10178 # We can hardcode non-existent directories.
10179 if test "$hardcode_direct" != no
&&
10180 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10181 # have to relink, otherwise we might link with an installed library
10182 # when we should be linking with a yet-to-be-installed one
10183 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10184 test "$hardcode_minus_L" != no
; then
10185 # Linking always hardcodes the temporary library directory.
10186 hardcode_action
=relink
10188 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10189 hardcode_action
=immediate
10192 # We cannot hardcode anything, or else we can only hardcode existing
10194 hardcode_action
=unsupported
10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10197 $as_echo "$hardcode_action" >&6; }
10199 if test "$hardcode_action" = relink ||
10200 test "$inherit_rpath" = yes; then
10201 # Fast installation is not supported
10202 enable_fast_install
=no
10203 elif test "$shlibpath_overrides_runpath" = yes ||
10204 test "$enable_shared" = no
; then
10205 # Fast installation is not necessary
10206 enable_fast_install
=needless
10214 if test "x$enable_dlopen" != xyes
; then
10215 enable_dlopen
=unknown
10216 enable_dlopen_self
=unknown
10217 enable_dlopen_self_static
=unknown
10224 lt_cv_dlopen
="load_add_on"
10226 lt_cv_dlopen_self
=yes
10229 mingw
* | pw32
* | cegcc
*)
10230 lt_cv_dlopen
="LoadLibrary"
10235 lt_cv_dlopen
="dlopen"
10240 # if libdl is installed we need to link against it
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10242 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10243 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10244 $as_echo_n "(cached) " >&6
10246 ac_check_lib_save_LIBS
=$LIBS
10248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10249 /* end confdefs.h. */
10251 /* Override any GCC internal prototype to avoid an error.
10252 Use char because int might match the return type of a GCC
10253 builtin and then its argument prototype would still apply. */
10266 if ac_fn_c_try_link
"$LINENO"; then :
10267 ac_cv_lib_dl_dlopen
=yes
10269 ac_cv_lib_dl_dlopen
=no
10271 rm -f core conftest.err conftest.
$ac_objext \
10272 conftest
$ac_exeext conftest.
$ac_ext
10273 LIBS
=$ac_check_lib_save_LIBS
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10276 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10277 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
10278 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10281 lt_cv_dlopen
="dyld"
10283 lt_cv_dlopen_self
=yes
10290 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
10291 if test "x$ac_cv_func_shl_load" = x
""yes; then :
10292 lt_cv_dlopen
="shl_load"
10294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10295 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10296 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10297 $as_echo_n "(cached) " >&6
10299 ac_check_lib_save_LIBS
=$LIBS
10301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10302 /* end confdefs.h. */
10304 /* Override any GCC internal prototype to avoid an error.
10305 Use char because int might match the return type of a GCC
10306 builtin and then its argument prototype would still apply. */
10314 return shl_load ();
10319 if ac_fn_c_try_link
"$LINENO"; then :
10320 ac_cv_lib_dld_shl_load
=yes
10322 ac_cv_lib_dld_shl_load
=no
10324 rm -f core conftest.err conftest.
$ac_objext \
10325 conftest
$ac_exeext conftest.
$ac_ext
10326 LIBS
=$ac_check_lib_save_LIBS
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10329 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10330 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
10331 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
10333 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
10334 if test "x$ac_cv_func_dlopen" = x
""yes; then :
10335 lt_cv_dlopen
="dlopen"
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10338 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10339 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10340 $as_echo_n "(cached) " >&6
10342 ac_check_lib_save_LIBS
=$LIBS
10344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10345 /* end confdefs.h. */
10347 /* Override any GCC internal prototype to avoid an error.
10348 Use char because int might match the return type of a GCC
10349 builtin and then its argument prototype would still apply. */
10362 if ac_fn_c_try_link
"$LINENO"; then :
10363 ac_cv_lib_dl_dlopen
=yes
10365 ac_cv_lib_dl_dlopen
=no
10367 rm -f core conftest.err conftest.
$ac_objext \
10368 conftest
$ac_exeext conftest.
$ac_ext
10369 LIBS
=$ac_check_lib_save_LIBS
10371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10372 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10373 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
10374 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10377 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10378 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10379 $as_echo_n "(cached) " >&6
10381 ac_check_lib_save_LIBS
=$LIBS
10382 LIBS
="-lsvld $LIBS"
10383 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10384 /* end confdefs.h. */
10386 /* Override any GCC internal prototype to avoid an error.
10387 Use char because int might match the return type of a GCC
10388 builtin and then its argument prototype would still apply. */
10401 if ac_fn_c_try_link
"$LINENO"; then :
10402 ac_cv_lib_svld_dlopen
=yes
10404 ac_cv_lib_svld_dlopen
=no
10406 rm -f core conftest.err conftest.
$ac_objext \
10407 conftest
$ac_exeext conftest.
$ac_ext
10408 LIBS
=$ac_check_lib_save_LIBS
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10411 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10412 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
10413 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10416 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10417 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10418 $as_echo_n "(cached) " >&6
10420 ac_check_lib_save_LIBS
=$LIBS
10422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10423 /* end confdefs.h. */
10425 /* Override any GCC internal prototype to avoid an error.
10426 Use char because int might match the return type of a GCC
10427 builtin and then its argument prototype would still apply. */
10435 return dld_link ();
10440 if ac_fn_c_try_link
"$LINENO"; then :
10441 ac_cv_lib_dld_dld_link
=yes
10443 ac_cv_lib_dld_dld_link
=no
10445 rm -f core conftest.err conftest.
$ac_objext \
10446 conftest
$ac_exeext conftest.
$ac_ext
10447 LIBS
=$ac_check_lib_save_LIBS
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10450 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10451 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
10452 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
10473 if test "x$lt_cv_dlopen" != xno
; then
10479 case $lt_cv_dlopen in
10481 save_CPPFLAGS
="$CPPFLAGS"
10482 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
10484 save_LDFLAGS
="$LDFLAGS"
10485 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
10488 LIBS
="$lt_cv_dlopen_libs $LIBS"
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10491 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10492 if test "${lt_cv_dlopen_self+set}" = set; then :
10493 $as_echo_n "(cached) " >&6
10495 if test "$cross_compiling" = yes; then :
10496 lt_cv_dlopen_self
=cross
10498 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
10499 lt_status
=$lt_dlunknown
10500 cat > conftest.
$ac_ext <<_LT_EOF
10501 #line 10501 "configure"
10502 #include "confdefs.h"
10511 # define LT_DLGLOBAL RTLD_GLOBAL
10514 # define LT_DLGLOBAL DL_GLOBAL
10516 # define LT_DLGLOBAL 0
10520 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10521 find out it does not work in some platform. */
10522 #ifndef LT_DLLAZY_OR_NOW
10524 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10527 # define LT_DLLAZY_OR_NOW DL_LAZY
10530 # define LT_DLLAZY_OR_NOW RTLD_NOW
10533 # define LT_DLLAZY_OR_NOW DL_NOW
10535 # define LT_DLLAZY_OR_NOW 0
10542 void fnord() { int i=42;}
10545 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10546 int status = $lt_dlunknown;
10550 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10551 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10552 /* dlclose (self); */
10560 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10561 (eval $ac_link) 2>&5
10563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10564 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
10565 (.
/conftest
; exit; ) >&5 2>/dev
/null
10567 case x
$lt_status in
10568 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
10569 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
10570 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
10573 # compilation failed
10574 lt_cv_dlopen_self
=no
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10582 $as_echo "$lt_cv_dlopen_self" >&6; }
10584 if test "x$lt_cv_dlopen_self" = xyes
; then
10585 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10587 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10588 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10589 $as_echo_n "(cached) " >&6
10591 if test "$cross_compiling" = yes; then :
10592 lt_cv_dlopen_self_static
=cross
10594 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
10595 lt_status
=$lt_dlunknown
10596 cat > conftest.
$ac_ext <<_LT_EOF
10597 #line 10597 "configure"
10598 #include "confdefs.h"
10607 # define LT_DLGLOBAL RTLD_GLOBAL
10610 # define LT_DLGLOBAL DL_GLOBAL
10612 # define LT_DLGLOBAL 0
10616 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10617 find out it does not work in some platform. */
10618 #ifndef LT_DLLAZY_OR_NOW
10620 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10623 # define LT_DLLAZY_OR_NOW DL_LAZY
10626 # define LT_DLLAZY_OR_NOW RTLD_NOW
10629 # define LT_DLLAZY_OR_NOW DL_NOW
10631 # define LT_DLLAZY_OR_NOW 0
10638 void fnord() { int i=42;}
10641 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10642 int status = $lt_dlunknown;
10646 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10647 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10648 /* dlclose (self); */
10656 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10657 (eval $ac_link) 2>&5
10659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10660 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
10661 (.
/conftest
; exit; ) >&5 2>/dev
/null
10663 case x
$lt_status in
10664 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
10665 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
10666 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
10669 # compilation failed
10670 lt_cv_dlopen_self_static
=no
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10678 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10681 CPPFLAGS
="$save_CPPFLAGS"
10682 LDFLAGS
="$save_LDFLAGS"
10687 case $lt_cv_dlopen_self in
10688 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
10689 *) enable_dlopen_self
=unknown
;;
10692 case $lt_cv_dlopen_self_static in
10693 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
10694 *) enable_dlopen_self_static
=unknown
;;
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10717 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10718 if test -n "$STRIP" && $STRIP -V 2>&1 |
$GREP "GNU strip" >/dev
/null
; then
10719 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
10720 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10722 $as_echo "yes" >&6; }
10724 # FIXME - insert some real tests, host_os isn't really good enough
10727 if test -n "$STRIP" ; then
10728 striplib
="$STRIP -x"
10729 old_striplib
="$STRIP -S"
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10731 $as_echo "yes" >&6; }
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10734 $as_echo "no" >&6; }
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10739 $as_echo "no" >&6; }
10755 # Report which library types will actually be built
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10757 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10759 $as_echo "$can_build_shared" >&6; }
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10762 $as_echo_n "checking whether to build shared libraries... " >&6; }
10763 test "$can_build_shared" = "no" && enable_shared
=no
10765 # On AIX, shared libraries and static libraries use the same namespace, and
10766 # are all built from PIC.
10769 test "$enable_shared" = yes && enable_static
=no
10770 if test -n "$RANLIB"; then
10771 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
10772 postinstall_cmds
='$RANLIB $lib'
10777 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
10778 test "$enable_shared" = yes && enable_static
=no
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10783 $as_echo "$enable_shared" >&6; }
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10786 $as_echo_n "checking whether to build static libraries... " >&6; }
10787 # Make sure either enable_shared or enable_static is yes.
10788 test "$enable_shared" = yes || enable_static
=yes
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10790 $as_echo "$enable_static" >&6; }
10797 ac_cpp
='$CPP $CPPFLAGS'
10798 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10799 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10800 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10816 ac_config_commands
="$ac_config_commands libtool"
10821 # Only expand once:
10824 # By default we simply use the C compiler to build assembly code.
10826 test "${CCAS+set}" = set || CCAS
=$CC
10827 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
10831 depcc
="$CCAS" am_compiler_list
=
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10834 $as_echo_n "checking dependency style of $depcc... " >&6; }
10835 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
10836 $as_echo_n "(cached) " >&6
10838 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10839 # We make a subdir and do the tests there. Otherwise we can end up
10840 # making bogus files that we don't know about and never remove. For
10841 # instance it was reported that on HP-UX the gcc test will end up
10842 # making a dummy file named `D' -- because `-MD' means `put the output
10845 # Copy depcomp to subdir because otherwise we won't find it if we're
10846 # using a relative directory.
10847 cp "$am_depcomp" conftest.dir
10849 # We will build objects and dependencies in a subdirectory because
10850 # it helps to detect inapplicable dependency modes. For instance
10851 # both Tru64's cc and ICC support -MD to output dependencies as a
10852 # side effect of compilation, but ICC will put the dependencies in
10853 # the current directory while Tru64 will put them in the object
10857 am_cv_CCAS_dependencies_compiler_type
=none
10858 if test "$am_compiler_list" = ""; then
10859 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10861 am__universal
=false
10864 for depmode
in $am_compiler_list; do
10865 # Setup a source with many dependencies, because some compilers
10866 # like to wrap large dependency lists on column 80 (with \), and
10867 # we should not choose a depcomp mode which is confused by this.
10869 # We need to recreate these files for each test, as the compiler may
10870 # overwrite some of them when testing with obscure command lines.
10871 # This happens at least with the AIX C compiler.
10873 for i
in 1 2 3 4 5 6; do
10874 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
10875 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10876 # Solaris 8's {/usr,}/bin/sh.
10877 touch sub
/conftst
$i.h
10879 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10881 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10882 # mode. It turns out that the SunPro C++ compiler does not properly
10883 # handle `-M -o', and we need to detect this. Also, some Intel
10884 # versions had trouble with output in subdirs
10885 am__obj
=sub
/conftest.
${OBJEXT-o}
10886 am__minus_obj
="-o $am__obj"
10889 # This depmode causes a compiler race in universal mode.
10890 test "$am__universal" = false ||
continue
10893 # after this tag, mechanisms are not by side-effect, so they'll
10894 # only be used when explicitly requested
10895 if test "x$enable_dependency_tracking" = xyes
; then
10901 msvisualcpp | msvcmsys
)
10902 # This compiler won't grok `-c -o', but also, the minuso test has
10903 # not run yet. These depmodes are late enough in the game, and
10904 # so weak that their functioning should not be impacted.
10905 am__obj
=conftest.
${OBJEXT-o}
10910 if depmode
=$depmode \
10911 source=sub
/conftest.c object
=$am__obj \
10912 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
10913 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
10914 >/dev
/null
2>conftest.err
&&
10915 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
10916 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
10917 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
10918 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
10919 # icc doesn't choke on unknown options, it will just issue warnings
10920 # or remarks (even with -Werror). So we grep stderr for any message
10921 # that says an option was ignored or not supported.
10922 # When given -MP, icc 7.0 and 7.1 complain thusly:
10923 # icc: Command line warning: ignoring option '-M'; no argument required
10924 # The diagnosis changed in icc 8.0:
10925 # icc: Command line remark: option '-MP' not supported
10926 if (grep 'ignoring option' conftest.err ||
10927 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
10928 am_cv_CCAS_dependencies_compiler_type
=$depmode
10935 rm -rf conftest.dir
10937 am_cv_CCAS_dependencies_compiler_type
=none
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
10942 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
10943 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
10946 test "x$enable_dependency_tracking" != xno \
10947 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
10948 am__fastdepCCAS_TRUE
=
10949 am__fastdepCCAS_FALSE
='#'
10951 am__fastdepCCAS_TRUE
='#'
10952 am__fastdepCCAS_FALSE
=
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs author" >&5
10959 $as_echo_n "checking zfs author... " >&6; }
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_AUTHOR" >&5
10961 $as_echo "$ZFS_META_AUTHOR" >&6; }
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs license" >&5
10964 $as_echo_n "checking zfs license... " >&6; }
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_META_LICENSE" >&5
10966 $as_echo "$ZFS_META_LICENSE" >&6; }
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking linux distribution" >&5
10971 $as_echo_n "checking linux distribution... " >&6; }
10972 if test -f /etc
/toss-release
; then
10974 elif test -f /etc
/fedora-release
; then
10976 elif test -f /etc
/redhat-release
; then
10978 elif test -f /etc
/gentoo-release
; then
10980 elif test -f /etc
/arch-release
; then
10982 elif test -f /etc
/SuSE-release
; then
10984 elif test -f /etc
/slackware-version
; then
10986 elif test -f /etc
/lunar.release
; then
10988 elif test -f /etc
/lsb-release
; then
10990 elif test -f /etc
/debian_version
; then
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VENDOR" >&5
10996 $as_echo "$VENDOR" >&6; }
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default package type" >&5
11000 $as_echo_n "checking default package type... " >&6; }
11002 toss
) DEFAULT_PACKAGE
=rpm
;;
11003 redhat
) DEFAULT_PACKAGE
=rpm
;;
11004 fedora
) DEFAULT_PACKAGE
=rpm
;;
11005 gentoo
) DEFAULT_PACKAGE
=tgz
;;
11006 arch
) DEFAULT_PACKAGE
=tgz
;;
11007 sles
) DEFAULT_PACKAGE
=rpm
;;
11008 slackware
) DEFAULT_PACKAGE
=tgz
;;
11009 lunar
) DEFAULT_PACKAGE
=tgz
;;
11010 ubuntu
) DEFAULT_PACKAGE
=deb
;;
11011 debian
) DEFAULT_PACKAGE
=deb
;;
11012 *) DEFAULT_PACKAGE
=rpm
;;
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_PACKAGE" >&5
11016 $as_echo "$DEFAULT_PACKAGE" >&6; }
11019 DEFAULT_INIT_DIR
=$sysconfdir/init.d
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init directory" >&5
11021 $as_echo_n "checking default init directory... " >&6; }
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_DIR" >&5
11023 $as_echo "$DEFAULT_INIT_DIR" >&6; }
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default init script type" >&5
11027 $as_echo_n "checking default init script type... " >&6; }
11029 toss
) DEFAULT_INIT_SCRIPT
=redhat
;;
11030 redhat
) DEFAULT_INIT_SCRIPT
=redhat
;;
11031 fedora
) DEFAULT_INIT_SCRIPT
=fedora
;;
11032 gentoo
) DEFAULT_INIT_SCRIPT
=gentoo
;;
11033 arch
) DEFAULT_INIT_SCRIPT
=lsb
;;
11034 sles
) DEFAULT_INIT_SCRIPT
=lsb
;;
11035 slackware
) DEFAULT_INIT_SCRIPT
=lsb
;;
11036 lunar
) DEFAULT_INIT_SCRIPT
=lunar
;;
11037 ubuntu
) DEFAULT_INIT_SCRIPT
=lsb
;;
11038 debian
) DEFAULT_INIT_SCRIPT
=lsb
;;
11039 *) DEFAULT_INIT_SCRIPT
=lsb
;;
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_INIT_SCRIPT" >&5
11043 $as_echo "$DEFAULT_INIT_SCRIPT" >&6; }
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPM is available" >&5
11051 $as_echo_n "checking whether $RPM is available... " >&6; }
11052 if tmp
=$
($RPM --version 2>/dev
/null
); then :
11054 RPM_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM ($RPM_VERSION)" >&5
11057 $as_echo "$HAVE_RPM ($RPM_VERSION)" >&6; }
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPM" >&5
11063 $as_echo "$HAVE_RPM" >&6; }
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $RPMBUILD is available" >&5
11068 $as_echo_n "checking whether $RPMBUILD is available... " >&6; }
11069 if tmp
=$
($RPMBUILD --version 2>/dev
/null
); then :
11071 RPMBUILD_VERSION
=$
(echo $tmp |
$AWK '/RPM/ { print $3 }')
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&5
11074 $as_echo "$HAVE_RPMBUILD ($RPMBUILD_VERSION)" >&6; }
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_RPMBUILD" >&5
11080 $as_echo "$HAVE_RPMBUILD" >&6; }
11086 RPM_DEFINE_KMOD
='--define "kernels $(LINUX_VERSION)"'
11089 SRPM_DEFINE_COMMON
='--define "build_src_rpm 1"'
11094 RPM_SPEC_DIR
="rpm/generic"
11096 # Check whether --with-spec was given.
11097 if test "${with_spec+set}" = set; then :
11098 withval
=$with_spec; RPM_SPEC_DIR
="rpm/$withval"
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether spec files are available" >&5
11103 $as_echo_n "checking whether spec files are available... " >&6; }
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($RPM_SPEC_DIR/*.spec.in)" >&5
11105 $as_echo "yes ($RPM_SPEC_DIR/*.spec.in)" >&6; }
11127 DPKGBUILD
=dpkg-buildpackage
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKG is available" >&5
11130 $as_echo_n "checking whether $DPKG is available... " >&6; }
11131 if tmp
=$
($DPKG --version 2>/dev
/null
); then :
11133 DPKG_VERSION
=$
(echo $tmp |
$AWK '/Debian/ { print $7 }')
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG ($DPKG_VERSION)" >&5
11136 $as_echo "$HAVE_DPKG ($DPKG_VERSION)" >&6; }
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKG" >&5
11142 $as_echo "$HAVE_DPKG" >&6; }
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $DPKGBUILD is available" >&5
11147 $as_echo_n "checking whether $DPKGBUILD is available... " >&6; }
11148 if tmp
=$
($DPKGBUILD --version 2>/dev
/null
); then :
11150 DPKGBUILD_VERSION
=$
(echo $tmp | \
11151 $AWK '/Debian/ { print $4 }' | cut
-f-4 -d'.')
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&5
11154 $as_echo "$HAVE_DPKGBUILD ($DPKGBUILD_VERSION)" >&6; }
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_DPKGBUILD" >&5
11160 $as_echo "$HAVE_DPKGBUILD" >&6; }
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $ALIEN is available" >&5
11176 $as_echo_n "checking whether $ALIEN is available... " >&6; }
11177 if tmp
=$
($ALIEN --version 2>/dev
/null
); then :
11179 ALIEN_VERSION
=$
(echo $tmp |
$AWK '{ print $3 }')
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN ($ALIEN_VERSION)" >&5
11182 $as_echo "$HAVE_ALIEN ($ALIEN_VERSION)" >&6; }
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_ALIEN" >&5
11188 $as_echo "$HAVE_ALIEN" >&6; }
11198 TARGET_ASM_DIR
=asm-generic
11203 # Check whether --with-config was given.
11204 if test "${with_config+set}" = set; then :
11205 withval
=$with_config; ZFS_CONFIG
="$withval"
11208 # Check whether --enable-linux-builtin was given.
11209 if test "${enable_linux_builtin+set}" = set; then :
11210 enableval
=$enable_linux_builtin;
11212 enable_linux_builtin
=no
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking zfs config" >&5
11217 $as_echo_n "checking zfs config... " >&6; }
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZFS_CONFIG" >&5
11219 $as_echo "$ZFS_CONFIG" >&6; };
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wno-unused-but-set-variable support" >&5
11225 $as_echo_n "checking for -Wno-unused-but-set-variable support... " >&6; }
11227 saved_flags
="$CFLAGS"
11228 CFLAGS
="$CFLAGS -Wunused-but-set-variable"
11230 if test "$cross_compiling" = yes; then :
11231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11233 as_fn_error $?
"cannot run test program while cross compiling
11234 See \`config.log' for more details" "$LINENO" 5 ; }
11236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11237 /* end confdefs.h. */
11247 if ac_fn_c_try_run
"$LINENO"; then :
11249 NO_UNUSED_BUT_SET_VARIABLE
=-Wno-unused-but-set-variable
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11251 $as_echo "yes" >&6; }
11255 NO_UNUSED_BUT_SET_VARIABLE
=
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11257 $as_echo "no" >&6; }
11260 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11261 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11265 CFLAGS
="$saved_flags"
11270 case "$ZFS_CONFIG" in
11274 # Check whether --with-linux was given.
11275 if test "${with_linux+set}" = set; then :
11276 withval
=$with_linux; kernelsrc
="$withval"
11281 # Check whether --with-linux-obj was given.
11282 if test "${with_linux_obj+set}" = set; then :
11283 withval
=$with_linux_obj; kernelbuild
="$withval"
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
11288 $as_echo_n "checking kernel source directory... " >&6; }
11289 if test -z "$kernelsrc"; then :
11291 if test -e "/lib/modules/$(uname -r)/source"; then :
11293 headersdir
="/lib/modules/$(uname -r)/source"
11294 sourcelink
=$
(readlink
-f "$headersdir")
11296 elif test -e "/lib/modules/$(uname -r)/build"; then :
11298 headersdir
="/lib/modules/$(uname -r)/build"
11299 sourcelink
=$
(readlink
-f "$headersdir")
11303 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
11305 2>/dev
/null |
grep -v obj |
tail -1)
11309 if test -n "$sourcelink" && test -e ${sourcelink}; then :
11311 kernelsrc
=`readlink -f ${sourcelink}`
11315 kernelsrc
="Not found"
11321 if test "$kernelsrc" = "NONE"; then :
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
11330 $as_echo "$kernelsrc" >&6; }
11331 if test ! -d "$kernelsrc"; then :
11334 *** Please make sure the kernel devel package for your distribution
11335 *** is installed then try again. If that fails you can specify the
11336 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
11341 $as_echo_n "checking kernel build directory... " >&6; }
11342 if test -z "$kernelbuild"; then :
11344 if test -e "/lib/modules/$(uname -r)/build"; then :
11346 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
11348 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
11350 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
11352 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then :
11354 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
11356 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then :
11358 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
11362 kernelbuild
=${kernelsrc}
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
11368 $as_echo "$kernelbuild" >&6; }
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
11371 $as_echo_n "checking kernel source version... " >&6; }
11372 utsrelease1
=$kernelbuild/include
/linux
/version.h
11373 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
11374 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
11375 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then :
11377 utsrelease
=linux
/version.h
11379 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then :
11381 utsrelease
=linux
/utsrelease.h
11383 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then :
11385 utsrelease
=generated
/utsrelease.h
11389 if test "$utsrelease"; then :
11391 kernsrcver
=`(echo "#include <$utsrelease>";
11392 echo "kernsrcver=UTS_RELEASE") |
11393 cpp -I $kernelbuild/include |
11394 grep "^kernsrcver=" | cut -d \" -f 2`
11396 if test -z "$kernsrcver"; then :
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
11399 $as_echo "Not found" >&6; }
11400 as_fn_error $?
"*** Cannot determine kernel version." "$LINENO" 5
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
11407 $as_echo "Not found" >&6; }
11408 if test "x$enable_linux_builtin" != xyes
; then
11409 as_fn_error $?
"*** Cannot find UTS_RELEASE definition." "$LINENO" 5
11412 *** Cannot find UTS_RELEASE definition.
11413 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
11419 $as_echo "$kernsrcver" >&6; }
11422 LINUX_OBJ
=${kernelbuild}
11423 LINUX_VERSION
=${kernsrcver}
11430 modpost
=$LINUX/scripts
/Makefile.modpost
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
11432 $as_echo_n "checking kernel file name for module symbols... " >&6; }
11433 if test "x$enable_linux_builtin" != xyes
-a -f "$modpost"; then :
11435 if grep -q Modules.symvers
$modpost; then :
11437 LINUX_SYMBOLS
=Modules.symvers
11441 LINUX_SYMBOLS
=Module.symvers
11445 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
11448 *** Please make sure the kernel devel package for your distribution
11449 *** is installed. If your building with a custom kernel make sure the
11450 *** kernel is configured, built, and the '--with-linux=PATH' configure
11451 *** option refers to the location of the kernel source." "$LINENO" 5
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
11461 $as_echo "$LINUX_SYMBOLS" >&6; }
11467 # Check whether --with-spl was given.
11468 if test "${with_spl+set}" = set; then :
11469 withval
=$with_spl; splsrc
="$withval"
11474 # Check whether --with-spl-obj was given.
11475 if test "${with_spl_obj+set}" = set; then :
11476 withval
=$with_spl_obj; splbuild
="$withval"
11480 splsrc0
="/var/lib/dkms/spl/${VERSION}/build"
11481 splsrc1
="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
11482 splsrc2
="/usr/src/spl-${VERSION}"
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
11487 $as_echo_n "checking spl source directory... " >&6; }
11488 if test -z "${splsrc}"; then :
11490 if test -e "${splsrc0}/spl.release.in"; then :
11494 elif test -e "${splsrc1}/spl.release.in"; then :
11498 elif test -e "${splsrc2}/spl.release.in"; then :
11502 elif test -e "${splsrc3}/spl.release.in"; then :
11504 splsrc
=$
(readlink
-f "${splsrc3}")
11506 elif test -e "${splsrc4}/spl.release.in" ; then :
11518 if test "$splsrc" = "NONE"; then :
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
11528 $as_echo "$splsrc" >&6; }
11529 if test ! -e "$splsrc/spl.release.in"; then :
11532 *** Please make sure the kmod spl devel package for your distribution
11533 *** is installed then try again. If that fails you can specify the
11534 *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
11539 $as_echo_n "checking spl build directory... " >&6; }
11540 if test -z "$splbuild"; then :
11542 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
11544 splbuild
="${splsrc}/${LINUX_VERSION}"
11546 elif test -e "${splsrc}/spl_config.h" ; then :
11548 splbuild
="${splsrc}"
11552 splbuild
="Not found"
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
11559 $as_echo "$splbuild" >&6; }
11560 if ! test -e "$splbuild/spl_config.h"; then :
11563 *** Please make sure the kmod spl devel <kernel> package for your
11564 *** distribution is installed then try again. If that fails you
11565 *** can specify the location of the spl objects with the
11566 *** '--with-spl-obj=PATH' option." "$LINENO" 5
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
11571 $as_echo_n "checking spl source version... " >&6; }
11572 if test -r $splbuild/spl_config.h
&&
11573 fgrep
-q SPL_META_VERSION
$splbuild/spl_config.h
; then :
11576 splsrcver
=`(echo "#include <spl_config.h>";
11577 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
11579 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
11583 if test -z "$splsrcver"; then :
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
11586 $as_echo "Not found" >&6; }
11588 *** Cannot determine the version of the spl source.
11589 *** Please prepare the spl source before running this script" "$LINENO" 5
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
11594 $as_echo "$splsrcver" >&6; }
11597 SPL_OBJ
=${splbuild}
11598 SPL_VERSION
=${splsrcver}
11606 # Check whether --with-spl-timeout was given.
11607 if test "${with_spl_timeout+set}" = set; then :
11608 withval
=$with_spl_timeout; timeout
="$withval"
11614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
11615 $as_echo_n "checking spl file name for module symbols... " >&6; }
11619 if test -r $SPL_OBJ/Module.symvers
; then :
11621 SPL_SYMBOLS
=Module.symvers
11623 elif test -r $SPL_OBJ/Modules.symvers
; then :
11625 SPL_SYMBOLS
=Modules.symvers
11627 elif test -r $SPL_OBJ/module
/Module.symvers
; then :
11629 SPL_SYMBOLS
=Module.symvers
11631 elif test -r $SPL_OBJ/module
/Modules.symvers
; then :
11633 SPL_SYMBOLS
=Modules.symvers
11637 if test $SPL_SYMBOLS != NONE
-o $timeout -le 0; then :
11644 timeout
=$
((timeout-1
))
11649 if test "$SPL_SYMBOLS" = NONE
; then :
11651 SPL_SYMBOLS
=$LINUX_SYMBOLS
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
11656 $as_echo "$SPL_SYMBOLS" >&6; }
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
11661 $as_echo_n "checking whether modules can be built... " >&6; }
11664 cat confdefs.h
- <<_ACEOF >conftest.c
11678 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
11679 echo "obj-m := conftest.o" >build
/Makefile
11681 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
11682 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
11683 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11684 (eval $ac_try) 2>&5
11686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11687 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
11688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11689 (eval $ac_try) 2>&5
11691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11692 test $ac_status = 0; }; }; then :
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11695 $as_echo "yes" >&6; }
11698 $as_echo "$as_me: failed program was:" >&5
11699 sed 's/^/| /' conftest.
$ac_ext >&5
11701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11702 $as_echo "no" >&6; }
11703 if test "x$enable_linux_builtin" != xyes
; then
11704 as_fn_error $?
"*** Unable to build an empty module." "$LINENO" 5
11707 *** Unable to build an empty module.
11708 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
11720 if test "$ZFS_META_LICENSE" = GPL
; then :
11723 $as_echo "#define HAVE_GPL_ONLY_SYMBOLS 1" >>confdefs.h
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
11731 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
11734 cat confdefs.h
- <<_ACEOF >conftest.c
11737 #include <linux/module.h>
11743 #ifndef CONFIG_DEBUG_LOCK_ALLOC
11744 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
11754 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
11755 echo "obj-m := conftest.o" >build
/Makefile
11757 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
11758 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
11759 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11760 (eval $ac_try) 2>&5
11762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11763 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
11764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11765 (eval $ac_try) 2>&5
11767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11768 test $ac_status = 0; }; }; then :
11770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11771 $as_echo "yes" >&6; }
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
11774 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
11775 tmp_flags
="$EXTRA_KCFLAGS"
11778 cat confdefs.h
- <<_ACEOF >conftest.c
11781 #include <linux/module.h>
11782 #include <linux/mutex.h>
11784 MODULE_LICENSE("$ZFS_META_LICENSE");
11794 mutex_unlock(&lock);
11803 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
11804 echo "obj-m := conftest.o" >build
/Makefile
11806 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
11807 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
11808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11809 (eval $ac_try) 2>&5
11811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11812 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
11813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11814 (eval $ac_try) 2>&5
11816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11817 test $ac_status = 0; }; }; then :
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11820 $as_echo "no" >&6; }
11823 $as_echo "$as_me: failed program was:" >&5
11824 sed 's/^/| /' conftest.
$ac_ext >&5
11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11827 $as_echo "yes" >&6; }
11829 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
11830 *** with the CDDL license and will prevent the module linking stage
11831 *** from succeeding. You must rebuild your kernel without this
11832 *** option enabled." "$LINENO" 5
11840 EXTRA_KCFLAGS
="$tmp_flags"
11844 $as_echo "$as_me: failed program was:" >&5
11845 sed 's/^/| /' conftest.
$ac_ext >&5
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11848 $as_echo "no" >&6; }
11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
11862 $as_echo_n "checking block device operation prototypes... " >&6; }
11863 tmp_flags
="$EXTRA_KCFLAGS"
11864 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
11867 cat confdefs.h
- <<_ACEOF >conftest.c
11870 #include <linux/blkdev.h>
11872 int blk_open(struct block_device *bdev, fmode_t mode)
11874 int blk_release(struct gendisk *g, fmode_t mode) { return 0; }
11875 int blk_ioctl(struct block_device *bdev, fmode_t mode,
11876 unsigned x, unsigned long y) { return 0; }
11877 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
11878 unsigned x, unsigned long y) { return 0; }
11880 static const struct block_device_operations
11881 bops __attribute__ ((unused)) = {
11883 .release = blk_release,
11884 .ioctl = blk_ioctl,
11885 .compat_ioctl = blk_compat_ioctl,
11900 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
11901 echo "obj-m := conftest.o" >build
/Makefile
11903 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
11904 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
11905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11906 (eval $ac_try) 2>&5
11908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11909 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
11910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11911 (eval $ac_try) 2>&5
11913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11914 test $ac_status = 0; }; }; then :
11916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
11917 $as_echo "struct block_device" >&6; }
11919 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
11923 $as_echo "$as_me: failed program was:" >&5
11924 sed 's/^/| /' conftest.
$ac_ext >&5
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
11927 $as_echo "struct inode" >&6; }
11935 EXTRA_KCFLAGS
="$tmp_flags"
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
11938 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
11941 cat confdefs.h
- <<_ACEOF >conftest.c
11944 #include <linux/types.h>
11950 fmode_t *ptr __attribute__ ((unused));
11959 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
11960 echo "obj-m := conftest.o" >build
/Makefile
11962 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
11963 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
11964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11965 (eval $ac_try) 2>&5
11967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11968 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
11969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
11970 (eval $ac_try) 2>&5
11972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11973 test $ac_status = 0; }; }; then :
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11976 $as_echo "yes" >&6; }
11978 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
11982 $as_echo "$as_me: failed program was:" >&5
11983 sed 's/^/| /' conftest.
$ac_ext >&5
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11986 $as_echo "no" >&6; }
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5
11997 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
12000 cat confdefs.h
- <<_ACEOF >conftest.c
12003 #include <linux/kobject.h>
12009 int val __attribute__ ((unused));
12010 val = KOBJ_NAME_LEN;
12019 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12020 echo "obj-m := conftest.o" >build
/Makefile
12022 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12023 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12024 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12025 (eval $ac_try) 2>&5
12027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12028 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12030 (eval $ac_try) 2>&5
12032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12033 test $ac_status = 0; }; }; then :
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12036 $as_echo "yes" >&6; }
12038 $as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h
12042 $as_echo "$as_me: failed program was:" >&5
12043 sed 's/^/| /' conftest.
$ac_ext >&5
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12046 $as_echo "no" >&6; }
12056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
12057 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
12060 cat confdefs.h
- <<_ACEOF >conftest.c
12063 #include <linux/fs.h>
12069 struct block_device *bdev = NULL;
12070 (void) blkdev_get(bdev, 0, NULL);
12079 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12080 echo "obj-m := conftest.o" >build
/Makefile
12082 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12083 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12084 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12085 (eval $ac_try) 2>&5
12087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12088 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12089 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12090 (eval $ac_try) 2>&5
12092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12093 test $ac_status = 0; }; }; then :
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12096 $as_echo "yes" >&6; }
12098 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
12102 $as_echo "$as_me: failed program was:" >&5
12103 sed 's/^/| /' conftest.
$ac_ext >&5
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12106 $as_echo "no" >&6; }
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
12116 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
12120 cat confdefs.h
- <<_ACEOF >conftest.c
12123 #include <linux/fs.h>
12129 blkdev_get_by_path(NULL, 0, NULL);
12138 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12139 echo "obj-m := conftest.o" >build
/Makefile
12141 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12142 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12143 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12144 (eval $ac_try) 2>&5
12146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12147 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12148 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12149 (eval $ac_try) 2>&5
12151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12152 test $ac_status = 0; }; }; then :
12155 $as_echo "$as_me: failed program was:" >&5
12156 sed 's/^/| /' conftest.
$ac_ext >&5
12164 if test $rc -ne 0; then :
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12167 $as_echo "no" >&6; }
12170 if test "x$enable_linux_builtin" != xyes
; then
12172 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
12173 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
12175 if test $rc -ne 0; then
12177 for file in fs
/block_dev.c
; do
12178 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
12179 "$LINUX/$file" 2>/dev
/null
12181 if test $rc -eq 0; then
12186 if test $export -eq 0; then :
12196 if test $rc -ne 0; then :
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12199 $as_echo "no" >&6; }
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12204 $as_echo "yes" >&6; }
12206 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
12214 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
12218 cat confdefs.h
- <<_ACEOF >conftest.c
12221 #include <linux/fs.h>
12227 open_bdev_exclusive(NULL, 0, NULL);
12236 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12237 echo "obj-m := conftest.o" >build
/Makefile
12239 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12240 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12242 (eval $ac_try) 2>&5
12244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12245 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12246 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12247 (eval $ac_try) 2>&5
12249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12250 test $ac_status = 0; }; }; then :
12253 $as_echo "$as_me: failed program was:" >&5
12254 sed 's/^/| /' conftest.
$ac_ext >&5
12262 if test $rc -ne 0; then :
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12265 $as_echo "no" >&6; }
12268 if test "x$enable_linux_builtin" != xyes
; then
12270 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
12271 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
12273 if test $rc -ne 0; then
12275 for file in fs
/block_dev.c
; do
12276 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
12277 "$LINUX/$file" 2>/dev
/null
12279 if test $rc -eq 0; then
12284 if test $export -eq 0; then :
12294 if test $rc -ne 0; then :
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12297 $as_echo "no" >&6; }
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12302 $as_echo "yes" >&6; }
12304 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() is available" >&5
12312 $as_echo_n "checking whether lookup_bdev() is available... " >&6; }
12316 cat confdefs.h
- <<_ACEOF >conftest.c
12319 #include <linux/fs.h>
12334 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12335 echo "obj-m := conftest.o" >build
/Makefile
12337 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12338 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12340 (eval $ac_try) 2>&5
12342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12343 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12345 (eval $ac_try) 2>&5
12347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12348 test $ac_status = 0; }; }; then :
12351 $as_echo "$as_me: failed program was:" >&5
12352 sed 's/^/| /' conftest.
$ac_ext >&5
12360 if test $rc -ne 0; then :
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12363 $as_echo "no" >&6; }
12366 if test "x$enable_linux_builtin" != xyes
; then
12368 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
12369 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
12371 if test $rc -ne 0; then
12373 for file in fs
/block_dev.c
; do
12374 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
12375 "$LINUX/$file" 2>/dev
/null
12377 if test $rc -eq 0; then
12382 if test $export -eq 0; then :
12392 if test $rc -ne 0; then :
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12395 $as_echo "no" >&6; }
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12400 $as_echo "yes" >&6; }
12402 $as_echo "#define HAVE_LOOKUP_BDEV 1" >>confdefs.h
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
12411 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
12414 cat confdefs.h
- <<_ACEOF >conftest.c
12417 #include <linux/buffer_head.h>
12423 struct block_device *bdev = NULL;
12424 invalidate_bdev(bdev);
12433 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12434 echo "obj-m := conftest.o" >build
/Makefile
12436 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12437 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12438 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12439 (eval $ac_try) 2>&5
12441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12442 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12443 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12444 (eval $ac_try) 2>&5
12446 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12447 test $ac_status = 0; }; }; then :
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12450 $as_echo "yes" >&6; }
12452 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
12456 $as_echo "$as_me: failed program was:" >&5
12457 sed 's/^/| /' conftest.
$ac_ext >&5
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12460 $as_echo "no" >&6; }
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
12471 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
12472 tmp_flags
="$EXTRA_KCFLAGS"
12473 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
12476 cat confdefs.h
- <<_ACEOF >conftest.c
12479 #include <linux/blkdev.h>
12485 struct block_device *bdev = NULL;
12486 bdev_logical_block_size(bdev);
12495 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12496 echo "obj-m := conftest.o" >build
/Makefile
12498 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12499 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12501 (eval $ac_try) 2>&5
12503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12504 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12505 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12506 (eval $ac_try) 2>&5
12508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12509 test $ac_status = 0; }; }; then :
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12512 $as_echo "yes" >&6; }
12514 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
12518 $as_echo "$as_me: failed program was:" >&5
12519 sed 's/^/| /' conftest.
$ac_ext >&5
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12522 $as_echo "no" >&6; }
12530 EXTRA_KCFLAGS
="$tmp_flags"
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
12534 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
12535 tmp_flags
="$EXTRA_KCFLAGS"
12536 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
12539 cat confdefs.h
- <<_ACEOF >conftest.c
12542 #include <linux/blkdev.h>
12548 struct block_device *bdev = NULL;
12549 bdev_physical_block_size(bdev);
12558 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12559 echo "obj-m := conftest.o" >build
/Makefile
12561 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12562 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12563 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12564 (eval $ac_try) 2>&5
12566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12567 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12568 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12569 (eval $ac_try) 2>&5
12571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12572 test $ac_status = 0; }; }; then :
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12575 $as_echo "yes" >&6; }
12577 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
12581 $as_echo "$as_me: failed program was:" >&5
12582 sed 's/^/| /' conftest.
$ac_ext >&5
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12585 $as_echo "no" >&6; }
12593 EXTRA_KCFLAGS
="$tmp_flags"
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST is defined" >&5
12597 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
12600 cat confdefs.h
- <<_ACEOF >conftest.c
12603 #include <linux/bio.h>
12609 int flags __attribute__ ((unused));
12610 flags = (1 << BIO_RW_FAILFAST);
12619 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12620 echo "obj-m := conftest.o" >build
/Makefile
12622 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12623 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12625 (eval $ac_try) 2>&5
12627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12628 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12630 (eval $ac_try) 2>&5
12632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12633 test $ac_status = 0; }; }; then :
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12636 $as_echo "yes" >&6; }
12638 $as_echo "#define HAVE_BIO_RW_FAILFAST 1" >>confdefs.h
12642 $as_echo "$as_me: failed program was:" >&5
12643 sed 's/^/| /' conftest.
$ac_ext >&5
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12646 $as_echo "no" >&6; }
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
12657 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
12660 cat confdefs.h
- <<_ACEOF >conftest.c
12663 #include <linux/bio.h>
12669 int flags __attribute__ ((unused));
12670 flags = ((1 << BIO_RW_FAILFAST_DEV) |
12671 (1 << BIO_RW_FAILFAST_TRANSPORT) |
12672 (1 << BIO_RW_FAILFAST_DRIVER));
12681 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12682 echo "obj-m := conftest.o" >build
/Makefile
12684 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12685 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12686 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12687 (eval $ac_try) 2>&5
12689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12690 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12691 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12692 (eval $ac_try) 2>&5
12694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12695 test $ac_status = 0; }; }; then :
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12698 $as_echo "yes" >&6; }
12700 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
12704 $as_echo "$as_me: failed program was:" >&5
12705 sed 's/^/| /' conftest.
$ac_ext >&5
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12708 $as_echo "no" >&6; }
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
12719 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
12722 cat confdefs.h
- <<_ACEOF >conftest.c
12725 #include <linux/bio.h>
12731 int flags __attribute__ ((unused));
12732 flags = REQ_FAILFAST_MASK;
12741 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12742 echo "obj-m := conftest.o" >build
/Makefile
12744 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12745 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12746 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12747 (eval $ac_try) 2>&5
12749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12750 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12751 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12752 (eval $ac_try) 2>&5
12754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12755 test $ac_status = 0; }; }; then :
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12758 $as_echo "yes" >&6; }
12760 $as_echo "#define HAVE_BIO_REQ_FAILFAST_MASK 1" >>confdefs.h
12764 $as_echo "$as_me: failed program was:" >&5
12765 sed 's/^/| /' conftest.
$ac_ext >&5
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12768 $as_echo "no" >&6; }
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 2 args" >&5
12779 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
12782 cat confdefs.h
- <<_ACEOF >conftest.c
12785 #include <linux/bio.h>
12787 void wanted_end_io(struct bio *bio, int x) { return; }
12789 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
12803 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12804 echo "obj-m := conftest.o" >build
/Makefile
12806 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12807 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12808 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12809 (eval $ac_try) 2>&5
12811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12812 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12813 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12814 (eval $ac_try) 2>&5
12816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12817 test $ac_status = 0; }; }; then :
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12820 $as_echo "yes" >&6; }
12822 $as_echo "#define HAVE_2ARGS_BIO_END_IO_T 1" >>confdefs.h
12826 $as_echo "$as_me: failed program was:" >&5
12827 sed 's/^/| /' conftest.
$ac_ext >&5
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12830 $as_echo "no" >&6; }
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_SYNC is defined" >&5
12841 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
12844 cat confdefs.h
- <<_ACEOF >conftest.c
12847 #include <linux/bio.h>
12853 int flags __attribute__ ((unused));
12854 flags = BIO_RW_SYNC;
12863 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12864 echo "obj-m := conftest.o" >build
/Makefile
12866 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12867 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12869 (eval $ac_try) 2>&5
12871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12872 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12873 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12874 (eval $ac_try) 2>&5
12876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12877 test $ac_status = 0; }; }; then :
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12880 $as_echo "yes" >&6; }
12882 $as_echo "#define HAVE_BIO_RW_SYNC 1" >>confdefs.h
12886 $as_echo "$as_me: failed program was:" >&5
12887 sed 's/^/| /' conftest.
$ac_ext >&5
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12890 $as_echo "no" >&6; }
12900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_SYNCIO is defined" >&5
12901 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
12904 cat confdefs.h
- <<_ACEOF >conftest.c
12907 #include <linux/bio.h>
12913 int flags __attribute__ ((unused));
12914 flags = BIO_RW_SYNCIO;
12923 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12924 echo "obj-m := conftest.o" >build
/Makefile
12926 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12927 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12929 (eval $ac_try) 2>&5
12931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12932 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12934 (eval $ac_try) 2>&5
12936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12937 test $ac_status = 0; }; }; then :
12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12940 $as_echo "yes" >&6; }
12942 $as_echo "#define HAVE_BIO_RW_SYNCIO 1" >>confdefs.h
12946 $as_echo "$as_me: failed program was:" >&5
12947 sed 's/^/| /' conftest.
$ac_ext >&5
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12950 $as_echo "no" >&6; }
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_SYNC is defined" >&5
12961 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
12964 cat confdefs.h
- <<_ACEOF >conftest.c
12967 #include <linux/bio.h>
12973 int flags __attribute__ ((unused));
12983 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
12984 echo "obj-m := conftest.o" >build
/Makefile
12986 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
12987 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
12988 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12989 (eval $ac_try) 2>&5
12991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12992 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
12993 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
12994 (eval $ac_try) 2>&5
12996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12997 test $ac_status = 0; }; }; then :
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13000 $as_echo "yes" >&6; }
13002 $as_echo "#define HAVE_REQ_SYNC 1" >>confdefs.h
13006 $as_echo "$as_me: failed program was:" >&5
13007 sed 's/^/| /' conftest.
$ac_ext >&5
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13010 $as_echo "no" >&6; }
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_end_request() is available" >&5
13021 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
13022 tmp_flags
="$EXTRA_KCFLAGS"
13023 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
13026 cat confdefs.h
- <<_ACEOF >conftest.c
13029 #include <linux/blkdev.h>
13035 struct request *req = NULL;
13036 (void) blk_end_request(req, 0, 0);
13045 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13046 echo "obj-m := conftest.o" >build
/Makefile
13048 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13049 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13050 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13051 (eval $ac_try) 2>&5
13053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13054 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13056 (eval $ac_try) 2>&5
13058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13059 test $ac_status = 0; }; }; then :
13061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13062 $as_echo "yes" >&6; }
13064 $as_echo "#define HAVE_BLK_END_REQUEST 1" >>confdefs.h
13068 $as_echo "$as_me: failed program was:" >&5
13069 sed 's/^/| /' conftest.
$ac_ext >&5
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13072 $as_echo "no" >&6; }
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_end_request() is GPL-only" >&5
13082 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
13085 cat confdefs.h
- <<_ACEOF >conftest.c
13088 #include <linux/module.h>
13089 #include <linux/blkdev.h>
13091 MODULE_LICENSE("CDDL");
13097 struct request *req = NULL;
13098 (void) blk_end_request(req, 0, 0);
13107 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13108 echo "obj-m := conftest.o" >build
/Makefile
13110 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13111 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13112 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13113 (eval $ac_try) 2>&5
13115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13116 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13117 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13118 (eval $ac_try) 2>&5
13120 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13121 test $ac_status = 0; }; }; then :
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13124 $as_echo "no" >&6; }
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: yes" >&5
13131 $as_echo "yes" >&6; }
13133 $as_echo "#define HAVE_BLK_END_REQUEST_GPL_ONLY 1" >>confdefs.h
13142 EXTRA_KCFLAGS
="$tmp_flags"
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
13146 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
13147 tmp_flags
="$EXTRA_KCFLAGS"
13148 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
13151 cat confdefs.h
- <<_ACEOF >conftest.c
13154 #include <linux/blkdev.h>
13160 struct request_queue *q = NULL;
13161 (void) blk_queue_flush(q, REQ_FLUSH);
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 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_BLK_QUEUE_FLUSH 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 blk_queue_flush() is GPL-only" >&5
13207 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
13210 cat confdefs.h
- <<_ACEOF >conftest.c
13213 #include <linux/module.h>
13214 #include <linux/blkdev.h>
13216 MODULE_LICENSE("CDDL");
13222 struct request_queue *q = NULL;
13223 (void) blk_queue_flush(q, REQ_FLUSH);
13232 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13233 echo "obj-m := conftest.o" >build
/Makefile
13235 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13236 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13237 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13238 (eval $ac_try) 2>&5
13240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13241 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13242 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13243 (eval $ac_try) 2>&5
13245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13246 test $ac_status = 0; }; }; then :
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13249 $as_echo "no" >&6; }
13252 $as_echo "$as_me: failed program was:" >&5
13253 sed 's/^/| /' conftest.
$ac_ext >&5
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13256 $as_echo "yes" >&6; }
13258 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
13267 EXTRA_KCFLAGS
="$tmp_flags"
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
13271 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
13272 tmp_flags
="$EXTRA_KCFLAGS"
13273 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
13276 cat confdefs.h
- <<_ACEOF >conftest.c
13279 #include <linux/blkdev.h>
13285 struct request_queue *q = NULL;
13286 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
13295 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13296 echo "obj-m := conftest.o" >build
/Makefile
13298 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13299 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13300 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13301 (eval $ac_try) 2>&5
13303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13304 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13305 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13306 (eval $ac_try) 2>&5
13308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13309 test $ac_status = 0; }; }; then :
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13312 $as_echo "yes" >&6; }
13314 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
13318 $as_echo "$as_me: failed program was:" >&5
13319 sed 's/^/| /' conftest.
$ac_ext >&5
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13322 $as_echo "no" >&6; }
13330 EXTRA_KCFLAGS
="$tmp_flags"
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
13334 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
13335 tmp_flags
="$EXTRA_KCFLAGS"
13336 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
13339 cat confdefs.h
- <<_ACEOF >conftest.c
13342 #include <linux/blkdev.h>
13348 struct request_queue *q = NULL;
13349 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
13358 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13359 echo "obj-m := conftest.o" >build
/Makefile
13361 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13362 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13363 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13364 (eval $ac_try) 2>&5
13366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13367 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13369 (eval $ac_try) 2>&5
13371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13372 test $ac_status = 0; }; }; then :
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13375 $as_echo "yes" >&6; }
13377 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
13381 $as_echo "$as_me: failed program was:" >&5
13382 sed 's/^/| /' conftest.
$ac_ext >&5
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13385 $as_echo "no" >&6; }
13393 EXTRA_KCFLAGS
="$tmp_flags"
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_physical_block_size() is available" >&5
13397 $as_echo_n "checking whether blk_queue_physical_block_size() is available... " >&6; }
13398 tmp_flags
="$EXTRA_KCFLAGS"
13399 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
13402 cat confdefs.h
- <<_ACEOF >conftest.c
13405 #include <linux/blkdev.h>
13411 struct request_queue *q = NULL;
13412 unsigned short block_size = 1;
13413 (void) blk_queue_physical_block_size(q, block_size);
13422 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13423 echo "obj-m := conftest.o" >build
/Makefile
13425 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13426 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13427 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13428 (eval $ac_try) 2>&5
13430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13431 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13432 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13433 (eval $ac_try) 2>&5
13435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13436 test $ac_status = 0; }; }; then :
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13439 $as_echo "yes" >&6; }
13441 $as_echo "#define HAVE_BLK_QUEUE_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
13445 $as_echo "$as_me: failed program was:" >&5
13446 sed 's/^/| /' conftest.
$ac_ext >&5
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13449 $as_echo "no" >&6; }
13457 EXTRA_KCFLAGS
="$tmp_flags"
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_io_opt() is available" >&5
13461 $as_echo_n "checking whether blk_queue_io_opt() is available... " >&6; }
13462 tmp_flags
="$EXTRA_KCFLAGS"
13463 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
13466 cat confdefs.h
- <<_ACEOF >conftest.c
13469 #include <linux/blkdev.h>
13475 struct request_queue *q = NULL;
13476 unsigned int opt = 1;
13477 (void) blk_queue_io_opt(q, opt);
13486 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13487 echo "obj-m := conftest.o" >build
/Makefile
13489 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13490 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13491 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13492 (eval $ac_try) 2>&5
13494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13495 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13496 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13497 (eval $ac_try) 2>&5
13499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13500 test $ac_status = 0; }; }; then :
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13503 $as_echo "yes" >&6; }
13505 $as_echo "#define HAVE_BLK_QUEUE_IO_OPT 1" >>confdefs.h
13509 $as_echo "$as_me: failed program was:" >&5
13510 sed 's/^/| /' conftest.
$ac_ext >&5
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13513 $as_echo "no" >&6; }
13521 EXTRA_KCFLAGS
="$tmp_flags"
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_nonrot() is available" >&5
13525 $as_echo_n "checking whether blk_queue_nonrot() is available... " >&6; }
13526 tmp_flags
="$EXTRA_KCFLAGS"
13527 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
13530 cat confdefs.h
- <<_ACEOF >conftest.c
13533 #include <linux/blkdev.h>
13539 struct request_queue *q = NULL;
13540 (void) blk_queue_nonrot(q);
13549 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13550 echo "obj-m := conftest.o" >build
/Makefile
13552 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13553 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13554 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13555 (eval $ac_try) 2>&5
13557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13558 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13559 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13560 (eval $ac_try) 2>&5
13562 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13563 test $ac_status = 0; }; }; then :
13565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13566 $as_echo "yes" >&6; }
13568 $as_echo "#define HAVE_BLK_QUEUE_NONROT 1" >>confdefs.h
13572 $as_echo "$as_me: failed program was:" >&5
13573 sed 's/^/| /' conftest.
$ac_ext >&5
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13576 $as_echo "no" >&6; }
13584 EXTRA_KCFLAGS
="$tmp_flags"
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_discard() is available" >&5
13588 $as_echo_n "checking whether blk_queue_discard() is available... " >&6; }
13589 tmp_flags
="$EXTRA_KCFLAGS"
13590 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
13593 cat confdefs.h
- <<_ACEOF >conftest.c
13596 #include <linux/blkdev.h>
13602 struct request_queue *q = NULL;
13603 (void) blk_queue_discard(q);
13612 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13613 echo "obj-m := conftest.o" >build
/Makefile
13615 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13616 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13617 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13618 (eval $ac_try) 2>&5
13620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13621 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13622 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13623 (eval $ac_try) 2>&5
13625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13626 test $ac_status = 0; }; }; then :
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13629 $as_echo "yes" >&6; }
13631 $as_echo "#define HAVE_BLK_QUEUE_DISCARD 1" >>confdefs.h
13635 $as_echo "$as_me: failed program was:" >&5
13636 sed 's/^/| /' conftest.
$ac_ext >&5
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13639 $as_echo "no" >&6; }
13647 EXTRA_KCFLAGS
="$tmp_flags"
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_fetch_request() is available" >&5
13651 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
13652 tmp_flags
="$EXTRA_KCFLAGS"
13653 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
13656 cat confdefs.h
- <<_ACEOF >conftest.c
13659 #include <linux/blkdev.h>
13665 struct request_queue *q = NULL;
13666 (void) blk_fetch_request(q);
13675 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13676 echo "obj-m := conftest.o" >build
/Makefile
13678 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13679 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13681 (eval $ac_try) 2>&5
13683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13684 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13685 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13686 (eval $ac_try) 2>&5
13688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13689 test $ac_status = 0; }; }; then :
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13692 $as_echo "yes" >&6; }
13694 $as_echo "#define HAVE_BLK_FETCH_REQUEST 1" >>confdefs.h
13698 $as_echo "$as_me: failed program was:" >&5
13699 sed 's/^/| /' conftest.
$ac_ext >&5
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13702 $as_echo "no" >&6; }
13710 EXTRA_KCFLAGS
="$tmp_flags"
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_requeue_request() is available" >&5
13714 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
13715 tmp_flags
="$EXTRA_KCFLAGS"
13716 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
13719 cat confdefs.h
- <<_ACEOF >conftest.c
13722 #include <linux/blkdev.h>
13728 struct request_queue *q = NULL;
13729 struct request *req = NULL;
13730 blk_requeue_request(q, req);
13739 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13740 echo "obj-m := conftest.o" >build
/Makefile
13742 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13743 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13744 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13745 (eval $ac_try) 2>&5
13747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13748 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13749 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13750 (eval $ac_try) 2>&5
13752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13753 test $ac_status = 0; }; }; then :
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13756 $as_echo "yes" >&6; }
13758 $as_echo "#define HAVE_BLK_REQUEUE_REQUEST 1" >>confdefs.h
13762 $as_echo "$as_me: failed program was:" >&5
13763 sed 's/^/| /' conftest.
$ac_ext >&5
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13766 $as_echo "no" >&6; }
13774 EXTRA_KCFLAGS
="$tmp_flags"
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_bytes() is available" >&5
13778 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
13779 tmp_flags
="$EXTRA_KCFLAGS"
13780 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
13783 cat confdefs.h
- <<_ACEOF >conftest.c
13786 #include <linux/blkdev.h>
13792 struct request *req = NULL;
13793 (void) blk_rq_bytes(req);
13802 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13803 echo "obj-m := conftest.o" >build
/Makefile
13805 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13806 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13808 (eval $ac_try) 2>&5
13810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13811 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13813 (eval $ac_try) 2>&5
13815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13816 test $ac_status = 0; }; }; then :
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13819 $as_echo "yes" >&6; }
13821 $as_echo "#define HAVE_BLK_RQ_BYTES 1" >>confdefs.h
13825 $as_echo "$as_me: failed program was:" >&5
13826 sed 's/^/| /' conftest.
$ac_ext >&5
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13829 $as_echo "no" >&6; }
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_bytes() is GPL-only" >&5
13839 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
13842 cat confdefs.h
- <<_ACEOF >conftest.c
13845 #include <linux/module.h>
13846 #include <linux/blkdev.h>
13848 MODULE_LICENSE("CDDL");
13854 struct request *req = NULL;
13855 (void) blk_rq_bytes(req);
13864 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13865 echo "obj-m := conftest.o" >build
/Makefile
13867 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13868 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13869 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13870 (eval $ac_try) 2>&5
13872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13873 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13875 (eval $ac_try) 2>&5
13877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13878 test $ac_status = 0; }; }; then :
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13881 $as_echo "no" >&6; }
13884 $as_echo "$as_me: failed program was:" >&5
13885 sed 's/^/| /' conftest.
$ac_ext >&5
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13888 $as_echo "yes" >&6; }
13890 $as_echo "#define HAVE_BLK_RQ_BYTES_GPL_ONLY 1" >>confdefs.h
13899 EXTRA_KCFLAGS
="$tmp_flags"
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_pos() is available" >&5
13903 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
13904 tmp_flags
="$EXTRA_KCFLAGS"
13905 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
13908 cat confdefs.h
- <<_ACEOF >conftest.c
13911 #include <linux/blkdev.h>
13917 struct request *req = NULL;
13918 (void) blk_rq_pos(req);
13927 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13928 echo "obj-m := conftest.o" >build
/Makefile
13930 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13931 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13932 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13933 (eval $ac_try) 2>&5
13935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13936 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
13937 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13938 (eval $ac_try) 2>&5
13940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13941 test $ac_status = 0; }; }; then :
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13944 $as_echo "yes" >&6; }
13946 $as_echo "#define HAVE_BLK_RQ_POS 1" >>confdefs.h
13950 $as_echo "$as_me: failed program was:" >&5
13951 sed 's/^/| /' conftest.
$ac_ext >&5
13953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13954 $as_echo "no" >&6; }
13962 EXTRA_KCFLAGS
="$tmp_flags"
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_sectors() is available" >&5
13966 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
13967 tmp_flags
="$EXTRA_KCFLAGS"
13968 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
13971 cat confdefs.h
- <<_ACEOF >conftest.c
13974 #include <linux/blkdev.h>
13980 struct request *req = NULL;
13981 (void) blk_rq_sectors(req);
13990 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
13991 echo "obj-m := conftest.o" >build
/Makefile
13993 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
13994 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
13995 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
13996 (eval $ac_try) 2>&5
13998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13999 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14001 (eval $ac_try) 2>&5
14003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14004 test $ac_status = 0; }; }; then :
14006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14007 $as_echo "yes" >&6; }
14009 $as_echo "#define HAVE_BLK_RQ_SECTORS 1" >>confdefs.h
14013 $as_echo "$as_me: failed program was:" >&5
14014 sed 's/^/| /' conftest.
$ac_ext >&5
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14017 $as_echo "no" >&6; }
14025 EXTRA_KCFLAGS
="$tmp_flags"
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
14029 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
14030 tmp_flags
="$EXTRA_KCFLAGS"
14031 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14034 cat confdefs.h
- <<_ACEOF >conftest.c
14037 #include <linux/blkdev.h>
14043 struct gendisk *disk = NULL;
14044 (void) get_disk_ro(disk);
14053 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14054 echo "obj-m := conftest.o" >build
/Makefile
14056 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14057 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14058 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14059 (eval $ac_try) 2>&5
14061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14062 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14063 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14064 (eval $ac_try) 2>&5
14066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14067 test $ac_status = 0; }; }; then :
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14070 $as_echo "yes" >&6; }
14072 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
14076 $as_echo "$as_me: failed program was:" >&5
14077 sed 's/^/| /' conftest.
$ac_ext >&5
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14080 $as_echo "no" >&6; }
14088 EXTRA_KCFLAGS
="$tmp_flags"
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
14091 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
14095 cat confdefs.h
- <<_ACEOF >conftest.c
14098 #include <linux/genhd.h>
14104 get_gendisk(0, NULL);
14113 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14114 echo "obj-m := conftest.o" >build
/Makefile
14116 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14117 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14118 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14119 (eval $ac_try) 2>&5
14121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14122 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14123 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14124 (eval $ac_try) 2>&5
14126 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14127 test $ac_status = 0; }; }; then :
14130 $as_echo "$as_me: failed program was:" >&5
14131 sed 's/^/| /' conftest.
$ac_ext >&5
14139 if test $rc -ne 0; then :
14141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14142 $as_echo "no" >&6; }
14145 if test "x$enable_linux_builtin" != xyes
; then
14147 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
14148 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
14150 if test $rc -ne 0; then
14152 for file in block
/genhd.c
; do
14153 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
14154 "$LINUX/$file" 2>/dev
/null
14156 if test $rc -eq 0; then
14161 if test $export -eq 0; then :
14171 if test $rc -ne 0; then :
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14174 $as_echo "no" >&6; }
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14179 $as_echo "yes" >&6; }
14181 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rq_is_sync() is available" >&5
14190 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
14191 tmp_flags
="$EXTRA_KCFLAGS"
14192 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14195 cat confdefs.h
- <<_ACEOF >conftest.c
14198 #include <linux/blkdev.h>
14204 struct request *req = NULL;
14205 (void) rq_is_sync(req);
14214 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14215 echo "obj-m := conftest.o" >build
/Makefile
14217 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14218 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14219 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14220 (eval $ac_try) 2>&5
14222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14223 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14224 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14225 (eval $ac_try) 2>&5
14227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14228 test $ac_status = 0; }; }; then :
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14231 $as_echo "yes" >&6; }
14233 $as_echo "#define HAVE_RQ_IS_SYNC 1" >>confdefs.h
14237 $as_echo "$as_me: failed program was:" >&5
14238 sed 's/^/| /' conftest.
$ac_ext >&5
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14241 $as_echo "no" >&6; }
14249 EXTRA_KCFLAGS
="$tmp_flags"
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rq_for_each_segment() is available" >&5
14253 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
14254 tmp_flags
="$EXTRA_KCFLAGS"
14255 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
14258 cat confdefs.h
- <<_ACEOF >conftest.c
14261 #include <linux/blkdev.h>
14267 struct bio_vec *bv;
14268 struct req_iterator iter;
14269 struct request *req = NULL;
14270 rq_for_each_segment(bv, req, iter) { }
14279 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14280 echo "obj-m := conftest.o" >build
/Makefile
14282 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14283 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14284 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14285 (eval $ac_try) 2>&5
14287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14288 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14290 (eval $ac_try) 2>&5
14292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14293 test $ac_status = 0; }; }; then :
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14296 $as_echo "yes" >&6; }
14298 $as_echo "#define HAVE_RQ_FOR_EACH_SEGMENT 1" >>confdefs.h
14302 $as_echo "$as_me: failed program was:" >&5
14303 sed 's/^/| /' conftest.
$ac_ext >&5
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14306 $as_echo "no" >&6; }
14314 EXTRA_KCFLAGS
="$tmp_flags"
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
14318 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
14321 cat confdefs.h
- <<_ACEOF >conftest.c
14324 #include <linux/blkdev.h>
14330 struct queue_limits ql __attribute__ ((unused));
14332 ql.discard_granularity = 0;
14341 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14342 echo "obj-m := conftest.o" >build
/Makefile
14344 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14345 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14347 (eval $ac_try) 2>&5
14349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14350 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14351 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14352 (eval $ac_try) 2>&5
14354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14355 test $ac_status = 0; }; }; then :
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14358 $as_echo "yes" >&6; }
14360 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
14364 $as_echo "$as_me: failed program was:" >&5
14365 sed 's/^/| /' conftest.
$ac_ext >&5
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14368 $as_echo "no" >&6; }
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_hander" >&5
14378 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
14381 cat confdefs.h
- <<_ACEOF >conftest.c
14384 #include <linux/fs.h>
14385 #include <linux/xattr.h>
14387 const struct xattr_handler xattr_test_handler = {
14393 const struct xattr_handler *xattr_handlers[] = {
14394 &xattr_test_handler,
14401 struct super_block sb __attribute__ ((unused));
14403 sb.s_xattr = xattr_handlers;
14412 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14413 echo "obj-m := conftest.o" >build
/Makefile
14415 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14416 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14417 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14418 (eval $ac_try) 2>&5
14420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14421 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14422 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14423 (eval $ac_try) 2>&5
14425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14426 test $ac_status = 0; }; }; then :
14428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14429 $as_echo "yes" >&6; }
14431 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
14435 $as_echo "$as_me: failed program was:" >&5
14436 sed 's/^/| /' conftest.
$ac_ext >&5
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14439 $as_echo "no" >&6; }
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
14450 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
14453 cat confdefs.h
- <<_ACEOF >conftest.c
14456 #include <linux/xattr.h>
14462 int (*get)(struct dentry *dentry, const char *name,
14463 void *buffer, size_t size, int handler_flags) = NULL;
14464 struct xattr_handler xops __attribute__ ((unused));
14475 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14476 echo "obj-m := conftest.o" >build
/Makefile
14478 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14479 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14480 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14481 (eval $ac_try) 2>&5
14483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14484 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14485 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14486 (eval $ac_try) 2>&5
14488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14489 test $ac_status = 0; }; }; then :
14491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14492 $as_echo "yes" >&6; }
14494 $as_echo "#define HAVE_DENTRY_XATTR_GET 1" >>confdefs.h
14498 $as_echo "$as_me: failed program was:" >&5
14499 sed 's/^/| /' conftest.
$ac_ext >&5
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14502 $as_echo "no" >&6; }
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
14513 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
14516 cat confdefs.h
- <<_ACEOF >conftest.c
14519 #include <linux/xattr.h>
14525 int (*set)(struct dentry *dentry, const char *name,
14526 const void *buffer, size_t size, int flags,
14527 int handler_flags) = NULL;
14528 struct xattr_handler xops __attribute__ ((unused));
14539 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14540 echo "obj-m := conftest.o" >build
/Makefile
14542 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14543 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14544 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14545 (eval $ac_try) 2>&5
14547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14548 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14549 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14550 (eval $ac_try) 2>&5
14552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14553 test $ac_status = 0; }; }; then :
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14556 $as_echo "yes" >&6; }
14558 $as_echo "#define HAVE_DENTRY_XATTR_SET 1" >>confdefs.h
14562 $as_echo "$as_me: failed program was:" >&5
14563 sed 's/^/| /' conftest.
$ac_ext >&5
14565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14566 $as_echo "no" >&6; }
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
14577 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
14581 cat confdefs.h
- <<_ACEOF >conftest.c
14584 #include <linux/fs.h>
14586 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
14587 static struct super_operations sops __attribute__ ((unused)) = {
14588 .show_options = show_options,
14603 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14604 echo "obj-m := conftest.o" >build
/Makefile
14606 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14607 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14608 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14609 (eval $ac_try) 2>&5
14611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14612 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14613 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14614 (eval $ac_try) 2>&5
14616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14617 test $ac_status = 0; }; }; then :
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14620 $as_echo "yes" >&6; }
14622 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
14626 $as_echo "$as_me: failed program was:" >&5
14627 sed 's/^/| /' conftest.
$ac_ext >&5
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14630 $as_echo "no" >&6; }
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
14641 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
14645 cat confdefs.h
- <<_ACEOF >conftest.c
14648 #include <linux/fs.h>
14650 int test_fsync(struct file *f, struct dentry *dentry, int x)
14653 static const struct file_operations
14654 fops __attribute__ ((unused)) = {
14655 .fsync = test_fsync,
14670 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14671 echo "obj-m := conftest.o" >build
/Makefile
14673 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14674 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14675 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14676 (eval $ac_try) 2>&5
14678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14679 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14680 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14681 (eval $ac_try) 2>&5
14683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14684 test $ac_status = 0; }; }; then :
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
14687 $as_echo "dentry" >&6; }
14689 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
14693 $as_echo "$as_me: failed program was:" >&5
14694 sed 's/^/| /' conftest.
$ac_ext >&5
14707 cat confdefs.h
- <<_ACEOF >conftest.c
14710 #include <linux/fs.h>
14712 int test_fsync(struct file *f, int x) { return 0; }
14714 static const struct file_operations
14715 fops __attribute__ ((unused)) = {
14716 .fsync = test_fsync,
14731 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14732 echo "obj-m := conftest.o" >build
/Makefile
14734 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14735 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14736 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14737 (eval $ac_try) 2>&5
14739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14740 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14741 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14742 (eval $ac_try) 2>&5
14744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14745 test $ac_status = 0; }; }; then :
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
14748 $as_echo "no dentry" >&6; }
14750 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
14754 $as_echo "$as_me: failed program was:" >&5
14755 sed 's/^/| /' conftest.
$ac_ext >&5
14768 cat confdefs.h
- <<_ACEOF >conftest.c
14771 #include <linux/fs.h>
14773 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
14776 static const struct file_operations
14777 fops __attribute__ ((unused)) = {
14778 .fsync = test_fsync,
14793 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14794 echo "obj-m := conftest.o" >build
/Makefile
14796 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14797 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14798 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14799 (eval $ac_try) 2>&5
14801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14802 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14804 (eval $ac_try) 2>&5
14806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14807 test $ac_status = 0; }; }; then :
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
14810 $as_echo "range" >&6; }
14812 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
14816 $as_echo "$as_me: failed program was:" >&5
14817 sed 's/^/| /' conftest.
$ac_ext >&5
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
14830 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
14833 cat confdefs.h
- <<_ACEOF >conftest.c
14836 #include <linux/fs.h>
14837 void evict_inode (struct inode * t) { return; }
14838 static struct super_operations sops __attribute__ ((unused)) = {
14839 .evict_inode = evict_inode,
14854 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14855 echo "obj-m := conftest.o" >build
/Makefile
14857 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14858 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14859 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14860 (eval $ac_try) 2>&5
14862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14863 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14864 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14865 (eval $ac_try) 2>&5
14867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14868 test $ac_status = 0; }; }; then :
14870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14871 $as_echo "yes" >&6; }
14873 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
14877 $as_echo "$as_me: failed program was:" >&5
14878 sed 's/^/| /' conftest.
$ac_ext >&5
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14881 $as_echo "no" >&6; }
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
14892 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
14895 cat confdefs.h
- <<_ACEOF >conftest.c
14898 #include <linux/fs.h>
14900 void dirty_inode(struct inode *a, int b) { return; }
14902 static const struct super_operations
14903 sops __attribute__ ((unused)) = {
14904 .dirty_inode = dirty_inode,
14919 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14920 echo "obj-m := conftest.o" >build
/Makefile
14922 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14923 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14925 (eval $ac_try) 2>&5
14927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14928 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14929 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14930 (eval $ac_try) 2>&5
14932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14933 test $ac_status = 0; }; }; then :
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14936 $as_echo "yes" >&6; }
14938 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
14942 $as_echo "$as_me: failed program was:" >&5
14943 sed 's/^/| /' conftest.
$ac_ext >&5
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14946 $as_echo "no" >&6; }
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
14957 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
14960 cat confdefs.h
- <<_ACEOF >conftest.c
14963 #include <linux/fs.h>
14965 int nr_cached_objects(struct super_block *sb) { return 0; }
14967 static const struct super_operations
14968 sops __attribute__ ((unused)) = {
14969 .nr_cached_objects = nr_cached_objects,
14984 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
14985 echo "obj-m := conftest.o" >build
/Makefile
14987 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
14988 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
14989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14990 (eval $ac_try) 2>&5
14992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14993 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
14994 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
14995 (eval $ac_try) 2>&5
14997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14998 test $ac_status = 0; }; }; then :
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15001 $as_echo "yes" >&6; }
15003 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
15007 $as_echo "$as_me: failed program was:" >&5
15008 sed 's/^/| /' conftest.
$ac_ext >&5
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15011 $as_echo "no" >&6; }
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
15022 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
15025 cat confdefs.h
- <<_ACEOF >conftest.c
15028 #include <linux/fs.h>
15030 void free_cached_objects(struct super_block *sb, int x)
15033 static const struct super_operations
15034 sops __attribute__ ((unused)) = {
15035 .free_cached_objects = free_cached_objects,
15050 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15051 echo "obj-m := conftest.o" >build
/Makefile
15053 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15054 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15055 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15056 (eval $ac_try) 2>&5
15058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15059 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15060 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15061 (eval $ac_try) 2>&5
15063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15064 test $ac_status = 0; }; }; then :
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15067 $as_echo "yes" >&6; }
15069 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
15073 $as_echo "$as_me: failed program was:" >&5
15074 sed 's/^/| /' conftest.
$ac_ext >&5
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15077 $as_echo "no" >&6; }
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
15089 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
15092 cat confdefs.h
- <<_ACEOF >conftest.c
15095 #include <linux/fs.h>
15097 long test_fallocate(struct file *file, int mode,
15098 loff_t offset, loff_t len) { return 0; }
15100 static const struct file_operations
15101 fops __attribute__ ((unused)) = {
15102 .fallocate = test_fallocate,
15117 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15118 echo "obj-m := conftest.o" >build
/Makefile
15120 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15121 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15123 (eval $ac_try) 2>&5
15125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15126 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15128 (eval $ac_try) 2>&5
15130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15131 test $ac_status = 0; }; }; then :
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15134 $as_echo "yes" >&6; }
15136 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
15140 $as_echo "$as_me: failed program was:" >&5
15141 sed 's/^/| /' conftest.
$ac_ext >&5
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15144 $as_echo "no" >&6; }
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
15155 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
15158 cat confdefs.h
- <<_ACEOF >conftest.c
15161 #include <linux/fs.h>
15163 long test_fallocate(struct inode *inode, int mode,
15164 loff_t offset, loff_t len) { return 0; }
15166 static const struct inode_operations
15167 fops __attribute__ ((unused)) = {
15168 .fallocate = test_fallocate,
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 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: yes" >&5
15200 $as_echo "yes" >&6; }
15202 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
15206 $as_echo "$as_me: failed program was:" >&5
15207 sed 's/^/| /' conftest.
$ac_ext >&5
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15210 $as_echo "no" >&6; }
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
15222 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
15225 cat confdefs.h
- <<_ACEOF >conftest.c
15228 #include <linux/fs.h>
15230 int mkdir(struct inode *inode, struct dentry *dentry,
15231 umode_t umode) { return 0; }
15233 static const struct inode_operations
15234 iops __attribute__ ((unused)) = {
15250 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15251 echo "obj-m := conftest.o" >build
/Makefile
15253 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15254 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15255 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15256 (eval $ac_try) 2>&5
15258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15259 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15260 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15261 (eval $ac_try) 2>&5
15263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15264 test $ac_status = 0; }; }; then :
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15267 $as_echo "yes" >&6; }
15269 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
15273 $as_echo "$as_me: failed program was:" >&5
15274 sed 's/^/| /' conftest.
$ac_ext >&5
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15277 $as_echo "no" >&6; }
15287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() takes struct nameidata" >&5
15288 $as_echo_n "checking whether iops->lookup() takes struct nameidata... " >&6; }
15291 cat confdefs.h
- <<_ACEOF >conftest.c
15294 #include <linux/fs.h>
15296 struct dentry *inode_lookup(struct inode *inode,
15297 struct dentry *dentry, struct nameidata *nidata)
15300 static const struct inode_operations iops
15301 __attribute__ ((unused)) = {
15302 .lookup = inode_lookup,
15317 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15318 echo "obj-m := conftest.o" >build
/Makefile
15320 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15321 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15322 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15323 (eval $ac_try) 2>&5
15325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15326 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15327 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15328 (eval $ac_try) 2>&5
15330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15331 test $ac_status = 0; }; }; then :
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15334 $as_echo "yes" >&6; }
15336 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
15340 $as_echo "$as_me: failed program was:" >&5
15341 sed 's/^/| /' conftest.
$ac_ext >&5
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15344 $as_echo "no" >&6; }
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() takes struct nameidata" >&5
15355 $as_echo_n "checking whether iops->create() takes struct nameidata... " >&6; }
15358 cat confdefs.h
- <<_ACEOF >conftest.c
15361 #include <linux/fs.h>
15363 #ifdef HAVE_MKDIR_UMODE_T
15364 int inode_create(struct inode *inode ,struct dentry *dentry,
15365 umode_t umode, struct nameidata *nidata) { return 0; }
15367 int inode_create(struct inode *inode,struct dentry *dentry,
15368 int umode, struct nameidata * nidata) { return 0; }
15371 static const struct inode_operations
15372 iops __attribute__ ((unused)) = {
15373 .create = inode_create,
15388 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15389 echo "obj-m := conftest.o" >build
/Makefile
15391 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15392 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15393 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15394 (eval $ac_try) 2>&5
15396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15397 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15398 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15399 (eval $ac_try) 2>&5
15401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15402 test $ac_status = 0; }; }; then :
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15405 $as_echo "yes" >&6; }
15407 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
15411 $as_echo "$as_me: failed program was:" >&5
15412 sed 's/^/| /' conftest.
$ac_ext >&5
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15415 $as_echo "no" >&6; }
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
15426 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
15429 cat confdefs.h
- <<_ACEOF >conftest.c
15432 #include <linux/fs.h>
15433 void truncate_range(struct inode *inode, loff_t start,
15434 loff_t end) { return; }
15435 static struct inode_operations iops __attribute__ ((unused)) = {
15436 .truncate_range = truncate_range,
15451 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15452 echo "obj-m := conftest.o" >build
/Makefile
15454 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15455 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15456 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15457 (eval $ac_try) 2>&5
15459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15460 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
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; }; }; then :
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15468 $as_echo "yes" >&6; }
15470 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
15474 $as_echo "$as_me: failed program was:" >&5
15475 sed 's/^/| /' conftest.
$ac_ext >&5
15477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15478 $as_echo "no" >&6; }
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
15489 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
15492 cat confdefs.h
- <<_ACEOF >conftest.c
15495 #include <linux/dcache.h>
15496 struct vfsmount *d_automount(struct path *p) { return NULL; }
15497 struct dentry_operations dops __attribute__ ((unused)) = {
15498 .d_automount = d_automount,
15513 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15514 echo "obj-m := conftest.o" >build
/Makefile
15516 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15517 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15518 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15519 (eval $ac_try) 2>&5
15521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15522 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15523 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15524 (eval $ac_try) 2>&5
15526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15527 test $ac_status = 0; }; }; then :
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15530 $as_echo "yes" >&6; }
15532 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
15536 $as_echo "$as_me: failed program was:" >&5
15537 sed 's/^/| /' conftest.
$ac_ext >&5
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15540 $as_echo "no" >&6; }
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
15551 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
15554 cat confdefs.h
- <<_ACEOF >conftest.c
15557 #include <linux/exportfs.h>
15558 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
15559 struct inode *parent) { return 0; }
15560 static struct export_operations eops __attribute__ ((unused))={
15561 .encode_fh = encode_fh,
15576 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15577 echo "obj-m := conftest.o" >build
/Makefile
15579 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15580 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15581 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15582 (eval $ac_try) 2>&5
15584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15585 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15586 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15587 (eval $ac_try) 2>&5
15589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15590 test $ac_status = 0; }; }; then :
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15593 $as_echo "yes" >&6; }
15595 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
15599 $as_echo "$as_me: failed program was:" >&5
15600 sed 's/^/| /' conftest.
$ac_ext >&5
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15603 $as_echo "no" >&6; }
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
15614 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
15617 cat confdefs.h
- <<_ACEOF >conftest.c
15620 #include <linux/exportfs.h>
15621 int commit_metadata(struct inode *inode) { return 0; }
15622 static struct export_operations eops __attribute__ ((unused))={
15623 .commit_metadata = commit_metadata,
15638 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15639 echo "obj-m := conftest.o" >build
/Makefile
15641 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15642 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15643 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15644 (eval $ac_try) 2>&5
15646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15647 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15648 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15649 (eval $ac_try) 2>&5
15651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15652 test $ac_status = 0; }; }; then :
15654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15655 $as_echo "yes" >&6; }
15657 $as_echo "#define HAVE_COMMIT_METADATA 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 clear_inode() is available" >&5
15675 $as_echo_n "checking whether clear_inode() is available... " >&6; }
15679 cat confdefs.h
- <<_ACEOF >conftest.c
15682 #include <linux/fs.h>
15697 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15698 echo "obj-m := conftest.o" >build
/Makefile
15700 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15701 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15702 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15703 (eval $ac_try) 2>&5
15705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15706 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15707 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15708 (eval $ac_try) 2>&5
15710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15711 test $ac_status = 0; }; }; then :
15714 $as_echo "$as_me: failed program was:" >&5
15715 sed 's/^/| /' conftest.
$ac_ext >&5
15723 if test $rc -ne 0; then :
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15726 $as_echo "no" >&6; }
15729 if test "x$enable_linux_builtin" != xyes
; then
15731 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
15732 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15734 if test $rc -ne 0; then
15736 for file in fs
/inode.c
; do
15737 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
15738 "$LINUX/$file" 2>/dev
/null
15740 if test $rc -eq 0; then
15745 if test $export -eq 0; then :
15755 if test $rc -ne 0; then :
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15758 $as_echo "no" >&6; }
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15763 $as_echo "yes" >&6; }
15765 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
15773 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
15777 cat confdefs.h
- <<_ACEOF >conftest.c
15780 #include <linux/fs.h>
15786 insert_inode_locked(NULL);
15795 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15796 echo "obj-m := conftest.o" >build
/Makefile
15798 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15799 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15800 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15801 (eval $ac_try) 2>&5
15803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15804 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15805 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15806 (eval $ac_try) 2>&5
15808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15809 test $ac_status = 0; }; }; then :
15812 $as_echo "$as_me: failed program was:" >&5
15813 sed 's/^/| /' conftest.
$ac_ext >&5
15821 if test $rc -ne 0; then :
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15824 $as_echo "no" >&6; }
15827 if test "x$enable_linux_builtin" != xyes
; then
15829 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
15830 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15832 if test $rc -ne 0; then
15834 for file in fs
/inode.c
; do
15835 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
15836 "$LINUX/$file" 2>/dev
/null
15838 if test $rc -eq 0; then
15843 if test $export -eq 0; then :
15853 if test $rc -ne 0; then :
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15856 $as_echo "no" >&6; }
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15861 $as_echo "yes" >&6; }
15863 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
15870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
15871 $as_echo_n "checking whether d_make_root() is available... " >&6; }
15875 cat confdefs.h
- <<_ACEOF >conftest.c
15878 #include <linux/dcache.h>
15893 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15894 echo "obj-m := conftest.o" >build
/Makefile
15896 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15897 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15899 (eval $ac_try) 2>&5
15901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15902 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
15903 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15904 (eval $ac_try) 2>&5
15906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15907 test $ac_status = 0; }; }; then :
15910 $as_echo "$as_me: failed program was:" >&5
15911 sed 's/^/| /' conftest.
$ac_ext >&5
15919 if test $rc -ne 0; then :
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15922 $as_echo "no" >&6; }
15925 if test "x$enable_linux_builtin" != xyes
; then
15927 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
15928 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
15930 if test $rc -ne 0; then
15932 for file in fs
/dcache.c
; do
15933 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
15934 "$LINUX/$file" 2>/dev
/null
15936 if test $rc -eq 0; then
15941 if test $export -eq 0; then :
15951 if test $rc -ne 0; then :
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15954 $as_echo "no" >&6; }
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15959 $as_echo "yes" >&6; }
15961 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
15969 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
15973 cat confdefs.h
- <<_ACEOF >conftest.c
15976 #include <linux/dcache.h>
15982 d_obtain_alias(NULL);
15991 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
15992 echo "obj-m := conftest.o" >build
/Makefile
15994 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
15995 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
15996 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15997 (eval $ac_try) 2>&5
15999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16000 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16001 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16002 (eval $ac_try) 2>&5
16004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16005 test $ac_status = 0; }; }; then :
16008 $as_echo "$as_me: failed program was:" >&5
16009 sed 's/^/| /' conftest.
$ac_ext >&5
16017 if test $rc -ne 0; then :
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16020 $as_echo "no" >&6; }
16023 if test "x$enable_linux_builtin" != xyes
; then
16025 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
16026 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
16028 if test $rc -ne 0; then
16030 for file in fs
/dcache.c
; do
16031 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
16032 "$LINUX/$file" 2>/dev
/null
16034 if test $rc -eq 0; then
16039 if test $export -eq 0; then :
16049 if test $rc -ne 0; then :
16051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16052 $as_echo "no" >&6; }
16056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16057 $as_echo "yes" >&6; }
16059 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
16067 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
16071 cat confdefs.h
- <<_ACEOF >conftest.c
16074 #include <linux/dcache.h>
16080 d_set_d_op(NULL, NULL);
16089 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16090 echo "obj-m := conftest.o" >build
/Makefile
16092 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16093 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16094 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16095 (eval $ac_try) 2>&5
16097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16098 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16099 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16100 (eval $ac_try) 2>&5
16102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16103 test $ac_status = 0; }; }; then :
16106 $as_echo "$as_me: failed program was:" >&5
16107 sed 's/^/| /' conftest.
$ac_ext >&5
16115 if test $rc -ne 0; then :
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16118 $as_echo "no" >&6; }
16121 if test "x$enable_linux_builtin" != xyes
; then
16123 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
16124 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
16126 if test $rc -ne 0; then
16128 for file in fs
/dcache.c
; do
16129 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
16130 "$LINUX/$file" 2>/dev
/null
16132 if test $rc -eq 0; then
16137 if test $export -eq 0; then :
16147 if test $rc -ne 0; then :
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16150 $as_echo "no" >&6; }
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16155 $as_echo "yes" >&6; }
16157 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
16166 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
16169 cat confdefs.h
- <<_ACEOF >conftest.c
16172 #include <linux/dcache.h>
16174 int revalidate (struct dentry *dentry,
16175 struct nameidata *nidata) { return 0; }
16177 static const struct dentry_operations
16178 dops __attribute__ ((unused)) = {
16179 .d_revalidate = revalidate,
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 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_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
16217 $as_echo "$as_me: failed program was:" >&5
16218 sed 's/^/| /' conftest.
$ac_ext >&5
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16221 $as_echo "no" >&6; }
16231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
16232 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
16235 cat confdefs.h
- <<_ACEOF >conftest.c
16238 #include <linux/dcache.h>
16240 const struct dentry_operations test_d_op = {
16241 .d_revalidate = NULL,
16248 struct dentry d __attribute__ ((unused));
16250 d.d_op = &test_d_op;
16259 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16260 echo "obj-m := conftest.o" >build
/Makefile
16262 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16263 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16264 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16265 (eval $ac_try) 2>&5
16267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16268 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16269 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16270 (eval $ac_try) 2>&5
16272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16273 test $ac_status = 0; }; }; then :
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16276 $as_echo "yes" >&6; }
16278 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
16282 $as_echo "$as_me: failed program was:" >&5
16283 sed 's/^/| /' conftest.
$ac_ext >&5
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16286 $as_echo "no" >&6; }
16295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5
16296 $as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
16300 cat confdefs.h
- <<_ACEOF >conftest.c
16303 #include <linux/fs.h>
16309 check_disk_size_change(NULL, NULL);
16318 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16319 echo "obj-m := conftest.o" >build
/Makefile
16321 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16322 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16323 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16324 (eval $ac_try) 2>&5
16326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16327 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16328 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16329 (eval $ac_try) 2>&5
16331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16332 test $ac_status = 0; }; }; then :
16335 $as_echo "$as_me: failed program was:" >&5
16336 sed 's/^/| /' conftest.
$ac_ext >&5
16344 if test $rc -ne 0; then :
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16347 $as_echo "no" >&6; }
16350 if test "x$enable_linux_builtin" != xyes
; then
16352 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
16353 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
16355 if test $rc -ne 0; then
16357 for file in fs
/block_dev.c
; do
16358 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
16359 "$LINUX/$file" 2>/dev
/null
16361 if test $rc -eq 0; then
16366 if test $export -eq 0; then :
16376 if test $rc -ne 0; then :
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16379 $as_echo "no" >&6; }
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16384 $as_echo "yes" >&6; }
16386 $as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
16394 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
16398 cat confdefs.h
- <<_ACEOF >conftest.c
16401 #include <linux/mm.h>
16407 truncate_setsize(NULL, 0);
16416 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16417 echo "obj-m := conftest.o" >build
/Makefile
16419 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16420 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16421 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16422 (eval $ac_try) 2>&5
16424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16425 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16426 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16427 (eval $ac_try) 2>&5
16429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16430 test $ac_status = 0; }; }; then :
16433 $as_echo "$as_me: failed program was:" >&5
16434 sed 's/^/| /' conftest.
$ac_ext >&5
16442 if test $rc -ne 0; then :
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16445 $as_echo "no" >&6; }
16448 if test "x$enable_linux_builtin" != xyes
; then
16450 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
16451 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
16453 if test $rc -ne 0; then
16455 for file in mm
/truncate.c
; do
16456 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
16457 "$LINUX/$file" 2>/dev
/null
16459 if test $rc -eq 0; then
16464 if test $export -eq 0; then :
16474 if test $rc -ne 0; then :
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16477 $as_echo "no" >&6; }
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16482 $as_echo "yes" >&6; }
16484 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
16493 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
16496 cat confdefs.h
- <<_ACEOF >conftest.c
16499 #include <linux/security.h>
16505 struct inode *ip __attribute__ ((unused)) = NULL;
16506 struct inode *dip __attribute__ ((unused)) = NULL;
16507 const struct qstr *str __attribute__ ((unused)) = NULL;
16508 char *name __attribute__ ((unused)) = NULL;
16509 void *value __attribute__ ((unused)) = NULL;
16510 size_t len __attribute__ ((unused)) = 0;
16512 security_inode_init_security(ip, dip, str, &name, &value, &len);
16521 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16522 echo "obj-m := conftest.o" >build
/Makefile
16524 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16525 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16526 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16527 (eval $ac_try) 2>&5
16529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16530 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16531 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16532 (eval $ac_try) 2>&5
16534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16535 test $ac_status = 0; }; }; then :
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16538 $as_echo "yes" >&6; }
16540 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
16544 $as_echo "$as_me: failed program was:" >&5
16545 sed 's/^/| /' conftest.
$ac_ext >&5
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16548 $as_echo "no" >&6; }
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
16559 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
16562 cat confdefs.h
- <<_ACEOF >conftest.c
16565 #include <linux/security.h>
16571 struct inode *ip __attribute__ ((unused)) = NULL;
16572 struct inode *dip __attribute__ ((unused)) = NULL;
16573 const struct qstr *str __attribute__ ((unused)) = NULL;
16574 initxattrs func __attribute__ ((unused)) = NULL;
16576 security_inode_init_security(ip, dip, str, func, NULL);
16585 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16586 echo "obj-m := conftest.o" >build
/Makefile
16588 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16589 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16590 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16591 (eval $ac_try) 2>&5
16593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16594 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16595 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16596 (eval $ac_try) 2>&5
16598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16599 test $ac_status = 0; }; }; then :
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16602 $as_echo "yes" >&6; }
16604 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
16608 $as_echo "$as_me: failed program was:" >&5
16609 sed 's/^/| /' conftest.
$ac_ext >&5
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16612 $as_echo "no" >&6; }
16621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
16622 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
16626 cat confdefs.h
- <<_ACEOF >conftest.c
16629 #include <linux/fs.h>
16635 mount_nodev(NULL, 0, NULL, NULL);
16644 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16645 echo "obj-m := conftest.o" >build
/Makefile
16647 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16648 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16649 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16650 (eval $ac_try) 2>&5
16652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16653 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16654 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16655 (eval $ac_try) 2>&5
16657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16658 test $ac_status = 0; }; }; then :
16661 $as_echo "$as_me: failed program was:" >&5
16662 sed 's/^/| /' conftest.
$ac_ext >&5
16670 if test $rc -ne 0; then :
16672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16673 $as_echo "no" >&6; }
16676 if test "x$enable_linux_builtin" != xyes
; then
16678 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
16679 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
16681 if test $rc -ne 0; then
16683 for file in fs
/super.c
; do
16684 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
16685 "$LINUX/$file" 2>/dev
/null
16687 if test $rc -eq 0; then
16692 if test $export -eq 0; then :
16702 if test $rc -ne 0; then :
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16705 $as_echo "no" >&6; }
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16710 $as_echo "yes" >&6; }
16712 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
16720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
16721 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
16724 cat confdefs.h
- <<_ACEOF >conftest.c
16727 #include <linux/fs.h>
16729 int shrink(struct shrinker *s, struct shrink_control *sc)
16732 static const struct super_block
16733 sb __attribute__ ((unused)) = {
16734 .s_shrink.shrink = shrink,
16735 .s_shrink.seeks = DEFAULT_SEEKS,
16736 .s_shrink.batch = 0,
16751 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16752 echo "obj-m := conftest.o" >build
/Makefile
16754 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16755 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16756 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16757 (eval $ac_try) 2>&5
16759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16760 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16762 (eval $ac_try) 2>&5
16764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16765 test $ac_status = 0; }; }; then :
16767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16768 $as_echo "yes" >&6; }
16770 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
16775 $as_echo "$as_me: failed program was:" >&5
16776 sed 's/^/| /' conftest.
$ac_ext >&5
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16779 $as_echo "no" >&6; }
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
16789 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
16792 cat confdefs.h
- <<_ACEOF >conftest.c
16795 #include <linux/fs.h>
16801 struct super_block sb __attribute__ ((unused));
16811 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16812 echo "obj-m := conftest.o" >build
/Makefile
16814 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16815 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16816 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16817 (eval $ac_try) 2>&5
16819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16820 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16822 (eval $ac_try) 2>&5
16824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16825 test $ac_status = 0; }; }; then :
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16828 $as_echo "yes" >&6; }
16830 $as_echo "#define HAVE_S_D_OP 1" >>confdefs.h
16834 $as_echo "$as_me: failed program was:" >&5
16835 sed 's/^/| /' conftest.
$ac_ext >&5
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16838 $as_echo "no" >&6; }
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_bdi" >&5
16849 $as_echo_n "checking whether super_block has s_bdi... " >&6; }
16852 cat confdefs.h
- <<_ACEOF >conftest.c
16855 #include <linux/fs.h>
16861 struct super_block sb __attribute__ ((unused));
16871 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16872 echo "obj-m := conftest.o" >build
/Makefile
16874 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16875 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16876 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16877 (eval $ac_try) 2>&5
16879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16880 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16881 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16882 (eval $ac_try) 2>&5
16884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16885 test $ac_status = 0; }; }; then :
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16888 $as_echo "yes" >&6; }
16890 $as_echo "#define HAVE_BDI 1" >>confdefs.h
16894 $as_echo "$as_me: failed program was:" >&5
16895 sed 's/^/| /' conftest.
$ac_ext >&5
16897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16898 $as_echo "no" >&6; }
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() is available" >&5
16908 $as_echo_n "checking whether bdi_setup_and_register() is available... " >&6; }
16912 cat confdefs.h
- <<_ACEOF >conftest.c
16915 #include <linux/backing-dev.h>
16921 bdi_setup_and_register(NULL, NULL, 0);
16930 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
16931 echo "obj-m := conftest.o" >build
/Makefile
16933 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
16934 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
16935 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16936 (eval $ac_try) 2>&5
16938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16939 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
16940 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16941 (eval $ac_try) 2>&5
16943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16944 test $ac_status = 0; }; }; then :
16947 $as_echo "$as_me: failed program was:" >&5
16948 sed 's/^/| /' conftest.
$ac_ext >&5
16956 if test $rc -ne 0; then :
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16959 $as_echo "no" >&6; }
16962 if test "x$enable_linux_builtin" != xyes
; then
16964 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
16965 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
16967 if test $rc -ne 0; then
16969 for file in mm
/backing-dev.c
; do
16970 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
16971 "$LINUX/$file" 2>/dev
/null
16973 if test $rc -eq 0; then
16978 if test $export -eq 0; then :
16988 if test $rc -ne 0; then :
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16991 $as_echo "no" >&6; }
16995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16996 $as_echo "yes" >&6; }
16998 $as_echo "#define HAVE_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
17006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
17007 $as_echo_n "checking whether set_nlink() is available... " >&6; }
17010 cat confdefs.h
- <<_ACEOF >conftest.c
17013 #include <linux/fs.h>
17020 unsigned int link = 0;
17021 (void) set_nlink(&node, link);
17030 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17031 echo "obj-m := conftest.o" >build
/Makefile
17033 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17034 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17036 (eval $ac_try) 2>&5
17038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17039 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17040 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17041 (eval $ac_try) 2>&5
17043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17044 test $ac_status = 0; }; }; then :
17046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17047 $as_echo "yes" >&6; }
17049 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
17053 $as_echo "$as_me: failed program was:" >&5
17054 sed 's/^/| /' conftest.
$ac_ext >&5
17056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17057 $as_echo "no" >&6; }
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
17068 $as_echo_n "checking whether elevator_change() is available... " >&6; }
17069 tmp_flags
="$EXTRA_KCFLAGS"
17070 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
17073 cat confdefs.h
- <<_ACEOF >conftest.c
17076 #include <linux/blkdev.h>
17077 #include <linux/elevator.h>
17084 struct request_queue *q = NULL;
17085 char *elevator = NULL;
17086 ret = elevator_change(q, elevator);
17095 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17096 echo "obj-m := conftest.o" >build
/Makefile
17098 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17099 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17100 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17101 (eval $ac_try) 2>&5
17103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17104 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17105 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17106 (eval $ac_try) 2>&5
17108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17109 test $ac_status = 0; }; }; then :
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17112 $as_echo "yes" >&6; }
17114 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
17118 $as_echo "$as_me: failed program was:" >&5
17119 sed 's/^/| /' conftest.
$ac_ext >&5
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17122 $as_echo "no" >&6; }
17130 EXTRA_KCFLAGS
="$tmp_flags"
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
17133 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
17136 cat confdefs.h
- <<_ACEOF >conftest.c
17139 #include <linux/fs.h>
17145 struct file_system_type *type = NULL;
17146 int (*test)(struct super_block *,void *) = NULL;
17147 int (*set)(struct super_block *,void *) = NULL;
17150 (void) sget(type, test, set, flags, data);
17159 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
17160 echo "obj-m := conftest.o" >build
/Makefile
17162 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
17163 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
17164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17165 (eval $ac_try) 2>&5
17167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17168 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
17169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
17170 (eval $ac_try) 2>&5
17172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17173 test $ac_status = 0; }; }; then :
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17176 $as_echo "yes" >&6; }
17178 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
17182 $as_echo "$as_me: failed program was:" >&5
17183 sed 's/^/| /' conftest.
$ac_ext >&5
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17186 $as_echo "no" >&6; }
17196 if test "$LINUX_OBJ" != "$LINUX"; then :
17198 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
17204 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
17205 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
17206 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
17213 # Check whether --with-udevdir was given.
17214 if test "${with_udevdir+set}" = set; then :
17215 withval
=$with_udevdir; udevdir
=$withval
17217 udevdir
='${exec_prefix}/lib/udev'
17222 # Check whether --with-udevruledir was given.
17223 if test "${with_udevruledir+set}" = set; then :
17224 withval
=$with_udevruledir; udevruledir
=$withval
17226 udevruledir
='${udevdir}/rules.d'
17235 # Check whether --with-dracutdir was given.
17236 if test "${with_dracutdir+set}" = set; then :
17237 withval
=$with_dracutdir; dracutdir
=$withval
17239 dracutdir
='${exec_prefix}/lib/dracut'
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
17247 $as_echo_n "checking for target asm dir... " >&6; }
17248 TARGET_ARCH
=`echo ${target_cpu} | sed -e s/i.86/i386/`
17250 case $TARGET_ARCH in
17252 TARGET_ASM_DIR
=asm-
${TARGET_ARCH}
17255 TARGET_ASM_DIR
=asm-generic
17260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
17261 $as_echo "$TARGET_ASM_DIR" >&6; }
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl()" >&5
17265 $as_echo_n "checking for ioctl()... " >&6; }
17266 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17267 /* end confdefs.h. */
17268 #include <unistd.h>
17271 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17272 $EGREP "ioctl" >/dev
/null
2>&1; then :
17279 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17280 /* end confdefs.h. */
17281 #include <sys/ioctl.h>
17284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17285 $EGREP "ioctl" >/dev
/null
2>&1; then :
17292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17293 /* end confdefs.h. */
17294 #include <stropts.h>
17297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17298 $EGREP "ioctl" >/dev
/null
2>&1; then :
17306 if test $is_unistd = yes; then
17309 $as_echo "#define HAVE_IOCTL_IN_UNISTD_H 1" >>confdefs.h
17313 if test $is_sys_ioctl = yes; then
17316 $as_echo "#define HAVE_IOCTL_IN_SYS_IOCTL_H 1" >>confdefs.h
17318 elif test $is_stropts = yes; then
17320 $as_echo "#define HAVE_IOCTL_IN_STROPTS_H 1" >>confdefs.h
17327 if test $result = no
; then
17328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17329 $as_echo "no" >&6; }
17330 as_fn_error $?
"*** Cannot locate ioctl() definition" "$LINENO" 5
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17333 $as_echo "yes" >&6; }
17339 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
17340 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
17343 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17344 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17346 *** zlib.h missing, zlib-devel package required
17347 See \`config.log' for more details" "$LINENO" 5 ; }
17352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
17353 $as_echo_n "checking for compress2 in -lz... " >&6; }
17354 if test "${ac_cv_lib_z_compress2+set}" = set; then :
17355 $as_echo_n "(cached) " >&6
17357 ac_check_lib_save_LIBS
=$LIBS
17359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17360 /* end confdefs.h. */
17362 /* Override any GCC internal prototype to avoid an error.
17363 Use char because int might match the return type of a GCC
17364 builtin and then its argument prototype would still apply. */
17372 return compress2 ();
17377 if ac_fn_c_try_link
"$LINENO"; then :
17378 ac_cv_lib_z_compress2
=yes
17380 ac_cv_lib_z_compress2
=no
17382 rm -f core conftest.err conftest.
$ac_objext \
17383 conftest
$ac_exeext conftest.
$ac_ext
17384 LIBS
=$ac_check_lib_save_LIBS
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
17387 $as_echo "$ac_cv_lib_z_compress2" >&6; }
17388 if test "x$ac_cv_lib_z_compress2" = x
""yes; then :
17389 cat >>confdefs.h
<<_ACEOF
17390 #define HAVE_LIBZ 1
17396 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17399 *** compress2() missing, zlib-devel package required
17400 See \`config.log' for more details" "$LINENO" 5 ; }
17404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
17405 $as_echo_n "checking for uncompress in -lz... " >&6; }
17406 if test "${ac_cv_lib_z_uncompress+set}" = set; then :
17407 $as_echo_n "(cached) " >&6
17409 ac_check_lib_save_LIBS
=$LIBS
17411 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17412 /* end confdefs.h. */
17414 /* Override any GCC internal prototype to avoid an error.
17415 Use char because int might match the return type of a GCC
17416 builtin and then its argument prototype would still apply. */
17420 char uncompress ();
17424 return uncompress ();
17429 if ac_fn_c_try_link
"$LINENO"; then :
17430 ac_cv_lib_z_uncompress
=yes
17432 ac_cv_lib_z_uncompress
=no
17434 rm -f core conftest.err conftest.
$ac_objext \
17435 conftest
$ac_exeext conftest.
$ac_ext
17436 LIBS
=$ac_check_lib_save_LIBS
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
17439 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
17440 if test "x$ac_cv_lib_z_uncompress" = x
""yes; then :
17441 cat >>confdefs.h
<<_ACEOF
17442 #define HAVE_LIBZ 1
17448 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17449 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17451 *** uncompress() missing, zlib-devel package required
17452 See \`config.log' for more details" "$LINENO" 5 ; }
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5
17457 $as_echo_n "checking for crc32 in -lz... " >&6; }
17458 if test "${ac_cv_lib_z_crc32+set}" = set; then :
17459 $as_echo_n "(cached) " >&6
17461 ac_check_lib_save_LIBS
=$LIBS
17463 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17464 /* end confdefs.h. */
17466 /* Override any GCC internal prototype to avoid an error.
17467 Use char because int might match the return type of a GCC
17468 builtin and then its argument prototype would still apply. */
17481 if ac_fn_c_try_link
"$LINENO"; then :
17482 ac_cv_lib_z_crc32
=yes
17484 ac_cv_lib_z_crc32
=no
17486 rm -f core conftest.err conftest.
$ac_objext \
17487 conftest
$ac_exeext conftest.
$ac_ext
17488 LIBS
=$ac_check_lib_save_LIBS
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5
17491 $as_echo "$ac_cv_lib_z_crc32" >&6; }
17492 if test "x$ac_cv_lib_z_crc32" = x
""yes; then :
17493 cat >>confdefs.h
<<_ACEOF
17494 #define HAVE_LIBZ 1
17500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17503 *** crc32() missing, zlib-devel package required
17504 See \`config.log' for more details" "$LINENO" 5 ; }
17511 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
17517 ac_fn_c_check_header_mongrel
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
17518 if test "x$ac_cv_header_uuid_uuid_h" = x
""yes; then :
17521 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17522 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17524 *** uuid/uuid.h missing, libuuid-devel package required
17525 See \`config.log' for more details" "$LINENO" 5 ; }
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
17531 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
17532 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
17533 $as_echo_n "(cached) " >&6
17535 ac_check_lib_save_LIBS
=$LIBS
17536 LIBS
="-luuid $LIBS"
17537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17538 /* end confdefs.h. */
17540 /* Override any GCC internal prototype to avoid an error.
17541 Use char because int might match the return type of a GCC
17542 builtin and then its argument prototype would still apply. */
17546 char uuid_generate ();
17550 return uuid_generate ();
17555 if ac_fn_c_try_link
"$LINENO"; then :
17556 ac_cv_lib_uuid_uuid_generate
=yes
17558 ac_cv_lib_uuid_uuid_generate
=no
17560 rm -f core conftest.err conftest.
$ac_objext \
17561 conftest
$ac_exeext conftest.
$ac_ext
17562 LIBS
=$ac_check_lib_save_LIBS
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
17565 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
17566 if test "x$ac_cv_lib_uuid_uuid_generate" = x
""yes; then :
17567 cat >>confdefs.h
<<_ACEOF
17568 #define HAVE_LIBUUID 1
17571 LIBS
="-luuid $LIBS"
17574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17577 *** uuid_generate() missing, libuuid-devel package required
17578 See \`config.log' for more details" "$LINENO" 5 ; }
17582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5
17583 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
17584 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then :
17585 $as_echo_n "(cached) " >&6
17587 ac_check_lib_save_LIBS
=$LIBS
17588 LIBS
="-luuid $LIBS"
17589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17590 /* end confdefs.h. */
17592 /* Override any GCC internal prototype to avoid an error.
17593 Use char because int might match the return type of a GCC
17594 builtin and then its argument prototype would still apply. */
17598 char uuid_is_null ();
17602 return uuid_is_null ();
17607 if ac_fn_c_try_link
"$LINENO"; then :
17608 ac_cv_lib_uuid_uuid_is_null
=yes
17610 ac_cv_lib_uuid_uuid_is_null
=no
17612 rm -f core conftest.err conftest.
$ac_objext \
17613 conftest
$ac_exeext conftest.
$ac_ext
17614 LIBS
=$ac_check_lib_save_LIBS
17616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5
17617 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
17618 if test "x$ac_cv_lib_uuid_uuid_is_null" = x
""yes; then :
17619 cat >>confdefs.h
<<_ACEOF
17620 #define HAVE_LIBUUID 1
17623 LIBS
="-luuid $LIBS"
17626 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17629 *** uuid_is_null() missing, libuuid-devel package required
17630 See \`config.log' for more details" "$LINENO" 5 ; }
17637 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
17642 # Check whether --with-blkid was given.
17643 if test "${with_blkid+set}" = set; then :
17644 withval
=$with_blkid;
17651 if test "x$with_blkid" != xno
; then :
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
17654 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
17655 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then :
17656 $as_echo_n "(cached) " >&6
17658 ac_check_lib_save_LIBS
=$LIBS
17659 LIBS
="-lblkid $LIBS"
17660 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17661 /* end confdefs.h. */
17663 /* Override any GCC internal prototype to avoid an error.
17664 Use char because int might match the return type of a GCC
17665 builtin and then its argument prototype would still apply. */
17669 char blkid_get_cache ();
17673 return blkid_get_cache ();
17678 if ac_fn_c_try_link
"$LINENO"; then :
17679 ac_cv_lib_blkid_blkid_get_cache
=yes
17681 ac_cv_lib_blkid_blkid_get_cache
=no
17683 rm -f core conftest.err conftest.
$ac_objext \
17684 conftest
$ac_exeext conftest.
$ac_ext
17685 LIBS
=$ac_check_lib_save_LIBS
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
17688 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
17689 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x
""yes; then :
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5
17692 $as_echo_n "checking for blkid zfs support... " >&6; }
17695 dd if=/dev
/zero of
=$ZFS_DEV bs
=1024k count
=8 \
17696 >/dev
/null
2>/dev
/null
17697 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
17698 dd of
=$ZFS_DEV bs
=1k count
=8 \
17699 seek
=132 conv
=notrunc
&>/dev
/null \
17700 >/dev
/null
2>/dev
/null
17702 saved_LDFLAGS
="$LDFLAGS"
17705 if test "$cross_compiling" = yes; then :
17706 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17707 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17708 as_fn_error $?
"cannot run test program while cross compiling
17709 See \`config.log' for more details" "$LINENO" 5 ; }
17711 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17712 /* end confdefs.h. */
17715 #include <blkid/blkid.h>
17724 if (blkid_get_cache(&cache, NULL) < 0)
17727 value = blkid_get_tag_value(cache, "TYPE",
17730 blkid_put_cache(cache);
17734 if (strcmp(value, "zfs")) {
17736 blkid_put_cache(cache);
17741 blkid_put_cache(cache);
17747 if ac_fn_c_try_run
"$LINENO"; then :
17750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17751 $as_echo "yes" >&6; }
17755 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17762 $as_echo "no" >&6; }
17763 if test "x$with_blkid" != xcheck
; then :
17764 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17765 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17766 as_fn_error $?
"--with-blkid given but unavailable
17767 See \`config.log' for more details" "$LINENO" 5 ; }
17771 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17772 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17776 LDFLAGS
="$saved_LDFLAGS"
17780 if test "x$with_blkid" != xcheck
; then :
17781 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17782 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17783 as_fn_error $?
"--with-blkid given but unavailable
17784 See \`config.log' for more details" "$LINENO" 5 ; }
17795 # Check whether --with-selinux was given.
17796 if test "${with_selinux+set}" = set; then :
17797 withval
=$with_selinux;
17804 if test "x$with_selinux" != xno
; then :
17806 ac_fn_c_check_header_mongrel
"$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
17807 if test "x$ac_cv_header_selinux_selinux_h" = x
""yes; then :
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
17810 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
17811 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
17812 $as_echo_n "(cached) " >&6
17814 ac_check_lib_save_LIBS
=$LIBS
17815 LIBS
="-lselinux $LIBS"
17816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17817 /* end confdefs.h. */
17819 /* Override any GCC internal prototype to avoid an error.
17820 Use char because int might match the return type of a GCC
17821 builtin and then its argument prototype would still apply. */
17825 char is_selinux_enabled ();
17829 return is_selinux_enabled ();
17834 if ac_fn_c_try_link
"$LINENO"; then :
17835 ac_cv_lib_selinux_is_selinux_enabled
=yes
17837 ac_cv_lib_selinux_is_selinux_enabled
=no
17839 rm -f core conftest.err conftest.
$ac_objext \
17840 conftest
$ac_exeext conftest.
$ac_ext
17841 LIBS
=$ac_check_lib_save_LIBS
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
17844 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
17845 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x
""yes; then :
17847 LIBSELINUX
="-lselinux"
17850 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
17855 if test "x$with_selinux" != xcheck
; then :
17856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17857 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17858 as_fn_error $?
"--with-selinux given but unavailable
17859 See \`config.log' for more details" "$LINENO" 5 ; }
17868 if test "x$with_selinux" != xcheck
; then :
17869 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17870 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17871 as_fn_error $?
"--with-selinux given but unavailable
17872 See \`config.log' for more details" "$LINENO" 5 ; }
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for selinux support" >&5
17883 $as_echo_n "checking for selinux support... " >&6; }
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17885 $as_echo "no" >&6; }
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
17891 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
17893 saved_flags
="$CFLAGS"
17894 CFLAGS
="$CFLAGS -Wframe-larger-than=1024"
17896 if test "$cross_compiling" = yes; then :
17897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17899 as_fn_error $?
"cannot run test program while cross compiling
17900 See \`config.log' for more details" "$LINENO" 5 ; }
17902 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
17903 /* end confdefs.h. */
17913 if ac_fn_c_try_run
"$LINENO"; then :
17915 FRAME_LARGER_THAN
=-Wframe-larger-than=1024
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17917 $as_echo "yes" >&6; }
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17923 $as_echo "no" >&6; }
17926 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
17927 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
17931 CFLAGS
="$saved_flags"
17938 # Check whether --with-linux was given.
17939 if test "${with_linux+set}" = set; then :
17940 withval
=$with_linux; kernelsrc
="$withval"
17945 # Check whether --with-linux-obj was given.
17946 if test "${with_linux_obj+set}" = set; then :
17947 withval
=$with_linux_obj; kernelbuild
="$withval"
17951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source directory" >&5
17952 $as_echo_n "checking kernel source directory... " >&6; }
17953 if test -z "$kernelsrc"; then :
17955 if test -e "/lib/modules/$(uname -r)/source"; then :
17957 headersdir
="/lib/modules/$(uname -r)/source"
17958 sourcelink
=$
(readlink
-f "$headersdir")
17960 elif test -e "/lib/modules/$(uname -r)/build"; then :
17962 headersdir
="/lib/modules/$(uname -r)/build"
17963 sourcelink
=$
(readlink
-f "$headersdir")
17967 sourcelink
=$
(ls -1d /usr
/src
/kernels
/* \
17969 2>/dev
/null |
grep -v obj |
tail -1)
17973 if test -n "$sourcelink" && test -e ${sourcelink}; then :
17975 kernelsrc
=`readlink -f ${sourcelink}`
17979 kernelsrc
="Not found"
17985 if test "$kernelsrc" = "NONE"; then :
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelsrc" >&5
17994 $as_echo "$kernelsrc" >&6; }
17995 if test ! -d "$kernelsrc"; then :
17998 *** Please make sure the kernel devel package for your distribution
17999 *** is installed then try again. If that fails you can specify the
18000 *** location of the kernel source with the '--with-linux=PATH' option." "$LINENO" 5
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel build directory" >&5
18005 $as_echo_n "checking kernel build directory... " >&6; }
18006 if test -z "$kernelbuild"; then :
18008 if test -e "/lib/modules/$(uname -r)/build"; then :
18010 kernelbuild
=`readlink -f /lib/modules/$(uname -r)/build`
18012 elif test -d ${kernelsrc}-obj/${target_cpu}/${target_cpu}; then :
18014 kernelbuild
=${kernelsrc}-obj/${target_cpu}/${target_cpu}
18016 elif test -d ${kernelsrc}-obj/${target_cpu}/default
; then :
18018 kernelbuild
=${kernelsrc}-obj/${target_cpu}/default
18020 elif test -d `dirname ${kernelsrc}`/build-
${target_cpu}; then :
18022 kernelbuild
=`dirname ${kernelsrc}`/build-
${target_cpu}
18026 kernelbuild
=${kernelsrc}
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernelbuild" >&5
18032 $as_echo "$kernelbuild" >&6; }
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel source version" >&5
18035 $as_echo_n "checking kernel source version... " >&6; }
18036 utsrelease1
=$kernelbuild/include
/linux
/version.h
18037 utsrelease2
=$kernelbuild/include
/linux
/utsrelease.h
18038 utsrelease3
=$kernelbuild/include
/generated
/utsrelease.h
18039 if test -r $utsrelease1 && fgrep
-q UTS_RELEASE
$utsrelease1; then :
18041 utsrelease
=linux
/version.h
18043 elif test -r $utsrelease2 && fgrep
-q UTS_RELEASE
$utsrelease2; then :
18045 utsrelease
=linux
/utsrelease.h
18047 elif test -r $utsrelease3 && fgrep
-q UTS_RELEASE
$utsrelease3; then :
18049 utsrelease
=generated
/utsrelease.h
18053 if test "$utsrelease"; then :
18055 kernsrcver
=`(echo "#include <$utsrelease>";
18056 echo "kernsrcver=UTS_RELEASE") |
18057 cpp -I $kernelbuild/include |
18058 grep "^kernsrcver=" | cut -d \" -f 2`
18060 if test -z "$kernsrcver"; then :
18062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
18063 $as_echo "Not found" >&6; }
18064 as_fn_error $?
"*** Cannot determine kernel version." "$LINENO" 5
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
18071 $as_echo "Not found" >&6; }
18072 if test "x$enable_linux_builtin" != xyes
; then
18073 as_fn_error $?
"*** Cannot find UTS_RELEASE definition." "$LINENO" 5
18076 *** Cannot find UTS_RELEASE definition.
18077 *** Please run 'make prepare' inside the kernel source tree." "$LINENO" 5
18082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $kernsrcver" >&5
18083 $as_echo "$kernsrcver" >&6; }
18086 LINUX_OBJ
=${kernelbuild}
18087 LINUX_VERSION
=${kernsrcver}
18094 modpost
=$LINUX/scripts
/Makefile.modpost
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking kernel file name for module symbols" >&5
18096 $as_echo_n "checking kernel file name for module symbols... " >&6; }
18097 if test "x$enable_linux_builtin" != xyes
-a -f "$modpost"; then :
18099 if grep -q Modules.symvers
$modpost; then :
18101 LINUX_SYMBOLS
=Modules.symvers
18105 LINUX_SYMBOLS
=Module.symvers
18109 if test ! -f "$LINUX_OBJ/$LINUX_SYMBOLS"; then :
18112 *** Please make sure the kernel devel package for your distribution
18113 *** is installed. If your building with a custom kernel make sure the
18114 *** kernel is configured, built, and the '--with-linux=PATH' configure
18115 *** option refers to the location of the kernel source." "$LINENO" 5
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINUX_SYMBOLS" >&5
18125 $as_echo "$LINUX_SYMBOLS" >&6; }
18131 # Check whether --with-spl was given.
18132 if test "${with_spl+set}" = set; then :
18133 withval
=$with_spl; splsrc
="$withval"
18138 # Check whether --with-spl-obj was given.
18139 if test "${with_spl_obj+set}" = set; then :
18140 withval
=$with_spl_obj; splbuild
="$withval"
18144 splsrc0
="/var/lib/dkms/spl/${VERSION}/build"
18145 splsrc1
="/usr/src/spl-${VERSION}/${LINUX_VERSION}"
18146 splsrc2
="/usr/src/spl-${VERSION}"
18150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source directory" >&5
18151 $as_echo_n "checking spl source directory... " >&6; }
18152 if test -z "${splsrc}"; then :
18154 if test -e "${splsrc0}/spl.release.in"; then :
18158 elif test -e "${splsrc1}/spl.release.in"; then :
18162 elif test -e "${splsrc2}/spl.release.in"; then :
18166 elif test -e "${splsrc3}/spl.release.in"; then :
18168 splsrc
=$
(readlink
-f "${splsrc3}")
18170 elif test -e "${splsrc4}/spl.release.in" ; then :
18182 if test "$splsrc" = "NONE"; then :
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrc" >&5
18192 $as_echo "$splsrc" >&6; }
18193 if test ! -e "$splsrc/spl.release.in"; then :
18196 *** Please make sure the kmod spl devel package for your distribution
18197 *** is installed then try again. If that fails you can specify the
18198 *** location of the spl source with the '--with-spl=PATH' option." "$LINENO" 5
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl build directory" >&5
18203 $as_echo_n "checking spl build directory... " >&6; }
18204 if test -z "$splbuild"; then :
18206 if test -e "${splsrc}/${LINUX_VERSION}/spl_config.h" ; then :
18208 splbuild
="${splsrc}/${LINUX_VERSION}"
18210 elif test -e "${splsrc}/spl_config.h" ; then :
18212 splbuild
="${splsrc}"
18216 splbuild
="Not found"
18222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splbuild" >&5
18223 $as_echo "$splbuild" >&6; }
18224 if ! test -e "$splbuild/spl_config.h"; then :
18227 *** Please make sure the kmod spl devel <kernel> package for your
18228 *** distribution is installed then try again. If that fails you
18229 *** can specify the location of the spl objects with the
18230 *** '--with-spl-obj=PATH' option." "$LINENO" 5
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl source version" >&5
18235 $as_echo_n "checking spl source version... " >&6; }
18236 if test -r $splbuild/spl_config.h
&&
18237 fgrep
-q SPL_META_VERSION
$splbuild/spl_config.h
; then :
18240 splsrcver
=`(echo "#include <spl_config.h>";
18241 echo "splsrcver=SPL_META_VERSION-SPL_META_RELEASE") |
18243 grep "^splsrcver=" | tr -d \" | cut -d= -f2`
18247 if test -z "$splsrcver"; then :
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not found" >&5
18250 $as_echo "Not found" >&6; }
18252 *** Cannot determine the version of the spl source.
18253 *** Please prepare the spl source before running this script" "$LINENO" 5
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $splsrcver" >&5
18258 $as_echo "$splsrcver" >&6; }
18261 SPL_OBJ
=${splbuild}
18262 SPL_VERSION
=${splsrcver}
18270 # Check whether --with-spl-timeout was given.
18271 if test "${with_spl_timeout+set}" = set; then :
18272 withval
=$with_spl_timeout; timeout
="$withval"
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking spl file name for module symbols" >&5
18279 $as_echo_n "checking spl file name for module symbols... " >&6; }
18283 if test -r $SPL_OBJ/Module.symvers
; then :
18285 SPL_SYMBOLS
=Module.symvers
18287 elif test -r $SPL_OBJ/Modules.symvers
; then :
18289 SPL_SYMBOLS
=Modules.symvers
18291 elif test -r $SPL_OBJ/module
/Module.symvers
; then :
18293 SPL_SYMBOLS
=Module.symvers
18295 elif test -r $SPL_OBJ/module
/Modules.symvers
; then :
18297 SPL_SYMBOLS
=Modules.symvers
18301 if test $SPL_SYMBOLS != NONE
-o $timeout -le 0; then :
18308 timeout
=$
((timeout-1
))
18313 if test "$SPL_SYMBOLS" = NONE
; then :
18315 SPL_SYMBOLS
=$LINUX_SYMBOLS
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SPL_SYMBOLS" >&5
18320 $as_echo "$SPL_SYMBOLS" >&6; }
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether modules can be built" >&5
18325 $as_echo_n "checking whether modules can be built... " >&6; }
18328 cat confdefs.h
- <<_ACEOF >conftest.c
18342 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18343 echo "obj-m := conftest.o" >build
/Makefile
18345 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18346 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18347 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18348 (eval $ac_try) 2>&5
18350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18351 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18352 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18353 (eval $ac_try) 2>&5
18355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18356 test $ac_status = 0; }; }; then :
18358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18359 $as_echo "yes" >&6; }
18362 $as_echo "$as_me: failed program was:" >&5
18363 sed 's/^/| /' conftest.
$ac_ext >&5
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18366 $as_echo "no" >&6; }
18367 if test "x$enable_linux_builtin" != xyes
; then
18368 as_fn_error $?
"*** Unable to build an empty module." "$LINENO" 5
18371 *** Unable to build an empty module.
18372 *** Please run 'make scripts' inside the kernel source tree." "$LINENO" 5
18384 if test "$ZFS_META_LICENSE" = GPL
; then :
18387 $as_echo "#define HAVE_GPL_ONLY_SYMBOLS 1" >>confdefs.h
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC" >&5
18395 $as_echo_n "checking whether Linux was built with CONFIG_DEBUG_LOCK_ALLOC... " >&6; }
18398 cat confdefs.h
- <<_ACEOF >conftest.c
18401 #include <linux/module.h>
18407 #ifndef CONFIG_DEBUG_LOCK_ALLOC
18408 #error CONFIG_DEBUG_LOCK_ALLOC not #defined
18418 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18419 echo "obj-m := conftest.o" >build
/Makefile
18421 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18422 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18423 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18424 (eval $ac_try) 2>&5
18426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18427 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18428 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18429 (eval $ac_try) 2>&5
18431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18432 test $ac_status = 0; }; }; then :
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18435 $as_echo "yes" >&6; }
18437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mutex_lock() is GPL-only" >&5
18438 $as_echo_n "checking whether mutex_lock() is GPL-only... " >&6; }
18439 tmp_flags
="$EXTRA_KCFLAGS"
18442 cat confdefs.h
- <<_ACEOF >conftest.c
18445 #include <linux/module.h>
18446 #include <linux/mutex.h>
18448 MODULE_LICENSE("$ZFS_META_LICENSE");
18458 mutex_unlock(&lock);
18467 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18468 echo "obj-m := conftest.o" >build
/Makefile
18470 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18471 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18473 (eval $ac_try) 2>&5
18475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18476 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18477 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18478 (eval $ac_try) 2>&5
18480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18481 test $ac_status = 0; }; }; then :
18483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18484 $as_echo "no" >&6; }
18487 $as_echo "$as_me: failed program was:" >&5
18488 sed 's/^/| /' conftest.
$ac_ext >&5
18490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18491 $as_echo "yes" >&6; }
18493 *** Kernel built with CONFIG_DEBUG_LOCK_ALLOC which is incompatible
18494 *** with the CDDL license and will prevent the module linking stage
18495 *** from succeeding. You must rebuild your kernel without this
18496 *** option enabled." "$LINENO" 5
18504 EXTRA_KCFLAGS
="$tmp_flags"
18508 $as_echo "$as_me: failed program was:" >&5
18509 sed 's/^/| /' conftest.
$ac_ext >&5
18511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18512 $as_echo "no" >&6; }
18525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking block device operation prototypes" >&5
18526 $as_echo_n "checking block device operation prototypes... " >&6; }
18527 tmp_flags
="$EXTRA_KCFLAGS"
18528 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
18531 cat confdefs.h
- <<_ACEOF >conftest.c
18534 #include <linux/blkdev.h>
18536 int blk_open(struct block_device *bdev, fmode_t mode)
18538 int blk_release(struct gendisk *g, fmode_t mode) { return 0; }
18539 int blk_ioctl(struct block_device *bdev, fmode_t mode,
18540 unsigned x, unsigned long y) { return 0; }
18541 int blk_compat_ioctl(struct block_device * bdev, fmode_t mode,
18542 unsigned x, unsigned long y) { return 0; }
18544 static const struct block_device_operations
18545 bops __attribute__ ((unused)) = {
18547 .release = blk_release,
18548 .ioctl = blk_ioctl,
18549 .compat_ioctl = blk_compat_ioctl,
18564 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18565 echo "obj-m := conftest.o" >build
/Makefile
18567 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18568 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18569 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18570 (eval $ac_try) 2>&5
18572 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18573 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18574 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18575 (eval $ac_try) 2>&5
18577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18578 test $ac_status = 0; }; }; then :
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct block_device" >&5
18581 $as_echo "struct block_device" >&6; }
18583 $as_echo "#define HAVE_BDEV_BLOCK_DEVICE_OPERATIONS 1" >>confdefs.h
18587 $as_echo "$as_me: failed program was:" >&5
18588 sed 's/^/| /' conftest.
$ac_ext >&5
18590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: struct inode" >&5
18591 $as_echo "struct inode" >&6; }
18599 EXTRA_KCFLAGS
="$tmp_flags"
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines fmode_t" >&5
18602 $as_echo_n "checking whether kernel defines fmode_t... " >&6; }
18605 cat confdefs.h
- <<_ACEOF >conftest.c
18608 #include <linux/types.h>
18614 fmode_t *ptr __attribute__ ((unused));
18623 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18624 echo "obj-m := conftest.o" >build
/Makefile
18626 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18627 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18628 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18629 (eval $ac_try) 2>&5
18631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18632 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18633 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18634 (eval $ac_try) 2>&5
18636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18637 test $ac_status = 0; }; }; then :
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18640 $as_echo "yes" >&6; }
18642 $as_echo "#define HAVE_FMODE_T 1" >>confdefs.h
18646 $as_echo "$as_me: failed program was:" >&5
18647 sed 's/^/| /' conftest.
$ac_ext >&5
18649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18650 $as_echo "no" >&6; }
18660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether kernel defines KOBJ_NAME_LEN" >&5
18661 $as_echo_n "checking whether kernel defines KOBJ_NAME_LEN... " >&6; }
18664 cat confdefs.h
- <<_ACEOF >conftest.c
18667 #include <linux/kobject.h>
18673 int val __attribute__ ((unused));
18674 val = KOBJ_NAME_LEN;
18683 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18684 echo "obj-m := conftest.o" >build
/Makefile
18686 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18687 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18689 (eval $ac_try) 2>&5
18691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18692 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18693 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18694 (eval $ac_try) 2>&5
18696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18697 test $ac_status = 0; }; }; then :
18699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18700 $as_echo "yes" >&6; }
18702 $as_echo "#define HAVE_KOBJ_NAME_LEN 1" >>confdefs.h
18706 $as_echo "$as_me: failed program was:" >&5
18707 sed 's/^/| /' conftest.
$ac_ext >&5
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18710 $as_echo "no" >&6; }
18720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get() wants 3 args" >&5
18721 $as_echo_n "checking whether blkdev_get() wants 3 args... " >&6; }
18724 cat confdefs.h
- <<_ACEOF >conftest.c
18727 #include <linux/fs.h>
18733 struct block_device *bdev = NULL;
18734 (void) blkdev_get(bdev, 0, NULL);
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 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 :
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18760 $as_echo "yes" >&6; }
18762 $as_echo "#define HAVE_3ARG_BLKDEV_GET 1" >>confdefs.h
18766 $as_echo "$as_me: failed program was:" >&5
18767 sed 's/^/| /' conftest.
$ac_ext >&5
18769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18770 $as_echo "no" >&6; }
18779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blkdev_get_by_path() is available" >&5
18780 $as_echo_n "checking whether blkdev_get_by_path() is available... " >&6; }
18784 cat confdefs.h
- <<_ACEOF >conftest.c
18787 #include <linux/fs.h>
18793 blkdev_get_by_path(NULL, 0, NULL);
18802 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18803 echo "obj-m := conftest.o" >build
/Makefile
18805 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18806 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18807 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18808 (eval $ac_try) 2>&5
18810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18811 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18812 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18813 (eval $ac_try) 2>&5
18815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18816 test $ac_status = 0; }; }; then :
18819 $as_echo "$as_me: failed program was:" >&5
18820 sed 's/^/| /' conftest.
$ac_ext >&5
18828 if test $rc -ne 0; then :
18830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18831 $as_echo "no" >&6; }
18834 if test "x$enable_linux_builtin" != xyes
; then
18836 grep -q -E '[[:space:]]blkdev_get_by_path[[:space:]]' \
18837 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
18839 if test $rc -ne 0; then
18841 for file in fs
/block_dev.c
; do
18842 grep -q -E "EXPORT_SYMBOL.*(blkdev_get_by_path)" \
18843 "$LINUX/$file" 2>/dev
/null
18845 if test $rc -eq 0; then
18850 if test $export -eq 0; then :
18860 if test $rc -ne 0; then :
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18863 $as_echo "no" >&6; }
18867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18868 $as_echo "yes" >&6; }
18870 $as_echo "#define HAVE_BLKDEV_GET_BY_PATH 1" >>confdefs.h
18877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether open_bdev_exclusive() is available" >&5
18878 $as_echo_n "checking whether open_bdev_exclusive() is available... " >&6; }
18882 cat confdefs.h
- <<_ACEOF >conftest.c
18885 #include <linux/fs.h>
18891 open_bdev_exclusive(NULL, 0, NULL);
18900 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18901 echo "obj-m := conftest.o" >build
/Makefile
18903 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
18904 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
18905 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18906 (eval $ac_try) 2>&5
18908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18909 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
18910 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
18911 (eval $ac_try) 2>&5
18913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18914 test $ac_status = 0; }; }; then :
18917 $as_echo "$as_me: failed program was:" >&5
18918 sed 's/^/| /' conftest.
$ac_ext >&5
18926 if test $rc -ne 0; then :
18928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18929 $as_echo "no" >&6; }
18932 if test "x$enable_linux_builtin" != xyes
; then
18934 grep -q -E '[[:space:]]open_bdev_exclusive[[:space:]]' \
18935 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
18937 if test $rc -ne 0; then
18939 for file in fs
/block_dev.c
; do
18940 grep -q -E "EXPORT_SYMBOL.*(open_bdev_exclusive)" \
18941 "$LINUX/$file" 2>/dev
/null
18943 if test $rc -eq 0; then
18948 if test $export -eq 0; then :
18958 if test $rc -ne 0; then :
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18961 $as_echo "no" >&6; }
18965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18966 $as_echo "yes" >&6; }
18968 $as_echo "#define HAVE_OPEN_BDEV_EXCLUSIVE 1" >>confdefs.h
18975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lookup_bdev() is available" >&5
18976 $as_echo_n "checking whether lookup_bdev() is available... " >&6; }
18980 cat confdefs.h
- <<_ACEOF >conftest.c
18983 #include <linux/fs.h>
18998 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
18999 echo "obj-m := conftest.o" >build
/Makefile
19001 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19002 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19004 (eval $ac_try) 2>&5
19006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19007 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19008 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19009 (eval $ac_try) 2>&5
19011 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19012 test $ac_status = 0; }; }; then :
19015 $as_echo "$as_me: failed program was:" >&5
19016 sed 's/^/| /' conftest.
$ac_ext >&5
19024 if test $rc -ne 0; then :
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19027 $as_echo "no" >&6; }
19030 if test "x$enable_linux_builtin" != xyes
; then
19032 grep -q -E '[[:space:]]lookup_bdev[[:space:]]' \
19033 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
19035 if test $rc -ne 0; then
19037 for file in fs
/block_dev.c
; do
19038 grep -q -E "EXPORT_SYMBOL.*(lookup_bdev)" \
19039 "$LINUX/$file" 2>/dev
/null
19041 if test $rc -eq 0; then
19046 if test $export -eq 0; then :
19056 if test $rc -ne 0; then :
19058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19059 $as_echo "no" >&6; }
19063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19064 $as_echo "yes" >&6; }
19066 $as_echo "#define HAVE_LOOKUP_BDEV 1" >>confdefs.h
19074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether invalidate_bdev() wants 1 arg" >&5
19075 $as_echo_n "checking whether invalidate_bdev() wants 1 arg... " >&6; }
19078 cat confdefs.h
- <<_ACEOF >conftest.c
19081 #include <linux/buffer_head.h>
19087 struct block_device *bdev = NULL;
19088 invalidate_bdev(bdev);
19097 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19098 echo "obj-m := conftest.o" >build
/Makefile
19100 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19101 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19102 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19103 (eval $ac_try) 2>&5
19105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19106 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19107 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19108 (eval $ac_try) 2>&5
19110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19111 test $ac_status = 0; }; }; then :
19113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19114 $as_echo "yes" >&6; }
19116 $as_echo "#define HAVE_1ARG_INVALIDATE_BDEV 1" >>confdefs.h
19120 $as_echo "$as_me: failed program was:" >&5
19121 sed 's/^/| /' conftest.
$ac_ext >&5
19123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19124 $as_echo "no" >&6; }
19134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_logical_block_size() is available" >&5
19135 $as_echo_n "checking whether bdev_logical_block_size() is available... " >&6; }
19136 tmp_flags
="$EXTRA_KCFLAGS"
19137 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
19140 cat confdefs.h
- <<_ACEOF >conftest.c
19143 #include <linux/blkdev.h>
19149 struct block_device *bdev = NULL;
19150 bdev_logical_block_size(bdev);
19159 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19160 echo "obj-m := conftest.o" >build
/Makefile
19162 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19163 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19164 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19165 (eval $ac_try) 2>&5
19167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19168 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19169 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19170 (eval $ac_try) 2>&5
19172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19173 test $ac_status = 0; }; }; then :
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19176 $as_echo "yes" >&6; }
19178 $as_echo "#define HAVE_BDEV_LOGICAL_BLOCK_SIZE 1" >>confdefs.h
19182 $as_echo "$as_me: failed program was:" >&5
19183 sed 's/^/| /' conftest.
$ac_ext >&5
19185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19186 $as_echo "no" >&6; }
19194 EXTRA_KCFLAGS
="$tmp_flags"
19197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdev_physical_block_size() is available" >&5
19198 $as_echo_n "checking whether bdev_physical_block_size() is available... " >&6; }
19199 tmp_flags
="$EXTRA_KCFLAGS"
19200 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
19203 cat confdefs.h
- <<_ACEOF >conftest.c
19206 #include <linux/blkdev.h>
19212 struct block_device *bdev = NULL;
19213 bdev_physical_block_size(bdev);
19222 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19223 echo "obj-m := conftest.o" >build
/Makefile
19225 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19226 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19227 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19228 (eval $ac_try) 2>&5
19230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19231 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19232 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19233 (eval $ac_try) 2>&5
19235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19236 test $ac_status = 0; }; }; then :
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19239 $as_echo "yes" >&6; }
19241 $as_echo "#define HAVE_BDEV_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
19245 $as_echo "$as_me: failed program was:" >&5
19246 sed 's/^/| /' conftest.
$ac_ext >&5
19248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19249 $as_echo "no" >&6; }
19257 EXTRA_KCFLAGS
="$tmp_flags"
19260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST is defined" >&5
19261 $as_echo_n "checking whether BIO_RW_FAILFAST is defined... " >&6; }
19264 cat confdefs.h
- <<_ACEOF >conftest.c
19267 #include <linux/bio.h>
19273 int flags __attribute__ ((unused));
19274 flags = (1 << BIO_RW_FAILFAST);
19283 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19284 echo "obj-m := conftest.o" >build
/Makefile
19286 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19287 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19288 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19289 (eval $ac_try) 2>&5
19291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19292 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19293 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19294 (eval $ac_try) 2>&5
19296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19297 test $ac_status = 0; }; }; then :
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19300 $as_echo "yes" >&6; }
19302 $as_echo "#define HAVE_BIO_RW_FAILFAST 1" >>confdefs.h
19306 $as_echo "$as_me: failed program was:" >&5
19307 sed 's/^/| /' conftest.
$ac_ext >&5
19309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19310 $as_echo "no" >&6; }
19320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_FAILFAST_* are defined" >&5
19321 $as_echo_n "checking whether BIO_RW_FAILFAST_* are defined... " >&6; }
19324 cat confdefs.h
- <<_ACEOF >conftest.c
19327 #include <linux/bio.h>
19333 int flags __attribute__ ((unused));
19334 flags = ((1 << BIO_RW_FAILFAST_DEV) |
19335 (1 << BIO_RW_FAILFAST_TRANSPORT) |
19336 (1 << BIO_RW_FAILFAST_DRIVER));
19345 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19346 echo "obj-m := conftest.o" >build
/Makefile
19348 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19349 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19350 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19351 (eval $ac_try) 2>&5
19353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19354 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19355 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19356 (eval $ac_try) 2>&5
19358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19359 test $ac_status = 0; }; }; then :
19361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19362 $as_echo "yes" >&6; }
19364 $as_echo "#define HAVE_BIO_RW_FAILFAST_DTD 1" >>confdefs.h
19368 $as_echo "$as_me: failed program was:" >&5
19369 sed 's/^/| /' conftest.
$ac_ext >&5
19371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19372 $as_echo "no" >&6; }
19382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_FAILFAST_MASK is defined" >&5
19383 $as_echo_n "checking whether REQ_FAILFAST_MASK is defined... " >&6; }
19386 cat confdefs.h
- <<_ACEOF >conftest.c
19389 #include <linux/bio.h>
19395 int flags __attribute__ ((unused));
19396 flags = REQ_FAILFAST_MASK;
19405 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19406 echo "obj-m := conftest.o" >build
/Makefile
19408 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19409 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19410 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19411 (eval $ac_try) 2>&5
19413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19414 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19415 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19416 (eval $ac_try) 2>&5
19418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19419 test $ac_status = 0; }; }; then :
19421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19422 $as_echo "yes" >&6; }
19424 $as_echo "#define HAVE_BIO_REQ_FAILFAST_MASK 1" >>confdefs.h
19428 $as_echo "$as_me: failed program was:" >&5
19429 sed 's/^/| /' conftest.
$ac_ext >&5
19431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19432 $as_echo "no" >&6; }
19442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bio_end_io_t wants 2 args" >&5
19443 $as_echo_n "checking whether bio_end_io_t wants 2 args... " >&6; }
19446 cat confdefs.h
- <<_ACEOF >conftest.c
19449 #include <linux/bio.h>
19451 void wanted_end_io(struct bio *bio, int x) { return; }
19453 bio_end_io_t *end_io __attribute__ ((unused)) = wanted_end_io;
19467 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19468 echo "obj-m := conftest.o" >build
/Makefile
19470 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19471 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19472 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19473 (eval $ac_try) 2>&5
19475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19476 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19477 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19478 (eval $ac_try) 2>&5
19480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19481 test $ac_status = 0; }; }; then :
19483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19484 $as_echo "yes" >&6; }
19486 $as_echo "#define HAVE_2ARGS_BIO_END_IO_T 1" >>confdefs.h
19490 $as_echo "$as_me: failed program was:" >&5
19491 sed 's/^/| /' conftest.
$ac_ext >&5
19493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19494 $as_echo "no" >&6; }
19504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_SYNC is defined" >&5
19505 $as_echo_n "checking whether BIO_RW_SYNC is defined... " >&6; }
19508 cat confdefs.h
- <<_ACEOF >conftest.c
19511 #include <linux/bio.h>
19517 int flags __attribute__ ((unused));
19518 flags = BIO_RW_SYNC;
19527 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19528 echo "obj-m := conftest.o" >build
/Makefile
19530 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19531 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19533 (eval $ac_try) 2>&5
19535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19536 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19538 (eval $ac_try) 2>&5
19540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19541 test $ac_status = 0; }; }; then :
19543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19544 $as_echo "yes" >&6; }
19546 $as_echo "#define HAVE_BIO_RW_SYNC 1" >>confdefs.h
19550 $as_echo "$as_me: failed program was:" >&5
19551 sed 's/^/| /' conftest.
$ac_ext >&5
19553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19554 $as_echo "no" >&6; }
19564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether BIO_RW_SYNCIO is defined" >&5
19565 $as_echo_n "checking whether BIO_RW_SYNCIO is defined... " >&6; }
19568 cat confdefs.h
- <<_ACEOF >conftest.c
19571 #include <linux/bio.h>
19577 int flags __attribute__ ((unused));
19578 flags = BIO_RW_SYNCIO;
19587 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19588 echo "obj-m := conftest.o" >build
/Makefile
19590 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19591 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19592 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19593 (eval $ac_try) 2>&5
19595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19596 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19598 (eval $ac_try) 2>&5
19600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19601 test $ac_status = 0; }; }; then :
19603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19604 $as_echo "yes" >&6; }
19606 $as_echo "#define HAVE_BIO_RW_SYNCIO 1" >>confdefs.h
19610 $as_echo "$as_me: failed program was:" >&5
19611 sed 's/^/| /' conftest.
$ac_ext >&5
19613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19614 $as_echo "no" >&6; }
19624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether REQ_SYNC is defined" >&5
19625 $as_echo_n "checking whether REQ_SYNC is defined... " >&6; }
19628 cat confdefs.h
- <<_ACEOF >conftest.c
19631 #include <linux/bio.h>
19637 int flags __attribute__ ((unused));
19647 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19648 echo "obj-m := conftest.o" >build
/Makefile
19650 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19651 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19652 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19653 (eval $ac_try) 2>&5
19655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19656 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19657 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19658 (eval $ac_try) 2>&5
19660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19661 test $ac_status = 0; }; }; then :
19663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19664 $as_echo "yes" >&6; }
19666 $as_echo "#define HAVE_REQ_SYNC 1" >>confdefs.h
19670 $as_echo "$as_me: failed program was:" >&5
19671 sed 's/^/| /' conftest.
$ac_ext >&5
19673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19674 $as_echo "no" >&6; }
19684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_end_request() is available" >&5
19685 $as_echo_n "checking whether blk_end_request() is available... " >&6; }
19686 tmp_flags
="$EXTRA_KCFLAGS"
19687 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
19690 cat confdefs.h
- <<_ACEOF >conftest.c
19693 #include <linux/blkdev.h>
19699 struct request *req = NULL;
19700 (void) blk_end_request(req, 0, 0);
19709 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19710 echo "obj-m := conftest.o" >build
/Makefile
19712 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19713 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19714 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19715 (eval $ac_try) 2>&5
19717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19718 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19720 (eval $ac_try) 2>&5
19722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19723 test $ac_status = 0; }; }; then :
19725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19726 $as_echo "yes" >&6; }
19728 $as_echo "#define HAVE_BLK_END_REQUEST 1" >>confdefs.h
19732 $as_echo "$as_me: failed program was:" >&5
19733 sed 's/^/| /' conftest.
$ac_ext >&5
19735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19736 $as_echo "no" >&6; }
19745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_end_request() is GPL-only" >&5
19746 $as_echo_n "checking whether blk_end_request() is GPL-only... " >&6; }
19749 cat confdefs.h
- <<_ACEOF >conftest.c
19752 #include <linux/module.h>
19753 #include <linux/blkdev.h>
19755 MODULE_LICENSE("CDDL");
19761 struct request *req = NULL;
19762 (void) blk_end_request(req, 0, 0);
19771 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19772 echo "obj-m := conftest.o" >build
/Makefile
19774 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19775 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19776 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19777 (eval $ac_try) 2>&5
19779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19780 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19781 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19782 (eval $ac_try) 2>&5
19784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19785 test $ac_status = 0; }; }; then :
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19788 $as_echo "no" >&6; }
19791 $as_echo "$as_me: failed program was:" >&5
19792 sed 's/^/| /' conftest.
$ac_ext >&5
19794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19795 $as_echo "yes" >&6; }
19797 $as_echo "#define HAVE_BLK_END_REQUEST_GPL_ONLY 1" >>confdefs.h
19806 EXTRA_KCFLAGS
="$tmp_flags"
19809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is available" >&5
19810 $as_echo_n "checking whether blk_queue_flush() is available... " >&6; }
19811 tmp_flags
="$EXTRA_KCFLAGS"
19812 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
19815 cat confdefs.h
- <<_ACEOF >conftest.c
19818 #include <linux/blkdev.h>
19824 struct request_queue *q = NULL;
19825 (void) blk_queue_flush(q, REQ_FLUSH);
19834 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19835 echo "obj-m := conftest.o" >build
/Makefile
19837 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19838 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19840 (eval $ac_try) 2>&5
19842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19843 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19844 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19845 (eval $ac_try) 2>&5
19847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19848 test $ac_status = 0; }; }; then :
19850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19851 $as_echo "yes" >&6; }
19853 $as_echo "#define HAVE_BLK_QUEUE_FLUSH 1" >>confdefs.h
19857 $as_echo "$as_me: failed program was:" >&5
19858 sed 's/^/| /' conftest.
$ac_ext >&5
19860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19861 $as_echo "no" >&6; }
19870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_flush() is GPL-only" >&5
19871 $as_echo_n "checking whether blk_queue_flush() is GPL-only... " >&6; }
19874 cat confdefs.h
- <<_ACEOF >conftest.c
19877 #include <linux/module.h>
19878 #include <linux/blkdev.h>
19880 MODULE_LICENSE("CDDL");
19886 struct request_queue *q = NULL;
19887 (void) blk_queue_flush(q, REQ_FLUSH);
19896 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19897 echo "obj-m := conftest.o" >build
/Makefile
19899 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19900 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19901 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19902 (eval $ac_try) 2>&5
19904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19905 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19907 (eval $ac_try) 2>&5
19909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19910 test $ac_status = 0; }; }; then :
19912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19913 $as_echo "no" >&6; }
19916 $as_echo "$as_me: failed program was:" >&5
19917 sed 's/^/| /' conftest.
$ac_ext >&5
19919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19920 $as_echo "yes" >&6; }
19922 $as_echo "#define HAVE_BLK_QUEUE_FLUSH_GPL_ONLY 1" >>confdefs.h
19931 EXTRA_KCFLAGS
="$tmp_flags"
19934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_hw_sectors() is available" >&5
19935 $as_echo_n "checking whether blk_queue_max_hw_sectors() is available... " >&6; }
19936 tmp_flags
="$EXTRA_KCFLAGS"
19937 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
19940 cat confdefs.h
- <<_ACEOF >conftest.c
19943 #include <linux/blkdev.h>
19949 struct request_queue *q = NULL;
19950 (void) blk_queue_max_hw_sectors(q, BLK_SAFE_MAX_SECTORS);
19959 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
19960 echo "obj-m := conftest.o" >build
/Makefile
19962 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
19963 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
19964 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19965 (eval $ac_try) 2>&5
19967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19968 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
19969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
19970 (eval $ac_try) 2>&5
19972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19973 test $ac_status = 0; }; }; then :
19975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19976 $as_echo "yes" >&6; }
19978 $as_echo "#define HAVE_BLK_QUEUE_MAX_HW_SECTORS 1" >>confdefs.h
19982 $as_echo "$as_me: failed program was:" >&5
19983 sed 's/^/| /' conftest.
$ac_ext >&5
19985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19986 $as_echo "no" >&6; }
19994 EXTRA_KCFLAGS
="$tmp_flags"
19997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_max_segments() is available" >&5
19998 $as_echo_n "checking whether blk_queue_max_segments() is available... " >&6; }
19999 tmp_flags
="$EXTRA_KCFLAGS"
20000 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
20003 cat confdefs.h
- <<_ACEOF >conftest.c
20006 #include <linux/blkdev.h>
20012 struct request_queue *q = NULL;
20013 (void) blk_queue_max_segments(q, BLK_MAX_SEGMENTS);
20022 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20023 echo "obj-m := conftest.o" >build
/Makefile
20025 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20026 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20027 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20028 (eval $ac_try) 2>&5
20030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20031 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20032 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20033 (eval $ac_try) 2>&5
20035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20036 test $ac_status = 0; }; }; then :
20038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20039 $as_echo "yes" >&6; }
20041 $as_echo "#define HAVE_BLK_QUEUE_MAX_SEGMENTS 1" >>confdefs.h
20045 $as_echo "$as_me: failed program was:" >&5
20046 sed 's/^/| /' conftest.
$ac_ext >&5
20048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20049 $as_echo "no" >&6; }
20057 EXTRA_KCFLAGS
="$tmp_flags"
20060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_physical_block_size() is available" >&5
20061 $as_echo_n "checking whether blk_queue_physical_block_size() is available... " >&6; }
20062 tmp_flags
="$EXTRA_KCFLAGS"
20063 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
20066 cat confdefs.h
- <<_ACEOF >conftest.c
20069 #include <linux/blkdev.h>
20075 struct request_queue *q = NULL;
20076 unsigned short block_size = 1;
20077 (void) blk_queue_physical_block_size(q, block_size);
20086 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20087 echo "obj-m := conftest.o" >build
/Makefile
20089 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20090 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20091 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20092 (eval $ac_try) 2>&5
20094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20095 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20096 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20097 (eval $ac_try) 2>&5
20099 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20100 test $ac_status = 0; }; }; then :
20102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20103 $as_echo "yes" >&6; }
20105 $as_echo "#define HAVE_BLK_QUEUE_PHYSICAL_BLOCK_SIZE 1" >>confdefs.h
20109 $as_echo "$as_me: failed program was:" >&5
20110 sed 's/^/| /' conftest.
$ac_ext >&5
20112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20113 $as_echo "no" >&6; }
20121 EXTRA_KCFLAGS
="$tmp_flags"
20124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_io_opt() is available" >&5
20125 $as_echo_n "checking whether blk_queue_io_opt() is available... " >&6; }
20126 tmp_flags
="$EXTRA_KCFLAGS"
20127 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
20130 cat confdefs.h
- <<_ACEOF >conftest.c
20133 #include <linux/blkdev.h>
20139 struct request_queue *q = NULL;
20140 unsigned int opt = 1;
20141 (void) blk_queue_io_opt(q, opt);
20150 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20151 echo "obj-m := conftest.o" >build
/Makefile
20153 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20154 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20155 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20156 (eval $ac_try) 2>&5
20158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20159 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20160 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20161 (eval $ac_try) 2>&5
20163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20164 test $ac_status = 0; }; }; then :
20166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20167 $as_echo "yes" >&6; }
20169 $as_echo "#define HAVE_BLK_QUEUE_IO_OPT 1" >>confdefs.h
20173 $as_echo "$as_me: failed program was:" >&5
20174 sed 's/^/| /' conftest.
$ac_ext >&5
20176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20177 $as_echo "no" >&6; }
20185 EXTRA_KCFLAGS
="$tmp_flags"
20188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_nonrot() is available" >&5
20189 $as_echo_n "checking whether blk_queue_nonrot() is available... " >&6; }
20190 tmp_flags
="$EXTRA_KCFLAGS"
20191 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
20194 cat confdefs.h
- <<_ACEOF >conftest.c
20197 #include <linux/blkdev.h>
20203 struct request_queue *q = NULL;
20204 (void) blk_queue_nonrot(q);
20213 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20214 echo "obj-m := conftest.o" >build
/Makefile
20216 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20217 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20218 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20219 (eval $ac_try) 2>&5
20221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20222 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20224 (eval $ac_try) 2>&5
20226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20227 test $ac_status = 0; }; }; then :
20229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20230 $as_echo "yes" >&6; }
20232 $as_echo "#define HAVE_BLK_QUEUE_NONROT 1" >>confdefs.h
20236 $as_echo "$as_me: failed program was:" >&5
20237 sed 's/^/| /' conftest.
$ac_ext >&5
20239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20240 $as_echo "no" >&6; }
20248 EXTRA_KCFLAGS
="$tmp_flags"
20251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_queue_discard() is available" >&5
20252 $as_echo_n "checking whether blk_queue_discard() is available... " >&6; }
20253 tmp_flags
="$EXTRA_KCFLAGS"
20254 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
20257 cat confdefs.h
- <<_ACEOF >conftest.c
20260 #include <linux/blkdev.h>
20266 struct request_queue *q = NULL;
20267 (void) blk_queue_discard(q);
20276 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20277 echo "obj-m := conftest.o" >build
/Makefile
20279 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20280 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20282 (eval $ac_try) 2>&5
20284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20285 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20286 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20287 (eval $ac_try) 2>&5
20289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20290 test $ac_status = 0; }; }; then :
20292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20293 $as_echo "yes" >&6; }
20295 $as_echo "#define HAVE_BLK_QUEUE_DISCARD 1" >>confdefs.h
20299 $as_echo "$as_me: failed program was:" >&5
20300 sed 's/^/| /' conftest.
$ac_ext >&5
20302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20303 $as_echo "no" >&6; }
20311 EXTRA_KCFLAGS
="$tmp_flags"
20314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_fetch_request() is available" >&5
20315 $as_echo_n "checking whether blk_fetch_request() is available... " >&6; }
20316 tmp_flags
="$EXTRA_KCFLAGS"
20317 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
20320 cat confdefs.h
- <<_ACEOF >conftest.c
20323 #include <linux/blkdev.h>
20329 struct request_queue *q = NULL;
20330 (void) blk_fetch_request(q);
20339 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20340 echo "obj-m := conftest.o" >build
/Makefile
20342 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20343 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20345 (eval $ac_try) 2>&5
20347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20348 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20349 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20350 (eval $ac_try) 2>&5
20352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20353 test $ac_status = 0; }; }; then :
20355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20356 $as_echo "yes" >&6; }
20358 $as_echo "#define HAVE_BLK_FETCH_REQUEST 1" >>confdefs.h
20362 $as_echo "$as_me: failed program was:" >&5
20363 sed 's/^/| /' conftest.
$ac_ext >&5
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20366 $as_echo "no" >&6; }
20374 EXTRA_KCFLAGS
="$tmp_flags"
20377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_requeue_request() is available" >&5
20378 $as_echo_n "checking whether blk_requeue_request() is available... " >&6; }
20379 tmp_flags
="$EXTRA_KCFLAGS"
20380 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
20383 cat confdefs.h
- <<_ACEOF >conftest.c
20386 #include <linux/blkdev.h>
20392 struct request_queue *q = NULL;
20393 struct request *req = NULL;
20394 blk_requeue_request(q, req);
20403 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20404 echo "obj-m := conftest.o" >build
/Makefile
20406 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20407 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20408 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20409 (eval $ac_try) 2>&5
20411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20412 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20413 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20414 (eval $ac_try) 2>&5
20416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20417 test $ac_status = 0; }; }; then :
20419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20420 $as_echo "yes" >&6; }
20422 $as_echo "#define HAVE_BLK_REQUEUE_REQUEST 1" >>confdefs.h
20426 $as_echo "$as_me: failed program was:" >&5
20427 sed 's/^/| /' conftest.
$ac_ext >&5
20429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20430 $as_echo "no" >&6; }
20438 EXTRA_KCFLAGS
="$tmp_flags"
20441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_bytes() is available" >&5
20442 $as_echo_n "checking whether blk_rq_bytes() is available... " >&6; }
20443 tmp_flags
="$EXTRA_KCFLAGS"
20444 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
20447 cat confdefs.h
- <<_ACEOF >conftest.c
20450 #include <linux/blkdev.h>
20456 struct request *req = NULL;
20457 (void) blk_rq_bytes(req);
20466 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20467 echo "obj-m := conftest.o" >build
/Makefile
20469 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20470 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20471 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20472 (eval $ac_try) 2>&5
20474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20475 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20476 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20477 (eval $ac_try) 2>&5
20479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20480 test $ac_status = 0; }; }; then :
20482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20483 $as_echo "yes" >&6; }
20485 $as_echo "#define HAVE_BLK_RQ_BYTES 1" >>confdefs.h
20489 $as_echo "$as_me: failed program was:" >&5
20490 sed 's/^/| /' conftest.
$ac_ext >&5
20492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20493 $as_echo "no" >&6; }
20502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_bytes() is GPL-only" >&5
20503 $as_echo_n "checking whether blk_rq_bytes() is GPL-only... " >&6; }
20506 cat confdefs.h
- <<_ACEOF >conftest.c
20509 #include <linux/module.h>
20510 #include <linux/blkdev.h>
20512 MODULE_LICENSE("CDDL");
20518 struct request *req = NULL;
20519 (void) blk_rq_bytes(req);
20528 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20529 echo "obj-m := conftest.o" >build
/Makefile
20531 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20532 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20533 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20534 (eval $ac_try) 2>&5
20536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20537 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20538 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20539 (eval $ac_try) 2>&5
20541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20542 test $ac_status = 0; }; }; then :
20544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20545 $as_echo "no" >&6; }
20548 $as_echo "$as_me: failed program was:" >&5
20549 sed 's/^/| /' conftest.
$ac_ext >&5
20551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20552 $as_echo "yes" >&6; }
20554 $as_echo "#define HAVE_BLK_RQ_BYTES_GPL_ONLY 1" >>confdefs.h
20563 EXTRA_KCFLAGS
="$tmp_flags"
20566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_pos() is available" >&5
20567 $as_echo_n "checking whether blk_rq_pos() is available... " >&6; }
20568 tmp_flags
="$EXTRA_KCFLAGS"
20569 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
20572 cat confdefs.h
- <<_ACEOF >conftest.c
20575 #include <linux/blkdev.h>
20581 struct request *req = NULL;
20582 (void) blk_rq_pos(req);
20591 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20592 echo "obj-m := conftest.o" >build
/Makefile
20594 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20595 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20597 (eval $ac_try) 2>&5
20599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20600 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20601 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20602 (eval $ac_try) 2>&5
20604 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20605 test $ac_status = 0; }; }; then :
20607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20608 $as_echo "yes" >&6; }
20610 $as_echo "#define HAVE_BLK_RQ_POS 1" >>confdefs.h
20614 $as_echo "$as_me: failed program was:" >&5
20615 sed 's/^/| /' conftest.
$ac_ext >&5
20617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20618 $as_echo "no" >&6; }
20626 EXTRA_KCFLAGS
="$tmp_flags"
20629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether blk_rq_sectors() is available" >&5
20630 $as_echo_n "checking whether blk_rq_sectors() is available... " >&6; }
20631 tmp_flags
="$EXTRA_KCFLAGS"
20632 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
20635 cat confdefs.h
- <<_ACEOF >conftest.c
20638 #include <linux/blkdev.h>
20644 struct request *req = NULL;
20645 (void) blk_rq_sectors(req);
20654 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20655 echo "obj-m := conftest.o" >build
/Makefile
20657 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20658 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20659 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20660 (eval $ac_try) 2>&5
20662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20663 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20664 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20665 (eval $ac_try) 2>&5
20667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20668 test $ac_status = 0; }; }; then :
20670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20671 $as_echo "yes" >&6; }
20673 $as_echo "#define HAVE_BLK_RQ_SECTORS 1" >>confdefs.h
20677 $as_echo "$as_me: failed program was:" >&5
20678 sed 's/^/| /' conftest.
$ac_ext >&5
20680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20681 $as_echo "no" >&6; }
20689 EXTRA_KCFLAGS
="$tmp_flags"
20692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_disk_ro() is available" >&5
20693 $as_echo_n "checking whether get_disk_ro() is available... " >&6; }
20694 tmp_flags
="$EXTRA_KCFLAGS"
20695 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
20698 cat confdefs.h
- <<_ACEOF >conftest.c
20701 #include <linux/blkdev.h>
20707 struct gendisk *disk = NULL;
20708 (void) get_disk_ro(disk);
20717 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20718 echo "obj-m := conftest.o" >build
/Makefile
20720 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20721 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20722 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20723 (eval $ac_try) 2>&5
20725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20726 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20727 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20728 (eval $ac_try) 2>&5
20730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20731 test $ac_status = 0; }; }; then :
20733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20734 $as_echo "yes" >&6; }
20736 $as_echo "#define HAVE_GET_DISK_RO 1" >>confdefs.h
20740 $as_echo "$as_me: failed program was:" >&5
20741 sed 's/^/| /' conftest.
$ac_ext >&5
20743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20744 $as_echo "no" >&6; }
20752 EXTRA_KCFLAGS
="$tmp_flags"
20754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether get_gendisk() is available" >&5
20755 $as_echo_n "checking whether get_gendisk() is available... " >&6; }
20759 cat confdefs.h
- <<_ACEOF >conftest.c
20762 #include <linux/genhd.h>
20768 get_gendisk(0, NULL);
20777 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20778 echo "obj-m := conftest.o" >build
/Makefile
20780 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20781 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20783 (eval $ac_try) 2>&5
20785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20786 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20787 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20788 (eval $ac_try) 2>&5
20790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20791 test $ac_status = 0; }; }; then :
20794 $as_echo "$as_me: failed program was:" >&5
20795 sed 's/^/| /' conftest.
$ac_ext >&5
20803 if test $rc -ne 0; then :
20805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20806 $as_echo "no" >&6; }
20809 if test "x$enable_linux_builtin" != xyes
; then
20811 grep -q -E '[[:space:]]get_gendisk[[:space:]]' \
20812 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
20814 if test $rc -ne 0; then
20816 for file in block
/genhd.c
; do
20817 grep -q -E "EXPORT_SYMBOL.*(get_gendisk)" \
20818 "$LINUX/$file" 2>/dev
/null
20820 if test $rc -eq 0; then
20825 if test $export -eq 0; then :
20835 if test $rc -ne 0; then :
20837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20838 $as_echo "no" >&6; }
20842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20843 $as_echo "yes" >&6; }
20845 $as_echo "#define HAVE_GET_GENDISK 1" >>confdefs.h
20853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rq_is_sync() is available" >&5
20854 $as_echo_n "checking whether rq_is_sync() is available... " >&6; }
20855 tmp_flags
="$EXTRA_KCFLAGS"
20856 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
20859 cat confdefs.h
- <<_ACEOF >conftest.c
20862 #include <linux/blkdev.h>
20868 struct request *req = NULL;
20869 (void) rq_is_sync(req);
20878 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20879 echo "obj-m := conftest.o" >build
/Makefile
20881 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20882 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20883 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20884 (eval $ac_try) 2>&5
20886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20887 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20888 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20889 (eval $ac_try) 2>&5
20891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20892 test $ac_status = 0; }; }; then :
20894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20895 $as_echo "yes" >&6; }
20897 $as_echo "#define HAVE_RQ_IS_SYNC 1" >>confdefs.h
20901 $as_echo "$as_me: failed program was:" >&5
20902 sed 's/^/| /' conftest.
$ac_ext >&5
20904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20905 $as_echo "no" >&6; }
20913 EXTRA_KCFLAGS
="$tmp_flags"
20916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether rq_for_each_segment() is available" >&5
20917 $as_echo_n "checking whether rq_for_each_segment() is available... " >&6; }
20918 tmp_flags
="$EXTRA_KCFLAGS"
20919 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
20922 cat confdefs.h
- <<_ACEOF >conftest.c
20925 #include <linux/blkdev.h>
20931 struct bio_vec *bv;
20932 struct req_iterator iter;
20933 struct request *req = NULL;
20934 rq_for_each_segment(bv, req, iter) { }
20943 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
20944 echo "obj-m := conftest.o" >build
/Makefile
20946 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
20947 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
20948 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20949 (eval $ac_try) 2>&5
20951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20952 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
20953 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
20954 (eval $ac_try) 2>&5
20956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20957 test $ac_status = 0; }; }; then :
20959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20960 $as_echo "yes" >&6; }
20962 $as_echo "#define HAVE_RQ_FOR_EACH_SEGMENT 1" >>confdefs.h
20966 $as_echo "$as_me: failed program was:" >&5
20967 sed 's/^/| /' conftest.
$ac_ext >&5
20969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20970 $as_echo "no" >&6; }
20978 EXTRA_KCFLAGS
="$tmp_flags"
20981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ql->discard_granularity is available" >&5
20982 $as_echo_n "checking whether ql->discard_granularity is available... " >&6; }
20985 cat confdefs.h
- <<_ACEOF >conftest.c
20988 #include <linux/blkdev.h>
20994 struct queue_limits ql __attribute__ ((unused));
20996 ql.discard_granularity = 0;
21005 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21006 echo "obj-m := conftest.o" >build
/Makefile
21008 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21009 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21011 (eval $ac_try) 2>&5
21013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21014 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21015 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21016 (eval $ac_try) 2>&5
21018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21019 test $ac_status = 0; }; }; then :
21021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21022 $as_echo "yes" >&6; }
21024 $as_echo "#define HAVE_DISCARD_GRANULARITY 1" >>confdefs.h
21028 $as_echo "$as_me: failed program was:" >&5
21029 sed 's/^/| /' conftest.
$ac_ext >&5
21031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21032 $as_echo "no" >&6; }
21041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block uses const struct xattr_hander" >&5
21042 $as_echo_n "checking whether super_block uses const struct xattr_hander... " >&6; }
21045 cat confdefs.h
- <<_ACEOF >conftest.c
21048 #include <linux/fs.h>
21049 #include <linux/xattr.h>
21051 const struct xattr_handler xattr_test_handler = {
21057 const struct xattr_handler *xattr_handlers[] = {
21058 &xattr_test_handler,
21065 struct super_block sb __attribute__ ((unused));
21067 sb.s_xattr = xattr_handlers;
21076 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21077 echo "obj-m := conftest.o" >build
/Makefile
21079 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21080 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21082 (eval $ac_try) 2>&5
21084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21085 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21087 (eval $ac_try) 2>&5
21089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21090 test $ac_status = 0; }; }; then :
21092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21093 $as_echo "yes" >&6; }
21095 $as_echo "#define HAVE_CONST_XATTR_HANDLER 1" >>confdefs.h
21099 $as_echo "$as_me: failed program was:" >&5
21100 sed 's/^/| /' conftest.
$ac_ext >&5
21102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21103 $as_echo "no" >&6; }
21113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->get() wants dentry" >&5
21114 $as_echo_n "checking whether xattr_handler->get() wants dentry... " >&6; }
21117 cat confdefs.h
- <<_ACEOF >conftest.c
21120 #include <linux/xattr.h>
21126 int (*get)(struct dentry *dentry, const char *name,
21127 void *buffer, size_t size, int handler_flags) = NULL;
21128 struct xattr_handler xops __attribute__ ((unused));
21139 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21140 echo "obj-m := conftest.o" >build
/Makefile
21142 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21143 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21144 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21145 (eval $ac_try) 2>&5
21147 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21148 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21149 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21150 (eval $ac_try) 2>&5
21152 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21153 test $ac_status = 0; }; }; then :
21155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21156 $as_echo "yes" >&6; }
21158 $as_echo "#define HAVE_DENTRY_XATTR_GET 1" >>confdefs.h
21162 $as_echo "$as_me: failed program was:" >&5
21163 sed 's/^/| /' conftest.
$ac_ext >&5
21165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21166 $as_echo "no" >&6; }
21176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether xattr_handler->set() wants dentry" >&5
21177 $as_echo_n "checking whether xattr_handler->set() wants dentry... " >&6; }
21180 cat confdefs.h
- <<_ACEOF >conftest.c
21183 #include <linux/xattr.h>
21189 int (*set)(struct dentry *dentry, const char *name,
21190 const void *buffer, size_t size, int flags,
21191 int handler_flags) = NULL;
21192 struct xattr_handler xops __attribute__ ((unused));
21203 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21204 echo "obj-m := conftest.o" >build
/Makefile
21206 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21207 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21208 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21209 (eval $ac_try) 2>&5
21211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21212 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21213 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21214 (eval $ac_try) 2>&5
21216 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21217 test $ac_status = 0; }; }; then :
21219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21220 $as_echo "yes" >&6; }
21222 $as_echo "#define HAVE_DENTRY_XATTR_SET 1" >>confdefs.h
21226 $as_echo "$as_me: failed program was:" >&5
21227 sed 's/^/| /' conftest.
$ac_ext >&5
21229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21230 $as_echo "no" >&6; }
21240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->show_options() wants dentry" >&5
21241 $as_echo_n "checking whether sops->show_options() wants dentry... " >&6; }
21245 cat confdefs.h
- <<_ACEOF >conftest.c
21248 #include <linux/fs.h>
21250 int show_options (struct seq_file * x, struct dentry * y) { return 0; };
21251 static struct super_operations sops __attribute__ ((unused)) = {
21252 .show_options = show_options,
21267 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21268 echo "obj-m := conftest.o" >build
/Makefile
21270 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21271 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21272 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21273 (eval $ac_try) 2>&5
21275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21276 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21277 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21278 (eval $ac_try) 2>&5
21280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21281 test $ac_status = 0; }; }; then :
21283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21284 $as_echo "yes" >&6; }
21286 $as_echo "#define HAVE_SHOW_OPTIONS_WITH_DENTRY 1" >>confdefs.h
21290 $as_echo "$as_me: failed program was:" >&5
21291 sed 's/^/| /' conftest.
$ac_ext >&5
21293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21294 $as_echo "no" >&6; }
21304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fsync() wants" >&5
21305 $as_echo_n "checking whether fops->fsync() wants... " >&6; }
21309 cat confdefs.h
- <<_ACEOF >conftest.c
21312 #include <linux/fs.h>
21314 int test_fsync(struct file *f, struct dentry *dentry, int x)
21317 static const struct file_operations
21318 fops __attribute__ ((unused)) = {
21319 .fsync = test_fsync,
21334 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21335 echo "obj-m := conftest.o" >build
/Makefile
21337 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21338 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21339 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21340 (eval $ac_try) 2>&5
21342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21343 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21345 (eval $ac_try) 2>&5
21347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21348 test $ac_status = 0; }; }; then :
21350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dentry" >&5
21351 $as_echo "dentry" >&6; }
21353 $as_echo "#define HAVE_FSYNC_WITH_DENTRY 1" >>confdefs.h
21357 $as_echo "$as_me: failed program was:" >&5
21358 sed 's/^/| /' conftest.
$ac_ext >&5
21371 cat confdefs.h
- <<_ACEOF >conftest.c
21374 #include <linux/fs.h>
21376 int test_fsync(struct file *f, int x) { return 0; }
21378 static const struct file_operations
21379 fops __attribute__ ((unused)) = {
21380 .fsync = test_fsync,
21395 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21396 echo "obj-m := conftest.o" >build
/Makefile
21398 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21399 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21400 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21401 (eval $ac_try) 2>&5
21403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21404 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21405 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21406 (eval $ac_try) 2>&5
21408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21409 test $ac_status = 0; }; }; then :
21411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no dentry" >&5
21412 $as_echo "no dentry" >&6; }
21414 $as_echo "#define HAVE_FSYNC_WITHOUT_DENTRY 1" >>confdefs.h
21418 $as_echo "$as_me: failed program was:" >&5
21419 sed 's/^/| /' conftest.
$ac_ext >&5
21432 cat confdefs.h
- <<_ACEOF >conftest.c
21435 #include <linux/fs.h>
21437 int test_fsync(struct file *f, loff_t a, loff_t b, int c)
21440 static const struct file_operations
21441 fops __attribute__ ((unused)) = {
21442 .fsync = test_fsync,
21457 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21458 echo "obj-m := conftest.o" >build
/Makefile
21460 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21461 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21463 (eval $ac_try) 2>&5
21465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21466 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21467 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21468 (eval $ac_try) 2>&5
21470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21471 test $ac_status = 0; }; }; then :
21473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: range" >&5
21474 $as_echo "range" >&6; }
21476 $as_echo "#define HAVE_FSYNC_RANGE 1" >>confdefs.h
21480 $as_echo "$as_me: failed program was:" >&5
21481 sed 's/^/| /' conftest.
$ac_ext >&5
21493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->evict_inode() exists" >&5
21494 $as_echo_n "checking whether sops->evict_inode() exists... " >&6; }
21497 cat confdefs.h
- <<_ACEOF >conftest.c
21500 #include <linux/fs.h>
21501 void evict_inode (struct inode * t) { return; }
21502 static struct super_operations sops __attribute__ ((unused)) = {
21503 .evict_inode = evict_inode,
21518 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21519 echo "obj-m := conftest.o" >build
/Makefile
21521 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21522 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21523 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21524 (eval $ac_try) 2>&5
21526 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21527 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21528 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21529 (eval $ac_try) 2>&5
21531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21532 test $ac_status = 0; }; }; then :
21534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21535 $as_echo "yes" >&6; }
21537 $as_echo "#define HAVE_EVICT_INODE 1" >>confdefs.h
21541 $as_echo "$as_me: failed program was:" >&5
21542 sed 's/^/| /' conftest.
$ac_ext >&5
21544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21545 $as_echo "no" >&6; }
21555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->dirty_inode() wants flags" >&5
21556 $as_echo_n "checking whether sops->dirty_inode() wants flags... " >&6; }
21559 cat confdefs.h
- <<_ACEOF >conftest.c
21562 #include <linux/fs.h>
21564 void dirty_inode(struct inode *a, int b) { return; }
21566 static const struct super_operations
21567 sops __attribute__ ((unused)) = {
21568 .dirty_inode = dirty_inode,
21583 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21584 echo "obj-m := conftest.o" >build
/Makefile
21586 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21587 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21588 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21589 (eval $ac_try) 2>&5
21591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21592 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21593 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21594 (eval $ac_try) 2>&5
21596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21597 test $ac_status = 0; }; }; then :
21599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21600 $as_echo "yes" >&6; }
21602 $as_echo "#define HAVE_DIRTY_INODE_WITH_FLAGS 1" >>confdefs.h
21606 $as_echo "$as_me: failed program was:" >&5
21607 sed 's/^/| /' conftest.
$ac_ext >&5
21609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21610 $as_echo "no" >&6; }
21620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->nr_cached_objects() exists" >&5
21621 $as_echo_n "checking whether sops->nr_cached_objects() exists... " >&6; }
21624 cat confdefs.h
- <<_ACEOF >conftest.c
21627 #include <linux/fs.h>
21629 int nr_cached_objects(struct super_block *sb) { return 0; }
21631 static const struct super_operations
21632 sops __attribute__ ((unused)) = {
21633 .nr_cached_objects = nr_cached_objects,
21648 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21649 echo "obj-m := conftest.o" >build
/Makefile
21651 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21652 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21654 (eval $ac_try) 2>&5
21656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21657 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21658 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21659 (eval $ac_try) 2>&5
21661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21662 test $ac_status = 0; }; }; then :
21664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21665 $as_echo "yes" >&6; }
21667 $as_echo "#define HAVE_NR_CACHED_OBJECTS 1" >>confdefs.h
21671 $as_echo "$as_me: failed program was:" >&5
21672 sed 's/^/| /' conftest.
$ac_ext >&5
21674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21675 $as_echo "no" >&6; }
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sops->free_cached_objects() exists" >&5
21686 $as_echo_n "checking whether sops->free_cached_objects() exists... " >&6; }
21689 cat confdefs.h
- <<_ACEOF >conftest.c
21692 #include <linux/fs.h>
21694 void free_cached_objects(struct super_block *sb, int x)
21697 static const struct super_operations
21698 sops __attribute__ ((unused)) = {
21699 .free_cached_objects = free_cached_objects,
21714 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21715 echo "obj-m := conftest.o" >build
/Makefile
21717 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21718 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21719 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21720 (eval $ac_try) 2>&5
21722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21723 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21724 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21725 (eval $ac_try) 2>&5
21727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21728 test $ac_status = 0; }; }; then :
21730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21731 $as_echo "yes" >&6; }
21733 $as_echo "#define HAVE_FREE_CACHED_OBJECTS 1" >>confdefs.h
21737 $as_echo "$as_me: failed program was:" >&5
21738 sed 's/^/| /' conftest.
$ac_ext >&5
21740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21741 $as_echo "no" >&6; }
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fops->fallocate() exists" >&5
21753 $as_echo_n "checking whether fops->fallocate() exists... " >&6; }
21756 cat confdefs.h
- <<_ACEOF >conftest.c
21759 #include <linux/fs.h>
21761 long test_fallocate(struct file *file, int mode,
21762 loff_t offset, loff_t len) { return 0; }
21764 static const struct file_operations
21765 fops __attribute__ ((unused)) = {
21766 .fallocate = test_fallocate,
21781 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21782 echo "obj-m := conftest.o" >build
/Makefile
21784 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21785 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21786 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21787 (eval $ac_try) 2>&5
21789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21790 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21791 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21792 (eval $ac_try) 2>&5
21794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21795 test $ac_status = 0; }; }; then :
21797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21798 $as_echo "yes" >&6; }
21800 $as_echo "#define HAVE_FILE_FALLOCATE 1" >>confdefs.h
21804 $as_echo "$as_me: failed program was:" >&5
21805 sed 's/^/| /' conftest.
$ac_ext >&5
21807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21808 $as_echo "no" >&6; }
21818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->fallocate() exists" >&5
21819 $as_echo_n "checking whether iops->fallocate() exists... " >&6; }
21822 cat confdefs.h
- <<_ACEOF >conftest.c
21825 #include <linux/fs.h>
21827 long test_fallocate(struct inode *inode, int mode,
21828 loff_t offset, loff_t len) { return 0; }
21830 static const struct inode_operations
21831 fops __attribute__ ((unused)) = {
21832 .fallocate = test_fallocate,
21847 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21848 echo "obj-m := conftest.o" >build
/Makefile
21850 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21851 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21852 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21853 (eval $ac_try) 2>&5
21855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21856 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21857 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21858 (eval $ac_try) 2>&5
21860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21861 test $ac_status = 0; }; }; then :
21863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21864 $as_echo "yes" >&6; }
21866 $as_echo "#define HAVE_INODE_FALLOCATE 1" >>confdefs.h
21870 $as_echo "$as_me: failed program was:" >&5
21871 sed 's/^/| /' conftest.
$ac_ext >&5
21873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21874 $as_echo "no" >&6; }
21885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create()/mkdir()/mknod() take umode_t" >&5
21886 $as_echo_n "checking whether iops->create()/mkdir()/mknod() take umode_t... " >&6; }
21889 cat confdefs.h
- <<_ACEOF >conftest.c
21892 #include <linux/fs.h>
21894 int mkdir(struct inode *inode, struct dentry *dentry,
21895 umode_t umode) { return 0; }
21897 static const struct inode_operations
21898 iops __attribute__ ((unused)) = {
21914 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21915 echo "obj-m := conftest.o" >build
/Makefile
21917 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21918 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21919 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21920 (eval $ac_try) 2>&5
21922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21923 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21925 (eval $ac_try) 2>&5
21927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21928 test $ac_status = 0; }; }; then :
21930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21931 $as_echo "yes" >&6; }
21933 $as_echo "#define HAVE_MKDIR_UMODE_T 1" >>confdefs.h
21937 $as_echo "$as_me: failed program was:" >&5
21938 sed 's/^/| /' conftest.
$ac_ext >&5
21940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21941 $as_echo "no" >&6; }
21951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->lookup() takes struct nameidata" >&5
21952 $as_echo_n "checking whether iops->lookup() takes struct nameidata... " >&6; }
21955 cat confdefs.h
- <<_ACEOF >conftest.c
21958 #include <linux/fs.h>
21960 struct dentry *inode_lookup(struct inode *inode,
21961 struct dentry *dentry, struct nameidata *nidata)
21964 static const struct inode_operations iops
21965 __attribute__ ((unused)) = {
21966 .lookup = inode_lookup,
21981 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
21982 echo "obj-m := conftest.o" >build
/Makefile
21984 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
21985 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
21986 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21987 (eval $ac_try) 2>&5
21989 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21990 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
21991 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
21992 (eval $ac_try) 2>&5
21994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21995 test $ac_status = 0; }; }; then :
21997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21998 $as_echo "yes" >&6; }
22000 $as_echo "#define HAVE_LOOKUP_NAMEIDATA 1" >>confdefs.h
22004 $as_echo "$as_me: failed program was:" >&5
22005 sed 's/^/| /' conftest.
$ac_ext >&5
22007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22008 $as_echo "no" >&6; }
22018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->create() takes struct nameidata" >&5
22019 $as_echo_n "checking whether iops->create() takes struct nameidata... " >&6; }
22022 cat confdefs.h
- <<_ACEOF >conftest.c
22025 #include <linux/fs.h>
22027 #ifdef HAVE_MKDIR_UMODE_T
22028 int inode_create(struct inode *inode ,struct dentry *dentry,
22029 umode_t umode, struct nameidata *nidata) { return 0; }
22031 int inode_create(struct inode *inode,struct dentry *dentry,
22032 int umode, struct nameidata * nidata) { return 0; }
22035 static const struct inode_operations
22036 iops __attribute__ ((unused)) = {
22037 .create = inode_create,
22052 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22053 echo "obj-m := conftest.o" >build
/Makefile
22055 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22056 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22057 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22058 (eval $ac_try) 2>&5
22060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22061 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22062 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22063 (eval $ac_try) 2>&5
22065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22066 test $ac_status = 0; }; }; then :
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22069 $as_echo "yes" >&6; }
22071 $as_echo "#define HAVE_CREATE_NAMEIDATA 1" >>confdefs.h
22075 $as_echo "$as_me: failed program was:" >&5
22076 sed 's/^/| /' conftest.
$ac_ext >&5
22078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22079 $as_echo "no" >&6; }
22089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether iops->truncate_range() exists" >&5
22090 $as_echo_n "checking whether iops->truncate_range() exists... " >&6; }
22093 cat confdefs.h
- <<_ACEOF >conftest.c
22096 #include <linux/fs.h>
22097 void truncate_range(struct inode *inode, loff_t start,
22098 loff_t end) { return; }
22099 static struct inode_operations iops __attribute__ ((unused)) = {
22100 .truncate_range = truncate_range,
22115 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22116 echo "obj-m := conftest.o" >build
/Makefile
22118 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22119 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22120 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22121 (eval $ac_try) 2>&5
22123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22124 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22125 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22126 (eval $ac_try) 2>&5
22128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22129 test $ac_status = 0; }; }; then :
22131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22132 $as_echo "yes" >&6; }
22134 $as_echo "#define HAVE_INODE_TRUNCATE_RANGE 1" >>confdefs.h
22138 $as_echo "$as_me: failed program was:" >&5
22139 sed 's/^/| /' conftest.
$ac_ext >&5
22141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22142 $as_echo "no" >&6; }
22152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_automount() exists" >&5
22153 $as_echo_n "checking whether dops->d_automount() exists... " >&6; }
22156 cat confdefs.h
- <<_ACEOF >conftest.c
22159 #include <linux/dcache.h>
22160 struct vfsmount *d_automount(struct path *p) { return NULL; }
22161 struct dentry_operations dops __attribute__ ((unused)) = {
22162 .d_automount = d_automount,
22177 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22178 echo "obj-m := conftest.o" >build
/Makefile
22180 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22181 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22183 (eval $ac_try) 2>&5
22185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22186 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22187 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22188 (eval $ac_try) 2>&5
22190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22191 test $ac_status = 0; }; }; then :
22193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22194 $as_echo "yes" >&6; }
22196 $as_echo "#define HAVE_AUTOMOUNT 1" >>confdefs.h
22200 $as_echo "$as_me: failed program was:" >&5
22201 sed 's/^/| /' conftest.
$ac_ext >&5
22203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22204 $as_echo "no" >&6; }
22214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->encode_fh() wants inode" >&5
22215 $as_echo_n "checking whether eops->encode_fh() wants inode... " >&6; }
22218 cat confdefs.h
- <<_ACEOF >conftest.c
22221 #include <linux/exportfs.h>
22222 int encode_fh(struct inode *inode, __u32 *fh, int *max_len,
22223 struct inode *parent) { return 0; }
22224 static struct export_operations eops __attribute__ ((unused))={
22225 .encode_fh = encode_fh,
22240 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22241 echo "obj-m := conftest.o" >build
/Makefile
22243 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22244 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22245 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22246 (eval $ac_try) 2>&5
22248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22249 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22250 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22251 (eval $ac_try) 2>&5
22253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22254 test $ac_status = 0; }; }; then :
22256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22257 $as_echo "yes" >&6; }
22259 $as_echo "#define HAVE_ENCODE_FH_WITH_INODE 1" >>confdefs.h
22263 $as_echo "$as_me: failed program was:" >&5
22264 sed 's/^/| /' conftest.
$ac_ext >&5
22266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22267 $as_echo "no" >&6; }
22277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether eops->commit_metadata() exists" >&5
22278 $as_echo_n "checking whether eops->commit_metadata() exists... " >&6; }
22281 cat confdefs.h
- <<_ACEOF >conftest.c
22284 #include <linux/exportfs.h>
22285 int commit_metadata(struct inode *inode) { return 0; }
22286 static struct export_operations eops __attribute__ ((unused))={
22287 .commit_metadata = commit_metadata,
22302 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22303 echo "obj-m := conftest.o" >build
/Makefile
22305 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22306 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22307 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22308 (eval $ac_try) 2>&5
22310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22311 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22312 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22313 (eval $ac_try) 2>&5
22315 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22316 test $ac_status = 0; }; }; then :
22318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22319 $as_echo "yes" >&6; }
22321 $as_echo "#define HAVE_COMMIT_METADATA 1" >>confdefs.h
22325 $as_echo "$as_me: failed program was:" >&5
22326 sed 's/^/| /' conftest.
$ac_ext >&5
22328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22329 $as_echo "no" >&6; }
22338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clear_inode() is available" >&5
22339 $as_echo_n "checking whether clear_inode() is available... " >&6; }
22343 cat confdefs.h
- <<_ACEOF >conftest.c
22346 #include <linux/fs.h>
22361 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22362 echo "obj-m := conftest.o" >build
/Makefile
22364 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22365 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22366 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22367 (eval $ac_try) 2>&5
22369 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22370 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22371 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22372 (eval $ac_try) 2>&5
22374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22375 test $ac_status = 0; }; }; then :
22378 $as_echo "$as_me: failed program was:" >&5
22379 sed 's/^/| /' conftest.
$ac_ext >&5
22387 if test $rc -ne 0; then :
22389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22390 $as_echo "no" >&6; }
22393 if test "x$enable_linux_builtin" != xyes
; then
22395 grep -q -E '[[:space:]]clear_inode[[:space:]]' \
22396 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22398 if test $rc -ne 0; then
22400 for file in fs
/inode.c
; do
22401 grep -q -E "EXPORT_SYMBOL.*(clear_inode)" \
22402 "$LINUX/$file" 2>/dev
/null
22404 if test $rc -eq 0; then
22409 if test $export -eq 0; then :
22419 if test $rc -ne 0; then :
22421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22422 $as_echo "no" >&6; }
22426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22427 $as_echo "yes" >&6; }
22429 $as_echo "#define HAVE_CLEAR_INODE 1" >>confdefs.h
22436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether insert_inode_locked() is available" >&5
22437 $as_echo_n "checking whether insert_inode_locked() is available... " >&6; }
22441 cat confdefs.h
- <<_ACEOF >conftest.c
22444 #include <linux/fs.h>
22450 insert_inode_locked(NULL);
22459 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22460 echo "obj-m := conftest.o" >build
/Makefile
22462 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22463 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22464 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22465 (eval $ac_try) 2>&5
22467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22468 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22469 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22470 (eval $ac_try) 2>&5
22472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22473 test $ac_status = 0; }; }; then :
22476 $as_echo "$as_me: failed program was:" >&5
22477 sed 's/^/| /' conftest.
$ac_ext >&5
22485 if test $rc -ne 0; then :
22487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22488 $as_echo "no" >&6; }
22491 if test "x$enable_linux_builtin" != xyes
; then
22493 grep -q -E '[[:space:]]insert_inode_locked[[:space:]]' \
22494 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22496 if test $rc -ne 0; then
22498 for file in fs
/inode.c
; do
22499 grep -q -E "EXPORT_SYMBOL.*(insert_inode_locked)" \
22500 "$LINUX/$file" 2>/dev
/null
22502 if test $rc -eq 0; then
22507 if test $export -eq 0; then :
22517 if test $rc -ne 0; then :
22519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22520 $as_echo "no" >&6; }
22524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22525 $as_echo "yes" >&6; }
22527 $as_echo "#define HAVE_INSERT_INODE_LOCKED 1" >>confdefs.h
22534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_make_root() is available" >&5
22535 $as_echo_n "checking whether d_make_root() is available... " >&6; }
22539 cat confdefs.h
- <<_ACEOF >conftest.c
22542 #include <linux/dcache.h>
22557 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22558 echo "obj-m := conftest.o" >build
/Makefile
22560 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22561 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22562 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22563 (eval $ac_try) 2>&5
22565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22566 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22567 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22568 (eval $ac_try) 2>&5
22570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22571 test $ac_status = 0; }; }; then :
22574 $as_echo "$as_me: failed program was:" >&5
22575 sed 's/^/| /' conftest.
$ac_ext >&5
22583 if test $rc -ne 0; then :
22585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22586 $as_echo "no" >&6; }
22589 if test "x$enable_linux_builtin" != xyes
; then
22591 grep -q -E '[[:space:]]d_make_root[[:space:]]' \
22592 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22594 if test $rc -ne 0; then
22596 for file in fs
/dcache.c
; do
22597 grep -q -E "EXPORT_SYMBOL.*(d_make_root)" \
22598 "$LINUX/$file" 2>/dev
/null
22600 if test $rc -eq 0; then
22605 if test $export -eq 0; then :
22615 if test $rc -ne 0; then :
22617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22618 $as_echo "no" >&6; }
22622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22623 $as_echo "yes" >&6; }
22625 $as_echo "#define HAVE_D_MAKE_ROOT 1" >>confdefs.h
22632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_obtain_alias() is available" >&5
22633 $as_echo_n "checking whether d_obtain_alias() is available... " >&6; }
22637 cat confdefs.h
- <<_ACEOF >conftest.c
22640 #include <linux/dcache.h>
22646 d_obtain_alias(NULL);
22655 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22656 echo "obj-m := conftest.o" >build
/Makefile
22658 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22659 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22660 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22661 (eval $ac_try) 2>&5
22663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22664 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22665 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22666 (eval $ac_try) 2>&5
22668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22669 test $ac_status = 0; }; }; then :
22672 $as_echo "$as_me: failed program was:" >&5
22673 sed 's/^/| /' conftest.
$ac_ext >&5
22681 if test $rc -ne 0; then :
22683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22684 $as_echo "no" >&6; }
22687 if test "x$enable_linux_builtin" != xyes
; then
22689 grep -q -E '[[:space:]]d_obtain_alias[[:space:]]' \
22690 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22692 if test $rc -ne 0; then
22694 for file in fs
/dcache.c
; do
22695 grep -q -E "EXPORT_SYMBOL.*(d_obtain_alias)" \
22696 "$LINUX/$file" 2>/dev
/null
22698 if test $rc -eq 0; then
22703 if test $export -eq 0; then :
22713 if test $rc -ne 0; then :
22715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22716 $as_echo "no" >&6; }
22720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22721 $as_echo "yes" >&6; }
22723 $as_echo "#define HAVE_D_OBTAIN_ALIAS 1" >>confdefs.h
22730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether d_set_d_op() is available" >&5
22731 $as_echo_n "checking whether d_set_d_op() is available... " >&6; }
22735 cat confdefs.h
- <<_ACEOF >conftest.c
22738 #include <linux/dcache.h>
22744 d_set_d_op(NULL, NULL);
22753 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22754 echo "obj-m := conftest.o" >build
/Makefile
22756 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22757 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22758 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22759 (eval $ac_try) 2>&5
22761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22762 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22763 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22764 (eval $ac_try) 2>&5
22766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22767 test $ac_status = 0; }; }; then :
22770 $as_echo "$as_me: failed program was:" >&5
22771 sed 's/^/| /' conftest.
$ac_ext >&5
22779 if test $rc -ne 0; then :
22781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22782 $as_echo "no" >&6; }
22785 if test "x$enable_linux_builtin" != xyes
; then
22787 grep -q -E '[[:space:]]d_set_d_op[[:space:]]' \
22788 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
22790 if test $rc -ne 0; then
22792 for file in fs
/dcache.c
; do
22793 grep -q -E "EXPORT_SYMBOL.*(d_set_d_op)" \
22794 "$LINUX/$file" 2>/dev
/null
22796 if test $rc -eq 0; then
22801 if test $export -eq 0; then :
22811 if test $rc -ne 0; then :
22813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22814 $as_echo "no" >&6; }
22818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22819 $as_echo "yes" >&6; }
22821 $as_echo "#define HAVE_D_SET_D_OP 1" >>confdefs.h
22829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dops->d_revalidate() takes struct nameidata" >&5
22830 $as_echo_n "checking whether dops->d_revalidate() takes struct nameidata... " >&6; }
22833 cat confdefs.h
- <<_ACEOF >conftest.c
22836 #include <linux/dcache.h>
22838 int revalidate (struct dentry *dentry,
22839 struct nameidata *nidata) { return 0; }
22841 static const struct dentry_operations
22842 dops __attribute__ ((unused)) = {
22843 .d_revalidate = revalidate,
22858 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22859 echo "obj-m := conftest.o" >build
/Makefile
22861 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22862 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22863 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22864 (eval $ac_try) 2>&5
22866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22867 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22868 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22869 (eval $ac_try) 2>&5
22871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22872 test $ac_status = 0; }; }; then :
22874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22875 $as_echo "yes" >&6; }
22877 $as_echo "#define HAVE_D_REVALIDATE_NAMEIDATA 1" >>confdefs.h
22881 $as_echo "$as_me: failed program was:" >&5
22882 sed 's/^/| /' conftest.
$ac_ext >&5
22884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22885 $as_echo "no" >&6; }
22895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dentry uses const struct dentry_operations" >&5
22896 $as_echo_n "checking whether dentry uses const struct dentry_operations... " >&6; }
22899 cat confdefs.h
- <<_ACEOF >conftest.c
22902 #include <linux/dcache.h>
22904 const struct dentry_operations test_d_op = {
22905 .d_revalidate = NULL,
22912 struct dentry d __attribute__ ((unused));
22914 d.d_op = &test_d_op;
22923 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22924 echo "obj-m := conftest.o" >build
/Makefile
22926 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22927 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22928 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22929 (eval $ac_try) 2>&5
22931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22932 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22933 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22934 (eval $ac_try) 2>&5
22936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22937 test $ac_status = 0; }; }; then :
22939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22940 $as_echo "yes" >&6; }
22942 $as_echo "#define HAVE_CONST_DENTRY_OPERATIONS 1" >>confdefs.h
22946 $as_echo "$as_me: failed program was:" >&5
22947 sed 's/^/| /' conftest.
$ac_ext >&5
22949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22950 $as_echo "no" >&6; }
22959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether check_disk_size_change() is available" >&5
22960 $as_echo_n "checking whether check_disk_size_change() is available... " >&6; }
22964 cat confdefs.h
- <<_ACEOF >conftest.c
22967 #include <linux/fs.h>
22973 check_disk_size_change(NULL, NULL);
22982 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
22983 echo "obj-m := conftest.o" >build
/Makefile
22985 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
22986 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
22987 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22988 (eval $ac_try) 2>&5
22990 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22991 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
22992 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
22993 (eval $ac_try) 2>&5
22995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22996 test $ac_status = 0; }; }; then :
22999 $as_echo "$as_me: failed program was:" >&5
23000 sed 's/^/| /' conftest.
$ac_ext >&5
23008 if test $rc -ne 0; then :
23010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23011 $as_echo "no" >&6; }
23014 if test "x$enable_linux_builtin" != xyes
; then
23016 grep -q -E '[[:space:]]check_disk_size_change[[:space:]]' \
23017 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23019 if test $rc -ne 0; then
23021 for file in fs
/block_dev.c
; do
23022 grep -q -E "EXPORT_SYMBOL.*(check_disk_size_change)" \
23023 "$LINUX/$file" 2>/dev
/null
23025 if test $rc -eq 0; then
23030 if test $export -eq 0; then :
23040 if test $rc -ne 0; then :
23042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23043 $as_echo "no" >&6; }
23047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23048 $as_echo "yes" >&6; }
23050 $as_echo "#define HAVE_CHECK_DISK_SIZE_CHANGE 1" >>confdefs.h
23057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether truncate_setsize() is available" >&5
23058 $as_echo_n "checking whether truncate_setsize() is available... " >&6; }
23062 cat confdefs.h
- <<_ACEOF >conftest.c
23065 #include <linux/mm.h>
23071 truncate_setsize(NULL, 0);
23080 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23081 echo "obj-m := conftest.o" >build
/Makefile
23083 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23084 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23085 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23086 (eval $ac_try) 2>&5
23088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23089 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23090 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23091 (eval $ac_try) 2>&5
23093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23094 test $ac_status = 0; }; }; then :
23097 $as_echo "$as_me: failed program was:" >&5
23098 sed 's/^/| /' conftest.
$ac_ext >&5
23106 if test $rc -ne 0; then :
23108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23109 $as_echo "no" >&6; }
23112 if test "x$enable_linux_builtin" != xyes
; then
23114 grep -q -E '[[:space:]]truncate_setsize[[:space:]]' \
23115 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23117 if test $rc -ne 0; then
23119 for file in mm
/truncate.c
; do
23120 grep -q -E "EXPORT_SYMBOL.*(truncate_setsize)" \
23121 "$LINUX/$file" 2>/dev
/null
23123 if test $rc -eq 0; then
23128 if test $export -eq 0; then :
23138 if test $rc -ne 0; then :
23140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23141 $as_echo "no" >&6; }
23145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23146 $as_echo "yes" >&6; }
23148 $as_echo "#define HAVE_TRUNCATE_SETSIZE 1" >>confdefs.h
23156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants 6 args" >&5
23157 $as_echo_n "checking whether security_inode_init_security wants 6 args... " >&6; }
23160 cat confdefs.h
- <<_ACEOF >conftest.c
23163 #include <linux/security.h>
23169 struct inode *ip __attribute__ ((unused)) = NULL;
23170 struct inode *dip __attribute__ ((unused)) = NULL;
23171 const struct qstr *str __attribute__ ((unused)) = NULL;
23172 char *name __attribute__ ((unused)) = NULL;
23173 void *value __attribute__ ((unused)) = NULL;
23174 size_t len __attribute__ ((unused)) = 0;
23176 security_inode_init_security(ip, dip, str, &name, &value, &len);
23185 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23186 echo "obj-m := conftest.o" >build
/Makefile
23188 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23189 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23191 (eval $ac_try) 2>&5
23193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23194 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23195 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23196 (eval $ac_try) 2>&5
23198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23199 test $ac_status = 0; }; }; then :
23201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23202 $as_echo "yes" >&6; }
23204 $as_echo "#define HAVE_6ARGS_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
23208 $as_echo "$as_me: failed program was:" >&5
23209 sed 's/^/| /' conftest.
$ac_ext >&5
23211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23212 $as_echo "no" >&6; }
23222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether security_inode_init_security wants callback" >&5
23223 $as_echo_n "checking whether security_inode_init_security wants callback... " >&6; }
23226 cat confdefs.h
- <<_ACEOF >conftest.c
23229 #include <linux/security.h>
23235 struct inode *ip __attribute__ ((unused)) = NULL;
23236 struct inode *dip __attribute__ ((unused)) = NULL;
23237 const struct qstr *str __attribute__ ((unused)) = NULL;
23238 initxattrs func __attribute__ ((unused)) = NULL;
23240 security_inode_init_security(ip, dip, str, func, NULL);
23249 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23250 echo "obj-m := conftest.o" >build
/Makefile
23252 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23253 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23254 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23255 (eval $ac_try) 2>&5
23257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23258 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23259 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23260 (eval $ac_try) 2>&5
23262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23263 test $ac_status = 0; }; }; then :
23265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23266 $as_echo "yes" >&6; }
23268 $as_echo "#define HAVE_CALLBACK_SECURITY_INODE_INIT_SECURITY 1" >>confdefs.h
23272 $as_echo "$as_me: failed program was:" >&5
23273 sed 's/^/| /' conftest.
$ac_ext >&5
23275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23276 $as_echo "no" >&6; }
23285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mount_nodev() is available" >&5
23286 $as_echo_n "checking whether mount_nodev() is available... " >&6; }
23290 cat confdefs.h
- <<_ACEOF >conftest.c
23293 #include <linux/fs.h>
23299 mount_nodev(NULL, 0, NULL, NULL);
23308 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23309 echo "obj-m := conftest.o" >build
/Makefile
23311 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23312 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23313 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23314 (eval $ac_try) 2>&5
23316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23317 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23318 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23319 (eval $ac_try) 2>&5
23321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23322 test $ac_status = 0; }; }; then :
23325 $as_echo "$as_me: failed program was:" >&5
23326 sed 's/^/| /' conftest.
$ac_ext >&5
23334 if test $rc -ne 0; then :
23336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23337 $as_echo "no" >&6; }
23340 if test "x$enable_linux_builtin" != xyes
; then
23342 grep -q -E '[[:space:]]mount_nodev[[:space:]]' \
23343 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23345 if test $rc -ne 0; then
23347 for file in fs
/super.c
; do
23348 grep -q -E "EXPORT_SYMBOL.*(mount_nodev)" \
23349 "$LINUX/$file" 2>/dev
/null
23351 if test $rc -eq 0; then
23356 if test $export -eq 0; then :
23366 if test $rc -ne 0; then :
23368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23369 $as_echo "no" >&6; }
23373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23374 $as_echo "yes" >&6; }
23376 $as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
23384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_shrink" >&5
23385 $as_echo_n "checking whether super_block has s_shrink... " >&6; }
23388 cat confdefs.h
- <<_ACEOF >conftest.c
23391 #include <linux/fs.h>
23393 int shrink(struct shrinker *s, struct shrink_control *sc)
23396 static const struct super_block
23397 sb __attribute__ ((unused)) = {
23398 .s_shrink.shrink = shrink,
23399 .s_shrink.seeks = DEFAULT_SEEKS,
23400 .s_shrink.batch = 0,
23415 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23416 echo "obj-m := conftest.o" >build
/Makefile
23418 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23419 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23420 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23421 (eval $ac_try) 2>&5
23423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23424 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23425 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23426 (eval $ac_try) 2>&5
23428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23429 test $ac_status = 0; }; }; then :
23431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23432 $as_echo "yes" >&6; }
23434 $as_echo "#define HAVE_SHRINK 1" >>confdefs.h
23439 $as_echo "$as_me: failed program was:" >&5
23440 sed 's/^/| /' conftest.
$ac_ext >&5
23442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23443 $as_echo "no" >&6; }
23452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether super_block has s_d_op" >&5
23453 $as_echo_n "checking whether super_block has s_d_op... " >&6; }
23456 cat confdefs.h
- <<_ACEOF >conftest.c
23459 #include <linux/fs.h>
23465 struct super_block sb __attribute__ ((unused));
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 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_S_D_OP 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 super_block has s_bdi" >&5
23513 $as_echo_n "checking whether super_block has s_bdi... " >&6; }
23516 cat confdefs.h
- <<_ACEOF >conftest.c
23519 #include <linux/fs.h>
23525 struct super_block sb __attribute__ ((unused));
23535 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23536 echo "obj-m := conftest.o" >build
/Makefile
23538 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23539 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23540 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23541 (eval $ac_try) 2>&5
23543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23544 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23546 (eval $ac_try) 2>&5
23548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23549 test $ac_status = 0; }; }; then :
23551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23552 $as_echo "yes" >&6; }
23554 $as_echo "#define HAVE_BDI 1" >>confdefs.h
23558 $as_echo "$as_me: failed program was:" >&5
23559 sed 's/^/| /' conftest.
$ac_ext >&5
23561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23562 $as_echo "no" >&6; }
23571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether bdi_setup_and_register() is available" >&5
23572 $as_echo_n "checking whether bdi_setup_and_register() is available... " >&6; }
23576 cat confdefs.h
- <<_ACEOF >conftest.c
23579 #include <linux/backing-dev.h>
23585 bdi_setup_and_register(NULL, NULL, 0);
23594 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23595 echo "obj-m := conftest.o" >build
/Makefile
23597 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23598 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23599 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23600 (eval $ac_try) 2>&5
23602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23603 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23605 (eval $ac_try) 2>&5
23607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23608 test $ac_status = 0; }; }; then :
23611 $as_echo "$as_me: failed program was:" >&5
23612 sed 's/^/| /' conftest.
$ac_ext >&5
23620 if test $rc -ne 0; then :
23622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23623 $as_echo "no" >&6; }
23626 if test "x$enable_linux_builtin" != xyes
; then
23628 grep -q -E '[[:space:]]bdi_setup_and_register[[:space:]]' \
23629 $LINUX_OBJ/$LINUX_SYMBOLS 2>/dev
/null
23631 if test $rc -ne 0; then
23633 for file in mm
/backing-dev.c
; do
23634 grep -q -E "EXPORT_SYMBOL.*(bdi_setup_and_register)" \
23635 "$LINUX/$file" 2>/dev
/null
23637 if test $rc -eq 0; then
23642 if test $export -eq 0; then :
23652 if test $rc -ne 0; then :
23654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23655 $as_echo "no" >&6; }
23659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23660 $as_echo "yes" >&6; }
23662 $as_echo "#define HAVE_BDI_SETUP_AND_REGISTER 1" >>confdefs.h
23670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether set_nlink() is available" >&5
23671 $as_echo_n "checking whether set_nlink() is available... " >&6; }
23674 cat confdefs.h
- <<_ACEOF >conftest.c
23677 #include <linux/fs.h>
23684 unsigned int link = 0;
23685 (void) set_nlink(&node, link);
23694 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23695 echo "obj-m := conftest.o" >build
/Makefile
23697 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23698 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23699 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23700 (eval $ac_try) 2>&5
23702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23703 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23704 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23705 (eval $ac_try) 2>&5
23707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23708 test $ac_status = 0; }; }; then :
23710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23711 $as_echo "yes" >&6; }
23713 $as_echo "#define HAVE_SET_NLINK 1" >>confdefs.h
23717 $as_echo "$as_me: failed program was:" >&5
23718 sed 's/^/| /' conftest.
$ac_ext >&5
23720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23721 $as_echo "no" >&6; }
23731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether elevator_change() is available" >&5
23732 $as_echo_n "checking whether elevator_change() is available... " >&6; }
23733 tmp_flags
="$EXTRA_KCFLAGS"
23734 EXTRA_KCFLAGS
="${NO_UNUSED_BUT_SET_VARIABLE}"
23737 cat confdefs.h
- <<_ACEOF >conftest.c
23740 #include <linux/blkdev.h>
23741 #include <linux/elevator.h>
23748 struct request_queue *q = NULL;
23749 char *elevator = NULL;
23750 ret = elevator_change(q, elevator);
23759 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23760 echo "obj-m := conftest.o" >build
/Makefile
23762 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23763 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23764 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23765 (eval $ac_try) 2>&5
23767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23768 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23770 (eval $ac_try) 2>&5
23772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23773 test $ac_status = 0; }; }; then :
23775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23776 $as_echo "yes" >&6; }
23778 $as_echo "#define HAVE_ELEVATOR_CHANGE 1" >>confdefs.h
23782 $as_echo "$as_me: failed program was:" >&5
23783 sed 's/^/| /' conftest.
$ac_ext >&5
23785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23786 $as_echo "no" >&6; }
23794 EXTRA_KCFLAGS
="$tmp_flags"
23796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sget() wants 5 args" >&5
23797 $as_echo_n "checking whether sget() wants 5 args... " >&6; }
23800 cat confdefs.h
- <<_ACEOF >conftest.c
23803 #include <linux/fs.h>
23809 struct file_system_type *type = NULL;
23810 int (*test)(struct super_block *,void *) = NULL;
23811 int (*set)(struct super_block *,void *) = NULL;
23814 (void) sget(type, test, set, flags, data);
23823 rm -Rf build
&& mkdir
-p build
&& touch build
/conftest.mod.c
23824 echo "obj-m := conftest.o" >build
/Makefile
23826 test "x$enable_linux_builtin" = xyes
&& modpost_flag
='modpost=true' # fake modpost stage
23827 if { ac_try
='cp conftest.c build && make modules -C $LINUX_OBJ EXTRA_CFLAGS="-Werror $EXTRA_KCFLAGS" $ARCH_UM M=$PWD/build $modpost_flag'
23828 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23829 (eval $ac_try) 2>&5
23831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23832 test $ac_status = 0; }; } >/dev
/null
&& { ac_try
='test -s build/conftest.o'
23833 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
23834 (eval $ac_try) 2>&5
23836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
23837 test $ac_status = 0; }; }; then :
23839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23840 $as_echo "yes" >&6; }
23842 $as_echo "#define HAVE_5ARG_SGET 1" >>confdefs.h
23846 $as_echo "$as_me: failed program was:" >&5
23847 sed 's/^/| /' conftest.
$ac_ext >&5
23849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23850 $as_echo "no" >&6; }
23860 if test "$LINUX_OBJ" != "$LINUX"; then :
23862 KERNELMAKE_PARAMS
="$KERNELMAKE_PARAMS O=$LINUX_OBJ"
23868 KERNELCPPFLAGS
="$KERNELCPPFLAGS $NO_UNUSED_BUT_SET_VARIABLE"
23869 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DHAVE_SPL -D_KERNEL"
23870 KERNELCPPFLAGS
="$KERNELCPPFLAGS -DTEXT_DOMAIN=\\\"zfs-linux-kernel\\\""
23877 # Check whether --with-udevdir was given.
23878 if test "${with_udevdir+set}" = set; then :
23879 withval
=$with_udevdir; udevdir
=$withval
23881 udevdir
='${exec_prefix}/lib/udev'
23886 # Check whether --with-udevruledir was given.
23887 if test "${with_udevruledir+set}" = set; then :
23888 withval
=$with_udevruledir; udevruledir
=$withval
23890 udevruledir
='${udevdir}/rules.d'
23899 # Check whether --with-dracutdir was given.
23900 if test "${with_dracutdir+set}" = set; then :
23901 withval
=$with_dracutdir; dracutdir
=$withval
23903 dracutdir
='${exec_prefix}/lib/dracut'
23910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target asm dir" >&5
23911 $as_echo_n "checking for target asm dir... " >&6; }
23912 TARGET_ARCH
=`echo ${target_cpu} | sed -e s/i.86/i386/`
23914 case $TARGET_ARCH in
23916 TARGET_ASM_DIR
=asm-
${TARGET_ARCH}
23919 TARGET_ASM_DIR
=asm-generic
23924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TARGET_ASM_DIR" >&5
23925 $as_echo "$TARGET_ASM_DIR" >&6; }
23928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl()" >&5
23929 $as_echo_n "checking for ioctl()... " >&6; }
23930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23931 /* end confdefs.h. */
23932 #include <unistd.h>
23935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23936 $EGREP "ioctl" >/dev
/null
2>&1; then :
23943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23944 /* end confdefs.h. */
23945 #include <sys/ioctl.h>
23948 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23949 $EGREP "ioctl" >/dev
/null
2>&1; then :
23956 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
23957 /* end confdefs.h. */
23958 #include <stropts.h>
23961 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23962 $EGREP "ioctl" >/dev
/null
2>&1; then :
23970 if test $is_unistd = yes; then
23973 $as_echo "#define HAVE_IOCTL_IN_UNISTD_H 1" >>confdefs.h
23977 if test $is_sys_ioctl = yes; then
23980 $as_echo "#define HAVE_IOCTL_IN_SYS_IOCTL_H 1" >>confdefs.h
23982 elif test $is_stropts = yes; then
23984 $as_echo "#define HAVE_IOCTL_IN_STROPTS_H 1" >>confdefs.h
23991 if test $result = no
; then
23992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23993 $as_echo "no" >&6; }
23994 as_fn_error $?
"*** Cannot locate ioctl() definition" "$LINENO" 5
23996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23997 $as_echo "yes" >&6; }
24003 ac_fn_c_check_header_mongrel
"$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
24004 if test "x$ac_cv_header_zlib_h" = x
""yes; then :
24007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24010 *** zlib.h missing, zlib-devel package required
24011 See \`config.log' for more details" "$LINENO" 5 ; }
24016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
24017 $as_echo_n "checking for compress2 in -lz... " >&6; }
24018 if test "${ac_cv_lib_z_compress2+set}" = set; then :
24019 $as_echo_n "(cached) " >&6
24021 ac_check_lib_save_LIBS
=$LIBS
24023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24024 /* end confdefs.h. */
24026 /* Override any GCC internal prototype to avoid an error.
24027 Use char because int might match the return type of a GCC
24028 builtin and then its argument prototype would still apply. */
24036 return compress2 ();
24041 if ac_fn_c_try_link
"$LINENO"; then :
24042 ac_cv_lib_z_compress2
=yes
24044 ac_cv_lib_z_compress2
=no
24046 rm -f core conftest.err conftest.
$ac_objext \
24047 conftest
$ac_exeext conftest.
$ac_ext
24048 LIBS
=$ac_check_lib_save_LIBS
24050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
24051 $as_echo "$ac_cv_lib_z_compress2" >&6; }
24052 if test "x$ac_cv_lib_z_compress2" = x
""yes; then :
24053 cat >>confdefs.h
<<_ACEOF
24054 #define HAVE_LIBZ 1
24060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24063 *** compress2() missing, zlib-devel package required
24064 See \`config.log' for more details" "$LINENO" 5 ; }
24068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
24069 $as_echo_n "checking for uncompress in -lz... " >&6; }
24070 if test "${ac_cv_lib_z_uncompress+set}" = set; then :
24071 $as_echo_n "(cached) " >&6
24073 ac_check_lib_save_LIBS
=$LIBS
24075 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24076 /* end confdefs.h. */
24078 /* Override any GCC internal prototype to avoid an error.
24079 Use char because int might match the return type of a GCC
24080 builtin and then its argument prototype would still apply. */
24084 char uncompress ();
24088 return uncompress ();
24093 if ac_fn_c_try_link
"$LINENO"; then :
24094 ac_cv_lib_z_uncompress
=yes
24096 ac_cv_lib_z_uncompress
=no
24098 rm -f core conftest.err conftest.
$ac_objext \
24099 conftest
$ac_exeext conftest.
$ac_ext
24100 LIBS
=$ac_check_lib_save_LIBS
24102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
24103 $as_echo "$ac_cv_lib_z_uncompress" >&6; }
24104 if test "x$ac_cv_lib_z_uncompress" = x
""yes; then :
24105 cat >>confdefs.h
<<_ACEOF
24106 #define HAVE_LIBZ 1
24112 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24113 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24115 *** uncompress() missing, zlib-devel package required
24116 See \`config.log' for more details" "$LINENO" 5 ; }
24120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crc32 in -lz" >&5
24121 $as_echo_n "checking for crc32 in -lz... " >&6; }
24122 if test "${ac_cv_lib_z_crc32+set}" = set; then :
24123 $as_echo_n "(cached) " >&6
24125 ac_check_lib_save_LIBS
=$LIBS
24127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24128 /* end confdefs.h. */
24130 /* Override any GCC internal prototype to avoid an error.
24131 Use char because int might match the return type of a GCC
24132 builtin and then its argument prototype would still apply. */
24145 if ac_fn_c_try_link
"$LINENO"; then :
24146 ac_cv_lib_z_crc32
=yes
24148 ac_cv_lib_z_crc32
=no
24150 rm -f core conftest.err conftest.
$ac_objext \
24151 conftest
$ac_exeext conftest.
$ac_ext
24152 LIBS
=$ac_check_lib_save_LIBS
24154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_crc32" >&5
24155 $as_echo "$ac_cv_lib_z_crc32" >&6; }
24156 if test "x$ac_cv_lib_z_crc32" = x
""yes; then :
24157 cat >>confdefs.h
<<_ACEOF
24158 #define HAVE_LIBZ 1
24164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24167 *** crc32() missing, zlib-devel package required
24168 See \`config.log' for more details" "$LINENO" 5 ; }
24175 $as_echo "#define HAVE_ZLIB 1" >>confdefs.h
24181 ac_fn_c_check_header_mongrel
"$LINENO" "uuid/uuid.h" "ac_cv_header_uuid_uuid_h" "$ac_includes_default"
24182 if test "x$ac_cv_header_uuid_uuid_h" = x
""yes; then :
24185 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24186 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24188 *** uuid/uuid.h missing, libuuid-devel package required
24189 See \`config.log' for more details" "$LINENO" 5 ; }
24194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
24195 $as_echo_n "checking for uuid_generate in -luuid... " >&6; }
24196 if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then :
24197 $as_echo_n "(cached) " >&6
24199 ac_check_lib_save_LIBS
=$LIBS
24200 LIBS
="-luuid $LIBS"
24201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24202 /* end confdefs.h. */
24204 /* Override any GCC internal prototype to avoid an error.
24205 Use char because int might match the return type of a GCC
24206 builtin and then its argument prototype would still apply. */
24210 char uuid_generate ();
24214 return uuid_generate ();
24219 if ac_fn_c_try_link
"$LINENO"; then :
24220 ac_cv_lib_uuid_uuid_generate
=yes
24222 ac_cv_lib_uuid_uuid_generate
=no
24224 rm -f core conftest.err conftest.
$ac_objext \
24225 conftest
$ac_exeext conftest.
$ac_ext
24226 LIBS
=$ac_check_lib_save_LIBS
24228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
24229 $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
24230 if test "x$ac_cv_lib_uuid_uuid_generate" = x
""yes; then :
24231 cat >>confdefs.h
<<_ACEOF
24232 #define HAVE_LIBUUID 1
24235 LIBS
="-luuid $LIBS"
24238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24241 *** uuid_generate() missing, libuuid-devel package required
24242 See \`config.log' for more details" "$LINENO" 5 ; }
24246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_is_null in -luuid" >&5
24247 $as_echo_n "checking for uuid_is_null in -luuid... " >&6; }
24248 if test "${ac_cv_lib_uuid_uuid_is_null+set}" = set; then :
24249 $as_echo_n "(cached) " >&6
24251 ac_check_lib_save_LIBS
=$LIBS
24252 LIBS
="-luuid $LIBS"
24253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24254 /* end confdefs.h. */
24256 /* Override any GCC internal prototype to avoid an error.
24257 Use char because int might match the return type of a GCC
24258 builtin and then its argument prototype would still apply. */
24262 char uuid_is_null ();
24266 return uuid_is_null ();
24271 if ac_fn_c_try_link
"$LINENO"; then :
24272 ac_cv_lib_uuid_uuid_is_null
=yes
24274 ac_cv_lib_uuid_uuid_is_null
=no
24276 rm -f core conftest.err conftest.
$ac_objext \
24277 conftest
$ac_exeext conftest.
$ac_ext
24278 LIBS
=$ac_check_lib_save_LIBS
24280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_is_null" >&5
24281 $as_echo "$ac_cv_lib_uuid_uuid_is_null" >&6; }
24282 if test "x$ac_cv_lib_uuid_uuid_is_null" = x
""yes; then :
24283 cat >>confdefs.h
<<_ACEOF
24284 #define HAVE_LIBUUID 1
24287 LIBS
="-luuid $LIBS"
24290 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24293 *** uuid_is_null() missing, libuuid-devel package required
24294 See \`config.log' for more details" "$LINENO" 5 ; }
24301 $as_echo "#define HAVE_LIBUUID 1" >>confdefs.h
24306 # Check whether --with-blkid was given.
24307 if test "${with_blkid+set}" = set; then :
24308 withval
=$with_blkid;
24315 if test "x$with_blkid" != xno
; then :
24317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
24318 $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
24319 if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then :
24320 $as_echo_n "(cached) " >&6
24322 ac_check_lib_save_LIBS
=$LIBS
24323 LIBS
="-lblkid $LIBS"
24324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24325 /* end confdefs.h. */
24327 /* Override any GCC internal prototype to avoid an error.
24328 Use char because int might match the return type of a GCC
24329 builtin and then its argument prototype would still apply. */
24333 char blkid_get_cache ();
24337 return blkid_get_cache ();
24342 if ac_fn_c_try_link
"$LINENO"; then :
24343 ac_cv_lib_blkid_blkid_get_cache
=yes
24345 ac_cv_lib_blkid_blkid_get_cache
=no
24347 rm -f core conftest.err conftest.
$ac_objext \
24348 conftest
$ac_exeext conftest.
$ac_ext
24349 LIBS
=$ac_check_lib_save_LIBS
24351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
24352 $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
24353 if test "x$ac_cv_lib_blkid_blkid_get_cache" = x
""yes; then :
24355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid zfs support" >&5
24356 $as_echo_n "checking for blkid zfs support... " >&6; }
24359 dd if=/dev
/zero of
=$ZFS_DEV bs
=1024k count
=8 \
24360 >/dev
/null
2>/dev
/null
24361 echo -en "\x0c\xb1\xba\0\0\0\0\0" | \
24362 dd of
=$ZFS_DEV bs
=1k count
=8 \
24363 seek
=132 conv
=notrunc
&>/dev
/null \
24364 >/dev
/null
2>/dev
/null
24366 saved_LDFLAGS
="$LDFLAGS"
24369 if test "$cross_compiling" = yes; then :
24370 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24372 as_fn_error $?
"cannot run test program while cross compiling
24373 See \`config.log' for more details" "$LINENO" 5 ; }
24375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24376 /* end confdefs.h. */
24379 #include <blkid/blkid.h>
24388 if (blkid_get_cache(&cache, NULL) < 0)
24391 value = blkid_get_tag_value(cache, "TYPE",
24394 blkid_put_cache(cache);
24398 if (strcmp(value, "zfs")) {
24400 blkid_put_cache(cache);
24405 blkid_put_cache(cache);
24411 if ac_fn_c_try_run
"$LINENO"; then :
24414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24415 $as_echo "yes" >&6; }
24419 $as_echo "#define HAVE_LIBBLKID 1" >>confdefs.h
24425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24426 $as_echo "no" >&6; }
24427 if test "x$with_blkid" != xcheck
; then :
24428 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24429 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24430 as_fn_error $?
"--with-blkid given but unavailable
24431 See \`config.log' for more details" "$LINENO" 5 ; }
24435 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24436 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24440 LDFLAGS
="$saved_LDFLAGS"
24444 if test "x$with_blkid" != xcheck
; then :
24445 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24447 as_fn_error $?
"--with-blkid given but unavailable
24448 See \`config.log' for more details" "$LINENO" 5 ; }
24459 # Check whether --with-selinux was given.
24460 if test "${with_selinux+set}" = set; then :
24461 withval
=$with_selinux;
24468 if test "x$with_selinux" != xno
; then :
24470 ac_fn_c_check_header_mongrel
"$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
24471 if test "x$ac_cv_header_selinux_selinux_h" = x
""yes; then :
24473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
24474 $as_echo_n "checking for is_selinux_enabled in -lselinux... " >&6; }
24475 if test "${ac_cv_lib_selinux_is_selinux_enabled+set}" = set; then :
24476 $as_echo_n "(cached) " >&6
24478 ac_check_lib_save_LIBS
=$LIBS
24479 LIBS
="-lselinux $LIBS"
24480 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24481 /* end confdefs.h. */
24483 /* Override any GCC internal prototype to avoid an error.
24484 Use char because int might match the return type of a GCC
24485 builtin and then its argument prototype would still apply. */
24489 char is_selinux_enabled ();
24493 return is_selinux_enabled ();
24498 if ac_fn_c_try_link
"$LINENO"; then :
24499 ac_cv_lib_selinux_is_selinux_enabled
=yes
24501 ac_cv_lib_selinux_is_selinux_enabled
=no
24503 rm -f core conftest.err conftest.
$ac_objext \
24504 conftest
$ac_exeext conftest.
$ac_ext
24505 LIBS
=$ac_check_lib_save_LIBS
24507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
24508 $as_echo "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
24509 if test "x$ac_cv_lib_selinux_is_selinux_enabled" = x
""yes; then :
24511 LIBSELINUX
="-lselinux"
24514 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
24519 if test "x$with_selinux" != xcheck
; then :
24520 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24521 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24522 as_fn_error $?
"--with-selinux given but unavailable
24523 See \`config.log' for more details" "$LINENO" 5 ; }
24532 if test "x$with_selinux" != xcheck
; then :
24533 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24534 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24535 as_fn_error $?
"--with-selinux given but unavailable
24536 See \`config.log' for more details" "$LINENO" 5 ; }
24546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for selinux support" >&5
24547 $as_echo_n "checking for selinux support... " >&6; }
24548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24549 $as_echo "no" >&6; }
24554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wframe-larger-than=<size> support" >&5
24555 $as_echo_n "checking for -Wframe-larger-than=<size> support... " >&6; }
24557 saved_flags
="$CFLAGS"
24558 CFLAGS
="$CFLAGS -Wframe-larger-than=1024"
24560 if test "$cross_compiling" = yes; then :
24561 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24562 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24563 as_fn_error $?
"cannot run test program while cross compiling
24564 See \`config.log' for more details" "$LINENO" 5 ; }
24566 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
24567 /* end confdefs.h. */
24577 if ac_fn_c_try_run
"$LINENO"; then :
24579 FRAME_LARGER_THAN
=-Wframe-larger-than=1024
24580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24581 $as_echo "yes" >&6; }
24586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24587 $as_echo "no" >&6; }
24590 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
24591 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
24595 CFLAGS
="$saved_flags"
24601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Error!" >&5
24602 $as_echo "Error!" >&6; }
24603 as_fn_error $?
"Bad value \"$ZFS_CONFIG\" for --with-config,
24604 user kernel|user|all|srpm" "$LINENO" 5 ;;
24607 if test "$ZFS_CONFIG" = user
-o "$ZFS_CONFIG" = all
; then
24609 CONFIG_USER_FALSE
='#'
24611 CONFIG_USER_TRUE
='#'
24615 if test "$ZFS_CONFIG" = kernel
-o "$ZFS_CONFIG" = all
&&
24616 test "x$enable_linux_builtin" != xyes
; then
24617 CONFIG_KERNEL_TRUE
=
24618 CONFIG_KERNEL_FALSE
='#'
24620 CONFIG_KERNEL_TRUE
='#'
24621 CONFIG_KERNEL_FALSE
=
24626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether debugging is enabled" >&5
24627 $as_echo_n "checking whether debugging is enabled... " >&6; }
24628 # Check whether --enable-debug was given.
24629 if test "${enable_debug+set}" = set; then :
24630 enableval
=$enable_debug;
24636 if test "x$enable_debug" = xyes
; then :
24638 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG -Werror"
24639 HOSTCFLAGS
="${HOSTCFLAGS} -DDEBUG -Werror"
24640 DEBUG_CFLAGS
="-DDEBUG -Werror"
24641 DEBUG_STACKFLAGS
="-fstack-check"
24642 DEBUG_ZFS
="_with_debug"
24644 $as_echo "#define ZFS_DEBUG 1" >>confdefs.h
24649 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DNDEBUG "
24650 HOSTCFLAGS
="${HOSTCFLAGS} -DNDEBUG "
24651 DEBUG_CFLAGS
="-DNDEBUG"
24652 DEBUG_STACKFLAGS
=""
24653 DEBUG_ZFS
="_without_debug"
24660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug" >&5
24661 $as_echo "$enable_debug" >&6; }
24664 # Check whether --enable-debug-dmu-tx was given.
24665 if test "${enable_debug_dmu_tx+set}" = set; then :
24666 enableval
=$enable_debug_dmu_tx;
24668 enable_debug_dmu_tx
=no
24672 if test "x$enable_debug_dmu_tx" = xyes
; then :
24674 KERNELCPPFLAGS
="${KERNELCPPFLAGS} -DDEBUG_DMU_TX"
24675 DEBUG_DMU_TX
="_with_debug_dmu_tx"
24677 $as_echo "#define DEBUG_DMU_TX 1" >>confdefs.h
24682 DEBUG_DMU_TX
="_without_debug_dmu_tx"
24687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether dmu tx validation is enabled" >&5
24688 $as_echo_n "checking whether dmu tx validation is enabled... " >&6; }
24689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_debug_dmu_tx" >&5
24690 $as_echo "$enable_debug_dmu_tx" >&6; }
24693 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 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/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 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/fedora/Makefile rpm/fedora/zfs.spec rpm/fedora/zfs-kmod.spec rpm/fedora/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"
24696 cat >confcache
<<\_ACEOF
24697 # This file is a shell script that caches the results of configure
24698 # tests run on this system so they can be shared between configure
24699 # scripts and configure runs, see configure's option --config-cache.
24700 # It is not useful on other systems. If it contains results you don't
24701 # want to keep, you may remove or edit it.
24703 # config.status only pays attention to the cache file if you give it
24704 # the --recheck option to rerun configure.
24706 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24707 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24708 # following values.
24712 # The following way of writing the cache mishandles newlines in values,
24713 # but we know of no workaround that is simple, portable, and efficient.
24714 # So, we kill variables containing newlines.
24715 # Ultrix sh set writes to stderr and can't be redirected directly,
24716 # and sets the high bit in the cache file unless we assign to the vars.
24718 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24719 eval ac_val
=\$
$ac_var
24723 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24724 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24727 _ | IFS | as_nl
) ;; #(
24728 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
24729 *) { eval $ac_var=; unset $ac_var;} ;;
24735 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24736 *${as_nl}ac_space
=\
*)
24737 # `set' does not quote correctly, so add quotes: double-quote
24738 # substitution turns \\\\ into \\, and sed turns \\ into \.
24741 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24744 # `set' quotes correctly as required by POSIX, so do not add quotes.
24745 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24754 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24756 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24758 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
24759 if test -w "$cache_file"; then
24760 test "x$cache_file" != "x/dev/null" &&
24761 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24762 $as_echo "$as_me: updating cache $cache_file" >&6;}
24763 cat confcache
>$cache_file
24765 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24766 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24771 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
24772 # Let make expand exec_prefix.
24773 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
24775 DEFS
=-DHAVE_CONFIG_H
24780 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
24781 # 1. Remove the extension, and $U if already installed.
24782 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
24783 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
24784 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24785 # will be set to the directory where LIBOBJS objects are built.
24786 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24787 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
24789 LIBOBJS
=$ac_libobjs
24791 LTLIBOBJS
=$ac_ltlibobjs
24794 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24795 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
24796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24798 if test -n "$EXEEXT"; then
24800 am__EXEEXT_FALSE
='#'
24802 am__EXEEXT_TRUE
='#'
24806 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24807 as_fn_error $?
"conditional \"AMDEP\" was never defined.
24808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24810 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24811 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
24812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24814 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
24815 as_fn_error $?
"conditional \"am__fastdepCCAS\" was never defined.
24816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24818 if test -z "${CONFIG_USER_TRUE}" && test -z "${CONFIG_USER_FALSE}"; then
24819 as_fn_error $?
"conditional \"CONFIG_USER\" was never defined.
24820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24822 if test -z "${CONFIG_KERNEL_TRUE}" && test -z "${CONFIG_KERNEL_FALSE}"; then
24823 as_fn_error $?
"conditional \"CONFIG_KERNEL\" was never defined.
24824 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24827 : ${CONFIG_STATUS=./config.status}
24829 ac_clean_files_save
=$ac_clean_files
24830 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
24831 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24832 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24834 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24836 # Generated by $as_me.
24837 # Run this file to recreate the current configuration.
24838 # Compiler output produced by configure, useful for debugging
24839 # configure, is in config.log if it exists.
24842 ac_cs_recheck=false
24845 SHELL=\${CONFIG_SHELL-$SHELL}
24848 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
24849 ## -------------------- ##
24850 ## M4sh Initialization. ##
24851 ## -------------------- ##
24853 # Be more Bourne compatible
24854 DUALCASE
=1; export DUALCASE
# for MKS sh
24855 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
24858 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24859 # is contrary to our usage. Disable this feature.
24860 alias -g '${1+"$@"}'='"$@"'
24861 setopt NO_GLOB_SUBST
24863 case `(set -o) 2>/dev/null` in #(
24875 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24876 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24877 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24878 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24879 # Prefer a ksh shell builtin over an external printf program on Solaris,
24880 # but without wasting forks for bash or zsh.
24881 if test -z "$BASH_VERSION$ZSH_VERSION" \
24882 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24883 as_echo='print
-r --'
24884 as_echo_n='print
-rn --'
24885 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24886 as_echo='printf %s
\n'
24887 as_echo_n='printf %s
'
24889 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24890 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
24891 as_echo_n='/usr
/ucb
/echo -n'
24893 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24894 as_echo_n_body='eval
24898 expr "X$arg" : "X\\(.*\\)$as_nl";
24899 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24901 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
24903 export as_echo_n_body
24904 as_echo_n='sh
-c $as_echo_n_body as_echo
'
24906 export as_echo_body
24907 as_echo='sh
-c $as_echo_body as_echo
'
24910 # The user is always right.
24911 if test "${PATH_SEPARATOR+set}" != set; then
24913 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24914 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24921 # We need space, tab and new line, in precisely that order. Quoting is
24922 # there to prevent editors from complaining about space-tab.
24923 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24924 # splitting by setting IFS to empty value.)
24927 # Find who we are. Look in the path if we contain no directory separator.
24929 *[\\/]* ) as_myself=$0 ;;
24930 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24931 for as_dir in $PATH
24934 test -z "$as_dir" && as_dir=.
24935 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24941 # We did not find ourselves, most probably we were run as `sh COMMAND'
24942 # in which case we are not to be found in the path.
24943 if test "x$as_myself" = x
; then
24946 if test ! -f "$as_myself"; then
24947 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24951 # Unset variables that we do not need and which cause bugs (e.g. in
24952 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24953 # suppresses any "Segmentation fault" message there. '((' could
24954 # trigger a bug in pdksh 5.2.14.
24955 for as_var
in BASH_ENV ENV MAIL MAILPATH
24956 do eval test x\
${$as_var+set} = xset \
24957 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
24970 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
24973 # as_fn_error STATUS ERROR [LINENO LOG_FD]
24974 # ----------------------------------------
24975 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24976 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24977 # script with STATUS, using 1 if that was 0.
24980 as_status
=$1; test $as_status -eq 0 && as_status
=1
24982 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
24983 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
24985 $as_echo "$as_me: error: $2" >&2
24986 as_fn_exit
$as_status
24990 # as_fn_set_status STATUS
24991 # -----------------------
24992 # Set $? to STATUS, without forking.
24993 as_fn_set_status
()
24996 } # as_fn_set_status
24998 # as_fn_exit STATUS
24999 # -----------------
25000 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25004 as_fn_set_status
$1
25010 # Portably unset VAR.
25013 { eval $1=; unset $1;}
25015 as_unset
=as_fn_unset
25016 # as_fn_append VAR VALUE
25017 # ----------------------
25018 # Append the text in VALUE to the end of the definition contained in VAR. Take
25019 # advantage of any shell optimizations that allow amortized linear growth over
25020 # repeated appends, instead of the typical quadratic growth present in naive
25022 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
25023 eval 'as_fn_append ()
25034 # as_fn_arith ARG...
25035 # ------------------
25036 # Perform arithmetic evaluation on the ARGs, and store the result in the
25037 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25038 # must be portable across $(()) and expr.
25039 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
25040 eval 'as_fn_arith ()
25047 as_val
=`expr "$@" || test $? -eq 1`
25052 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25053 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25059 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25060 as_basename
=basename
25065 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
25071 as_me
=`$as_basename -- "$0" ||
25072 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25073 X"$0" : 'X\(//\)$' \| \
25074 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25076 sed '/^.*\/\([^/][^/]*\)\/*$/{
25090 # Avoid depending upon Character Ranges.
25091 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
25092 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25093 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
25094 as_cr_digits
='0123456789'
25095 as_cr_alnum
=$as_cr_Letters$as_cr_digits
25097 ECHO_C
= ECHO_N
= ECHO_T
=
25098 case `echo -n x` in #(((((
25100 case `echo 'xy\c'` in
25101 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
25103 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
25110 rm -f conf$$ conf$$.exe conf$$.
file
25111 if test -d conf$$.dir
; then
25112 rm -f conf$$.dir
/conf$$.
file
25115 mkdir conf$$.dir
2>/dev
/null
25117 if (echo >conf$$.
file) 2>/dev
/null
; then
25118 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
25120 # ... but there are two gotchas:
25121 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25122 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25123 # In both cases, we have to default to `cp -p'.
25124 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
25126 elif ln conf$$.
file conf$$
2>/dev
/null
; then
25134 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
25135 rmdir conf$$.dir
2>/dev
/null
25140 # Create "$as_dir" as a directory, including parents if necessary.
25145 -*) as_dir
=.
/$as_dir;;
25147 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
25151 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25152 *) as_qdir
=$as_dir;;
25154 as_dirs
="'$as_qdir' $as_dirs"
25155 as_dir
=`$as_dirname -- "$as_dir" ||
25156 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25157 X"$as_dir" : 'X\(//\)[^/]' \| \
25158 X"$as_dir" : 'X\(//\)$' \| \
25159 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25160 $as_echo X"$as_dir" |
25161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25165 /^X\(\/\/\)[^/].*/{
25178 test -d "$as_dir" && break
25180 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25181 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
25185 if mkdir
-p .
2>/dev
/null
; then
25186 as_mkdir_p
='mkdir -p "$as_dir"'
25188 test -d .
/-p && rmdir .
/-p
25192 if test -x / >/dev
/null
2>&1; then
25193 as_test_x
='test -x'
25195 if ls -dL / >/dev
/null
2>&1; then
25202 if test -d "$1"; then
25208 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25209 ???[sx]*):;;*)false;;esac;fi
25213 as_executable_p
=$as_test_x
25215 # Sed expression to map a string onto a valid CPP name.
25216 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25218 # Sed expression to map a string onto a valid variable name.
25219 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25223 ## ----------------------------------- ##
25224 ## Main body of $CONFIG_STATUS script. ##
25225 ## ----------------------------------- ##
25227 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
25229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25230 # Save the log message, to keep $0 and so on meaningful, and to
25231 # report actual input values of CONFIG_FILES etc. instead of their
25232 # values after options handling.
25234 This file was extended by $as_me, which was
25235 generated by GNU Autoconf 2.67. Invocation command line was
25237 CONFIG_FILES = $CONFIG_FILES
25238 CONFIG_HEADERS = $CONFIG_HEADERS
25239 CONFIG_LINKS = $CONFIG_LINKS
25240 CONFIG_COMMANDS = $CONFIG_COMMANDS
25243 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25248 case $ac_config_files in *"
25249 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
25252 case $ac_config_headers in *"
25253 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
25257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25258 # Files that config.status was made for.
25259 config_files="$ac_config_files"
25260 config_headers="$ac_config_headers"
25261 config_commands="$ac_config_commands"
25265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25267 \`$as_me' instantiates files and other configuration actions
25268 from templates according to the current configuration. Unless the files
25269 and actions are specified as TAGs, all are instantiated by default.
25271 Usage: $0 [OPTION]... [TAG]...
25273 -h, --help print this help, then exit
25274 -V, --version print version number and configuration settings, then exit
25275 --config print configuration, then exit
25276 -q, --quiet, --silent
25277 do not print progress messages
25278 -d, --debug don't remove temporary files
25279 --recheck update $as_me by reconfiguring in the same conditions
25280 --file=FILE[:TEMPLATE]
25281 instantiate the configuration file FILE
25282 --header=FILE[:TEMPLATE]
25283 instantiate the configuration header FILE
25285 Configuration files:
25288 Configuration headers:
25291 Configuration commands:
25294 Report bugs to the package provider."
25297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25298 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25301 configured by $0, generated by GNU Autoconf 2.67,
25302 with options \\"\$ac_cs_config\\"
25304 Copyright (C) 2010 Free Software Foundation, Inc.
25305 This config.status script is free software; the Free Software Foundation
25306 gives unlimited permission to copy, distribute and modify it."
25313 test -n "\$AWK" || AWK=awk
25316 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25317 # The default lists apply if the user does not specify any file.
25323 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
25324 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
25328 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
25340 # Handling of the options.
25341 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
25343 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
25344 $as_echo "$ac_cs_version"; exit ;;
25345 --config |
--confi |
--conf |
--con |
--co |
--c )
25346 $as_echo "$ac_cs_config"; exit ;;
25347 --debug |
--debu |
--deb |
--de |
--d |
-d )
25349 --file |
--fil |
--fi |
--f )
25352 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25353 '') as_fn_error $?
"missing file argument" ;;
25355 as_fn_append CONFIG_FILES
" '$ac_optarg'"
25356 ac_need_defaults
=false
;;
25357 --header |
--heade |
--head |
--hea )
25360 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25362 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
25363 ac_need_defaults
=false
;;
25365 # Conflict between --help and --header
25366 as_fn_error $?
"ambiguous option: \`$1'
25367 Try \`$0 --help' for more information.";;
25368 --help |
--hel |
-h )
25369 $as_echo "$ac_cs_usage"; exit ;;
25370 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
25371 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
25374 # This is an error.
25375 -*) as_fn_error $?
"unrecognized option: \`$1'
25376 Try \`$0 --help' for more information." ;;
25378 *) as_fn_append ac_config_targets
" $1"
25379 ac_need_defaults
=false
;;
25385 ac_configure_extra_args
=
25387 if $ac_cs_silent; then
25389 ac_configure_extra_args
="$ac_configure_extra_args --silent"
25393 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25394 if \$ac_cs_recheck; then
25395 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25397 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25398 CONFIG_SHELL='$SHELL'
25399 export CONFIG_SHELL
25404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25408 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25409 ## Running $as_me. ##
25415 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25419 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25422 # The HP-UX ksh and POSIX shell print the target directory to stdout
25423 # if CDPATH is set.
25424 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25426 sed_quote_subst='$sed_quote_subst'
25427 double_quote_subst='$double_quote_subst'
25428 delay_variable_subst='$delay_variable_subst'
25429 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
25430 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
25431 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
25432 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
25433 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
25434 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
25435 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
25436 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
25437 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
25438 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
25439 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
25440 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
25441 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
25442 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
25443 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
25444 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
25445 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
25446 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
25447 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
25448 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
25449 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
25450 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
25451 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
25452 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
25453 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
25454 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
25455 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
25456 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25457 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
25458 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
25459 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
25460 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
25461 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
25462 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
25463 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
25464 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25465 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25466 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25467 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
25468 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
25469 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
25470 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
25471 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
25472 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
25473 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
25474 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
25475 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
25476 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
25477 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
25478 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
25479 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
25480 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
25481 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
25482 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
25483 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
25484 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
25485 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
25486 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
25487 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
25488 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
25489 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
25490 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
25491 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25492 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25493 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
25494 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
25495 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25496 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25497 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
25498 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25499 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25500 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25501 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25502 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25503 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25504 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
25505 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
25506 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
25507 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
25508 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
25509 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
25510 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
25511 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
25512 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
25513 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
25514 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
25515 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
25516 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
25517 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
25518 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
25519 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25520 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
25521 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
25522 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25523 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
25524 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
25525 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
25526 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
25527 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
25528 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
25529 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
25530 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
25531 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
25532 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
25533 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
25534 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25535 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25536 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
25537 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
25538 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
25539 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
25540 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
25541 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
25542 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
25543 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
25544 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
25545 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
25546 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
25549 LTCFLAGS='$LTCFLAGS'
25550 compiler='$compiler_DEFAULT'
25552 # Quote evaled strings.
25564 deplibs_check_method \
25573 lt_cv_sys_global_symbol_pipe \
25574 lt_cv_sys_global_symbol_to_cdecl \
25575 lt_cv_sys_global_symbol_to_c_name_address \
25576 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25579 lt_prog_compiler_no_builtin_flag \
25580 lt_prog_compiler_wl \
25581 lt_prog_compiler_pic \
25582 lt_prog_compiler_static \
25583 lt_cv_prog_compiler_c_o \
25591 export_dynamic_flag_spec \
25592 whole_archive_flag_spec \
25593 compiler_needs_object \
25595 allow_undefined_flag \
25596 no_undefined_flag \
25597 hardcode_libdir_flag_spec \
25598 hardcode_libdir_flag_spec_ld \
25599 hardcode_libdir_separator \
25604 variables_saved_for_relink \
25606 library_names_spec \
25611 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
25612 *[\\\\\\\`\\"\\\$]*)
25613 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
25616 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25621 # Double-quote double-evaled strings.
25622 for var in reload_cmds \
25623 old_postinstall_cmds \
25624 old_postuninstall_cmds \
25626 extract_expsyms_cmds \
25627 old_archive_from_new_cmds \
25628 old_archive_from_expsyms_cmds \
25630 archive_expsym_cmds \
25632 module_expsym_cmds \
25633 export_symbols_cmds \
25636 postuninstall_cmds \
25638 sys_lib_search_path_spec \
25639 sys_lib_dlsearch_path_spec; do
25640 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
25641 *[\\\\\\\`\\"\\\$]*)
25642 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
25645 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25650 # Fix-up fallback echo if it was mangled by the above quoting rules.
25652 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
25656 ac_aux_dir='$ac_aux_dir'
25657 xsi_shell='$xsi_shell'
25658 lt_shell_append='$lt_shell_append'
25660 # See if we are running on zsh, and set the options which allow our
25661 # commands through without removal of \ escapes INIT.
25662 if test -n "\${ZSH_VERSION+set}" ; then
25663 setopt NO_GLOB_SUBST
25669 TIMESTAMP='$TIMESTAMP'
25678 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
25680 # Handling of arguments.
25681 for ac_config_target
in $ac_config_targets
25683 case $ac_config_target in
25684 "zfs_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS zfs_config.h" ;;
25685 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
25686 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
25687 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
25688 "dracut/Makefile") CONFIG_FILES
="$CONFIG_FILES dracut/Makefile" ;;
25689 "dracut/90zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES dracut/90zfs/Makefile" ;;
25690 "udev/Makefile") CONFIG_FILES
="$CONFIG_FILES udev/Makefile" ;;
25691 "udev/rules.d/Makefile") CONFIG_FILES
="$CONFIG_FILES udev/rules.d/Makefile" ;;
25692 "etc/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/Makefile" ;;
25693 "etc/init.d/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/init.d/Makefile" ;;
25694 "etc/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES etc/zfs/Makefile" ;;
25695 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
25696 "man/man1/Makefile") CONFIG_FILES
="$CONFIG_FILES man/man1/Makefile" ;;
25697 "man/man5/Makefile") CONFIG_FILES
="$CONFIG_FILES man/man5/Makefile" ;;
25698 "man/man8/Makefile") CONFIG_FILES
="$CONFIG_FILES man/man8/Makefile" ;;
25699 "lib/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/Makefile" ;;
25700 "lib/libspl/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/Makefile" ;;
25701 "lib/libspl/asm-generic/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-generic/Makefile" ;;
25702 "lib/libspl/asm-i386/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-i386/Makefile" ;;
25703 "lib/libspl/asm-x86_64/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/asm-x86_64/Makefile" ;;
25704 "lib/libspl/include/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/Makefile" ;;
25705 "lib/libspl/include/ia32/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/ia32/Makefile" ;;
25706 "lib/libspl/include/ia32/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/ia32/sys/Makefile" ;;
25707 "lib/libspl/include/rpc/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/rpc/Makefile" ;;
25708 "lib/libspl/include/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/Makefile" ;;
25709 "lib/libspl/include/sys/sysevent/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/sysevent/Makefile" ;;
25710 "lib/libspl/include/sys/dktp/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/sys/dktp/Makefile" ;;
25711 "lib/libspl/include/util/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libspl/include/util/Makefile" ;;
25712 "lib/libavl/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libavl/Makefile" ;;
25713 "lib/libefi/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libefi/Makefile" ;;
25714 "lib/libnvpair/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libnvpair/Makefile" ;;
25715 "lib/libunicode/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libunicode/Makefile" ;;
25716 "lib/libuutil/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libuutil/Makefile" ;;
25717 "lib/libzpool/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libzpool/Makefile" ;;
25718 "lib/libzfs/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libzfs/Makefile" ;;
25719 "lib/libshare/Makefile") CONFIG_FILES
="$CONFIG_FILES lib/libshare/Makefile" ;;
25720 "cmd/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/Makefile" ;;
25721 "cmd/zdb/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zdb/Makefile" ;;
25722 "cmd/zhack/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zhack/Makefile" ;;
25723 "cmd/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zfs/Makefile" ;;
25724 "cmd/zinject/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zinject/Makefile" ;;
25725 "cmd/zpool/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpool/Makefile" ;;
25726 "cmd/zstreamdump/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zstreamdump/Makefile" ;;
25727 "cmd/ztest/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/ztest/Makefile" ;;
25728 "cmd/zpios/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zpios/Makefile" ;;
25729 "cmd/mount_zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/mount_zfs/Makefile" ;;
25730 "cmd/fsck_zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/fsck_zfs/Makefile" ;;
25731 "cmd/zvol_id/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/zvol_id/Makefile" ;;
25732 "cmd/vdev_id/Makefile") CONFIG_FILES
="$CONFIG_FILES cmd/vdev_id/Makefile" ;;
25733 "module/Makefile") CONFIG_FILES
="$CONFIG_FILES module/Makefile" ;;
25734 "module/avl/Makefile") CONFIG_FILES
="$CONFIG_FILES module/avl/Makefile" ;;
25735 "module/nvpair/Makefile") CONFIG_FILES
="$CONFIG_FILES module/nvpair/Makefile" ;;
25736 "module/unicode/Makefile") CONFIG_FILES
="$CONFIG_FILES module/unicode/Makefile" ;;
25737 "module/zcommon/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zcommon/Makefile" ;;
25738 "module/zfs/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zfs/Makefile" ;;
25739 "module/zpios/Makefile") CONFIG_FILES
="$CONFIG_FILES module/zpios/Makefile" ;;
25740 "include/Makefile") CONFIG_FILES
="$CONFIG_FILES include/Makefile" ;;
25741 "include/linux/Makefile") CONFIG_FILES
="$CONFIG_FILES include/linux/Makefile" ;;
25742 "include/sys/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/Makefile" ;;
25743 "include/sys/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fs/Makefile" ;;
25744 "include/sys/fm/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/Makefile" ;;
25745 "include/sys/fm/fs/Makefile") CONFIG_FILES
="$CONFIG_FILES include/sys/fm/fs/Makefile" ;;
25746 "scripts/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/Makefile" ;;
25747 "scripts/zpios-profile/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpios-profile/Makefile" ;;
25748 "scripts/zpios-test/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpios-test/Makefile" ;;
25749 "scripts/zpool-config/Makefile") CONFIG_FILES
="$CONFIG_FILES scripts/zpool-config/Makefile" ;;
25750 "scripts/common.sh") CONFIG_FILES
="$CONFIG_FILES scripts/common.sh" ;;
25751 "rpm/Makefile") CONFIG_FILES
="$CONFIG_FILES rpm/Makefile" ;;
25752 "rpm/fedora/Makefile") CONFIG_FILES
="$CONFIG_FILES rpm/fedora/Makefile" ;;
25753 "rpm/fedora/zfs.spec") CONFIG_FILES
="$CONFIG_FILES rpm/fedora/zfs.spec" ;;
25754 "rpm/fedora/zfs-kmod.spec") CONFIG_FILES
="$CONFIG_FILES rpm/fedora/zfs-kmod.spec" ;;
25755 "rpm/fedora/zfs-dkms.spec") CONFIG_FILES
="$CONFIG_FILES rpm/fedora/zfs-dkms.spec" ;;
25756 "rpm/generic/Makefile") CONFIG_FILES
="$CONFIG_FILES rpm/generic/Makefile" ;;
25757 "rpm/generic/zfs.spec") CONFIG_FILES
="$CONFIG_FILES rpm/generic/zfs.spec" ;;
25758 "rpm/generic/zfs-kmod.spec") CONFIG_FILES
="$CONFIG_FILES rpm/generic/zfs-kmod.spec" ;;
25759 "rpm/generic/zfs-dkms.spec") CONFIG_FILES
="$CONFIG_FILES rpm/generic/zfs-dkms.spec" ;;
25760 "zfs-script-config.sh") CONFIG_FILES
="$CONFIG_FILES zfs-script-config.sh" ;;
25761 "zfs.release") CONFIG_FILES
="$CONFIG_FILES zfs.release" ;;
25763 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
25768 # If the user did not use the arguments to specify the items to instantiate,
25769 # then the envvar interface is used. Set only those that are not.
25770 # We use the long form for the default assignment because of an extremely
25771 # bizarre bug on SunOS 4.1.3.
25772 if $ac_need_defaults; then
25773 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
25774 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
25775 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
25778 # Have a temporary directory for convenience. Make it in the build tree
25779 # simply because there is no reason against having it here, and in addition,
25780 # creating and moving files from /tmp can sometimes cause problems.
25781 # Hook for its removal unless debugging.
25782 # Note that there is a small window in which the directory will not be cleaned:
25783 # after its creation but before its name has been assigned to `$tmp'.
25787 trap 'exit_status=$?
25788 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25790 trap 'as_fn_exit 1' 1 2 13 15
25792 # Create a (secure) tmp directory for tmp files.
25795 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25796 test -n "$tmp" && test -d "$tmp"
25799 tmp
=.
/conf$$
-$RANDOM
25800 (umask 077 && mkdir
"$tmp")
25801 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
25803 # Set up the scripts for CONFIG_FILES section.
25804 # No need to generate them if there are no CONFIG_FILES.
25805 # This happens for instance with `./config.status config.h'.
25806 if test -n "$CONFIG_FILES"; then
25809 ac_cr
=`echo X | tr X '\015'`
25810 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25811 # But we know of no other shell where ac_cr would be empty at this
25812 # point, so we can use a bashism as a fallback.
25813 if test "x$ac_cr" = x
; then
25814 eval ac_cr
=\$
\'\\r
\'
25816 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25817 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25820 ac_cs_awk_cr
=$ac_cr
25823 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25828 echo "cat >conf$$subs.awk <<_ACEOF" &&
25829 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25831 } >conf$$subs.sh ||
25832 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
25833 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
25835 for ac_last_try in false false false false false :; do
25836 . ./conf$$subs.sh ||
25837 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
25839 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
25840 if test $ac_delim_n = $ac_delim_num; then
25842 elif $ac_last_try; then
25843 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
25845 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
25848 rm -f conf$$subs.sh
25850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25851 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
25855 s/^/S["/; s
/!.
*/"]=/
25865 s/\(.\{148\}\)..*/\1/
25867 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
25872 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
25879 s/\(.\{148\}\)..*/\1/
25881 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
25885 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
25890 ' <conf$$subs.awk | sed '
25895 ' >>$CONFIG_STATUS || ac_write_fail=1
25896 rm -f conf$$subs.awk
25897 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25899 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
25900 for (key in S) S_is_set[key] = 1
25906 nfields = split(line, field, "@
")
25908 len = length(field[1])
25909 for (i = 2; i < nfields; i++) {
25911 keylen = length(key)
25912 if (S_is_set[key]) {
25914 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25915 len += length(value) + length(field[++i])
25926 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25927 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25928 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
25931 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
25932 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
25935 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
25936 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
25937 # trailing colons and then remove the whole line if VPATH becomes empty
25938 # (actually we leave an empty line to preserve line numbers).
25939 if test "x
$srcdir" = x.; then
25940 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
25958 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25959 fi # test -n "$CONFIG_FILES"
25961 # Set up the scripts for CONFIG_HEADERS section.
25962 # No need to generate them if there are no CONFIG_HEADERS.
25963 # This happens for instance with `./config.status Makefile'.
25964 if test -n "$CONFIG_HEADERS"; then
25965 cat >"$tmp/defines.
awk" <<\_ACAWK ||
25969 # Transform confdefs.h into an awk script `defines.awk', embedded as
25970 # here-document in config.status, that substitutes the proper values into
25971 # config.h.in to produce config.h.
25973 # Create a delimiter string that does not exist in confdefs.h, to ease
25974 # handling of long lines.
25976 for ac_last_try in false false :; do
25977 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
25978 if test -z "$ac_t"; then
25980 elif $ac_last_try; then
25981 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
25983 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
25987 # For the awk script, D is an array of macro values keyed by name,
25988 # likewise P contains macro parameters if any. Preserve backslash
25989 # newline sequences.
25991 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25993 s/.\{148\}/&'"$ac_delim"'/g
25996 s/^[ ]*#[ ]*define[ ][ ]*/ /
26003 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
26005 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
26009 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
26010 D["\
1"]=" \
3\\\\\\n
"\\/p
26012 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
26017 s/.\{148\}/&'"$ac_delim"'/g
26022 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
26025 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
26027 ' <confdefs.h | sed '
26028 s/'"$ac_delim"'/"\\\
26029 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26031 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26032 for (key in D) D_is_set[key] = 1
26035 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26037 split(line, arg, " ")
26038 if (arg[1] == "#") {
26042 defundef
= substr
(arg
[1], 2)
26045 split(mac1
, mac2
, "(") #)
26047 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
26048 if (D_is_set
[macro
]) {
26049 # Preserve the white space surrounding the "#".
26050 print prefix
"define", macro P
[macro
] D
[macro
]
26053 # Replace #undef with comments. This is necessary, for example,
26054 # in the case of _POSIX_SOURCE, which is predefined and required
26055 # on some systems where configure will not decide to define it.
26056 if (defundef
== "undef") {
26057 print
"/*", prefix defundef
, macro
, "*/"
26065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26066 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
26067 fi # test -n "$CONFIG_HEADERS"
26070 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26075 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26077 case $ac_mode$ac_tag in
26079 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5 ;;
26080 :[FH
]-) ac_tag
=-:-;;
26081 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26098 -) ac_f
="$tmp/stdin";;
26099 *) # Look for the file first in the build tree, then in the source tree
26100 # (if the path is not absolute). The absolute path cannot be DOS-style,
26101 # because $ac_f cannot contain `:'.
26105 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26107 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
26109 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26110 as_fn_append ac_file_inputs
" '$ac_f'"
26113 # Let's still pretend it is `configure' which instantiates (i.e., don't
26114 # use $as_me), people would be surprised to read:
26115 # /* config.h. Generated by config.status. */
26116 configure_input
='Generated from '`
26117 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26119 if test x
"$ac_file" != x-
; then
26120 configure_input
="$ac_file. $configure_input"
26121 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26122 $as_echo "$as_me: creating $ac_file" >&6;}
26124 # Neutralize special characters interpreted by sed in replacement strings.
26125 case $configure_input in #(
26126 *\
&* |
*\|
* |
*\\* )
26127 ac_sed_conf_input
=`$as_echo "$configure_input" |
26128 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26129 *) ac_sed_conf_input
=$configure_input;;
26133 *:-:* |
*:-) cat >"$tmp/stdin" \
26134 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
26139 ac_dir
=`$as_dirname -- "$ac_file" ||
26140 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26141 X"$ac_file" : 'X\(//\)[^/]' \| \
26142 X"$ac_file" : 'X\(//\)$' \| \
26143 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26144 $as_echo X"$ac_file" |
26145 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26149 /^X\(\/\/\)[^/].*/{
26162 as_dir
="$ac_dir"; as_fn_mkdir_p
26166 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26168 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26169 # A ".." for each directory in $ac_dir_suffix.
26170 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26171 case $ac_top_builddir_sub in
26172 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26173 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26176 ac_abs_top_builddir
=$ac_pwd
26177 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26178 # for backward compatibility:
26179 ac_top_builddir
=$ac_top_build_prefix
26182 .
) # We are building in place.
26184 ac_top_srcdir
=$ac_top_builddir_sub
26185 ac_abs_top_srcdir
=$ac_pwd ;;
26186 [\\/]* | ?
:[\\/]* ) # Absolute name.
26187 ac_srcdir
=$srcdir$ac_dir_suffix;
26188 ac_top_srcdir
=$srcdir
26189 ac_abs_top_srcdir
=$srcdir ;;
26190 *) # Relative name.
26191 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26192 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26193 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26195 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26205 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
26206 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
26208 ac_MKDIR_P
=$MKDIR_P
26210 [\\/$
]* | ?
:[\\/]* ) ;;
26211 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
26215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26216 # If the template does not know about datarootdir, expand it.
26217 # FIXME: This hack should be removed a few years after 2.60.
26218 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26229 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26230 *datarootdir
*) ac_datarootdir_seen
=yes;;
26231 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26233 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26236 ac_datarootdir_hack='
26237 s&@datadir@&$datadir&g
26238 s&@docdir@&$docdir&g
26239 s&@infodir@&$infodir&g
26240 s&@localedir@&$localedir&g
26241 s&@mandir@&$mandir&g
26242 s&\\\${datarootdir}&$datarootdir&g' ;;
26246 # Neutralize VPATH when `$srcdir' = `.'.
26247 # Shell code in configure.ac might set extrasub.
26248 # FIXME: do we really want to maintain this feature?
26249 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26250 ac_sed_extra="$ac_vpsub
26253 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
26255 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26256 s|@configure_input@|
$ac_sed_conf_input|
;t t
26257 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26258 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
26259 s
&@srcdir@
&$ac_srcdir&;t t
26260 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26261 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26262 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26263 s
&@builddir@
&$ac_builddir&;t t
26264 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26265 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26266 s
&@INSTALL@
&$ac_INSTALL&;t t
26267 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
26268 $ac_datarootdir_hack
26270 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
26271 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
26273 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26274 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
26275 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
26276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
26277 which seems to be undefined. Please make sure it is defined" >&5
26278 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
26279 which seems to be undefined. Please make sure it is defined" >&2;}
26283 -) cat "$tmp/out" && rm -f "$tmp/out";;
26284 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26286 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26292 if test x"$ac_file" != x-; then
26294 $as_echo "/* $configure_input */" \
26295 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26296 } >"$tmp/config.h" \
26297 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26298 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26299 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26300 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26303 mv "$tmp/config.h" "$ac_file" \
26304 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26307 $as_echo "/* $configure_input */" \
26308 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26309 || as_fn_error $? "could not create -" "$LINENO" 5
26311 # Compute "$ac_file"'s index
in $config_headers.
26314 for _am_header
in $config_headers :; do
26315 case $_am_header in
26316 $_am_arg |
$_am_arg:* )
26319 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
26322 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26323 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26324 X"$_am_arg" : 'X\(//\)[^/]' \| \
26325 X"$_am_arg" : 'X\(//\)$' \| \
26326 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26327 $as_echo X"$_am_arg" |
26328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26332 /^X\(\/\/\)[^/].*/{
26344 s/.*/./; q'`/stamp-h
$_am_stamp_count
26347 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26348 $as_echo "$as_me: executing $ac_file commands" >&6;}
26353 case $ac_file$ac_mode in
26355 (mv zfs_config.h zfs_config.h.tmp
&&
26356 awk -f ${ac_srcdir}/config
/config.
awk zfs_config.h.tmp
>zfs_config.h
&&
26357 rm zfs_config.h.tmp
) ||
exit 1 ;;
26358 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
26359 # Autoconf 2.62 quotes --file arguments for eval, but not when files
26360 # are listed without --file. Let's play safe and only enable the eval
26361 # if we detect the quoting.
26362 case $CONFIG_FILES in
26363 *\'*) eval set x
"$CONFIG_FILES" ;;
26364 *) set x
$CONFIG_FILES ;;
26369 # Strip MF so we end up with the name of the file.
26370 mf
=`echo "$mf" | sed -e 's/:.*$//'`
26371 # Check whether this is an Automake generated Makefile or not.
26372 # We used to match only the files named `Makefile.in', but
26373 # some people rename them; so instead we look at the file content.
26374 # Grep'ing the first line is not enough: some people post-process
26375 # each Makefile.in and add a new line on top of each file to say so.
26376 # Grep'ing the whole file is not good either: AIX grep has a line
26377 # limit of 2048, but all sed's we know have understand at least 4000.
26378 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
26379 dirpart
=`$as_dirname -- "$mf" ||
26380 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26381 X"$mf" : 'X\(//\)[^/]' \| \
26382 X"$mf" : 'X\(//\)$' \| \
26383 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26389 /^X\(\/\/\)[^/].*/{
26405 # Extract the definition of DEPDIR, am__include, and am__quote
26406 # from the Makefile without running `make'.
26407 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
26408 test -z "$DEPDIR" && continue
26409 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
26410 test -z "am__include" && continue
26411 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
26412 # When using ansi2knr, U may be empty or an underscore; expand it
26413 U
=`sed -n 's/^U = //p' < "$mf"`
26414 # Find all dependency output files, they are included files with
26415 # $(DEPDIR) in their names. We invoke sed twice because it is the
26416 # simplest approach to changing $(DEPDIR) to its actual value in the
26418 for file in `sed -n "
26419 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26420 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26421 # Make sure the directory exists.
26422 test -f "$dirpart/$file" && continue
26423 fdir
=`$as_dirname -- "$file" ||
26424 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26425 X"$file" : 'X\(//\)[^/]' \| \
26426 X"$file" : 'X\(//\)$' \| \
26427 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26428 $as_echo X"$file" |
26429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26433 /^X\(\/\/\)[^/].*/{
26446 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
26447 # echo "creating $dirpart/$file"
26448 echo '# dummy' > "$dirpart/$file"
26455 # See if we are running on zsh, and set the options which allow our
26456 # commands through without removal of \ escapes.
26457 if test -n "${ZSH_VERSION+set}" ; then
26458 setopt NO_GLOB_SUBST
26461 cfgfile
="${ofile}T"
26462 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26465 cat <<_LT_EOF >> "$cfgfile"
26468 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26469 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26470 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26471 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26473 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26474 # 2006, 2007, 2008 Free Software Foundation, Inc.
26475 # Written by Gordon Matzigkeit, 1996
26477 # This file is part of GNU Libtool.
26479 # GNU Libtool is free software; you can redistribute it and/or
26480 # modify it under the terms of the GNU General Public License as
26481 # published by the Free Software Foundation; either version 2 of
26482 # the License, or (at your option) any later version.
26484 # As a special exception to the GNU General Public License,
26485 # if you distribute this file as part of a program or library that
26486 # is built using GNU Libtool, you may include this file under the
26487 # same distribution terms that you use for the rest of that program.
26489 # GNU Libtool is distributed in the hope that it will be useful,
26490 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26491 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
26492 # GNU General Public License for more details.
26494 # You should have received a copy of the GNU General Public License
26495 # along with GNU Libtool; see the file COPYING. If not, a copy
26496 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26497 # obtained by writing to the Free Software Foundation, Inc.,
26498 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26501 # The names of the tagged configurations supported by this script.
26504 # ### BEGIN LIBTOOL CONFIG
26506 # Which release of libtool.m4 was used?
26507 macro_version=$macro_version
26508 macro_revision=$macro_revision
26510 # Whether or not to build shared libraries.
26511 build_libtool_libs=$enable_shared
26513 # Whether or not to build static libraries.
26514 build_old_libs=$enable_static
26516 # What type of objects to build.
26519 # Whether or not to optimize for fast installation.
26520 fast_install=$enable_fast_install
26523 host_alias=$host_alias
26527 # The build system.
26528 build_alias=$build_alias
26532 # A sed program that does not truncate output.
26535 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26536 Xsed="\$SED -e 1s/^X//"
26538 # A grep program that handles long lines.
26544 # A literal string matcher.
26547 # A BSD- or MS-compatible name lister.
26550 # Whether we need soft or hard links.
26553 # What is the maximum length of a command?
26554 max_cmd_len=$max_cmd_len
26556 # Object file suffix (normally "o").
26559 # Executable file suffix (normally "").
26562 # whether the shell understands "unset".
26565 # turn spaces into newlines.
26568 # turn newlines into spaces.
26571 # How to create reloadable object files.
26572 reload_flag=$lt_reload_flag
26573 reload_cmds=$lt_reload_cmds
26575 # An object symbol dumper.
26576 OBJDUMP=$lt_OBJDUMP
26578 # Method to check whether dependent libraries are shared objects.
26579 deplibs_check_method=$lt_deplibs_check_method
26581 # Command to use when deplibs_check_method == "file_magic".
26582 file_magic_cmd=$lt_file_magic_cmd
26586 AR_FLAGS=$lt_AR_FLAGS
26588 # A symbol stripping program.
26591 # Commands used to install an old-style archive.
26593 old_postinstall_cmds=$lt_old_postinstall_cmds
26594 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26599 # LTCC compiler flags.
26600 LTCFLAGS=$lt_CFLAGS
26602 # Take the output of nm and produce a listing of raw symbols and C names.
26603 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26605 # Transform the output of nm in a proper C declaration.
26606 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26608 # Transform the output of nm in a C name address pair.
26609 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26611 # Transform the output of nm in a C name address pair when lib prefix is needed.
26612 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26614 # The name of the directory that contains temporary libtool files.
26617 # Shell to use when invoking shell scripts.
26620 # An echo program that does not interpret backslashes.
26623 # Used to examine libraries when file_magic_cmd begins with "file".
26624 MAGIC_CMD=$MAGIC_CMD
26626 # Must we lock files when doing compilation?
26627 need_locks=$lt_need_locks
26629 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26630 DSYMUTIL=$lt_DSYMUTIL
26632 # Tool to change global to local symbols on Mac OS X.
26635 # Tool to manipulate fat objects and archives on Mac OS X.
26638 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
26641 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26642 OTOOL64=$lt_OTOOL64
26644 # Old archive suffix (normally "a").
26647 # Shared library suffix (normally ".so").
26648 shrext_cmds=$lt_shrext_cmds
26650 # The commands to extract the exported symbol list from a shared archive.
26651 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26653 # Variables whose values should be saved in libtool wrapper scripts and
26654 # restored at link time.
26655 variables_saved_for_relink=$lt_variables_saved_for_relink
26657 # Do we need the "lib" prefix for modules?
26658 need_lib_prefix=$need_lib_prefix
26660 # Do we need a version for libraries?
26661 need_version=$need_version
26663 # Library versioning type.
26664 version_type=$version_type
26666 # Shared library runtime path variable.
26667 runpath_var=$runpath_var
26669 # Shared library path variable.
26670 shlibpath_var=$shlibpath_var
26672 # Is shlibpath searched before the hard-coded library search path?
26673 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26675 # Format of library name prefix.
26676 libname_spec=$lt_libname_spec
26678 # List of archive names. First name is the real one, the rest are links.
26679 # The last name is the one that the linker finds with -lNAME
26680 library_names_spec=$lt_library_names_spec
26682 # The coded name of the library, if different from the real name.
26683 soname_spec=$lt_soname_spec
26685 # Command to use after installation of a shared archive.
26686 postinstall_cmds=$lt_postinstall_cmds
26688 # Command to use after uninstallation of a shared archive.
26689 postuninstall_cmds=$lt_postuninstall_cmds
26691 # Commands used to finish a libtool library installation in a directory.
26692 finish_cmds=$lt_finish_cmds
26694 # As "finish_cmds", except a single script fragment to be evaled but
26696 finish_eval=$lt_finish_eval
26698 # Whether we should hardcode library paths into libraries.
26699 hardcode_into_libs=$hardcode_into_libs
26701 # Compile-time system search path for libraries.
26702 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26704 # Run-time system search path for libraries.
26705 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26707 # Whether dlopen is supported.
26708 dlopen_support=$enable_dlopen
26710 # Whether dlopen of programs is supported.
26711 dlopen_self=$enable_dlopen_self
26713 # Whether dlopen of statically linked programs is supported.
26714 dlopen_self_static=$enable_dlopen_self_static
26716 # Commands to strip libraries.
26717 old_striplib=$lt_old_striplib
26718 striplib=$lt_striplib
26721 # The linker used to build libraries.
26724 # Commands used to build an old-style archive.
26725 old_archive_cmds=$lt_old_archive_cmds
26727 # A language specific compiler.
26730 # Is the compiler the GNU compiler?
26733 # Compiler flag to turn off builtin functions.
26734 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26736 # How to pass a linker flag through the compiler.
26737 wl=$lt_lt_prog_compiler_wl
26739 # Additional compiler flags for building library objects.
26740 pic_flag=$lt_lt_prog_compiler_pic
26742 # Compiler flag to prevent dynamic linking.
26743 link_static_flag=$lt_lt_prog_compiler_static
26745 # Does compiler simultaneously support -c and -o options?
26746 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26748 # Whether or not to add -lc for building shared libraries.
26749 build_libtool_need_lc=$archive_cmds_need_lc
26751 # Whether or not to disallow shared libs when runtime libs are static.
26752 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26754 # Compiler flag to allow reflexive dlopens.
26755 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26757 # Compiler flag to generate shared objects directly from archives.
26758 whole_archive_flag_spec=$lt_whole_archive_flag_spec
26760 # Whether the compiler copes with passing no objects directly.
26761 compiler_needs_object=$lt_compiler_needs_object
26763 # Create an old-style archive from a shared archive.
26764 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26766 # Create a temporary old-style archive to link instead of a shared archive.
26767 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26769 # Commands used to build a shared archive.
26770 archive_cmds=$lt_archive_cmds
26771 archive_expsym_cmds=$lt_archive_expsym_cmds
26773 # Commands used to build a loadable module if different from building
26774 # a shared archive.
26775 module_cmds=$lt_module_cmds
26776 module_expsym_cmds=$lt_module_expsym_cmds
26778 # Whether we are building with GNU ld or not.
26779 with_gnu_ld=$lt_with_gnu_ld
26781 # Flag that allows shared libraries with undefined symbols to be built.
26782 allow_undefined_flag=$lt_allow_undefined_flag
26784 # Flag that enforces no undefined symbols.
26785 no_undefined_flag=$lt_no_undefined_flag
26787 # Flag to hardcode \$libdir into a binary during linking.
26788 # This must work even if \$libdir does not exist
26789 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26791 # If ld is used when linking, flag to hardcode \$libdir into a binary
26792 # during linking. This must work even if \$libdir does not exist.
26793 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
26795 # Whether we need a single "-rpath" flag with a separated argument.
26796 hardcode_libdir_separator=$lt_hardcode_libdir_separator
26798 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26799 # DIR into the resulting binary.
26800 hardcode_direct=$hardcode_direct
26802 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26803 # DIR into the resulting binary and the resulting library dependency is
26804 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
26805 # library is relocated.
26806 hardcode_direct_absolute=$hardcode_direct_absolute
26808 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26809 # into the resulting binary.
26810 hardcode_minus_L=$hardcode_minus_L
26812 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26813 # into the resulting binary.
26814 hardcode_shlibpath_var=$hardcode_shlibpath_var
26816 # Set to "yes" if building a shared library automatically hardcodes DIR
26817 # into the library and all subsequent libraries and executables linked
26819 hardcode_automatic=$hardcode_automatic
26821 # Set to yes if linker adds runtime paths of dependent libraries
26822 # to runtime path list.
26823 inherit_rpath=$inherit_rpath
26825 # Whether libtool must link a program against all its dependency libraries.
26826 link_all_deplibs=$link_all_deplibs
26828 # Fix the shell variable \$srcfile for the compiler.
26829 fix_srcfile_path=$lt_fix_srcfile_path
26831 # Set to "yes" if exported symbols are required.
26832 always_export_symbols=$always_export_symbols
26834 # The commands to list exported symbols.
26835 export_symbols_cmds=$lt_export_symbols_cmds
26837 # Symbols that should not be listed in the preloaded symbols.
26838 exclude_expsyms=$lt_exclude_expsyms
26840 # Symbols that must always be exported.
26841 include_expsyms=$lt_include_expsyms
26843 # Commands necessary for linking programs (against libraries) with templates.
26844 prelink_cmds=$lt_prelink_cmds
26846 # Specify filename containing input files.
26847 file_list_spec=$lt_file_list_spec
26849 # How to hardcode a shared library path into an executable.
26850 hardcode_action=$hardcode_action
26852 # ### END LIBTOOL CONFIG
26858 cat <<\_LT_EOF
>> "$cfgfile"
26859 # AIX sometimes has problems with the GCC collect2 program. For some
26860 # reason, if we set the COLLECT_NAMES environment variable, the problems
26861 # vanish in a puff of smoke.
26862 if test "X${COLLECT_NAMES+set}" != Xset
; then
26864 export COLLECT_NAMES
26871 ltmain
="$ac_aux_dir/ltmain.sh"
26874 # We use sed instead of cat because bash on DJGPP gets confused if
26875 # if finds mixed CR/LF and LF-only lines. Since sed operates in
26876 # text mode, it properly converts lines to CR/LF. This bash problem
26877 # is reportedly fixed, but why not run on old versions too?
26878 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
26879 ||
(rm -f "$cfgfile"; exit 1)
26883 cat << \_LT_EOF
>> "$cfgfile"
26885 # func_dirname file append nondir_replacement
26886 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
26887 # otherwise set result to NONDIR_REPLACEMENT.
26891 */*) func_dirname_result
="${1%/*}${2}" ;;
26892 * ) func_dirname_result
="${3}" ;;
26896 # func_basename file
26899 func_basename_result
="${1##*/}"
26902 # func_dirname_and_basename file append nondir_replacement
26903 # perform func_basename and func_dirname in a single function
26905 # dirname: Compute the dirname of FILE. If nonempty,
26906 # add APPEND to the result, otherwise set result
26907 # to NONDIR_REPLACEMENT.
26908 # value returned in "$func_dirname_result"
26909 # basename: Compute filename of FILE.
26910 # value retuned in "$func_basename_result"
26911 # Implementation must be kept synchronized with func_dirname
26912 # and func_basename. For efficiency, we do not delegate to
26913 # those functions but instead duplicate the functionality here.
26914 func_dirname_and_basename
()
26917 */*) func_dirname_result
="${1%/*}${2}" ;;
26918 * ) func_dirname_result
="${3}" ;;
26920 func_basename_result
="${1##*/}"
26923 # func_stripname prefix suffix name
26924 # strip PREFIX and SUFFIX off of NAME.
26925 # PREFIX and SUFFIX must not contain globbing or regex special
26926 # characters, hashes, percent signs, but SUFFIX may contain a leading
26927 # dot (in which case that matches only a dot).
26930 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
26931 # positional parameters, so assign one to ordinary parameter first.
26932 func_stripname_result
=${3}
26933 func_stripname_result
=${func_stripname_result#"${1}"}
26934 func_stripname_result
=${func_stripname_result%"${2}"}
26940 func_opt_split_opt
=${1%%=*}
26941 func_opt_split_arg
=${1#*=}
26948 *.lo
) func_lo2o_result
=${1%.lo}.
${objext} ;;
26949 *) func_lo2o_result
=${1} ;;
26953 # func_xform libobj-or-source
26956 func_xform_result
=${1%.*}.lo
26959 # func_arith arithmetic-term...
26962 func_arith_result
=$
(( $
* ))
26966 # STRING may not start with a hyphen.
26969 func_len_result
=${#1}
26974 *) # Bourne compatible functions.
26975 cat << \_LT_EOF
>> "$cfgfile"
26977 # func_dirname file append nondir_replacement
26978 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
26979 # otherwise set result to NONDIR_REPLACEMENT.
26982 # Extract subdirectory from the argument.
26983 func_dirname_result
=`$ECHO "X${1}" | $Xsed -e "$dirname"`
26984 if test "X$func_dirname_result" = "X${1}"; then
26985 func_dirname_result
="${3}"
26987 func_dirname_result
="$func_dirname_result${2}"
26991 # func_basename file
26994 func_basename_result
=`$ECHO "X${1}" | $Xsed -e "$basename"`
26998 # func_stripname prefix suffix name
26999 # strip PREFIX and SUFFIX off of NAME.
27000 # PREFIX and SUFFIX must not contain globbing or regex special
27001 # characters, hashes, percent signs, but SUFFIX may contain a leading
27002 # dot (in which case that matches only a dot).
27003 # func_strip_suffix prefix name
27007 .
*) func_stripname_result
=`$ECHO "X${3}" \
27008 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
27009 *) func_stripname_result
=`$ECHO "X${3}" \
27010 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
27015 my_sed_long_opt
='1s/^\(-[^=]*\)=.*/\1/;q'
27016 my_sed_long_arg
='1s/^-[^=]*=//'
27021 func_opt_split_opt
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
27022 func_opt_split_arg
=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
27028 func_lo2o_result
=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
27031 # func_xform libobj-or-source
27034 func_xform_result
=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
27037 # func_arith arithmetic-term...
27040 func_arith_result
=`expr "$@"`
27044 # STRING may not start with a hyphen.
27047 func_len_result
=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27053 case $lt_shell_append in
27055 cat << \_LT_EOF
>> "$cfgfile"
27057 # func_append var value
27058 # Append VALUE to the end of shell variable VAR.
27066 cat << \_LT_EOF
>> "$cfgfile"
27068 # func_append var value
27069 # Append VALUE to the end of shell variable VAR.
27080 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27081 ||
(rm -f "$cfgfile"; exit 1)
27083 mv -f "$cfgfile" "$ofile" ||
27084 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27095 ac_clean_files
=$ac_clean_files_save
27097 test $ac_write_fail = 0 ||
27098 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
27101 # configure is writing to config.log, and then calls config.status.
27102 # config.status does its own redirection, appending to config.log.
27103 # Unfortunately, on DOS this fails, as config.log is still kept open
27104 # by configure, so config.status won't be able to write to it; its
27105 # output is simply discarded. So we exec the FD to /dev/null,
27106 # effectively closing config.log, so it can be properly (re)opened and
27107 # appended to by config.status. When coming back to configure, we
27108 # need to make the FD available again.
27109 if test "$no_create" != yes; then
27111 ac_config_status_args
=
27112 test "$silent" = yes &&
27113 ac_config_status_args
="$ac_config_status_args --quiet"
27115 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27117 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27118 # would make configure fail if this is the last instruction.
27119 $ac_cs_success || as_fn_exit
1
27121 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
27122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27123 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}